iconv tests: Test canonicalized, not system-dependent, encoding names.
[gnulib.git] / ChangeLog
blob1380be37544965a92e2366ebe7e7deb780accd0a
1 2019-12-19  Bruno Haible  <bruno@clisp.org>
3         iconv tests: Test canonicalized, not system-dependent, encoding names.
4         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
5         * modules/iconv-tests (Depends-on): Add iconv_open.
7 2019-12-18  Bruno Haible  <bruno@clisp.org>
9         localename: Fix test failure on AIX 7.2.
10         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
11         locales on AIX.
12         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
13         locales on AIX.
15 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17         Improve port of AC_C_RESTRICT to Oracle C++
18         Problem reported by Christian Biesinger in:
19         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
20         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
21         Oracle Developer Studio C++ 12.5 or later.
23 2019-12-18  Bruno Haible  <bruno@clisp.org>
25         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
26         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
28 2019-12-18  Bruno Haible  <bruno@clisp.org>
30         localename: Ensure multithread-safety in future changes.
31         * lib/localename.c (setlocale): Reference the system's setlocale().
32         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
33         (gl_locale_name_posix): Likewise.
34         * modules/localename (Depends-on): Add setlocale-null.
36 2019-12-18  Bruno Haible  <bruno@clisp.org>
38         setlocale-null: Make API more useful.
39         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
40         callers changed.
41         (setlocale_null): New declaration.
42         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
43         extracted from setlocale_null_unlocked.
44         (setlocale_null_unlocked): Invoke it.
45         (setlocale_null_r): Renamed from setlocale_null.
46         (setlocale_null): New function, extracted from setlocale_mtsafe in
47         setlocale.c.
48         * lib/setlocale.c: Don't include <errno.h>.
49         (setlocale_mtsafe): Invoke setlocale_null.
50         * lib/setlocale-lock.c: Update comments.
51         * doc/posix-functions/setlocale.texi: Mention both functions.
53 2019-12-18  Bruno Haible  <bruno@clisp.org>
55         localename: Optimize code for native Windows.
56         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
57         category (not allowed here).
59 2019-12-18  Bruno Haible  <bruno@clisp.org>
61         setlocale: Make calls with NULL argument multithread-safe.
62         * lib/setlocale.c: Include <errno.h>.
63         (setlocale_mtsafe): New function.
64         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
65         (setlocale_improved): Renamed from rpl_setlocale.
66         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
67         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
68         LIB_SETLOCALE.
69         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
70         (Link): New section.
71         * tests/locale.c: Undefine setlocale.
72         * tests/test-setlocale_null-one.c: Likewise.
73         * tests/test-setlocale_null-all.c: Likewise.
74         * modules/setlocale-tests (Makefile.am): Link the test programs with
75         $(LIB_SETLOCALE).
76         * modules/astrxfrm-tests (Makefile.am): Likewise.
77         * modules/btowc-tests (Makefile.am): Likewise.
78         * modules/c-ctype-tests (Makefile.am): Likewise.
79         * modules/c-snprintf-tests (Makefile.am): Likewise.
80         * modules/c-strcase-tests (Makefile.am): Likewise.
81         * modules/c-vasprintf-tests (Makefile.am): Likewise.
82         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
83         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
84         * modules/dfa-tests (Makefile.am): Likewise.
85         * modules/duplocale-tests (Makefile.am): Likewise.
86         * modules/hard-locale-tests (Makefile.am): Likewise.
87         * modules/localcharset-tests (Makefile.am): Likewise.
88         * modules/localename-tests (Makefile.am): Likewise.
89         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
90         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
91         * modules/mbrtowc-tests (Makefile.am): Likewise.
92         * modules/mbscasecmp-tests (Makefile.am): Likewise.
93         * modules/mbscasestr-tests (Makefile.am): Likewise.
94         * modules/mbschr-tests (Makefile.am): Likewise.
95         * modules/mbscspn-tests (Makefile.am): Likewise.
96         * modules/mbsinit-tests (Makefile.am): Likewise.
97         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
98         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
99         * modules/mbspbrk-tests (Makefile.am): Likewise.
100         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
101         * modules/mbsrchr-tests (Makefile.am): Likewise.
102         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
103         * modules/mbsspn-tests (Makefile.am): Likewise.
104         * modules/mbsstr-tests (Makefile.am): Likewise.
105         * modules/nl_langinfo-tests (Makefile.am): Likewise.
106         * modules/quotearg-tests (Makefile.am): Likewise.
107         * modules/regex-tests (Makefile.am): Likewise.
108         * modules/strfmon_l-tests (Makefile.am): Likewise.
109         * modules/strtod-tests (Makefile.am): Likewise.
110         * modules/strtold-tests (Makefile.am): Likewise.
111         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
112         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
113         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
114         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
115         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
116         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
117         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
118         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
119         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
120         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
121         * modules/wcrtomb-tests (Makefile.am): Likewise.
122         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
123         * modules/wcsrtombs-tests (Makefile.am): Likewise.
124         * modules/wcwidth-tests (Makefile.am): Likewise.
125         * doc/posix-functions/setlocale.texi: Mention that the multithread-
126         safety fix is also available in module 'setlocale'.
128 2019-12-18  Bruno Haible  <bruno@clisp.org>
130         hard-locale: Make multithread-safe.
131         * lib/hard-locale.h (hard_locale): Move documentation to here.
132         * lib/hard-locale.c: Don't include <stdlib.h>.
133         (GLIBC_VERSION): Remove macro.
134         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
135         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
136         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
137         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
138         (Link): New section.
139         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
140         $(LIB_HARD_LOCALE).
142 2019-12-18  Bruno Haible  <bruno@clisp.org>
144         hard-locale: Avoid test failure on Haiku.
145         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
147 2019-12-18  Bruno Haible  <bruno@clisp.org>
149         setlocale-null: Handle NULL result from setlocale.
150         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
151         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
152         from setlocale or _wsetlocale.
154 2019-12-18  Bruno Haible  <bruno@clisp.org>
156         hard-locale: Add test.
157         * tests/test-hard-locale.c: New file.
158         * tests/locale.c: New file.
159         * modules/hard-locale-tests: New file.
161 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
163         dfa: do not match invalid UTF-8
164         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
165         from 5 to 9 tokens; this is needed due to the changes to
166         add_utf8_anychar.
167         (charclass_index): 2nd arg is now pointer-to-const.
168         (add_utf8_anychar): Match only valid UTF-8 byte sequences
169         instead of allowing overlong encodings or surrogate halves.
171         dfa: simplify charclass by assuming C99
172         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
173         (charclass_word): Now always uint_fast64_t.
174         (CHARCLASS_PAIR): Remove.
175         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
177         fts: tune via calloc
178         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
180         dfa: tune via xzalloc
181         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
183 2019-12-17  Bruno Haible  <bruno@clisp.org>
185         localcharset: Fix multithread-safety bug on Windows and OS/2.
186         * lib/localcharset.h (locale_charset): Clarify when the result becomes
187         invalid.
188         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
189         assemble the result.
191 2019-12-17  Bruno Haible  <bruno@clisp.org>
193         localcharset: Optimize code for native Windows.
194         * lib/localcharset.c (locale_charset): Don't bother calling
195         setlocale (LC_ALL, NULL) since we're not interested in its result.
197 2019-12-17  Bruno Haible  <bruno@clisp.org>
199         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
200         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
201         setlocale.
202         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
203         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
204         * modules/nl_langinfo (Depends-on): Add setlocale-null.
206 2019-12-17  Bruno Haible  <bruno@clisp.org>
208         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
209         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
210         stack-allocated buffer to assemble each result and different static
211         buffers to return it.
212         * tests/test-nl_langinfo-mt.c: New file.
213         * modules/nl_langinfo-tests (Files): Add it.
214         (Depends-on): Add thread, nanosleep.
215         (Makefile.am): Build test-nl_langinfo-mt test.
217 2019-12-17  Bruno Haible  <bruno@clisp.org>
219         langinfo: Document more details.
220         * doc/posix-headers/langinfo.texi: List platform details.
221         * doc/posix-functions/nl_langinfo.texi: Likewise.
223 2019-12-17  Bruno Haible  <bruno@clisp.org>
225         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
226         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
227         and Martin Storsjö <martin@martin.st>
228         in <https://savannah.gnu.org/bugs/?57406>.
229         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
230         mingw.
232 2019-12-17  Bruno Haible  <bruno@clisp.org>
234         glob: Avoid warning on mingw.
235         Reported by Christian Biesinger <cbiesinger@google.com> in
236         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
237         * lib/glob.c (__stat64): Undefine first.
239 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
241         xalloc: tune xzalloc for fresh allocations
242         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
243         because when the memory is freshly allocated from the OS via sbrk
244         or mmap, calloc can avoid doing the memset.
246         dfa: new function dfacopysyntax
247         * lib/dfa.c (struct dfa): Move syntax member later so
248         that dfacopysyntax can easily clear earlier members.
249         (dfacopysyntax): New function, used by Gawk.
251 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
253         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
254         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
255         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
256         if not already defined.
258         dfa: remove one dependency on MB_CUR_MAX
259         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
261         dfa: remove struct lexer_state.cur_mb_len
262         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
263         as it’s not needed and the code is simpler without it.
264         All uses removed.
266 2019-12-16  Bruno Haible  <bruno@clisp.org>
268         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
269         Reported by Arnold Robbins <arnold@skeeve.com>.
270         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
271         copied from lib/glthread/lock.h.
272         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
273         (setlocale_null_with_lock): If pthread_in_use() is false, use
274         setlocale_null_unlocked directly.
275         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
276         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
277         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
278         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
279         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
280         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
282 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
284         dfa: make dfasyntax thread-safe
285         Problem reported by Bruno Haible in:
286         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
287         * lib/dfa.c: Do not include locale.h.
288         (struct dfa): Remove simple_locale member.
289         All uses replaced by localeinfo.simple.
290         (using_simple_locale): Remove; now present (with some
291         changes) in localeinfo.c.
292         (dfasyntax): No need to initialize removed member.
294         localeinfo: record whether locale is simple
295         * lib/localeinfo.c (using_simple_locale): New function,
296         copied here from lib/dfa.c but with a change: it uses
297         strcoll for its heuristic, instead of using setlocale.
298         This lets it be thread-safe.
299         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
301 2019-12-15  Bruno Haible  <bruno@clisp.org>
303         duplocale: Fix multithread-safety bug on AIX.
304         * lib/duplocale.c: Don't include <stdlib.h>.
305         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
306         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
307         Set LIB_DUPLOCALE.
308         * modules/duplocale (Depends-on): Add setlocale-null.
309         (Link): New section.
310         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
311         $(LIB_DUPLOCALE).
313 2019-12-15  Bruno Haible  <bruno@clisp.org>
315         setlocale-null: Add tests.
316         * tests/test-setlocale_null.c: New file.
317         * tests/test-setlocale_null-one.c: New file.
318         * tests/test-setlocale_null-all.c: New file.
319         * modules/setlocale-null-tests: New file.
321         setlocale-null: New module.
322         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
323         setlocale_null): New declarations.
324         * lib/setlocale_null.c: New file.
325         * lib/setlocale-lock.c: New file.
326         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
327         * m4/setlocale_null.m4: New file.
328         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
329         GNULIB_SETLOCALE_NULL.
330         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
331         * modules/setlocale-null: New file.
332         * doc/posix-functions/setlocale.texi: Mention the new module.
334 2019-12-15  Bruno Haible  <bruno@clisp.org>
336         lock tests: Skip test when no multithreading is enabled.
337         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
339 2019-12-14  Bruno Haible  <bruno@clisp.org>
341         locale, duplocale, localename: Fix last patch.
342         Reported by Daniel Richard G. in
343         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
344         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
345         Don't define if locale_t does not exist.
347 2019-12-13  Bruno Haible  <bruno@clisp.org>
349         locale, duplocale, localename: Fix errors if locale_t does not exist.
350         Reported by Daniel Richard G. in
351         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
352         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
353         macros.
354         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
355         HAVE_NEWLOCALE.
356         * tests/test-localename.c: Likewise.
357         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
358         HAVE_DUPLOCALE.
359         * tests/test-locale-c++.cc: Likewise.
361 2019-12-13  Bruno Haible  <bruno@clisp.org>
363         wcstok: Fix test failure on HP-UX.
364         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
365         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
367 2019-12-12  Bruno Haible  <bruno@clisp.org>
369         strtod, strtold tests: Avoid test failure on AIX 7.2.
370         * tests/test-strtod1.c (main): Allow implementations in which ',' and
371         '.' both are radix characters.
372         * tests/test-strtold1.c (main): Likewise.
374 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
376         dfa: prefer ptrdiff_t for API, too
377         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
378         but do this only for internal use for now.
379         * NEWS: Mention the API change.
380         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
381         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
382         values known to be nonnegative.
383         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
384         Prefer idx_t or ptrdiff_t to size_t for API.
385         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
386         Prefer ptrdiff_t to size_t for API.
388         stdalign: port to xlclang 16.01
389         Problem reportd by Bruno Haible in:
390         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
391         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
392         ((__aligned__ (...))) with xlclang, as a top-level
393         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
394         xlclang version 16.01.0000.0001; the alignment directive is ignored.
396 2019-12-12  Bruno Haible  <bruno@clisp.org>
398         duplocale: Fix test failure on AIX 7.2 with xlclang.
399         * lib/duplocale.c: Include <stdlib.h>.
400         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
401         value.
403 2019-12-12  Bruno Haible  <bruno@clisp.org>
405         stddef: Document the AIX xlc issue.
406         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
408 2019-12-12  Bruno Haible  <bruno@clisp.org>
410         duplocale: Don't attempt to override if locale_t does not exist.
411         Reported by Daniel Richard G. in
412         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
413         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
414         HAVE_DUPLOCALE to 0.
416 2019-12-12  Bruno Haible  <bruno@clisp.org>
418         wcwidth: Avoid test failure on AIX 7.2.
419         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
420         negative.
421         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
423 2019-12-12  Bruno Haible  <bruno@clisp.org>
425         ilogbl: Work around Cygwin bug.
426         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
427         correct.
428         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
430 2019-12-12  Bruno Haible  <bruno@clisp.org>
432         strtold: Work around Cygwin bug.
433         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
434         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
435         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
436         STRTOLD_HAS_UNDERFLOW_BUG is defined.
437         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
439 2019-12-12  Bruno Haible  <bruno@clisp.org>
441         strtold: Fix autoconf test.
442         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
444 2019-12-11  Bruno Haible  <bruno@clisp.org>
446         fsync tests: Skip test that is known to fail.
447         * doc/posix-functions/fsync.texi: Update list of platforms.
448         * tests/test-fsync.c (main): Skip test with read-only file descriptors
449         that is known to fail on AIX and Cygwin.
451 2019-12-11  Bruno Haible  <bruno@clisp.org>
453         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
454         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
455         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
456         HAVE_GETADDRINFO as a C macro.
457         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
458         declare as replacement functions.
459         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
460         define as no-op overrides.
461         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
462         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
463         * modules/getaddrinfo (Depends-on, configure.ac): Test
464         REPLACE_GETADDRINFO.
465         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
466         problem.
467         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
468         convention problems.
470 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
472         dfa: prefer signed integers for internals
473         Signed integers can be checked more easily for integer overflow.
474         * lib/dfa.c (position, struct lexer_state, struct parser_state)
475         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
476         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
477         (nsubtoks, copytoks, closure, alloc_position_set, delete)
478         (replace, state_index, epsclosure, charclass_context)
479         (state_separate_contexts, merge_nfa_state, dfaoptimize)
480         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
481         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
482         (comsubs, inboth, allocmust):
483         Prefer a signed to an unsigned integer when calculating indexes,
484         unless the integer is part of the external API (a bigger deal,
485         and to be done later).
487         dfa: fix index overflow
488         * lib/dfa.c (compare): Avoid integer overflow when analyzing
489         very large regular expressions.
491         dfa: update commentary for previous change
492         * NEWS: Mention the change.
493         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
495 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
497         dfa: separate parse and compile phase
498         ‘dfamust’ must be called after parsing and before tokens are
499         reordered, but both are executed in the compilation phase.
500         Token reordering was introduced in Gnulib commit
501         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
502         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
503         * lib/dfa.c (dfaparse): Change it to global function.
504         (dfacomp): If first argument is NULL, skip parse.
505         * lib/dfa.h: (dfaparse): Add a prototype.
507 2019-12-11  Bruno Haible  <bruno@clisp.org>
509         unistd tests: Fix link error on MSVC.
510         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
511         $(LIB_GETLOGIN).
513 2019-12-11  Bruno Haible  <bruno@clisp.org>
515         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
516         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
517         and POSIX substitutes are supported in C++ mode.
518         * NEWS: Likewise.
520 2019-12-11  Bruno Haible  <bruno@clisp.org>
522         stddef: Fix compilation error in C++ mode on MSVC.
523         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
524         instead, include <cstddef>.
526 2019-12-11  Bruno Haible  <bruno@clisp.org>
528         unistd: Fix compilation error in C++ mode on MSVC.
529         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
530         does not have <unistd.h>.
532 2019-12-11  Bruno Haible  <bruno@clisp.org>
534         locale: Fix compilation error in C++ mode on MSVC.
535         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
536         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
537         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
538         int_n_sep_by_space): Define as macros on MSVC.
540 2019-12-11  Bruno Haible  <bruno@clisp.org>
542         wchar: Fix compilation error in C++ mode on MSVC.
543         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
545 2019-12-11  Bruno Haible  <bruno@clisp.org>
547         pthread-thread: Fix compilation error in C++ mode on MSVC.
548         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
549         _GL_CXXALIAS_RPL invocation.
551 2019-12-08  Bruno Haible  <bruno@clisp.org>
553         Fix compilation errors in C++ mode on Haiku.
554         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
555         non-glibc systems.
556         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
557         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
558         posix_spawnattr_setschedparam): Likewise.
559         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
560         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
561         * lib/unistd.in.h (usleep): Likewise.
563 2019-12-08  Bruno Haible  <bruno@clisp.org>
565         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
566         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
567         * modules/fseeko (configure.ac-early): Require it instead of
568         AC_FUNC_FSEEKO.
569         * modules/ftello (configure.ac-early): Likewise.
570         * modules/fflush (configure.ac-early): Likewise.
572 2019-12-08  Bruno Haible  <bruno@clisp.org>
574         Fix compilation error in C++ mode on HP-UX 11.
575         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
576         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
578 2019-12-08  Bruno Haible  <bruno@clisp.org>
580         Fix compilation errors on HP-UX 11/ia64.
581         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
582         _GL_FUNCDECL_SYS.
584 2019-12-08  Bruno Haible  <bruno@clisp.org>
586         Fix compilation error in C++ mode on OpenBSD.
587         * lib/signal.in.h (signal): Declare on OpenBSD.
589 2019-12-08  Bruno Haible  <bruno@clisp.org>
591         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
592         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
593         instead of #error.
595 2019-12-08  Bruno Haible  <bruno@clisp.org>
597         Fix compilation errors in C++ mode on FreeBSD.
598         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
599         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
600         * lib/threads.in.h (thrd_exit): Likewise.
601         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
603 2019-12-08  Bruno Haible  <bruno@clisp.org>
605         Fix compilation errors in C++ mode on macOS and FreeBSD.
606         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
607         or FreeBSD with clang, use the approach without C preprocessor macro.
609 2019-12-07  Bruno Haible  <bruno@clisp.org>
611         Fix compilation errors in C++ mode on AIX with xlclang++.
612         Reported by Christian Biesinger <cbiesinger@google.com> in
613         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
614         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
616 2019-12-07  Bruno Haible  <bruno@clisp.org>
618         Document compilation error in C++ mode on NetBSD 8.0.
619         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
621 2019-12-07  Bruno Haible  <bruno@clisp.org>
623         Fix compilation errors in C++ mode on Solaris 10.
624         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
625         to non-empty on Solaris with a non-GCC compiler.
626         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
628 2019-12-07  Bruno Haible  <bruno@clisp.org>
630         Reword NEWS entry.
631         * NEWS: Reword the latest NEWS entry.
633 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
635         Move xstrtol_fatal to a new xstrtol-error module.
636         * lib/xstrtol.h: Stop including <getopt.h>.
637         (xstrtol_fatal): Move ...
638         * lib/xstrtol-error.h: ... here.  New file.
639         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
640         * tests/test-xstrtol.c: Likewise.
641         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
642         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
643         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
644         * modules/xstrtol-error: New file.
645         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
646         * MODULES.html.sh: Add xstrtol-error.
647         * NEWS: Document the change.
649 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
651         nstrftime: better width support for %N, %z
652         * lib/nstrftime.c (width_add, width_add1, width_cpy):
653         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
654         a new WIDTH parameter.
655         (add, add1, cpy): Use these macros.
656         (width_add): Do not treat digits == 0 as a special case,
657         do not pad if padding is ‘-’, and do not use a negative width.
658         (__strftime_internal): Redo formatting of nanoseconds and numeric
659         timezones to avoid buffer misuse in unusual cases, and so that
660         widths make more sense.  Add support for widths greater than 9 to
661         the %N format; they are zero filled on the right.
662         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
664 2019-12-05  Bruno Haible  <bruno@clisp.org>
666         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
667         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
668         set REPLACE_ISFINITE to 1.
669         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
670         REPLACE_ISINF to 1.
671         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
672         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
673         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
674         * lib/threads.in.h (call_once): Likewise.
675         * lib/iconv.in.h (iconv): Likewise.
677 2019-12-05  Bruno Haible  <bruno@clisp.org>
679         wchar: Add more C++ tests.
680         Reported by Christian Biesinger <cbiesinger@google.com> in
681         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
682         * tests/test-wchar-c++3.cc: New file.
683         * modules/wchar-c++-tests (Files): Add it.
684         (Makefile.am): Compile it.
686 2019-12-05  Bruno Haible  <bruno@clisp.org>
688         Add more C++ tests.
690         assert-h: Add C++ tests.
691         * tests/test-assert-h-c++.cc: New file.
692         * tests/test-assert-h-c++2.cc: New file.
693         * modules/assert-h-c++-tests: New file.
694         * modules/assert-h-tests: New file.
696         ctype: Add C++ tests.
697         * tests/test-ctype-c++.cc: New file.
698         * tests/test-ctype-c++2.cc: New file.
699         * modules/ctype-c++-tests: New file.
700         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
702         errno: Add C++ tests.
703         * tests/test-errno-c++.cc: New file.
704         * tests/test-errno-c++2.cc: New file.
705         * modules/errno-c++-tests: New file.
706         * modules/errno-tests (Depends-on): Add errno-c++-tests.
708         float: Add C++ tests.
709         * tests/test-float-c++.cc: New file.
710         * tests/test-float-c++2.cc: New file.
711         * modules/float-c++-tests: New file.
712         * modules/float-tests (Depends-on): Add float-c++-tests.
714         inttypes: Add more C++ tests.
715         * tests/test-inttypes-c++2.cc: New file.
716         * modules/inttypes-c++-tests (Files): Add it.
717         (Makefile.am): Compile it.
719         limits-h: Add C++ tests.
720         * tests/test-limits-h-c++.cc: New file.
721         * tests/test-limits-h-c++2.cc: New file.
722         * modules/limits-h-c++-tests: New file.
723         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
725         stdarg: Add C++ tests.
726         * tests/test-stdarg-c++.cc: New file.
727         * tests/test-stdarg-c++2.cc: New file.
728         * modules/stdarg-c++-tests: New file.
729         * modules/stdarg-tests: New file.
731         stdbool: Add C++ tests.
732         * tests/test-stdbool-c++.cc: New file.
733         * tests/test-stdbool-c++2.cc: New file.
734         * modules/stdbool-c++-tests: New file.
735         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
737         stddef: Add C++ tests.
738         * tests/test-stddef-c++.cc: New file.
739         * tests/test-stddef-c++2.cc: New file.
740         * modules/stddef-c++-tests: New file.
741         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
743         stdint: Add C++ tests.
744         * tests/test-stdint-c++.cc: New file.
745         * tests/test-stdint-c++2.cc: New file.
746         * modules/stdint-c++-tests: New file.
747         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
749         wchar: Add more C++ tests.
750         * tests/test-wchar-c++2.cc: New file.
751         * modules/wchar-c++-tests (Files): Add it.
752         (Makefile.am): Compile it.
754         wctype-h: Add more C++ tests.
755         * tests/test-wctype-h-c++2.cc: New file.
756         * modules/wctype-h-c++-tests (Files): Add it.
757         (Makefile.am): Compile it.
759 2019-12-04  Bruno Haible  <bruno@clisp.org>
761         Fix compilation errors in C++ mode with xlclang++ on AIX.
762         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
763         C++ mode on AIX.
764         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
765         without C preprocessor macro.
766         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
767         _GL_CXXALIAS_SYS.
768         * lib/threads.in.h (thrd_exit): Likewise.
770 2019-12-04  Bruno Haible  <bruno@clisp.org>
772         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
773         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
774         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
776 2019-12-04  Bruno Haible  <bruno@clisp.org>
778         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
779         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
780         _GL_CXXALIASWARN invocation on non-glibc systems.
781         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
782         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
783         iswctype, towlower, towupper): Likewise.
785 2019-12-03  Bruno Haible  <bruno@clisp.org>
787         Avoid hassles caused by [[noreturn]] in C++.
788         Reported by Christian Biesinger <cbiesinger@google.com> in
789         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
790         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
791         * lib/_Noreturn.h: Likewise.
793 2019-12-02  Bruno Haible  <bruno@clisp.org>
795         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
796         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
797         LIBMULTITHREAD.
798         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
799         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
800         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
801         gl_THREADLIB.
802         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
804 2019-12-02  Bruno Haible  <bruno@clisp.org>
806         Fix some more link errors with --enable-threads=isoc.
807         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
808         * modules/pthread-rwlock (Depends-on): Likewise.
810 2019-12-02  Bruno Haible  <bruno@clisp.org>
812         Fix link errors with --enable-threads=posix on AIX.
813         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
814         program with $(LIBTHREAD).
815         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
816         program with $(LIBTHREAD).
818 2019-12-02  Bruno Haible  <bruno@clisp.org>
820         Fix link errors with --enable-threads=posix on AIX.
821         * modules/mbrtowc (Link): New section.
822         * modules/acl (Link): Likewise.
823         * modules/argmatch (Link): Likewise.
824         * modules/backup-rename (Link): Likewise.
825         * modules/backupfile (Link): Likewise.
826         * modules/closein (Link): Likewise.
827         * modules/closeout (Link): Likewise.
828         * modules/copy-file (Link): Likewise.
829         * modules/csharpcomp (Link): Likewise.
830         * modules/csharpexec (Link): Likewise.
831         * modules/dfa (Link): Likewise.
832         * modules/exclude (Link): Likewise.
833         * modules/fnmatch (Link): Likewise.
834         * modules/fnmatch-gnu (Link): Likewise.
835         * modules/fnmatch-posix (Link): Likewise.
836         * modules/glob (Link): Likewise.
837         * modules/human (Link): Likewise.
838         * modules/javacomp (Link): Likewise.
839         * modules/javaexec (Link): Likewise.
840         * modules/javaversion (Link): Likewise.
841         * modules/mbfile (Link): Likewise.
842         * modules/mbiter (Link): Likewise.
843         * modules/mbmemcasecmp (Link): Likewise.
844         * modules/mbmemcasecoll (Link): Likewise.
845         * modules/mbrlen (Link): Likewise.
846         * modules/mbscasecmp (Link): Likewise.
847         * modules/mbscasestr (Link): Likewise.
848         * modules/mbschr (Link): Likewise.
849         * modules/mbscspn (Link): Likewise.
850         * modules/mbsinit (Link): Likewise.
851         * modules/mbslen (Link): Likewise.
852         * modules/mbsncasecmp (Link): Likewise.
853         * modules/mbsnlen (Link): Likewise.
854         * modules/mbsnrtowcs (Link): Likewise.
855         * modules/mbspbrk (Link): Likewise.
856         * modules/mbspcasecmp (Link): Likewise.
857         * modules/mbsrchr (Link): Likewise.
858         * modules/mbsrtowcs (Link): Likewise.
859         * modules/mbssep (Link): Likewise.
860         * modules/mbsspn (Link): Likewise.
861         * modules/mbsstr (Link): Likewise.
862         * modules/mbstok_r (Link): Likewise.
863         * modules/mbswidth (Link): Likewise.
864         * modules/mbuiter (Link): Likewise.
865         * modules/mkdir-p (Link): Likewise.
866         * modules/propername (Link): Likewise.
867         * modules/quote (Link): Likewise.
868         * modules/quotearg (Link): Likewise.
869         * modules/quotearg-simple (Link): Likewise.
870         * modules/regex-quote (Link): Likewise.
871         * modules/rpmatch (Link): Likewise.
872         * modules/sh-quote (Link): Likewise.
873         * modules/system-quote (Link): Likewise.
874         * modules/trim (Link): Likewise.
875         * modules/unistdio/ulc-asnprintf (Link): Likewise.
876         * modules/unistdio/ulc-fprintf (Link): Likewise.
877         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
878         * modules/unistdio/ulc-vasprintf (Link): Likewise.
879         * modules/unistdio/ulc-vfprintf (Link): Likewise.
880         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
881         * modules/unistdio/ulc-vsprintf (Link): Likewise.
882         * modules/xfreopen (Link): Likewise.
883         * modules/xmemcoll (Link): Likewise.
884         * modules/yesno (Link): Likewise.
885         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
886         * modules/argmatch-tests (Makefile.am): Likewise.
887         * modules/closein-tests (Makefile.am): Likewise.
888         * modules/copy-file-tests (Makefile.am): Likewise.
889         * modules/dfa-tests (Makefile.am): Likewise.
890         * modules/fnmatch-tests (Makefile.am): Likewise.
891         * modules/glob-tests (Makefile.am): Likewise.
892         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
893         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
894         * modules/mbrtowc-tests (Makefile.am): Likewise.
895         * modules/mbscasecmp-tests (Makefile.am): Likewise.
896         * modules/mbscasestr-tests (Makefile.am): Likewise.
897         * modules/mbschr-tests (Makefile.am): Likewise.
898         * modules/mbscspn-tests (Makefile.am): Likewise.
899         * modules/mbsinit-tests (Makefile.am): Likewise.
900         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
901         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
902         * modules/mbspbrk-tests (Makefile.am): Likewise.
903         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
904         * modules/mbsrchr-tests (Makefile.am): Likewise.
905         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
906         * modules/mbsspn-tests (Makefile.am): Likewise.
907         * modules/mbsstr-tests (Makefile.am): Likewise.
908         * modules/quotearg-tests (Makefile.am): Likewise.
909         * modules/quotearg-simple-tests (Makefile.am): Likewise.
910         * modules/readtokens-tests (Makefile.am): Likewise.
911         * modules/regex-quote-tests (Makefile.am): Likewise.
912         * modules/sh-quote-tests (Makefile.am): Likewise.
913         * modules/system-quote-tests (Makefile.am): Likewise.
914         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
915         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
916         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
917         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
918         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
919         * modules/yesno-tests (Makefile.am): Likewise.
921 2019-12-02  Bruno Haible  <bruno@clisp.org>
923         Simplify link sections.
924         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
925         * modules/lock (Link): Likewise.
926         * modules/cond (Link): Likewise.
927         * modules/tls (Link): Likewise.
928         * modules/yield (Link): Likewise.
929         * modules/regex (Link): Likewise.
930         * modules/localename (Link): Likewise.
931         * modules/unicase/locale-language (Link): Likewise.
932         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
934 2019-12-02  Bruno Haible  <bruno@clisp.org>
936         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
937         * tests/test-thread_self.c (main): Disable test on AIX.
939 2019-12-01  Bruno Haible  <bruno@clisp.org>
941         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
942         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
943         gl_THREADLIB_EARLY_BODY.
944         (gl_THREADLIB_EARLY_BODY): Invoke it.
945         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
946         (gl_THREADLIB_BODY): Invoke it.
947         (gl_PTHREADLIB): New macro.
948         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
949         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
950         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
951         * modules/pthread-h (Files): Add threadlib.m4.
952         (Depends-on): Remove threadlib.
953         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
954         and _THREAD_SAFE here.
955         (Link): Use LIBPTHREAD, not LIBTHREAD.
956         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
957         LIBMULTITHREAD.
958         * modules/pthread-once (Link): Likewise.
959         * modules/pthread-mutex (Link): Likewise.
960         * modules/pthread-rwlock (Link): Likewise.
961         * modules/pthread-cond (Link): Likewise.
962         * modules/pthread-tss (Link): Likewise.
963         * modules/pthread-spin (Link): Likewise.
964         * modules/pthread (Link): Likewise.
965         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
966         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
967         * modules/pthread-once-tests (test_pthread_once1_LDADD,
968         test_pthread_once2_LDADD): Likewise.
969         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
970         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
971         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
972         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
974 2019-12-01  Bruno Haible  <bruno@clisp.org>
976         cond: State linking requirements.
977         * modules/cond (Link): New section.
979 2019-12-01  Bruno Haible  <bruno@clisp.org>
981         threadlib: Remove unnecessary file (left over from 2019-07-06).
982         * modules/threadlib (Files): Remove config.rpath.
984 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
986         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
987         Reported by Dagobert Michelsen <dam@opencsw.org> in
988         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
989         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
990         list of strings instead of one string.
991         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
992         * pygnulib/GLImport.py (execute): Likewise.
994 2019-11-27  Bruno Haible  <bruno@clisp.org>
996         openpty, forkpty: Fix build error on Solaris 11.4.
997         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
998         also in <termios.h>.
999         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
1000         of the function also in <termios.h>.
1001         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
1002         * doc/glibc-functions/forkpty.texi: Likewise.
1004 2019-11-27  Bruno Haible  <bruno@clisp.org>
1006         New options --enable-threads=isoc and --enable-threads=isoc+posix.
1007         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
1008         --enable-threads=isoc and --enable-threads=isoc+posix.
1009         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
1010         When both the ISO C and the POSIX threads API are available, choose
1011         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
1012         --enable-threads=isoc+posix was specified. When only the ISO C threads
1013         API is available and --enable-threads=iso was specified, choose
1014         USE_ISOC_THREADS.
1015         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
1016         USE_ISOC_AND_POSIX_THREADS.
1017         * lib/glthread/lock.c: Likewise.
1018         * lib/glthread/cond.h: Likewise.
1019         * lib/glthread/cond.c: Likewise.
1020         * lib/glthread/tls.h: Likewise.
1021         * lib/glthread/tls.c: Likewise.
1022         * lib/glthread/yield.h: Likewise.
1023         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
1024         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
1025         * lib/glthread/thread.c: Likewise.
1026         * lib/glthread/threadlib.c: Likewise.
1027         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
1028         USE_ISOC_AND_POSIX_THREADS.
1029         * tests/test-cond.c: Consider USE_ISOC_THREADS and
1030         USE_ISOC_AND_POSIX_THREADS.
1031         * tests/test-tls.c: Likewise.
1032         * tests/test-thread_create.c (main): Likewise.
1033         * tests/test-pthread-cond.c: Likewise.
1034         * tests/test-pthread-mutex.c: Likewise.
1035         * tests/test-pthread-once2.c: Likewise.
1036         * tests/test-pthread-rwlock.c: Likewise.
1037         * tests/test-pthread-tss.c: Likewise.
1038         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
1039         USE_POSIX_THREADS.
1041 2019-11-24  Bruno Haible  <bruno@clisp.org>
1043         mbrtowc: Modernize autoconf test.
1044         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
1045         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
1046         try a UTF-8 locale.
1047         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
1049 2019-11-24  Bruno Haible  <bruno@clisp.org>
1051         Fix errors in C++ mode on mingw.
1052         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
1053         instead of _GL_CXXALIAS_SYS.
1054         * lib/signal.in.h (pthread_sigmask): Likewise.
1055         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
1056         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1057         Likewise.
1058         * lib/wchar.in.h (btowc): Likewise.
1060 2019-11-24  Bruno Haible  <bruno@clisp.org>
1062         sys_time: Fix errors in C++ mode on mingw.
1063         * lib/sys_time.in.h (timeval): Restore the redirection
1064         '#define timeval rpl_timeval', for when the symbol timeval is being used
1065         outside the 'gnulib' namespace.
1066         * lib/sys_select.in.h (select): In C++, write 'timeval', not
1067         'struct timeval'.
1069 2019-11-24  Bruno Haible  <bruno@clisp.org>
1071         iswctype: Fix errors in C++ mode on mingw.
1072         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
1073         is 1.
1074         * lib/iswctype.c (iswctype): Add another implementation, for the
1075         GNULIB_defined_wint_t case.
1076         * modules/iswctype (configure.ac): Compile iswctype.c also if
1077         GNULIB_OVERRIDES_WINT_T is 1.
1079 2019-11-24  Bruno Haible  <bruno@clisp.org>
1081         windows-timedmutex: Fix errors in C++ mode on mingw.
1082         * lib/windows-timedmutex.h: Add closing brace.
1084 2019-11-24  Bruno Haible  <bruno@clisp.org>
1086         Fix errors in C++ mode on Cygwin.
1087         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
1088         _GL_CXXALIAS_SYS.
1090 2019-11-24  Bruno Haible  <bruno@clisp.org>
1092         time_r: Fix for mingw (regression from 2019-11-16).
1093         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
1094         AC_LINK_IFELSE test only if the function does not appear to exist.
1096 2019-11-24  Bruno Haible  <bruno@clisp.org>
1098         wcstok: Add tests.
1099         * tests/test-wcstok.c: New file.
1100         * modules/wcstok-tests: New file.
1102 2019-11-24  Bruno Haible  <bruno@clisp.org>
1104         wcstok: Work around wrong signature on native Windows.
1105         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
1106         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
1107         REPLACE_WCSTOK.
1108         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
1109         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
1110         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
1111         * doc/posix-functions/wcstok.texi: Mention the problem.
1113 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
1115         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
1116         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
1117         remove workaround for GCC bug 91450 as the bug should be fixed
1118         there too.
1120 2019-11-21  Bruno Haible  <bruno@clisp.org>
1122         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
1123         Reported by Christian Biesinger <cbiesinger@google.com> in
1124         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
1125         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
1126         non-glibc systems.
1127         * lib/locale.in.h (localeconv, setlocale): Likewise.
1128         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
1129         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
1130         rint, round, trunc): Likewise.
1131         * lib/monetary.in.h (strfmon_l): Likewise.
1132         * lib/pthread.in.h (pthread_mutexattr_getrobust,
1133         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
1134         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
1135         pthread_spin_destroy): Likewise.
1136         * lib/signal.in.h (raise, signal): Likewise.
1137         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
1138         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
1139         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
1140         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
1141         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
1142         Likewise.
1143         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
1144         Likewise.
1145         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
1146         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
1147         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
1148         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
1149         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
1150         wcsftime): Likewise.
1151         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
1153 2019-11-21  Bruno Haible  <bruno@clisp.org>
1155         Fix various errors in _GL_CXXALIAS_SYS invocations.
1156         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
1157         _GL_CXXALIAS_SYS.
1158         * lib/pthread.in.h (pthread_mutexattr_gettype,
1159         pthread_mutexattr_getrobust): Likewise.
1160         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
1161         * lib/sys_socket.in.h (recv, send): Likewise.
1162         * lib/unistd.in.h (getdtablesize): Likewise.
1163         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
1164         'struct timeval'.
1166 2019-11-21  Bruno Haible  <bruno@clisp.org>
1168         math tests: Update after 2019-08-28 change.
1169         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
1170         return type of 'bool', not 'int'.
1172 2019-11-21  Bruno Haible  <bruno@clisp.org>
1174         pthread-spin: Fix errors in C++ mode.
1175         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
1176         functions as nonexistent when <pthread.h> exists but does not define
1177         the pthread_spinlock_t type.
1179 2019-11-21  Bruno Haible  <bruno@clisp.org>
1181         pthread-mutex: Fix errors in C++ mode.
1182         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
1183         pthread_mutexattr_getrobust exists. If not, define
1184         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
1185         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
1186         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
1187         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
1188         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
1189         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
1190         definition.
1192 2019-11-19  Bruno Haible  <bruno@clisp.org>
1194         threads-h tests: Fix typo.
1195         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
1197 2019-11-19  Bruno Haible  <bruno@clisp.org>
1199         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
1200         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
1201         to 'const pthread_attr_t *'.
1202         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
1203         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
1205 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
1207         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
1208         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
1209         work around GCC bug 91450 as the bug should be fixed there.
1211 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1213         glob: get closer to glibc glob.c
1214         Omit differences from glibc when the differences don’t matter.
1215         * lib/glob.c [_LIBC]: Include shlib-compat.h.
1216         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
1217         (glob_lstat): New function.
1218         (glob_in_dir): Use it.
1219         (GLOB_ATTRIBUTE): Define to empty if not already defined.
1220         Use changed.
1222 2019-11-18  Bruno Haible  <bruno@clisp.org>
1224         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
1225         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
1226         UINTPTR_MAX): Consider _WIN64.
1227         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
1228         a pointer.
1230 2019-11-18  Bruno Haible  <bruno@clisp.org>
1232         stdint: Fix value of WINT_MAX when we override wint_t.
1233         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
1234         when GNULIB_OVERRIDES_WINT_T is 1.
1236 2019-11-18  Bruno Haible  <bruno@clisp.org>
1238         vcs-to-changelog: New module.
1239         * modules/vcs-to-changelog: New file.
1240         * MODULES.html.sh (func_all_modules): Add it.
1242 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1244         vcs-to-changelog: New script to generate ChangeLog-like output.
1245         Discussion:
1246         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
1247         * build-aux/vcs_to_changelog.py: New file.
1248         * build-aux/vcstocl/frontend_c.py: New file.
1249         * build-aux/vcstocl/misc_util.py: New file.
1250         * build-aux/vcstocl/vcs_git.py: New file.
1252 2019-11-18  Bruno Haible  <bruno@clisp.org>
1254         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
1255         Reported by Keith Marshall <keith@users.osdn.me> in
1256         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
1257         and <https://osdn.net/projects/mingw/ticket/39677>.
1258         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
1259         already been defined by mingw's <crtdefs.h>.
1261 2019-11-18  Bruno Haible  <bruno@clisp.org>
1263         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
1264         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
1265         conditionally enabled.
1267 2019-11-18  Bruno Haible  <bruno@clisp.org>
1269         gc: Mirror libgcrypt.m4 from libgcrypt.
1270         * config/srclistvars.sh (LIBGCRYPT): New variable.
1271         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
1273 2019-11-17  Bruno Haible  <bruno@clisp.org>
1275         locale, localename: Improve z/OS support.
1276         Reported by Daniel Richard G. in
1277         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
1278         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
1279         gl_LOCALE_H.
1280         (gl_LOCALE_H): Require it.
1281         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
1282         defined, don't even check for newlocale, duplocale, freelocale.
1283         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
1284         locale_t is not defined.
1286 2019-11-17  Bruno Haible  <bruno@clisp.org>
1288         havelib: Make libdirstems processing more flexible.
1289         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
1290         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
1291         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
1292         patch from 2017-02-19).
1293         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
1294         libdirs, even when the first one exists as a directory.
1296 2019-11-17  Bruno Haible  <bruno@clisp.org>
1298         havelib: Match the bitness when searching for libraries.
1299         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
1300         acl_is_expected_elfclass.
1301         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
1302         file exists, in ELF, also test whether it has the ELF class that
1303         corresponds to the host's bitness.
1305 2019-11-17  Bruno Haible  <bruno@clisp.org>
1307         host-cpu-c-abi: Add support for unknown CPUs.
1308         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
1309         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
1310         32-bit or 64-bit.
1312 2019-11-17  Bruno Haible  <bruno@clisp.org>
1314         havelib: Remove redundant code.
1315         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
1316         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
1318 2019-11-17  Bruno Haible  <bruno@clisp.org>
1320         havelib: Fix a bug in dependency processing.
1321         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
1322         of .la files, don't overwrite the value of additional_libdir for the
1323         next rounds.
1325 2019-11-16  Bruno Haible  <bruno@clisp.org>
1327         wctype-h: When overriding wint_t, override also the related functions.
1328         Reported by Christian Biesinger <cbiesinger@google.com> in
1329         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
1330         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
1331         REPLACE_ISWCNTRL to 1.
1332         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
1333         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
1334         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
1335         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
1336         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
1337         on mingw.
1338         * doc/posix-headers/wctype.texi: Likewise.
1340 2019-11-16  Bruno Haible  <bruno@clisp.org>
1342         time_r: Fix for mingw.
1343         Reported by Christian Biesinger <cbiesinger@google.com> in
1344         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
1345         * lib/time.in.h: On mingw, include <unistd.h>.
1346         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
1347         <time.h>. Test for localtime_r in a way that works when it is defined
1348         as an inline function.
1350 2019-11-13  Bruno Haible  <bruno@clisp.org>
1352         havelib: Revert last change.
1353         * build-aux/config.rpath: Revert last change. We can add msys2 support
1354         when it has been added to libtool.m4 upstream.
1356 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1358         config: add msys support
1359         Requested by Arnold Robbins in:
1360         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
1361         He also requested a change to config.guess, which I’ll forward
1362         upstream.
1363         * build-aux/ar-lib (func_file_conv):
1364         * build-aux/compile (func_file_conv):
1365         * build-aux/config.rpath (wl, with_gnu_ld)
1366         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
1367         Treat msys like cygwin.
1369 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1371         regex: now back in sync with glibc
1372         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
1373         regexec.c got merged into glibc and are now copies again.
1375 2019-10-27  Bruno Haible  <bruno@clisp.org>
1377         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
1378         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
1379         statement.
1380         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
1381         32-bit CPUs.
1383 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1385         timespec-add, timespec-sub: simplify
1386         * lib/timespec-add.c (timespec_add):
1387         * lib/timespec-sub.c (timespec_sub):
1388         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
1389         work on unsigned integers.
1391 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1393         nstrftime: speed up integer overflow checking
1394         * lib/nstrftime.c: Include intprops.h.
1395         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
1396         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
1397         instead of doing it by hand.
1398         * modules/nstrftime (Depends-on): Add intprops.
1400         Port better to GCC under macOS
1401         Work around macOS header that has ‘#define __has_builtin(x) 0’
1402         when compiled by GCC.  Apple really, really doesn’t want you to
1403         use GCC, apparently.  Rroblem reported by Akim Demaille in:
1404         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
1405         The fix is to not trust __has_builtin when being compiled by
1406         recent-enough GCC.
1407         * lib/intprops.h (__has_builtin)
1408         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
1409         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
1410         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
1411         Remove.  All uses removed.
1412         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
1413         directly, if defined and if not newer GCC.
1414         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
1415         New macro, that use __has_builtin directly, if defined and if
1416         not newer GCC.
1417         (assume): Use them.
1419 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
1421         maintainer-makefile: update rule for argmatch.
1422         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
1424 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
1426         bitset: let freeing functions accept NULL.
1427         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
1428         given NULL.
1429         * lib/bitset.h: Document that.
1430         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
1432 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1434         inttypes: use more-robust test for int range
1435         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
1436         Problem reported by Dagobert Michelsen in:
1437         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
1438         * lib/inttypes.in.h: Rely only on limits.h when checking
1439         int range.
1441 2019-10-15  Bruno Haible  <bruno@clisp.org>
1443         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
1444         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
1445         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
1446         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
1447         term_ostream_set_hyperlink): New functions.
1448         (term_styled_ostream_get_hyperlink_ref,
1449         term_styled_ostream_get_hyperlink_id,
1450         term_styled_ostream_set_hyperlink): New function aliases.
1452 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1454         update-copyright: use en dashes in .texi ranges
1455         * build-aux/update-copyright: Match year ranges like "1998--2019",
1456         which are used in the Autoconf manual.  Also, update ranges in
1457         .tex, .texi, and .texinfo files to use en dashes instead of
1458         hyphens.
1460 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
1462         * config/srclist.txt: Remove posix/regex_internal.c for now.
1464 2019-10-13  Bruno Haible  <bruno@clisp.org>
1466         git-version-gen: Allow 'snapshot' as .tarball-version contents.
1467         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
1468         contents to the empty string.
1470 2019-10-12  Bruno Haible  <bruno@clisp.org>
1472         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
1473         * tests/test-intprops.c (main): Disable two more tests when using
1474         HP-UX cc.
1476 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1478         Simplify and regularize regex use of ‘assert’
1479         Also, tell GCC about the asserts even when compiling without
1480         debugging, to give it further optimization opportunities.
1481         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
1482         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
1483         (parse_expression, parse_bracket_exp):
1484         * lib/regex_internal.c (build_wcs_buffer)
1485         (build_wcs_upper_buffer, re_string_reconstruct)
1486         (re_string_context_at):
1487         * lib/regexec.c (re_search_stub, re_copy_regs)
1488         (re_search_internal, prune_impossible_nodes, check_matching)
1489         (check_halt_state_context, set_regs, sift_states_backward)
1490         (build_sifted_states, transit_state_mb, transit_state_bkref)
1491         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
1492         (match_ctx_add_subtop):
1493         Use it instead of plain ‘assert’.
1495 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
1497         regex: omit debug assignment when not debugging
1498         * lib/regexec.c (re_search_internal) [!DEBUG]:
1499         Remove unnecessary assignment.
1501         regex: tell compiler there’s at most 256 arcs out
1502         Partly this is to help the reader (and maybe help GCC);
1503         partly this is to pacify Coverity.
1504         * lib/regex_internal.h: Include verify.h.
1505         * lib/regexec.c (group_nodes_into_DFAstates):
1506         Tell the compiler that ndests cannot exceed SBC_MAX.
1507         * modules/regex (Depends-on): Add ‘verify’.
1509         regex: simplify by assuming C99
1510         * config/srclist.txt: Comment out regex_internal.h and regexec.c
1511         temporarily.
1512         * lib/regex_internal.h (lock_define, re_match_context_t):
1513         Simplify by assuming C99 macros and const.
1514         * lib/regexec.c (re_search_internal): Simplify by assuming C99
1515         initializers.  Remove unnecessary assignment, as mctx is now
1516         safely initialized earlier.
1518         regex: avoid copying of uninitialized storage
1519         * config/srclist.txt: Comment out regcomp.c temporarily.
1520         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
1521         Initialize even when not checking for lint, as the behavior is
1522         arguably undefined otherwise and Coverity warns about it.
1524 2019-10-06  Bruno Haible  <bruno@clisp.org>
1526         access tests: Fix test failure when run as root.
1527         * tests/test-access.c: Include root-uid.h.
1528         (geteuid): Define fallback.
1529         (main): Don't expect that writing to a read-only file would fail when
1530         running as root. Also, remove the created files at the end.
1531         * modules/access-tests (Depends-on): Add root-uid.
1532         (configure.ac): Test whether geteuid exists.
1534 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
1536         users.txt: add GNU nano
1537         Nano has been making use of gnulib since March 2017, version 2.8.0.
1539 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1541         bootstrap: simplify debugging of wget failures
1542         Problem reported by Tim Rühsen in:
1543         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
1544         * build-aux/bootstrap (po_download_command_format):
1545         Invoke wget with -nv instead of -q, to make debugging easier.
1547 2019-09-29  Bruno Haible  <bruno@clisp.org>
1549         avltree-list: Fix compilation warning (introduced on 2014-09-16).
1550         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
1551         'const' attribute.
1553 2019-09-29  Bruno Haible  <bruno@clisp.org>
1555         fbufmode: Fix compilation error on glibc >= 2.28 systems.
1556         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
1558 2019-09-28  Bruno Haible  <bruno@clisp.org>
1560         Update comments that refer to POSIX.
1561         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
1562         sentence about trailing slashes.
1563         * lib/fflush.c: Clarify the reasoning.
1564         * tests/test-fflush2.c: Cite the relevant sentence.
1566 2019-09-28  Bruno Haible  <bruno@clisp.org>
1568         access: Document limitations on Windows.
1569         Suggested by Zaretskii <eliz@gnu.org>.
1570         * doc/posix-functions/access.texi: Mention two limitations on Windows.
1572 2019-09-28  Bruno Haible  <bruno@clisp.org>
1574         findprog-in: Fix comment.
1575         Reported by Eli Zaretskii <eliz@gnu.org>.
1576         * lib/findprog.h (find_in_given_path): Extend description of EACCES
1577         condition.
1578         * lib/stat.c (rpl_stat): Fix typo in comment.
1579         * lib/utime.c (_gl_utimens_windows): Likewise.
1581 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1583         Update URLs and associated text
1584         (Thanks to Bruno Haible for proofreading this patch.)
1585         Prefer https: to http: in URLs where either will do, for the usual
1586         security reasons.  I also updated broken and/or moved URLs
1587         discovered during the process. In a few places I had to resort to
1588         archive.org, since I didn't find the originals elsewhere.
1590 2019-09-15  Paul Smith  <psmith@gnu.org>
1591             Bruno Haible  <bruno@clisp.org>
1593         findprog-in: Set errno when the search fails.
1594         * lib/findprog-in.c: Include <errno.h>.
1595         (find_in_given_path): Set errno before returning NULL.
1596         * lib/findprog.h (find_in_given_path): Update comment accordingly.
1597         Define the term "slash".
1599 2019-09-15  Bruno Haible  <bruno@clisp.org>
1601         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
1602         * modules/findprog (Depends-on): Add access.
1603         * modules/findprog-lgpl (Depends-on): Likewise.
1604         * modules/findprog-in (Depends-on): Likewise.
1606 2019-09-15  Bruno Haible  <bruno@clisp.org>
1608         access: Add tests.
1609         * tests/test-access.c: New file.
1610         * modules/access-tests: New file.
1612         access: New module.
1613         * lib/unistd.in.h (access): New declaration.
1614         * lib/access.c: New file.
1615         * m4/access.m4: New file.
1616         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
1617         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
1618         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
1619         REPLACE_ACCESS.
1620         * modules/access: New file.
1621         * tests/test-unistd-c++.cc (access): Check signature.
1622         * doc/posix-functions/access.texi: Mention the new module.
1624 2019-09-15  Bruno Haible  <bruno@clisp.org>
1626         fcntl-h: Fix compilation error of creat.c on MSVC.
1627         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
1628         defined.
1630 2019-09-15  Bruno Haible  <bruno@clisp.org>
1632         creat: Add tests.
1633         * tests/test-creat.c: New file, based on tests/test-open.h.
1634         * modules/creat-tests: New file.
1636         creat: New module.
1637         * lib/fcntl.in.h (creat): New declaration.
1638         * lib/creat.c: New file, based on lib/open.c.
1639         * m4/creat.m4: New file.
1640         * m4/open-slash.m4: New file, extracted from m4/open.m4.
1641         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
1642         Invoke gl_OPEN_TRAILING_SLASH_BUG.
1643         * modules/open (Files): Add m4/open-slash.m4.
1644         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
1645         REPLACE_CREAT.
1646         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
1647         * modules/creat: New file.
1648         * tests/test-fcntl-h-c++.cc (creat): Check signature.
1649         * doc/posix-functions/creat.texi: Mention the new module.
1651 2019-09-15  Bruno Haible  <bruno@clisp.org>
1653         open tests: Enhance test.
1654         * tests/test-open.h (test_open): Test the creation of an executable
1655         regular file. Also improve initial cleanup.
1657 2019-09-15  Bruno Haible  <bruno@clisp.org>
1659         intprops tests: Avoid build failure with HP-UX cc.
1660         * tests/test-intprops.c: Disable a check that makes HP cc choke with
1661         "error 4018: Macro param too large after substitution - use -H option.".
1663 2019-09-14  Bruno Haible  <bruno@clisp.org>
1665         Make autoconf tests work with -Werror=implicit-function-declaration.
1666         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
1667         towupper() declaration.
1668         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
1669         declaration.
1671 2019-09-14  Bruno Haible  <bruno@clisp.org>
1673         findprog-in: Better mimic the system on native Windows.
1674         Reported by Paul Smith <psmith@gnu.org>.
1675         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
1676         non-empty suffixes when the file name already contains a '.'.
1678 2019-09-10  Bruno Haible  <bruno@clisp.org>
1680         wctob: Fix autoconf test.
1681         Based on patch by Florian Weimer <fweimer@redhat.com>.
1682         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
1684 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
1686         xhash: provide hash_xinitialize.
1687         Suggested by Egor Pugin <egor.pugin@gmail.com>
1688         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
1689         * modules/xhash, lib/xhash.c: New.
1690         * lib/hash.h (hash_xinitialize): New.
1692 2019-09-09  Bruno Haible  <bruno@clisp.org>
1694         findprog-in: Make exec optimization optional.
1695         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
1696         (find_in_given_path): Add optimize_for_exec parameter.
1697         * lib/findprog-in.c (find_in_given_path): Likewise.
1699 2019-09-08  Bruno Haible  <bruno@clisp.org>
1701         Add option to assume the best, not the worst, when cross-compiling.
1702         Suggested by Jonas Termansen <sortie@maxsi.org>.
1703         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
1704         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
1705         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
1706         lt_cv_sys_argz_works.
1707         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
1708         ac_cv_func_calloc_0_nonnull.
1709         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
1710         --enable-cross-guesses for gl_cv_func_realpath_works.
1711         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
1712         gl_cv_func_cbrtl_ieee.
1713         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
1714         gl_cv_func_ceil_ieee.
1715         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
1716         gl_cv_func_ceilf_ieee.
1717         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
1718         gl_cv_func_ceill_ieee.
1719         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
1720         ac_cv_func_chown_works.
1721         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
1722         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
1723         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
1724         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
1725         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
1726         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
1727         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
1728         gl_cv_func_expl_works.
1729         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
1730         gl_cv_func_expm1_ieee.
1731         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
1732         gl_cv_func_expm1l_works.
1733         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
1734         gl_cv_func_open_directory_works.
1735         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
1736         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
1737         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
1738         gl_cv_func_fchownat_empty_filename_works.
1739         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
1740         gl_cv_func_fdopendir_works.
1741         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
1742         gl_cv_func_floor_ieee.
1743         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
1744         gl_cv_func_floorf_ieee.
1745         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
1746         gl_cv_func_fma_works.
1747         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
1748         gl_cv_func_fmaf_works.
1749         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
1750         gl_cv_func_fmal_works.
1751         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
1752         gl_cv_func_fmod_ieee.
1753         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
1754         gl_cv_func_fmodf_ieee.
1755         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
1756         gl_cv_func_fmodl_ieee.
1757         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
1758         gl_cv_func_fpurge_works.
1759         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
1760         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
1761         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
1762         gl_cv_func_getcwd_null.
1763         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
1764         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
1765         gl_cv_func_working_getdelim.
1766         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
1767         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
1768         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
1769         gl_cv_func_getgroups_works.
1770         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
1771         am_cv_func_working_getline.
1772         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
1773         for gl_cv_func_getopt_gnu.
1774         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
1775         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
1776         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
1777         gl_cv_func_hypot_ieee.
1778         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
1779         gl_cv_func_hypotf_ieee.
1780         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
1781         gl_cv_func_hypotl_ieee.
1782         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
1783         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
1784         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
1785         gl_cv_func_link_works.
1786         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
1787         gl_cv_func_linkat_slash.
1788         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
1789         gl_cv_func_log_ieee.
1790         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
1791         gl_cv_func_logf_ieee.
1792         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
1793         gl_cv_func_logl_works.
1794         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
1795         gl_cv_func_log10_ieee.
1796         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
1797         gl_cv_func_log10f_ieee.
1798         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
1799         gl_cv_func_log10l_works.
1800         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
1801         gl_cv_func_log1p_ieee.
1802         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
1803         gl_cv_func_log1pf_ieee.
1804         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
1805         gl_cv_func_log1pl_ieee.
1806         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
1807         gl_cv_func_log2_ieee.
1808         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
1809         gl_cv_func_log2f_ieee.
1810         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
1811         --enable-cross-guesses for
1812         gl_cv_func_lstat_dereferences_slashed_symlink.
1813         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
1814         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
1815         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
1816         gl_cv_C_locale_sans_EILSEQ.
1817         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
1818         gl_cv_func_memchr_works.
1819         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
1820         gl_cv_func_memmem_works_always.
1821         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
1822         gl_cv_func_memmem_works_fast.
1823         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
1824         gl_cv_func_mkdir_trailing_slash_works,
1825         gl_cv_func_mkdir_trailing_dot_works.
1826         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
1827         gl_cv_func_mkfifo_works.
1828         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
1829         gl_cv_func_mknod_works.
1830         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
1831         gl_cv_func_working_mkstemp.
1832         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
1833         gl_cv_func_working_mktime.
1834         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
1835         gl_cv_func_modf_ieee.
1836         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
1837         gl_cv_func_modff_ieee.
1838         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
1839         gl_cv_func_modfl_ieee.
1840         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
1841         gl_cv_func_nanosleep.
1842         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
1843         gl_cv_func_perror_works.
1844         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
1845         gl_cv_func_printf_sizes_c99.
1846         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
1847         gl_cv_func_printf_infinite.
1848         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
1849         gl_cv_func_printf_infinite_long_double.
1850         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
1851         gl_cv_func_printf_directive_a.
1852         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
1853         gl_cv_func_printf_directive_f.
1854         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
1855         gl_cv_func_printf_flag_zero.
1856         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
1857         gl_cv_func_printf_enomem.
1858         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
1859         gl_cv_func_snprintf_truncation_c99.
1860         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
1861         gl_cv_func_snprintf_retval_c99.
1862         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
1863         gl_cv_func_snprintf_directive_n.
1864         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
1865         gl_cv_func_vsnprintf_zerosize_c99.
1866         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
1867         gl_cv_func_pselect_detects_ebadf.
1868         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
1869         Obey --enable-cross-guesses for
1870         gl_cv_pthread_rwlock_rdlock_prefer_writer.
1871         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
1872         gl_cv_func_ptsname_sets_errno.
1873         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
1874         gl_cv_func_svid_putenv.
1875         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
1876         gl_cv_func_readlink_works.
1877         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
1878         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
1879         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
1880         gl_cv_func_re_compile_pattern_working.
1881         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
1882         gl_cv_func_remainder_ieee.
1883         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
1884         gl_cv_func_remainderf_ieee.
1885         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
1886         gl_cv_func_remainderl_ieee.
1887         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
1888         gl_cv_func_rintl_works.
1889         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
1890         gl_cv_func_rmdir_works.
1891         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
1892         gl_cv_func_round_ieee.
1893         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
1894         gl_cv_func_roundf_ieee.
1895         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
1896         gl_cv_func_roundl_ieee.
1897         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
1898         gl_cv_func_select_detects_ebadf.
1899         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
1900         gl_cv_func_setenv_works.
1901         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
1902         gl_cv_func_unsetenv_works.
1903         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
1904         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
1905         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
1906         gl_cv_func_sleep_works.
1907         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
1908         gl_cv_func_stat_file_slash.
1909         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
1910         gl_cv_func_stpncpy.
1911         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
1912         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
1913         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
1914         gl_cv_func_strcasestr_linear.
1915         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
1916         gl_cv_func_working_strerror.
1917         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
1918         gl_cv_func_strerror_0_works.
1919         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
1920         --enable-cross-guesses for gl_cv_func_strerror_r_works.
1921         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
1922         gl_cv_func_strstr_works_always.
1923         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
1924         gl_cv_func_strstr_linear.
1925         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
1926         gl_cv_func_strtod_works.
1927         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
1928         gl_cv_func_strtold_works.
1929         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
1930         gl_cv_func_symlink_works.
1931         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
1932         gl_cv_func_symlinkat_works.
1933         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
1934         gl_cv_func_trunc_ieee.
1935         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
1936         gl_cv_func_truncf_ieee.
1937         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
1938         gl_cv_func_truncl_ieee.
1939         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
1940         gl_cv_func_tzset_clobber.
1941         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
1942         gl_cv_func_ungetc_works.
1943         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
1944         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
1945         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
1946         gl_cv_func_usleep_works.
1947         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
1948         gl_cv_func_futimesat_works.
1949         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
1950         gl_cv_func_working_utimes.
1951         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
1952         gl_cv_func_wcwidth_works.
1953         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
1954         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
1955         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
1956         links for testing. Obey --enable-cross-guesses for
1957         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
1958         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
1960 2019-09-08  Bruno Haible  <bruno@clisp.org>
1962         Clarify that cross-compilation guesses are guesses.
1963         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
1964         cross-compiling.
1966 2019-09-08  Bruno Haible  <bruno@clisp.org>
1968         chown: Fix configure output (regression from 2019-03-23).
1969         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
1970         gl_cv_func_chown_follows_symlink variable.
1972 2019-09-08  Bruno Haible  <bruno@clisp.org>
1974         findprog-in: New module.
1975         Suggested by Paul Smith <psmith@gnu.org>.
1976         * lib/findprog.h (find_in_given_path): New declaration.
1977         * lib/findprog-in.c: New file, based on lib/findprog.c.
1978         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
1979         * modules/findprog-in: New file.
1981 2019-09-08  Bruno Haible  <bruno@clisp.org>
1983         findprog: Remove unused dependency.
1984         * modules/findprog (Depends-on): Remove strdup.
1986 2019-09-08  Bruno Haible  <bruno@clisp.org>
1988         findprog: Remove test that is obsolete since 2006-04-24.
1989         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
1991 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
1993         bitset: style changes
1994         * lib/bitset/vector.c (vbitset_resize): Factor computation.
1995         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
1996         xzalloc to xcalloc.
1997         Suggested by Paul Eggert.
1999 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
2001         bitset: check memory allocation
2002         Reported by 江 祖铭 (Zu-Ming Jiang).
2003         With help from Paul Eggert.
2004         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
2005         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
2006         instead of realloc.
2007         When shrinking, accept failures.
2008         * lib/bitset/vector.c (vbitset_resize): Likewise.
2010 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
2012         scratch_buffer: sync from glibc
2013         * config/srclist.txt: Add the scratch_buffer source
2014         code from glibc, since these should be in sync.
2015         Autoupdate.
2017 2019-09-07  Bruno Haible  <bruno@clisp.org>
2019         doc: Update for glibc 2.30.
2020         * doc/glibc-functions/gettid.texi: New file.
2021         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
2022         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
2023         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
2024         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
2025         * doc/glibc-functions/sem_clockwait.texi: New file.
2026         * doc/glibc-functions/tgkill.texi: New file.
2027         * doc/glibc-functions/twalk_r.texi: New file.
2028         * doc/gnulib.texi: Include them.
2029         (Glibc semaphore.h): New section.
2030         * doc/pastposix-functions/h_errno.texi: Update.
2031         * doc/posix-functions/*.texi: Likewise.
2033 2019-09-06  Bruno Haible  <bruno@clisp.org>
2035         symlink tests: Avoid test failure on Linux with Lustre file system.
2036         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
2037         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
2038         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
2040 2019-09-01  Bruno Haible  <bruno@clisp.org>
2042         gitsub.sh: Add support for shallow-cloning of subdirectories.
2043         * top/gitsub.sh (func_usage): Document allowed git options with
2044         'git pull'.
2045         (func_pull): Accept GIT_OPTIONS argument.
2046         (pull): Parse git options before complaining about too many arguments.
2047         Pass the git options to func_pull.
2049 2019-08-29  Bruno Haible  <bruno@clisp.org>
2051         lock: Fix cross-compilation guesses.
2052         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
2053         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
2054         platforms.
2056 2019-08-28  Bruno Haible  <bruno@clisp.org>
2058         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
2059         Reported by Martin Storsjö <martin@martin.st> in
2060         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
2061         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
2062         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
2063         files from GCC 6 or newer, use an override through '#define', because
2064         the inline definitions in the platform's <cmath> cannot be overridden
2065         in another way.
2067 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2069         Revert macOS INT_MULTIPLY_WRAPV patch
2070         Problem reported by Bruno Haible in:
2071         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
2072         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
2073         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
2074         Go back to working around the Clang bug on macOS.
2076 2019-08-27  Bruno Haible  <bruno@clisp.org>
2078         libtool-next-version: Fix error output.
2079         * build-aux/libtool-next-version (func_fatal_error): Fix the program
2080         name.
2082 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2084         Speed up INT_MULTIPLY_WRAPV on macOS
2085         Assume that __builtin_mul_overflow works OK with Clang on macOS.
2086         Mattias Engdegård says it’s safe to assume the relevant library
2087         is always available there.
2088         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
2089         New temporary internal macro.
2090         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
2091         No need to work around the Clang bug on macOS.
2093 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2095         intprops.h, verify.h: port better to clang
2096         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
2097         with Clang.  Problem reported privately by Mattias Engdegård.
2098         Also, insulate intprops.h and verify.h better against each other’s
2099         definitions of __has_builtin on non-Clang hosts.
2100         * lib/intprops.h (__has_builtin): Define a temporary substitute
2101         if __has_builtin is not already defined.
2102         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
2103         New temporary internal macros.
2104         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
2105         Now two separate macros, replacing the old
2106         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
2107         __builtin_mul_overflow is like the rest.  All uses changed.
2108         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
2109         Adjust to above changes.
2110         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
2111         longer relevant.  All uses changed.
2112         * lib/verify.h (__has_builtin): Treat like intprops.h,
2113         so that the two .h files do not collide with each other.
2114         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
2115         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
2117 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2119         intprops: say why not Clang __builtin_add_overflow
2120         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
2121         Mention Clang in comment, responding to a query from
2122         Mattias Engdegård.
2124 2019-08-24  Bruno Haible  <bruno@clisp.org>
2126         doc: Document most of the files outside of modules.
2127         * doc/gnulib.texi (Build Infrastructure Files,
2128         Release Management Files): New chapters.
2130 2019-08-24  Bruno Haible  <bruno@clisp.org>
2132         bootstrap: Keep in sync with the 'gettext' module.
2133         Reported by Assaf Gordon in
2134         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
2135         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
2136         * build-aux/po/remove-potcdate.sin: Likewise.
2138 2019-08-24  Bruno Haible  <bruno@clisp.org>
2140         crypto/gc-sha512: Add tests.
2141         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
2142         * modules/crypto/gc-sha512-tests: New file.
2144         crypto/gc-sha256: Add tests.
2145         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
2146         * modules/crypto/gc-sha256-tests: New file.
2148         crypto/gc-sha256, crypto/gc-sha512: New modules.
2149         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
2150         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
2151         (MAX_DIGEST_SIZE): Set to 64.
2152         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
2153         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
2154         (gc_sha256, gc_sha512): New functions.
2155         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
2156         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
2157         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
2159 2019-08-24  Bruno Haible  <bruno@clisp.org>
2161         crypto/gc-sha1 tests: Improve output when the test fails.
2162         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
2163         output.
2165 2019-08-24  Bruno Haible  <bruno@clisp.org>
2167         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
2168         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
2169         LIBGCRYPT_HAS_MD_SM3.
2170         * lib/gc-libgcrypt.c: Include sm3.h.
2171         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
2172         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
2173         implementation if libgcrypt does not support SM3.
2175 2019-08-24  Bruno Haible  <bruno@clisp.org>
2177         crypto/gc-md2: Optimize and clarify code.
2178         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
2179         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
2180         is not needed.
2182 2019-08-24  Bruno Haible  <bruno@clisp.org>
2184         crypto/gc-md2: Add comment.
2185         * lib/gc-libgcrypt.c: Add comment.
2187 2019-08-24  Bruno Haible  <bruno@clisp.org>
2189         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
2190         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
2191         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
2192         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
2193         variable.
2195 2019-08-24  Bruno Haible  <bruno@clisp.org>
2197         crypto/gc: Fix link error with --with-libgcrypt.
2198         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
2199         AC_LIB_HAVE_LINKFLAGS invocation.
2201 2019-08-24  Bruno Haible  <bruno@clisp.org>
2203         crypto/gc: Access the module indicators correctly.
2204         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
2205         * lib/gc-libgcrypt.c: Likewise.
2207 2019-08-24  Bruno Haible  <bruno@clisp.org>
2209         crypto/gc: Fix configuration with --with-libgcrypt.
2210         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
2211         * modules/crypto/gc (Files): Add it.
2212         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
2214 2019-08-24  Bruno Haible  <bruno@clisp.org>
2216         Remove unused file.
2217         * m4/stat-macros.m4: Remove file.
2219 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
2221         New strip-trailing-space option for srclist-update
2222         * config/srclist-update (fixfile): Support new option.
2223         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
2224         Use it.
2226 2019-08-20  Eric Blake  <eblake@redhat.com>
2228         accept4: Support SOCK_NONBLOCK, if defined
2229         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
2231         accept4: Fix compilation when native accept4() exists.
2232         Reported by Richard W.M. Jones <rjones@redhat.com> in
2233         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
2234         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
2236 2019-08-18  Bruno Haible  <bruno@clisp.org>
2238         Defeat -flto GCC optimization in math autoconf tests.
2239         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
2240         at <https://savannah.gnu.org/bugs/?56109>.
2241         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
2242         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
2243         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2244         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2245         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2246         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
2247         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2248         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
2249         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
2250         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2251         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2252         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2254 2019-08-17  Bruno Haible  <bruno@clisp.org>
2256         windows-spin: Implement declared functions.
2257         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2258         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
2259         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
2260         name.
2262 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2264         intprops: port to Oracle Developer Studio 12.6
2265         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
2266         typos that were in a section not compiled by GCC.
2268 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
2270         intprops: support uchar, ushort _WRAPV dests
2271         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
2272         when __builtin_add_overflow etc. and _Generic are not used.
2273         (_GL_INT_OP_WRAPV): Use it to support destinations that
2274         are unsigned char or unsigned short, even in compilers
2275         that lack __typeof__ and are not C11-compatible.
2277         intprops: pacify picky GCC
2278         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
2279         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
2280         possibly-incorrect result.
2281         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
2282         about (A) used as a boolean, when A is an expression like 3 * 4.
2284         intprops: support unsigned *_WRAPV results
2285         Add support for unsigned, unsigned long, and unsigned long long
2286         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
2287         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
2288         bug with unsigned inputs reported by Eli Zaretskii in:
2289         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
2290         * config/srclist.txt: Break the glibc connection for intprops.h
2291         temporarily, while more testing is done in Gnulib-using apps.
2292         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
2293         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
2294         Support unsigned results no narrower than unsigned int.  Report
2295         overflow correctly if some arguments are unsigned.
2296         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
2297         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
2298         the right thing with narrow args.
2299         (_GL_INT_OP_CALC1): Remove.  All callers removed.
2300         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
2301         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
2302         * tests/test-intprops.c: Check for bugs and test new behavior.
2304 2019-08-14  Bruno Haible  <bruno@clisp.org>
2306         get_progname_of: New module.
2307         * lib/get_progname_of.h: New file.
2308         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
2309         * lib/getprogname.c (getprogname): Tweak coding style.
2310         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
2311         * modules/get_progname_of: New file.
2313 2019-08-14  Bruno Haible  <bruno@clisp.org>
2315         get_ppid_of: New module.
2316         * lib/get_ppid_of.h: New file.
2317         * lib/get_ppid_of.c: New file.
2318         * modules/get_ppid_of: New file.
2320 2019-08-13  Bruno Haible  <bruno@clisp.org>
2322         libtextstyle-optional tests: Support the NO_COLOR environment variable.
2323         * tests/test-libtextstyle.c (main): Do not emit styling when the
2324         environment variable NO_COLOR is set.
2326 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2328         verify: improve diagnostic quality in recent GCC
2329         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
2330         useful line number containing the top-level caller of the macro.
2331         So, bring back the older way of issuing a diagnostic containing
2332         the top-level call’s arg, so that it is easier to diagnose
2333         ‘verify’ failures with recent GCC.
2334         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
2335         Bring back DIAGNOSTIC arg.  All callers changed.
2336         (verify): Just use _GL_VERIFY.
2338 2019-08-11  Bruno Haible  <bruno@clisp.org>
2340         localcharset: Add more aliases for OS/2.
2341         Based on patch by KO Myung-Hun <komh78@gmail.com> in
2342         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
2343         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
2345 2019-08-10  Eric Blake  <eblake@redhat.com>
2347         configmake: Update advice on usage.
2348         * modules/configmake (Include): No longer necessary to include
2349         last, since configmake.h itself worries about collision avoidance.
2351 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
2353         parse-datetime: fix 'T' military timezone handling
2354         * lib/parse-datetime.y (zone):
2355         follow-up to the previous commit: the 'T' case is handled outside the
2356         conversion table (used as either military timezone UTC-7 or ISO8601
2357         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
2358         timezone letters.
2360 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
2362         parse-datetime: fix military timezone letters
2363         Problem and trivial fix reported by Neil Hoggarth in:
2364         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
2365         * lib/parse-datetime.y (military_table):
2366         Do it the right way, not the RFC 822 way.
2368 2019-08-08  Eric Blake  <eblake@redhat.com>
2370         configmake: Avoid namespace pollution issue on mingw.
2371         * modules/configmake (Makefile.am): If the project uses
2372         <winsock2.h>, include that header before defining DATADIR.
2374 2019-07-28  Bruno Haible  <bruno@clisp.org>
2376         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
2377         * tests/test-mbrtowc.c (main): Fix expected value of wc.
2379 2019-07-24  Bruno Haible  <bruno@clisp.org>
2381         pthread-h: Fix definitions of types and macros on mingw.
2382         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
2383         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
2384         not in use.
2385         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
2386         'pthread-once' is not in use.
2387         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
2388         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
2389         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
2390         in use.
2391         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
2392         Define also when module 'pthread-rwlock' is not in use.
2393         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
2394         also when module 'pthread-cond' is not in use.
2395         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
2396         'pthread-tss' is not in use.
2397         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
2398         use.
2400 2019-07-24  Simon Josefsson  <simon@josefsson.org>
2402         crypto/gc: Cope with libgcrypt without SM3.
2403         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
2405 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
2407         backupfile: fix resource leak on memory failure
2408         Problem found by Coverity (CID 1484214).
2409         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
2411 2019-07-22  Bruno Haible  <bruno@clisp.org>
2413         Avoid missing-declarations warning in various tests.
2414         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
2415         test6, test_optional, test7, test8, test9, test10, test11, test12,
2416         test13, test14, test15, test_fun): Declare static.
2417         * tests/test-cnd.c (test_cnd_wait): Likewise.
2418         * tests/test-cond.c (test_cond): Likewise.
2420 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
2422         pthread tests: Avoid missing-declarations warning.
2423         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
2425 2019-07-19  Bruno Haible  <bruno@clisp.org>
2427         parse-datetime: Avoid warnings from bison versions >= 3.3.
2428         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
2429         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
2431 2019-07-19  Bruno Haible  <bruno@clisp.org>
2433         parse-datetime: Require Bison 2.4 or newer.
2434         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
2435         Code taken from gettext's intl.m4.
2436         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
2437         of YACC.
2439 2019-07-19  Bruno Haible  <bruno@clisp.org>
2441         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
2442         * lib/areadlink-with-size.c: Include <string.h>.
2443         * lib/areadlinkat-with-size.c: Likewise.
2444         * lib/xgethostname.c: Likewise.
2445         * lib/xgetdomainname.c: Likewise.
2447 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
2449         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
2450         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
2451         "%pure-parser".  The former is available since Bison 2.3b (2008),
2452         while the latter is marked as obsolete since version 3.4 (May 2019).
2454 2019-07-16  Bruno Haible  <bruno@clisp.org>
2456         update-copyright: Make it work again (regression from 2019-06-15).
2457         Reported by Brian C. Lane <bcl@redhat.com>.
2458         * build-aux/update-copyright: Add back the -0777, -p, -i options.
2460 2019-07-14  Bruno Haible  <bruno@clisp.org>
2462         doc: Update info about <pthread.h>.
2463         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
2464         of 'pthread'.
2466 2019-07-14  Bruno Haible  <bruno@clisp.org>
2468         pthread_sigmask tests: Use new multithread modules.
2469         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
2470         glthread/thread.h.
2471         (main_thread, killer_thread): Change type to pthread_t.
2472         (main): Update accordingly.
2473         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
2474         thread.
2476 2019-07-14  Bruno Haible  <bruno@clisp.org>
2478         pthread-tss: Add tests.
2479         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
2480         tests/test-tss.c.
2481         * modules/pthread-tss-tests: New file.
2483 2019-07-14  Bruno Haible  <bruno@clisp.org>
2485         pthread-cond: Add tests.
2486         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
2487         tests/test-cnd.c.
2488         * modules/pthread-cond-tests: New file.
2490 2019-07-14  Bruno Haible  <bruno@clisp.org>
2492         pthread-rwlock: Add tests.
2493         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
2494         * modules/pthread-rwlock-tests: New file.
2496 2019-07-14  Bruno Haible  <bruno@clisp.org>
2498         pthread-mutex: Add tests.
2499         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
2500         tests/test-mtx.c.
2501         * modules/pthread-mutex-tests: New file.
2503 2019-07-14  Bruno Haible  <bruno@clisp.org>
2505         pthread-once: Add tests.
2506         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
2507         tests/test-call_once.c.
2508         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
2509         tests/test-mtx.c.
2510         * modules/pthread-once-tests: New file.
2512 2019-07-14  Bruno Haible  <bruno@clisp.org>
2514         pthread-thread: Add tests.
2515         * tests/test-pthread-thread.c: New file, based on
2516         tests/test-thread_create.c and tests/test-thrd_create.c.
2517         * modules/pthread-thread-tests: New file.
2519 2019-07-14  Bruno Haible  <bruno@clisp.org>
2521         pthread: Turn into a convenience module.
2522         * lib/pthread.in.h: Remove declarations for extern inline functions.
2523         * lib/pthread.c: Remove file.
2524         * modules/pthread (Files): Remove it.
2525         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
2526         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
2527         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
2528         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
2529         GNULIB_PTHREAD.
2530         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
2532 2019-07-14  Bruno Haible  <bruno@clisp.org>
2534         pthread-spin: New module.
2535         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
2536         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
2537         inline definitions.
2538         * lib/pthread-spin.c: New file.
2539         * m4/pthread-spin.m4: New file.
2540         * modules/pthread-spin: New file.
2541         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
2542         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
2543         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
2544         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
2545         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
2547 2019-07-14  Bruno Haible  <bruno@clisp.org>
2549         pthread-tss: New module.
2550         * lib/pthread-tss.c: New file.
2551         * m4/pthread-tss.m4: New file.
2552         * modules/pthread-tss: New file.
2553         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
2554         * doc/posix-functions/pthread_setspecific.texi: Likewise.
2555         * doc/posix-functions/pthread_getspecific.texi: Likewise.
2556         * doc/posix-functions/pthread_key_delete.texi: Likewise.
2558 2019-07-14  Bruno Haible  <bruno@clisp.org>
2560         pthread-cond: New module.
2561         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
2562         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
2563         * lib/pthread-cond.c: New file.
2564         * m4/pthread-cond.m4: New file.
2565         * modules/pthread-cond: New file.
2566         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
2567         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
2568         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
2569         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
2570         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
2571         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
2572         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
2573         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
2575 2019-07-14  Bruno Haible  <bruno@clisp.org>
2577         pthread-rwlock: New module.
2578         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
2579         * m4/pthread-rwlock.m4: New file.
2580         * modules/pthread-rwlock: New file.
2581         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
2582         and the Android problem.
2583         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
2584         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
2585         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
2586         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
2587         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
2588         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
2589         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
2590         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
2591         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
2592         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
2594 2019-07-14  Bruno Haible  <bruno@clisp.org>
2596         pthread-mutex: New module.
2597         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
2598         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
2599         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
2600         pthread_mutex_unlock): Remove inline definitions.
2601         * lib/pthread-mutex.c: New file.
2602         * m4/pthread-mutex.m4: New file.
2603         * modules/pthread-mutex: New file.
2604         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
2605         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
2606         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
2607         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
2608         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2609         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2610         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
2611         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
2612         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
2613         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
2614         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
2615         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
2617 2019-07-14  Bruno Haible  <bruno@clisp.org>
2619         pthread-once: New module.
2620         * lib/pthread-once.c: New file.
2621         * m4/pthread-once.m4: New file.
2622         * modules/pthread-once: New file.
2623         * doc/posix-functions/pthread_once.texi: Mention the new module.
2625 2019-07-14  Bruno Haible  <bruno@clisp.org>
2627         pthread-thread: New module.
2628         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
2629         inline definitions.
2630         * lib/pthread-thread.c: New file.
2631         * m4/pthread-thread.m4: New file.
2632         * modules/pthread-thread: New file.
2633         * doc/posix-functions/pthread_create.texi: Mention the new module.
2634         * doc/posix-functions/pthread_attr_init.texi: Likewise.
2635         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
2636         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
2637         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
2638         * doc/posix-functions/pthread_self.texi: Likewise.
2639         * doc/posix-functions/pthread_equal.texi: Likewise.
2640         * doc/posix-functions/pthread_detach.texi: Likewise.
2641         * doc/posix-functions/pthread_join.texi: Likewise.
2642         * doc/posix-functions/pthread_exit.texi: Likewise.
2644 2019-07-14  Bruno Haible  <bruno@clisp.org>
2646         pthread-h: Prepare for adding new modules.
2647         * lib/pthread.in.h: Define the types and macros for each of the
2648         facilities separately.
2649         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
2650         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
2651         HAVE_PTHREAD_PROCESS_SHARED.
2652         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
2653         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
2654         HAVE_PTHREAD_PROCESS_SHARED.
2655         * modules/pthread-h (Makefile.am): Substitute
2656         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
2657         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
2659 2019-07-14  Bruno Haible  <bruno@clisp.org>
2661         pthread-h: Add declarations of essential pthread functions.
2662         * lib/pthread.in.h: Include snippets.
2663         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
2664         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
2665         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
2666         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
2667         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
2668         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
2669         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
2670         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
2671         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
2672         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
2673         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
2674         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
2675         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
2676         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
2677         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
2678         pthread_key_create, pthread_setspecific, pthread_getspecific,
2679         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
2680         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
2681         declarations.
2682         (pthread_mutex_timedlock): Move declaration.
2683         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
2684         declared.
2685         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
2686         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
2687         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
2688         HAVE_* and REPLACE_* variables for the new functions.
2689         * modules/pthread-h (Depends-on): Add snippet/c++defs,
2690         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
2691         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
2692         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
2693         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
2694         variables for the new functions. Split the sed script, to avoid the
2695         limit of 99 commands of HP-UX sed.
2696         * tests/test-pthread-c++.cc: Check the signature of the new functions.
2698 2019-07-14  Bruno Haible  <bruno@clisp.org>
2700         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
2701         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
2702         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
2703         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
2704         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
2705         * modules/pthread-h (Depends-on): Add threadlib.
2706         (Link): Change to $(LIBTHREAD).
2707         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
2708         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
2710 2019-07-14  Bruno Haible  <bruno@clisp.org>
2712         pthread-h: Add C++ tests.
2713         * tests/test-pthread-c++.cc: New file.
2714         * modules/pthread-h-c++-tests: New file.
2716 2019-07-14  Bruno Haible  <bruno@clisp.org>
2718         pthread-h: Add tests.
2719         * tests/test-pthread.c: New file.
2720         * modules/pthread-h-tests: New file.
2722 2019-07-14  Bruno Haible  <bruno@clisp.org>
2724         pthread-h: New module.
2725         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
2726         is 1.
2727         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
2728         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
2729         <pthread.h> pollutes the namespace; instead, prepare for generating a
2730         pthread.h always. Substitute HAVE_PTHREAD_H here.
2731         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
2732         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
2733         * modules/pthread-h: New file, based on modules/pthread.
2734         * modules/pthread: Rely on 'pthread-h'.
2735         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
2736         Update.
2737         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
2738         pthread.
2740 2019-07-14  Bruno Haible  <bruno@clisp.org>
2742         sched_yield: New module.
2743         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
2744         (sched_yield): New declaration.
2745         * lib/sched_yield.c: New file.
2746         * m4/sched_yield.m4: New file.
2747         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
2748         provide a replacement sched.h always. Test whether sched_yield is
2749         declared.
2750         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
2751         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
2752         (Makefile.am): Provide a replacement sched.h always. Substitute
2753         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
2754         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
2755         * modules/sched_yield: New file.
2756         * doc/posix-functions/sched_yield.texi: Mention the new module.
2758 2019-07-14  Bruno Haible  <bruno@clisp.org>
2760         windows-spin: New module.
2761         * lib/windows-spin.h: New file.
2762         * lib/windows-spin.c: New file.
2763         * modules/windows-spin: New file.
2765 2019-07-14  Bruno Haible  <bruno@clisp.org>
2767         windows-timedrwlock: New module.
2768         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
2769         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
2770         windows-cond.c.
2771         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
2772         redefinition conflict with windows-timedrwlock.h.
2773         * modules/windows-timedrwlock: New file.
2775 2019-07-14  Bruno Haible  <bruno@clisp.org>
2777         windows-rwlock: New module.
2778         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
2779         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
2780         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
2781         windows-initguard.h.
2782         (gl_rwlock_t): Define using glwthread_rwlock_t.
2783         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
2784         (glthread_rwlock_init): Define using glwthread_rwlock_init.
2785         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
2786         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
2787         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
2788         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
2789         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
2790         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
2791         glthread_rwlock_destroy_func): Remove declarations.
2792         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
2793         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
2794         gl_waitqueue_notify_all, glthread_rwlock_init_func,
2795         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
2796         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
2797         functions.
2798         * modules/windows-rwlock: New file.
2799         * modules/lock (Depends-on): Add windows-rwlock.
2801 2019-07-14  Bruno Haible  <bruno@clisp.org>
2803         windows-thread: Add support for creating a thread in detached state.
2804         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
2805         (glwthread_thread_create): Add attr argument.
2806         * lib/windows-thread.c (glwthread_thread_create): Likewise.
2807         * lib/glthread/thread.h (glthread_create): Update.
2808         * lib/thrd.c (thrd_create): Update.
2810 2019-07-14  Bruno Haible  <bruno@clisp.org>
2812         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
2813         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
2814         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
2815         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
2816         * lib/windows-mutex.h: Update.
2817         * lib/windows-recmutex.h: Likewise.
2818         * lib/windows-timedmutex.h: Likewise.
2819         * lib/windows-timedrecmutex.h: Likewise.
2820         * lib/windows-cond.h: Likewise.
2821         * lib/glthread/lock.h: Likewise.
2822         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
2823         lib/windows-spinlock.h.
2824         * modules/windows-recmutex (Files): Likewise.
2825         * modules/windows-timedmutex (Files): Likewise.
2826         * modules/windows-timedrecmutex (Files): Likewise.
2827         * modules/windows-cond (Files): Likewise.
2828         * modules/threads-h (Files): Likewise.
2830 2019-07-14  Bruno Haible  <bruno@clisp.org>
2832         doc: Fix info about pthread API in HP-UX.
2833         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
2835 2019-07-14  Bruno Haible  <bruno@clisp.org>
2837         threads-h: Fix generation of threads.h.
2838         * modules/threads-h (Makefile.am): Insert the required header file
2839         snippets.
2841 2019-07-09  Bruno Haible  <bruno@clisp.org>
2843         striconveh test: Fix a compilation failure when iconv is not available.
2844         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2845         * tests/test-striconveh.c (main): Move iconv_close invocations inside
2846         HAVE_ICONV.
2848 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
2850         argmatch: adjust columns for help2man.
2851         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
2852         requires column 20 or more, return 20.
2854 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2856         areadlink-with-size: avoid realloc when size==0
2857         * lib/areadlink-with-size.c (areadlink_with_size):
2858         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
2859         Reallocate at the end to the actual size, to avoid memory waste,
2860         as suggested by Bruno Haible.  But when the guessed size is zero -
2861         useful when the size is unknown - do the initial small readlink
2862         into the stack, to avoid that realloc in the usual case.
2864 2019-07-06  Pádraig Brady  <P@draigBrady.com>
2866         areadlink-with-size: guess a buffer size with 0 size
2867         The size is usually taken from st_size, which can be zero,
2868         resulting in inefficient operation.
2869         Instead let zero select an initial memory allocation
2870         of 128 bytes, which most symlinks fit within.
2871         * lib/areadlink-with-size.c (areadlink_with_size):
2872         Start with a 128 byte buffer, for SIZE == 0.
2873         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
2875 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
2877         Replace manually crafted hex regexes with [:xdigit:]
2878         * build-aux/gitlog-to-changelog (parse_amend_file)
2879         (git_dir_option):
2880         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
2881         This patch is backported from Emacs (Bug#36167).
2883 2019-07-06  Bruno Haible  <bruno@clisp.org>
2885         error: Fix documentation.
2886         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
2887         module provides.
2888         * doc/glibc-functions/error_message_count.texi: Likewise.
2889         * doc/glibc-functions/error_one_per_line.texi: Likewise.
2890         * doc/glibc-functions/error_print_progname.texi: Likewise.
2892 2019-07-06  Bruno Haible  <bruno@clisp.org>
2894         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
2895         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
2896         and older is unsupported.
2897         * doc/**/*.texi: Update.
2899 2019-07-06  Bruno Haible  <bruno@clisp.org>
2901         doc: Remove documentation of Linux libc5 as a supported platform.
2902         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
2903         to Linux libc5.
2904         * doc/posix-functions/iswalpha.texi: Likewise.
2905         * doc/posix-functions/iswblank.texi: Likewise.
2906         * doc/posix-functions/iswcntrl.texi: Likewise.
2907         * doc/posix-functions/iswdigit.texi: Likewise.
2908         * doc/posix-functions/iswgraph.texi: Likewise.
2909         * doc/posix-functions/iswlower.texi: Likewise.
2910         * doc/posix-functions/iswprint.texi: Likewise.
2911         * doc/posix-functions/iswpunct.texi: Likewise.
2912         * doc/posix-functions/iswspace.texi: Likewise.
2913         * doc/posix-functions/iswupper.texi: Likewise.
2914         * doc/posix-functions/iswxdigit.texi: Likewise.
2915         * doc/posix-functions/snprintf.texi: Likewise.
2916         * doc/posix-functions/vsnprintf.texi: Likewise.
2918 2019-07-06  Bruno Haible  <bruno@clisp.org>
2920         doc: Remove documentation of Tandem/NSK as a supported platform.
2921         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
2922         Tandem/NSK.
2923         * doc/**/*.texi: Update.
2925 2019-07-06  Bruno Haible  <bruno@clisp.org>
2927         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
2928         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
2929         and older is unsupported.
2930         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
2931         Mac OS X 10.4 and older.
2932         * doc/posix-functions/asinl.texi: Likewise.
2933         * doc/posix-functions/atanl.texi: Likewise.
2934         * doc/posix-functions/cosl.texi: Likewise.
2935         * doc/posix-functions/expl.texi: Likewise.
2936         * doc/posix-functions/frexpl.texi: Likewise.
2937         * doc/posix-functions/gettimeofday.texi: Likewise.
2938         * doc/posix-functions/logl.texi: Likewise.
2939         * doc/posix-functions/mkstemp.texi: Likewise.
2940         * doc/posix-functions/sinl.texi: Likewise.
2941         * doc/posix-functions/sqrtl.texi: Likewise.
2942         * doc/posix-functions/tanl.texi: Likewise.
2943         * doc/posix-functions/wcswidth.texi: Likewise.
2944         * doc/**/*.texi: Update.
2946 2019-07-06  Bruno Haible  <bruno@clisp.org>
2948         doc: Remove documentation of AIX 4 as a supported platform.
2949         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
2950         unsupported.
2951         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
2952         workarounds.
2953         * doc/posix-functions/strnlen.texi: Likewise.
2954         * doc/posix-headers/inttypes.texi: Likewise.
2955         * doc/**/*.texi: Update.
2957 2019-07-06  Bruno Haible  <bruno@clisp.org>
2959         doc: Remove documentation of HP-UX 10 as a supported platform.
2960         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
2961         unsupported.
2962         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
2963         workarounds.
2964         * doc/posix-functions/gmtime_r.texi: Likewise.
2965         * doc/posix-functions/localtime_r.texi: Likewise.
2966         * doc/posix-functions/mkstemp.texi: Likewise.
2967         * doc/**/*.texi: Update.
2969 2019-07-06  Bruno Haible  <bruno@clisp.org>
2971         doc: Remove documentation of Interix 3.5 as a supported platform.
2972         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
2973         unsupported.
2974         * doc/posix-functions/select.texi: Don't mention Interix specific
2975         workarounds.
2976         * doc/posix-headers/signal.texi: Likewise.
2977         * doc/**/*.texi: Update.
2979 2019-07-06  Bruno Haible  <bruno@clisp.org>
2981         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
2982         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
2983         unsupported.
2984         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
2985         workarounds.
2986         * doc/posix-functions/nl_langinfo.texi: Likewise.
2987         * doc/posix-functions/remainder.texi: Likewise.
2988         * doc/posix-functions/towlower.texi: Likewise.
2989         * doc/posix-functions/towupper.texi: Likewise.
2990         * doc/posix-functions/vsnprintf.texi: Likewise.
2991         * doc/posix-functions/wcscat.texi: Likewise.
2992         * doc/posix-functions/wcschr.texi: Likewise.
2993         * doc/posix-functions/wcscmp.texi: Likewise.
2994         * doc/posix-functions/wcscpy.texi: Likewise.
2995         * doc/posix-functions/wcscspn.texi: Likewise.
2996         * doc/posix-functions/wcslen.texi: Likewise.
2997         * doc/posix-functions/wcsncat.texi: Likewise.
2998         * doc/posix-functions/wcsncmp.texi: Likewise.
2999         * doc/posix-functions/wcsncpy.texi: Likewise.
3000         * doc/posix-functions/wcspbrk.texi: Likewise.
3001         * doc/posix-functions/wcsrchr.texi: Likewise.
3002         * doc/posix-functions/wcsspn.texi: Likewise.
3003         * doc/posix-headers/langinfo.texi: Likewise.
3004         * doc/posix-headers/signal.texi: Likewise.
3005         * doc/posix-headers/wchar.texi: Likewise.
3006         * doc/posix-headers/wctype.texi: Likewise.
3007         * doc/**/*.texi: Update.
3009 2019-07-05  Bruno Haible  <bruno@clisp.org>
3011         doc: Remove documentation of OSF/1 as supported platform.
3012         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
3013         unsupported.
3014         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
3015         workarounds.
3016         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
3017         * doc/glibc-functions/ptsname_r.texi: Likewise.
3018         * doc/posix-functions/ceil.texi: Likewise.
3019         * doc/posix-functions/ceilf.texi: Likewise.
3020         * doc/posix-functions/ceill.texi: Likewise.
3021         * doc/posix-functions/fchdir.texi: Likewise.
3022         * doc/posix-functions/floor.texi: Likewise.
3023         * doc/posix-functions/floorf.texi: Likewise.
3024         * doc/posix-functions/fmod.texi: Likewise.
3025         * doc/posix-functions/fmodf.texi: Likewise.
3026         * doc/posix-functions/fmodl.texi: Likewise.
3027         * doc/posix-functions/log.texi: Likewise.
3028         * doc/posix-functions/logf.texi: Likewise.
3029         * doc/posix-functions/logl.texi: Likewise.
3030         * doc/posix-functions/log10.texi: Likewise.
3031         * doc/posix-functions/log10f.texi: Likewise.
3032         * doc/posix-functions/log10l.texi: Likewise.
3033         * doc/posix-functions/log2.texi: Likewise.
3034         * doc/posix-functions/log2f.texi: Likewise.
3035         * doc/posix-functions/log2l.texi: Likewise.
3036         * doc/posix-functions/mbrtowc.texi: Likewise.
3037         * doc/posix-functions/recv.texi: Likewise.
3038         * doc/posix-functions/recvfrom.texi: Likewise.
3039         * doc/posix-functions/remainder.texi: Likewise.
3040         * doc/posix-functions/remainderf.texi: Likewise.
3041         * doc/posix-functions/remainderl.texi: Likewise.
3042         * doc/posix-functions/round.texi: Likewise.
3043         * doc/posix-functions/roundf.texi: Likewise.
3044         * doc/posix-functions/roundl.texi: Likewise.
3045         * doc/posix-functions/send.texi: Likewise.
3046         * doc/posix-functions/sendto.texi: Likewise.
3047         * doc/posix-functions/setenv.texi: Likewise.
3048         * doc/posix-functions/snprintf.texi: Likewise.
3049         * doc/posix-functions/tcgetsid.texi: Likewise.
3050         * doc/posix-functions/trunc.texi: Likewise.
3051         * doc/posix-functions/truncf.texi: Likewise.
3052         * doc/posix-functions/truncl.texi: Likewise.
3053         * doc/posix-functions/ttyname_r.texi: Likewise.
3054         * doc/posix-functions/unsetenv.texi: Likewise.
3055         * doc/posix-functions/wcsrtombs.texi: Likewise.
3056         * doc/posix-headers/sys_select.texi: Likewise.
3057         * doc/posix-headers/wchar.texi: Likewise.
3058         * doc/posix-headers/wctype.texi: Likewise.
3059         * doc/**/*.texi: Update.
3061 2019-07-05  Bruno Haible  <bruno@clisp.org>
3063         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
3064         * doc/**/*.texi: Update.
3066 2019-07-05  Bruno Haible  <bruno@clisp.org>
3068         doc: Remove documentation of Solaris 8 and older as supported platforms.
3069         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
3070         unsupported.
3071         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
3072         workarounds.
3073         * doc/posix-functions/memcmp.texi: Likewise.
3074         * doc/posix-functions/rename.texi: Likewise.
3075         * doc/posix-functions/tzset.texi: Likewise.
3076         * doc/posix-headers/wctype.texi: Likewise.
3077         * doc/**/*.texi: Update.
3079 2019-07-05  Bruno Haible  <bruno@clisp.org>
3081         doc: Remove documentation of Interix 3.5 as a supported platform.
3082         * doc/**/*.texi: Update.
3084 2019-07-05  Bruno Haible  <bruno@clisp.org>
3086         doc: Remove documentation of BeOS as a supported platform.
3087         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
3088         unsupported.
3089         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
3090         * doc/posix-functions/getdelim.texi: Likewise.
3091         * doc/**/*.texi: Update.
3093 2019-07-05  Bruno Haible  <bruno@clisp.org>
3095         thread, lock, cond, tls: Remove support for Pth threads.
3096         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
3097         --enable-threads=pth any more.
3098         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
3099         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
3100         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
3101         threads and ISO C11 threads.
3102         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
3103         * lib/glthread/lock.h: Likewise.
3104         * lib/glthread/lock.c: Likewise.
3105         * lib/glthread/cond.h: Likewise.
3106         * lib/glthread/cond.c: Likewise.
3107         * lib/glthread/tls.h: Likewise.
3108         * lib/glthread/tls.c: Likewise.
3109         * lib/glthread/yield.h: Likewise.
3110         * lib/regex_internal.h: Likewise.
3111         * tests/test-thread_create.c: Likewise.
3112         * tests/test-lock.c: Likewise.
3113         * tests/test-cond.c: Likewise.
3114         * tests/test-tls.c: Likewise.
3115         * tests/test-rwlock1.c: Don't include glthread/yield.h.
3116         (main): Sleep without calling gl_thread_yield.
3118 2019-07-05  Bruno Haible  <bruno@clisp.org>
3120         thread, lock, cond, tls: Remove support for old Solaris threads.
3121         Solaris >= 2.5.1 has POSIX threads.
3122         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
3123         --enable-threads=solaris any more.
3124         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
3125         * lib/glthread/thread.c: Update comment.
3126         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
3127         * lib/glthread/lock.h: Likewise.
3128         * lib/glthread/lock.c: Likewise.
3129         * lib/glthread/cond.h: Likewise.
3130         * lib/glthread/cond.c: Likewise.
3131         * lib/glthread/tls.h: Likewise.
3132         * lib/glthread/tls.c: Likewise.
3133         * lib/glthread/yield.h: Likewise.
3134         * lib/regex_internal.h: Likewise.
3135         * tests/test-thread_create.c: Likewise.
3136         * tests/test-lock.c: Likewise.
3137         * tests/test-cond.c: Likewise.
3138         * tests/test-tls.c: Likewise.
3140 2019-07-05  Bruno Haible  <bruno@clisp.org>
3142         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
3143         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
3144         needed size is equal to the allocated size.
3145         * lib/getcwd.c (__getcwd): Likewise.
3147 2019-07-05  Bruno Haible  <bruno@clisp.org>
3149         xgetdomainname: Don't return an excessive memory allocation.
3150         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
3151         before returning it.
3153 2019-07-05  Bruno Haible  <bruno@clisp.org>
3155         xgethostname: Don't return an excessive memory allocation.
3156         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
3157         returning it.
3159 2019-07-05  Bruno Haible  <bruno@clisp.org>
3161         areadlinkat-with-size: Don't return an excessive memory allocation.
3162         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
3163         before returning it.
3165 2019-07-05  Bruno Haible  <bruno@clisp.org>
3167         areadlink-with-size: Don't return an excessive memory allocation.
3168         Reported by Andreas Dilger <adilger@whamcloud.com>.
3169         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
3170         before returning it.
3172 2019-07-03  Bruno Haible  <bruno@clisp.org>
3174         renameatu: Fix test failure on MSVC.
3175         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
3176         empty string.
3178 2019-07-03  Bruno Haible  <bruno@clisp.org>
3180         mbrtowc: Fix invalid use of mbtowc() on MSVC.
3181         * lib/mbrtowc.c: Include glthread/lock.h.
3182         (mbtowc_lock): New variable.
3183         (mbrtowc): Treat UTF-8 encoding without locking. For the other
3184         encodings, explicitly reset the internal state of mbtowc, and protect
3185         this through a lock.
3186         * modules/mbrtowc (Depends-on): Add lock.
3188 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
3190         argmatch: don't define _ in the header.
3191         Reported by Jim Meyering.
3192         * lib/argmatch.h (N_, _): Don't define.
3193         Use gettext instead.
3194         * lib/argmatch.h (_): Define.
3195         * tests/test-argmatch.c (N_): Define.
3197 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3199         verify: document ‘assume’ better
3200         * lib/verify.h: Reword doc (Bug#36370).
3202 2019-07-02  Bruno Haible  <bruno@clisp.org>
3204         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
3205         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
3206         "CPutf8".
3207         * lib/nl_langinfo.c (ctype_codeset): Likewise.
3209 2019-07-02  Bruno Haible  <bruno@clisp.org>
3211         getcwd: Fix crash when invoked with size = 0 on MSVC.
3212         * lib/getcwd.c: Include msvc-inval.h.
3213         (getcwd_nothrow): New function/macro.
3214         (getcwd_system): New macro.
3215         (__getcwd): Use it instead of getcwd.
3216         * modules/getcwd (Depends-on): Add msvc-inval.
3217         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
3219 2019-07-02  Bruno Haible  <bruno@clisp.org>
3221         nonblocking-pipe tests: Fix test failure on MSVC.
3222         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
3223         native Windows.
3225 2019-07-02  Bruno Haible  <bruno@clisp.org>
3227         usleep: Implement with millisecond resolution on native Windows.
3228         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
3229         * doc/pastposix-functions/usleep.texi: Update accordingly.
3231 2019-07-02  Bruno Haible  <bruno@clisp.org>
3233         lstat tests: Fix test failure on MSVC.
3234         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
3235         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
3237 2019-07-02  Bruno Haible  <bruno@clisp.org>
3239         stat tests: Fix test failure on MSVC.
3240         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
3241         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
3243 2019-07-02  Bruno Haible  <bruno@clisp.org>
3245         getaddrinfo tests: Fix test failure on MSVC.
3246         * tests/test-getaddrinfo.c: Include sockets.h.
3247         (main): Invoke gl_sockets_startup.
3248         * modules/getaddrinfo-tests (Depends-on): Add sockets.
3250 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
3252         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
3253         * lib/poll.c: Call Windows native select() with Windows native timeval.
3255 2019-06-30  Bruno Haible  <bruno@clisp.org>
3257         argmatch: Fix compilation errors.
3258         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
3259         * tests/test-argmatch.c (main): Update after last-minute function names
3260         change.
3262 2019-06-30  Bruno Haible  <bruno@clisp.org>
3264         Include <stdlib.h> when needed.
3265         * lib/cnd.c: Include <stdlib.h>, needed for abort().
3266         * lib/fcntl.c: Likewise.
3267         * lib/mbscasestr.c: Likewise.
3268         * lib/mbssep.c: Likewise.
3269         * lib/mbsstr.c: Likewise.
3270         * lib/openat.c: Include <stdlib.h>, needed for free().
3271         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
3272         abort().
3274 2019-06-30  Bruno Haible  <bruno@clisp.org>
3276         Include <stdlib.h> when needed.
3277         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
3278         * lib/faccessat.c: Likewise.
3279         * lib/fchmodat.c: Likewise.
3280         * lib/fchownat.c: Likewise.
3281         * lib/fstatat.c: Likewise.
3282         * lib/mkfifoat.c: Likewise.
3283         * lib/mknodat.c: Likewise.
3284         * lib/readlinkat.c: Likewise.
3285         * lib/symlinkat.c: Likewise.
3286         * lib/utimensat.c: Likewise.
3287         * lib/mkdirat.c: Likewise. Include also the specification header.
3289 2019-06-30  Bruno Haible  <bruno@clisp.org>
3291         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
3292         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
3293         from gl_PREREQ_SYS_H_SOCKET.
3294         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
3295         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
3296         gl_PREREQ_SYS_H_WS2TCPIP.
3297         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
3298         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
3299         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
3301 2019-06-30  Bruno Haible  <bruno@clisp.org>
3303         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
3304         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
3305         REPLACE_INET_NTOP to 1 always.
3306         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
3307         REPLACE_INET_PTON to 1 always.
3309 2019-06-30  Bruno Haible  <bruno@clisp.org>
3311         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
3312         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
3313         not REPLACE_INET_NTOP.
3315 2019-06-30  Bruno Haible  <bruno@clisp.org>
3317         poll: Add comment.
3318         * lib/poll.c: Add comment about WSAPoll.
3320 2019-06-30  Bruno Haible  <bruno@clisp.org>
3322         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
3323         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
3324         * lib/poll.in.h: Include <winsock2.h>.
3325         (POLL*, pollfd): Override on native Windows.
3326         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3327         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
3328         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3330 2019-06-28  Bruno Haible  <bruno@clisp.org>
3332         accept4: Fix compilation error on OpenIndiana.
3333         Reported by Michal Nowak <mnowak@startmail.com>
3334         via Mark H Weaver <mhw@netris.org>.
3335         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
3336         whether it exists as a function.
3338 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3340         strverscmp: sync from glibc
3341         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
3342         comments, include libc-config.h, define __strverscmp to be
3343         strverscmp, and don’t assume types line uint8_t and int8_t that
3344         that C99 doesn’t guarantee.
3345         [!_LIBC]: Include libc-config.h; define __strverscmp.
3346         Include stdint.h.
3347         (__strverscmp): Assume C99.  Use uint_least8_t
3348         and int_least8_t instead of unsigned char and signed char.
3349         * modules/strverscmp (Depends-on): Add libc-config, stdint.
3351 2019-06-25  Bruno Haible  <bruno@clisp.org>
3353         tss tests: Add tests for destructors and races.
3354         * tests/test-tss.c (worker_thread): Fix typo in debug message.
3355         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
3356         functions.
3357         (main): Invoke them.
3358         * modules/tls-tests (Depends-on): Add mtx.
3360 2019-06-25  Bruno Haible  <bruno@clisp.org>
3362         tls tests: Add tests for destructors and races.
3363         * tests/test-tls.c: Include glthread/lock.h.
3364         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
3365         functions.
3366         (main): Invoke them.
3367         * modules/tls-tests (Depends-on): Add lock.
3369 2019-06-25  Bruno Haible  <bruno@clisp.org>
3371         windows-tls: Implement TLS key destructors for native Windows.
3372         * lib/windows-tls.h (glwthread_tls_process_destructors): New
3373         declaration.
3374         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
3375         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
3376         (dtor_table_init_once, dtor_table_lock: New variables.
3377         (struct dtor): New type.
3378         (dtor_table, dtors_count, dtors_used, dtors_allocated,
3379         dtor_processing_threads): New variables.
3380         (dtor_table_initialize, dtor_table_ensure_initialized,
3381         dtor_table_shrink_used, glwthread_tls_process_destructors): New
3382         functions.
3383         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
3384         handle non-NULL destructors.
3385         * modules/windows-tls (Depends-on): Add windows-once.
3386         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
3387         Use the functions declared in windows-tls.h.
3388         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
3389         GLWTHREAD_DESTRUCTOR_ITERATIONS.
3390         * lib/windows-thread.c: Include windows-tls.h.
3391         (wrapper_func, glwthread_thread_exit): Invoke
3392         glwthread_tls_process_destructors.
3393         * modules/windows-thread (Depends-on): Add windows-tls.
3395 2019-06-25  Bruno Haible  <bruno@clisp.org>
3397         threadlib: Avoid autoconf warning "was expanded before it was required".
3398         * modules/threadlib (configure.ac): Require gl_THREADLIB.
3400 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
3402         argmatch: remove duplicate const qualifier
3403         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
3405 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
3407         unistd: stddef.h and sys/types.h namespace cleanup
3408         * lib/unistd.in.h [__GLIBC__]:
3409         Do not include stddef.h or sys/types.h.
3410         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
3411         supposed to declare off_t and ssize_t.  Problem found when looking
3412         at why @GNULIB_PWRITE@ was different from the newly-added
3413         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
3415 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
3417         maintainer-makefile: restore portability to non-GNU awks
3418         Reported by Tim Rühsen.
3419         * top/maint.mk (AWK): New variable.  Use it.
3420         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
3422 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3424         Document setvbuf _IOLBF problem
3425         * doc/posix-functions/setvbuf.texi (setvbuf):
3426         Document MS-Windows portability problem with _IOLBF.
3428         Document lseek SEEK_DATA/SEEK_HOLE
3429         * doc/posix-functions/lseek.texi (lseek):
3430         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
3432 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
3434         argmatch: put all the docs member last.
3435         Reported by Bruno Haible.
3436         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
3437         member before the docs done.
3438         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
3440 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
3442         argmatch: add support to generate the usage message.
3443         * lib/argmatch.c: Move some #includes and gettext support to...
3444         * lib/argmatch.h: here.
3445         (ARGMATCH_DEFINE_GROUP): New macro.
3446         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
3447         (argmatch_backup_group): New.
3448         (CHECK): New.
3449         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
3450         argmatch_backup_argument and argmatch_backup_usage.
3451         * modules/argmatch: We depend on c99.
3452         * doc/argmatch.texi (Recognizing Option Arguments): New.
3453         * doc/gnulib.texi: Use it.
3455 2019-06-21  Bruno Haible  <bruno@clisp.org>
3457         thrd: Add comment.
3458         * lib/thrd.c (pthread_main_func): Add comment.
3460 2019-06-21  Bruno Haible  <bruno@clisp.org>
3462         threads-h: Define 'thread_local' if and only if it actually works.
3463         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
3464         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
3465         Oracle Solaris Studio C. Compile a simple program, to see whether
3466         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
3467         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
3468         * lib/threads.in.h (thread_local): Undefine if it does not work.
3469         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
3470         (Link): Mention LIBTHREADLOCAL.
3471         * tests/test-threads.c: Don't check that thread_local is defined.
3472         * tests/test-thread_local.c: New file.
3473         * modules/threads-h-tests (Files): Add it and macros.h.
3474         (Depends-on): Add thrd and stdint.
3475         (configure.ac): Test whether 'alarm' is declared.
3476         (Makefile.am): Arrange to build and link test-thread_local.
3477         * doc/posix-headers/threads.texi: Mention the platforms that don't
3478         support 'thread_local'.
3480 2019-06-20  Bruno Haible  <bruno@clisp.org>
3482         threads-h: Simplify link dependencies.
3483         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
3484         Don't set LTLIBSTDTHREAD.
3485         * modules/thrd (Link): Simplify accordingly.
3486         * modules/mtx (Link): Likewise.
3487         * modules/cnd (Link): Likewise.
3488         * modules/tss (Link): Likewise.
3489         * modules/threads (Link): Likewise.
3491 2019-06-20  Bruno Haible  <bruno@clisp.org>
3493         threads-h: Fix link error on FreeBSD 11.
3494         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
3495         also with -lpthread.
3497 2019-06-20  Bruno Haible  <bruno@clisp.org>
3499         threadlib: Fix typo (regression from today).
3500         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
3502 2019-06-20  Bruno Haible  <bruno@clisp.org>
3504         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
3505         * lib/windows-thread.c: Include <errno.h>.
3506         * lib/windows-tls.c: Likewise.
3508 2019-06-20  Bruno Haible  <bruno@clisp.org>
3510         tss tests: Small improvement.
3511         * tests/test-tss.c (test_tss): Pass a different id to each thread.
3513 2019-06-20  Bruno Haible  <bruno@clisp.org>
3515         threads: New module.
3516         * modules/threads: New file.
3518 2019-06-20  Bruno Haible  <bruno@clisp.org>
3520         tss: Add tests.
3521         * tests/test-tss.c: New file, based on tests/test-tls.c.
3522         * modules/tss-tests: New file.
3524 2019-06-20  Bruno Haible  <bruno@clisp.org>
3526         cnd: Add tests.
3527         * tests/test-cnd.c: New file, based on tests/test-cond.c.
3528         * modules/cnd-tests: New file.
3530 2019-06-20  Bruno Haible  <bruno@clisp.org>
3532         mtx: Add tests.
3533         * tests/test-mtx.c: New file, based on tests/test-lock.c.
3534         * tests/test-call_once.c: New file, based on tests/test-once.c.
3535         * modules/mtx-tests: New file.
3537 2019-06-20  Bruno Haible  <bruno@clisp.org>
3539         thrd: Add tests.
3540         * tests/test-thrd_create.c: New file, based on
3541         tests/test-thread_create.c.
3542         * tests/test-thrd_current.c: New file, based on
3543         tests/test-thread_self.c.
3544         * modules/thrd-tests: New file.
3546 2019-06-20  Bruno Haible  <bruno@clisp.org>
3548         tss: New module.
3549         * lib/tss.c: New file.
3550         * modules/tss: New file.
3551         * doc/posix-functions/tss_create.texi: Mention the new module.
3552         * doc/posix-functions/tss_set.texi: Likewise.
3553         * doc/posix-functions/tss_get.texi: Likewise.
3554         * doc/posix-functions/tss_delete.texi: Likewise.
3556 2019-06-20  Bruno Haible  <bruno@clisp.org>
3558         cnd: New module.
3559         * lib/cnd.c: New file.
3560         * modules/cnd: New file.
3561         * doc/posix-functions/cnd_init.texi: Mention the new module.
3562         * doc/posix-functions/cnd_wait.texi: Likewise.
3563         * doc/posix-functions/cnd_timedwait.texi: Likewise.
3564         * doc/posix-functions/cnd_signal.texi: Likewise.
3565         * doc/posix-functions/cnd_broadcast.texi: Likewise.
3566         * doc/posix-functions/cnd_destroy.texi: Likewise.
3568 2019-06-20  Bruno Haible  <bruno@clisp.org>
3570         mtx: New module.
3571         * lib/mtx.c: New file.
3572         * modules/mtx: New file.
3573         * doc/posix-functions/call_once.texi: Mention the new module.
3574         * doc/posix-functions/mtx_init.texi: Likewise.
3575         * doc/posix-functions/mtx_lock.texi: Likewise.
3576         * doc/posix-functions/mtx_trylock.texi: Likewise.
3577         * doc/posix-functions/mtx_timedlock.texi: Likewise.
3578         * doc/posix-functions/mtx_unlock.texi: Likewise.
3579         * doc/posix-functions/mtx_destroy.texi: Likewise.
3581 2019-06-20  Bruno Haible  <bruno@clisp.org>
3583         thrd: New module.
3584         * lib/thrd.c: New file.
3585         * m4/thrd.m4: New file.
3586         * modules/thrd: New file.
3587         * doc/posix-functions/thrd_current.texi: Mention the new module.
3588         * doc/posix-functions/thrd_detach.texi: Likewise.
3589         * doc/posix-functions/thrd_equal.texi: Likewise.
3590         * doc/posix-functions/thrd_exit.texi: Likewise.
3591         * doc/posix-functions/thrd_sleep.texi: Likewise.
3592         * doc/posix-functions/thrd_yield.texi: Likewise.
3593         * doc/posix-functions/thrd_create.texi: Mention the new module and the
3594         AIX bug.
3595         * doc/posix-functions/thrd_join.texi: Mention the new module and the
3596         AIX and Solaris bugs.
3598 2019-06-20  Bruno Haible  <bruno@clisp.org>
3600         threads-h: Add tests.
3601         * tests/test-threads.c: New file.
3602         * modules/threads-h-tests: New file.
3603         * tests/test-threads-c++.cc: New file.
3604         * modules/threads-h-c++-tests: New file.
3606 2019-06-20  Bruno Haible  <bruno@clisp.org>
3608         threads-h: New module.
3609         * lib/threads.in.h: New file.
3610         * m4/threads.m4: New file.
3611         * m4/yield.m4 (gl_YIELD): Update comment.
3612         * modules/threads-h: New file.
3613         * modules/yields (configure.ac): Use AC_REQUIRE.
3614         * doc/posix-headers/threads.texi: Mention the new module and the AIX
3615         bugs.
3617 2019-06-20  Bruno Haible  <bruno@clisp.org>
3619         windows-thread: New module.
3620         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
3621         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
3622         * lib/glthread/thread.h: Include windows-thread.h.
3623         (gl_thread_t): Define using glwthread_thread_t.
3624         (glthread_create): Define using glwthread_thread_create.
3625         (glthread_join): Define using glwthread_thread_join.
3626         (gl_thread_self): Define using glwthread_thread_self.
3627         (gl_thread_exit): Define using glwthread_thread_exit.
3628         (glthread_create_func, glthread_join_func, gl_thread_self_func,
3629         gl_thread_exit_func): Remove declarations.
3630         * lib/glthread/thread.c (self_key): Remove variable.
3631         (do_init_self_key, init_self_key): Remove functions.
3632         (struct gl_thread_struct): Remove type.
3633         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
3634         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
3635         functions.
3636         * modules/windows-thread: New file.
3637         * modules/thread (Depends-on): Add windows-thread.
3639 2019-06-20  Bruno Haible  <bruno@clisp.org>
3641         windows-tls: New module.
3642         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
3643         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
3644         * lib/glthread/tls.h: Include windows-tls.h.
3645         (gl_tls_key_t): Define using glwthread_tls_key_t.
3646         * modules/windows-tls: New file.
3647         * modules/tls (Depends-on): Add windows-tls.
3649 2019-06-20  Bruno Haible  <bruno@clisp.org>
3651         windows-cond: New module.
3652         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
3653         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
3654         * lib/glthread/cond.h: Include windows-cond.h.
3655         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
3656         (gl_cond_t): Define using glwthread_cond_t.
3657         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
3658         (glthread_cond_init): Define using glwthread_cond_init.
3659         (glthread_cond_wait): Define using glwthread_cond_wait.
3660         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
3661         (glthread_cond_signal): Define using glwthread_cond_signal.
3662         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
3663         (glthread_cond_destroy): Define using glwthread_cond_destroy.
3664         (glthread_cond_init_func, glthread_cond_wait_func,
3665         glthread_cond_timedwait_func, glthread_cond_signal_func,
3666         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
3667         declarations.
3668         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
3669         types.
3670         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
3671         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
3672         glthread_cond_init_func, glthread_cond_wait_func,
3673         glthread_cond_timedwait_func, glthread_cond_signal_func,
3674         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
3675         functions.
3676         * modules/windows-cond: New file.
3677         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
3679 2019-06-20  Bruno Haible  <bruno@clisp.org>
3681         windows-timedrecmutex: New module.
3682         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
3683         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
3684         * modules/windows-timedrecmutex: New file.
3686 2019-06-20  Bruno Haible  <bruno@clisp.org>
3688         windows-timedmutex: New module.
3689         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
3690         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
3691         * modules/windows-timedmutex: New file.
3693 2019-06-20  Bruno Haible  <bruno@clisp.org>
3695         windows-recmutex: New module.
3696         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
3697         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
3698         * lib/glthread/lock.h: Include windows-recmutex.h.
3699         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
3700         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
3701         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
3702         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
3703         (glthread_recursive_lock_unlock): Define using
3704         glwthread_recmutex_unlock.
3705         (glthread_recursive_lock_destroy): Define using
3706         glwthread_recmutex_destroy.
3707         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
3708         glthread_recursive_lock_unlock_func,
3709         glthread_recursive_lock_destroy_func): Remove declarations.
3710         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
3711         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
3712         glthread_recursive_lock_destroy_func): Remove functions.
3713         * modules/windows-recmutex: New file.
3714         * modules/lock (Depends-on): Add windows-recmutex.
3716 2019-06-20  Bruno Haible  <bruno@clisp.org>
3718         windows-mutex: New module.
3719         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
3720         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
3721         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
3722         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
3723         (gl_spinlock_t): Remove type.
3724         (gl_lock_t): Define using glwthread_mutex_t.
3725         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
3726         (glthread_lock_init): Define using glwthread_mutex_init.
3727         (glthread_lock_lock): Define using glwthread_mutex_lock.
3728         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
3729         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
3730         (glthread_lock_init_func, glthread_lock_lock_func,
3731         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
3732         declarations.
3733         Use glwthread_spinlock_t instead of gl_spinlock_t.
3734         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
3735         GLWTHREAD_SPINLOCK_INIT.
3736         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
3737         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
3738         functions.
3739         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
3740         gl_spinlock_t.
3741         * modules/windows-mutex: New file.
3742         * modules/lock (Depends-on): Add windows-mutex.
3744 2019-06-20  Bruno Haible  <bruno@clisp.org>
3746         windows-once: New module.
3747         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
3748         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
3749         * lib/glthread/lock.h: Include windows-once.h.
3750         (gl_once_t): Define using glwthread_once_t.
3751         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
3752         (glthread_once): Define using glwthread_once.
3753         (glthread_once_func): Remove declaration.
3754         * lib/glthread/lock.c (glthread_once_func): Remove function.
3755         * modules/windows-once: New file.
3756         * modules/lock (Depends-on): Add windows-once.
3758 2019-06-20  Bruno Haible  <bruno@clisp.org>
3760         lock, cond: Avoid possible counter wraparound on Windows.
3761         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
3762         field of the guard unchanged if it was already positive.
3763         (glthread_rwlock_rdlock_func): Likewise.
3764         (glthread_rwlock_wrlock_func): Likewise.
3765         (glthread_recursive_lock_lock_func): Likewise.
3766         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
3767         (glthread_cond_timedwait_func): Likewise.
3769 2019-06-20  Bruno Haible  <bruno@clisp.org>
3771         cond: Make glthread_cond_timedwait more reliable on Windows.
3772         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
3773         condition variable before looking at the current time.
3775 2019-06-20  Bruno Haible  <bruno@clisp.org>
3777         pthread_mutex_timedlock: New module.
3778         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
3779         new declaration.
3780         * lib/pthread_mutex_timedlock.c: New file.
3781         * m4/pthread_mutex_timedlock.m4: New file.
3782         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
3783         whether pthread_mutex_timedlock is declared.
3784         (gl_PTHREAD_MODULE_INDICATOR): New macro.
3785         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
3786         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
3787         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
3788         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
3789         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
3790         * modules/pthread_mutex_timedlock: New file.
3791         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
3792         module.
3794 2019-06-20  Bruno Haible  <bruno@clisp.org>
3796         thread, lock, cond, tls: Recognize C11 multithreaded applications.
3797         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
3798         * lib/glthread/thread.h (c11_threads_in_use): New macro.
3799         (pthread_in_use, pth_in_use, thread_in_use): Use it.
3800         * lib/glthread/lock.h (c11_threads_in_use): New macro.
3801         (pthread_in_use, pth_in_use, thread_in_use): Use it.
3802         * lib/glthread/cond.h (c11_threads_in_use): New macro.
3803         (pthread_in_use, pth_in_use, thread_in_use): Use it.
3804         * lib/glthread/tls.h (c11_threads_in_use): New macro.
3805         (pthread_in_use, pth_in_use, thread_in_use): Use it.
3807 2019-06-20  Bruno Haible  <bruno@clisp.org>
3809         tls tests: Small improvements.
3810         * tests/test-tls.c: Include <stdint.h>.
3811         (worker_thread): Avoid gcc warning on 64-bit mingw.
3812         (test_tls): Pass a different id to each thread.
3813         * modules/tls-tests (Depends-on): Add stdint.
3815 2019-06-20  Bruno Haible  <bruno@clisp.org>
3817         cond tests: Simplify.
3818         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
3820 2019-06-20  Bruno Haible  <bruno@clisp.org>
3822         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
3823         * tests/test-lock.c (test_once): Don't reference fire_signal if
3824         !ENABLE_LOCKING.
3826 2019-06-19  Bruno Haible  <bruno@clisp.org>
3828         nanosleep: Relicense under LGPLv2+.
3829         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
3830         * modules/nanosleep (License): Change to LGPLv2+.
3832 2019-06-19  Bruno Haible  <bruno@clisp.org>
3834         Reorder pieces of header in perl scripts.
3835         The desired order is
3836         - Prologue part 1 (2 lines with #!)
3837         - Program short description
3838         - Copyright and license notice
3839         - Written-by notice
3840         - Program short description (optional)
3841         - Program long description (optional)
3842         - Prologue part 2
3843         - Time stamp
3844         - Code
3845         Reported by Paul Eggert.
3846         * build-aux/announce-gen: Reorder header.
3847         * build-aux/gitlog-to-changelog: Likewise.
3848         * build-aux/useless-if-before-free: Likewise.
3849         * build-aux/prefix-gnulib-mk: Add copyright notice and short
3850         description.
3851         * build-aux/update-copyright: Likewise. Add short description. Bump
3852         time-stamp-line-limit to 200.
3854 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
3856         verify-tests: work around xlc bug
3857         Problem reported by Bruno Haible in:
3858         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
3859         * tests/test-verify.c (item): Move the arithmetic inside the
3860         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
3862 2019-06-16  Bruno Haible  <bruno@clisp.org>
3864         Restore Emacs time-stamp hook applicability.
3865         Reported by Darshit Shah <darnir@gnu.org>.
3866         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
3867         * build-aux/announce-gen: Likewise.
3868         * build-aux/gitlog-to-changelog: Likewise.
3869         * build-aux/prefix-gnulib-mk: Likewise.
3870         * build-aux/update-copyright: Likewise.
3872 2019-06-15  Bruno Haible  <bruno@clisp.org>
3874         Fix scripts to have valid executable format on Alpine Linux.
3875         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3876         Idea by Paul Eggert.
3877         * build-aux/useless-if-before-free: Use a prologue that starts with
3878         '#!/bin/sh'.
3879         * build-aux/announce-gen: Likewise.
3880         * build-aux/gitlog-to-changelog: Likewise.
3881         * build-aux/prefix-gnulib-mk: Likewise.
3882         * build-aux/update-copyright: Likewise.
3883         * tests/test-update-copyright.sh: Update test program accordingly.
3885 2019-06-10  Bruno Haible  <bruno@clisp.org>
3887         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
3888         Reported by Nikita Ermakov <arei@altlinux.org> in
3889         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
3890         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
3891         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
3893 2019-06-10  Bruno Haible  <bruno@clisp.org>
3895         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
3896         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
3897         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
3898         a copy of the path argument.
3899         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
3900         it.
3902 2019-06-10  Bruno Haible  <bruno@clisp.org>
3904         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
3905         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
3906         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
3907         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
3908         a copy of the path argument.
3909         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
3910         it.
3912 2019-06-10  Bruno Haible  <bruno@clisp.org>
3914         posix_spawn_file_actions_addfchdir: Add tests.
3915         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
3916         * tests/test-posix_spawn5.c: New file.
3917         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
3919 2019-06-10  Bruno Haible  <bruno@clisp.org>
3921         posix_spawn_file_actions_addfchdir: New module.
3922         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
3923         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
3924         union member 'fchdir_action'.
3925         * lib/spawn_faction_addfchdir.c: New file.
3926         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
3927         * m4/posix_spawn_faction_addfchdir.m4: New file.
3928         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
3929         'posix_spawn_file_actions_addfchdir' is present and whether
3930         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
3931         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
3932         posix_spawn_file_actions_addfchdir is declared.
3933         (gl_SPAWN_H_DEFAULTS): Initialize
3934         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
3935         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
3936         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
3937         * modules/spawn (Makefile.am): Substitute
3938         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
3939         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
3940         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
3941         * modules/posix_spawn_file_actions_addfchdir: New file.
3942         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
3943         signature.
3944         * doc/posix-functions/posix_spawn.texi: Mention the new module.
3945         * doc/posix-functions/posix_spawnp.texi: Likewise.
3946         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
3947         Likewise.
3949 2019-06-10  Bruno Haible  <bruno@clisp.org>
3951         doc: Document existence of posix_spawn_file_actions_addchdir module.
3952         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
3953         the posix_spawn_file_actions_addchdir module.
3955 2019-06-10  Bruno Haible  <bruno@clisp.org>
3957         posix_spawn-internal: Fix module description.
3958         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
3959         from here...
3960         * modules/posix_spawnp (configure.ac): ... and here...
3961         * modules/posix_spawn-internal (configure.ac): ... to here.
3963 2019-06-10  Bruno Haible  <bruno@clisp.org>
3965         doc: Update and improve documentation of glibc functions.
3966         This is a series of commits that
3967         - updates the documentation to the state of glibc 2.29,
3968         - adds references to Linux man pages and glibc documentation,
3969         - marks Linux specific functions as such.
3970         These are the commits:
3971         doc: Update after removal of crypt functions from glibc 2.28.
3972         doc: Remove mention of function vm86 (does not exist on x86_64).
3973         doc: Remove mention of functions that are gone from glibc.
3974         doc: Mention that glibc no longer provides h_errno.
3975         doc: Mention the availability of specific functions in glibc versions.
3976         doc: Mention eaccess.
3977         doc: Add references to Linux man pages.
3978         doc: Add references to glibc documentation.
3979         doc: Mention inotify_* functions.
3980         doc: Mention ppoll.
3981         doc: Mention sched_getcpu.
3982         doc: Mention sync_file_range.
3983         doc: Mention epoll_pwait.
3984         doc: Mention eventfd, eventfd_read, eventfd_write.
3985         doc: Mention signalfd.
3986         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
3987         doc: Mention epoll_create1.
3988         doc: Mention getauxval.
3989         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
3990         doc: Mention nextdown, nextup.
3991         doc: Mention more ISO TS 18661-1 <math.h> functions.
3992         doc: Mention ISO TS 18661-1 <fenv.h> functions.
3993         doc: Mention getrandom, getentropy.
3994         doc: Mention strfromf, strfromd, strfroml.
3995         doc: Mention preadv2, pwritev2.
3996         doc: Mention copy_file_range.
3997         doc: Mention memfd_create.
3998         doc: Mention mlock2.
3999         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
4000         doc: Mention more ISO TS 18661-1 <math.h> functions.
4001         doc: Mention renameat2.
4002         doc: Mention statx.
4003         doc: Mention the ISO C11 multithreading header and functions.
4004         doc: Mention getcpu.
4005         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
4006         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
4007         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
4008         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
4009         doc: Some glibc functions also exist on Solaris 11.
4010         doc: Some glibc functions also exist on Solaris 11.4.
4011         doc: Some glibc functions also exist on FreeBSD.
4012         doc: Some glibc functions also exist on BeOS.
4013         doc: Some glibc functions also exist on Haiku.
4014         doc: Mark functions which exist only on Linux.
4015         doc: Mark functions which exist only on Linux and illumos.
4017 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
4019         copy-file: fix typo
4020         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
4022         copy-file-range: simplify into a stub
4023         Based on a comment by Florian Weimer in:
4024         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
4025         It turns out that Emacs (which will use this module) won’t need an
4026         emulation and I suspect other programs won’t either, because these
4027         programs will need to fall back on read+write anyway.  Perhaps I
4028         am wrong and other programs will be able to use an emulation; if
4029         so, this patch can be reverted.
4030         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
4031         Just call it copy_file_range.
4032         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
4033         Check via AC_LINK_IFELSE.
4034         * modules/copy-file-range (Depends-on): Remove modules no longer used.
4036 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
4038         copy-file: prefer copy_file_range
4039         * lib/copy-file.c: Do not include xalloc.h.
4040         (qcopy_file_preserving): Allocate a buffer only if
4041         copy_file_range does not suffice.  If the allocation fails
4042         don't give up; just use a small stack-based buffer.
4043         Prefer copy_file_range if it works.
4044         * modules/copy-file (Depends-on): Add copy-file-range.
4045         Remove xalloc.
4047         copy-file-range: new module
4048         * MODULES.html.sh: Add copy-file-range.
4049         * lib/copy-file-range.c, m4/copy-file-range.m4:
4050         * modules/copy-file-range: New files.
4051         * lib/unistd.in.h (copy_file_range): Declare.
4052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
4053         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
4054         * modules/unistd (unistd.h): Substitute them.
4056 2019-05-28  Bruno Haible  <bruno@clisp.org>
4058         binary-io: Attempted use of O_BINARY on consoles no longer fails.
4059         Reported by KO Myung-Hun <komh78@gmail.com> in
4060         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
4061         * lib/binary-io.h (__gl_setmode_check): Remove function.
4062         (set_binary_mode): Declare as notinline on DJGPP and EMX.
4063         * lib/binary-io.c (__gl_setmode_check): Remove function.
4064         (set_binary_mode): Define here on DJGPP and EMX. Inline
4065         __gl_setmode_check. In case of a tty, don't return an error code.
4067 2019-05-28  James Youngman  <jay@gnu.org>
4069         dirent-safer: Make opendir_safer usable from C++.
4070         * lib/dirent-safer.h: use extern "C".
4072 2019-05-28  James Youngman  <jay@gnu.org>
4074         canonicalize: Make canonicalize_filename_mode usable from C++.
4075         * lib/canonicalize.h: use extern "C".
4077 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
4079         prefix-gnulib-mk: Fix CPPFLAGS migration.
4080         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
4081         _a part of the library name.
4083 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4085         flexmember: update comments again
4086         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
4088         flexmember: update comment
4089         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
4091 2019-05-20  Bruno Haible  <bruno@clisp.org>
4093         setlocale: Improve fallback on macOS.
4094         * lib/setlocale.c (search): Optimize away a redundant strcmp()
4095         invocation.
4096         (locales_with_principal_territory): New array.
4097         (langcmp, get_main_locale_with_same_language): New functions.
4098         (locales_with_principal_language): New array.
4099         (terrcmp, get_main_locale_with_same_territory): New functions.
4100         (rpl_setlocale): When setlocale_single failed, try again with a locale
4101         that is more likely to exist. Don't warn if the environment variable
4102         SETLOCALE_VERBOSE is not set.
4104 2019-05-19  Bruno Haible  <bruno@clisp.org>
4106         localename: Fix default on macOS.
4107         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
4108         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
4109         (gl_locale_name_environ, gl_locale_name_default): Remove code for
4110         HAVE_CFLOCALECOPYCURRENT.
4111         * lib/localename.h (gl_locale_name_default): Update.
4113 2019-05-19  Karl Berry  <karl@freefriends.org>
4115         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
4116         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
4117         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
4119 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
4121         maintainer-makefile: catch uses of $< in non-implicit rules
4122         * top/maint.mk (sc_prohibit_magic_number_exit): New.
4124 2019-05-18  Bruno Haible  <bruno@clisp.org>
4126         threadlib: Provide an easy way to avoid mingw's winpthreads library.
4127         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
4128         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
4129         gl_use_threads accordingly.
4131 2019-05-18  Bruno Haible  <bruno@clisp.org>
4133         pthread_sigmask: Fix compilation error with --enable-threads=windows.
4134         Reported by Tim Rühsen in
4135         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
4136         and Michele Locati in
4137         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
4138         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
4139         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
4140         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
4141         in use and regardless which threads API is chosen.
4143 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4145         close-stream, closein, closeout: simplify
4146         I noticed this opportunity for simplification while drafting a
4147         new, related module that I haven’t had time to finish yet.
4148         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
4149         * modules/close-stream (Files): Remove m4/close-stream.m4.
4150         (configure.ac): Omit gl_CLOSE_STREAM.
4151         * modules/closein (Files): Remove m4/closein.m4
4152         (configure.ac): Omit gl_CLOSEIN.
4153         * modules/closeout (Files): Remove m4/closeout.m4.
4154         (configure.ac): Omit gl_CLOSEOUT.
4156 2019-05-12  Bruno Haible  <bruno@clisp.org>
4158         libtool-next-version: New program.
4159         * build-aux/libtool-next-version: New file.
4161 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
4162             Bruno Haible  <bruno@clisp.org>
4164         version-etc: Ease translation.
4165         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
4166         URLs and formatting newlines out of translatable string.
4168 2019-05-11  Bruno Haible  <bruno@clisp.org>
4170         gnupload: Explain how to create symlinks.
4171         * build-aux/gnupload (usage): Add an example that creates symlinks.
4173 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4175         fpucw: port to gcc -pedantic
4176         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
4177         Use __extension__ if using ({ ... }).
4179         crypto/af_alg: port to strict C compilers
4180         * lib/af_alg.c: Include af_alg.h regardless, so that the
4181         compilation unit is nonempty.
4183 2019-05-10  Bruno Haible  <bruno@clisp.org>
4185         base64: Avoid false positive warning from Coverity.
4186         Reported by Kamil Dudka <kdudka@redhat.com>.
4187         Idea by Paul Eggert.
4188         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
4189         '& 0x3f' to the array index expressions. This convinces Coverity that
4190         there is no out-of-bounds array reference, regardless of the input.
4192 2019-05-09  Bruno Haible  <bruno@clisp.org>
4194         gettext: Update to gettext 0.20.
4195         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
4196         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
4197         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
4198         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
4199         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
4200         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
4201         (configure.ac): Request infrastructure compatible with gettext 0.20.
4202         * m4/glibc2.m4: Remove file.
4203         * m4/intdiv0.m4: Remove file.
4204         * m4/intl.m4: Remove file.
4205         * m4/intldir.m4: Remove file.
4206         * m4/intmax.m4: Remove file.
4207         * m4/printf-posix.m4: Remove file.
4208         * m4/uintmax_t.m4: Remove file.
4209         * m4/gettext.m4: Update from gettext 0.20.
4210         * m4/po.m4: Likewise.
4212 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
4214         verify: remove verify_true
4215         * NEWS: Mention this.
4216         * lib/verify.h (verify_true): Remove.
4217         * tests/test-verify.c (item): Test verify_expr, not verify_true.
4219         Support C2X and C++17 static_assert
4220         C2X and C++17 finally added support for a simple, single-argument
4221         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
4222         doing back in 2005.  Implement static_assert on older platforms.
4223         The only remaining advantage of ‘verify’ is a shorter name.
4224         * doc/posix-headers/assert.texi (assert.h):
4225         * doc/verify.texi (Compile-time Assertions):
4226         Modernize for C2X and C++17.
4227         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
4228         New macros.
4229         (_GL_HAVE__STATIC_ASSERT): Remove.
4230         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
4231         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
4232         string.  All callers changed.
4233         (_GL_VERIFY): Require 3 or more args, of which only the first 2
4234         are used.  All callers changed.
4235         (_Static_assert): Allow either 1 or 2 args, and define if
4236         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
4237         !_GL_HAVE__STATIC_ASSERT.
4238         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
4239         of defining if !_GL_HAVE_STATIC_ASSERT.
4240         (verify_expr, verify): Don’t bother trying to copy the expression
4241         into the diagnostic, since 1-argument static_assert doesn’t.
4242         (verify): Prefer 1-argument _Static_assert if it works.
4243         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
4245 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4247         Fix _GL_HAVE__STATIC_ASSERT typo
4248         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
4249         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
4251 2019-05-05  Bruno Haible  <bruno@clisp.org>
4253         wcwidth: Ensure width 1, not 2, for ambiguous characters.
4254         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
4255         via Akim Demaille <akim.demaille@gmail.com>.
4256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
4257         en_US.UTF-8 locale, since that is more likely to be present than an
4258         fr_FR.UTF-8 locale.
4259         * tests/test-wcwidth.c (main): Check the width of U+2202.
4260         * doc/posix-functions/wcwidth.texi: Mention the issue.
4262 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
4264         Port manywarnings to GCC 9
4265         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
4266         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
4267         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
4268         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
4269         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
4270         --help=warnings output.
4271         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
4272         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
4273         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
4275 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
4277         Sync lib/mktime-internal.h from glibc
4278         * config/srclist.txt: Add entry for lib/mktime-internal.h.
4279         * lib/mktime-internal.h: Autoupdate.
4281 2019-04-28  Bruno Haible  <bruno@clisp.org>
4283         tls tests: Prevent that the test takes too long.
4284         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
4285         (main): Let the test fail if it takes more than 10 minutes.
4286         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
4288 2019-04-27  Bruno Haible  <bruno@clisp.org>
4290         lock tests: Prevent that the test takes too long.
4291         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
4292         (main): Let the test fail if it takes more than 10 minutes.
4293         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
4295 2019-04-27  Bruno Haible  <bruno@clisp.org>
4297         localename: Fix crash on mingw (regression from 2018-11-23).
4298         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
4299         locale name that is null.
4301 2019-04-27  Bruno Haible  <bruno@clisp.org>
4303         Fix gcc warnings on 64-bit mode mingw.
4304         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
4305         * lib/gl_array_list.c: Likewise.
4306         * lib/gl_array_map.c: Likewise.
4307         * lib/gl_array_set.c: Likewise.
4308         * lib/gl_carray_list.c: Likewise.
4309         * lib/gl_sublist.c: Likewise.
4310         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
4311         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
4312         * lib/gl_hash_map.c (uintptr_t): Likewise.
4313         * lib/gl_hash_set.c (uintptr_t): Likewise.
4314         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
4315         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
4316         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
4317         * lib/iconv.c (uintptr_t): Likewise.
4318         * lib/iconv_close.c (uintptr_t): Likewise.
4319         * tests/test-lock.c: Include <stdint.h>.
4320         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
4321         'long'.
4322         * modules/clean-temp (Depends-on): Add stdint.
4323         * modules/array-list (Depends-on): Likewise.
4324         * modules/array-map (Depends-on): Likewise.
4325         * modules/array-set (Depends-on): Likewise.
4326         * modules/carray-list (Depends-on): Likewise.
4327         * modules/sublist (Depends-on): Likewise.
4328         * modules/lock-tests (Depends-on): Likewise.
4330 2019-04-27  Bruno Haible  <bruno@clisp.org>
4332         error: Tweak indentation.
4333         * lib/error.c: Correct indentation.
4335 2019-04-27  Bruno Haible  <bruno@clisp.org>
4337         term-style-control: Fix gcc warning on mingw.
4338         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
4339         of i.
4341 2019-04-26  Bruno Haible  <bruno@clisp.org>
4343         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
4344         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
4346 2019-04-26  Bruno Haible  <bruno@clisp.org>
4348         relocatable-prog: Fix gcc warning on mingw.
4349         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
4350         on EMX.
4352 2019-04-02  Bruno Haible  <bruno@clisp.org>
4354         gitsub.sh: New file.
4355         * top/gitsub.sh: New file.
4357 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
4359         argmatch: use void* for raw memory pointers
4360         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
4361         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
4362         to "values", keep char* for strings.
4364 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
4366         prefix-gnulib-mk: fix the support for gnulib-po
4367         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
4368         Don't touch HAVE_* variables.
4369         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
4371 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
4373         di-set: allow free with 'ino_map' being NULL.
4374         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
4375         is NULL.  Bug introduced in commit 3703dbbe88dd.
4376         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
4377         as a test.
4379 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
4381         * lib/str-two-way.h: Fix comment typo.
4383 2019-04-13  Bruno Haible  <bruno@clisp.org>
4385         x-to-1: Restore ability to use original calling convention.
4386         * build-aux/x-to-1.in: Add comments. Accept the original form of
4387         HELP2MAN argument as well as the form expected since 2012-12-12.
4389 2019-04-13  Bruno Haible  <bruno@clisp.org>
4391         x-to-1: Avoid failure due to missing perl modules.
4392         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
4393         needs are installed.
4395 2019-04-13  Bruno Haible  <bruno@clisp.org>
4397         openmp-init: New module.
4398         * modules/openmp-init: New file.
4399         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
4400         the changes from 2019-04-09.
4402 2019-04-12  Bruno Haible  <bruno@clisp.org>
4404         signbit: Fix compilation error when gnulib's math.h exists twice.
4405         * lib/math.in.h (GNULIB_defined_signbit): New macro.
4407 2019-04-12  Bruno Haible  <bruno@clisp.org>
4409         openmp: Fix compilation error on platforms without OpenMP.
4410         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
4412 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
4414         mountlist: make parsing /proc/self/mountinfo more robust
4415         Cater for the following issues with mountinfo parsing (the first
4416         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
4417         in <https://bugs.gnu.org/35137>).
4418         1. The fields source, target, mntroot and fstype may contain characters
4419         like '\r'; sscanf(3) fails to read such values with the %s format
4420         specifier because it would stop at such characters.
4421         Example: "mount -t tmpfs tmpfs /foo^Mbar".
4422         The only true separator in that file is the ' ' character.
4423         2. The source field may be an empty string, which happens e.g. with
4424         "mount -t tmpfs '' /target".
4425         3. The fstype field may contain mangled characters as well which need
4426         unescaping.
4427         * lib/mountlist.c (terminate_at_blank): Add utility function.
4428         (read_file_system_list): In the block trying to read the mountinfo file,
4429         avoid using sscanf(3) with %s format; instead, parse the above fields
4430         separated by spaces one by one.
4431         This also handles the case when the source field is an empty string.
4432         Unescape the fstype field.
4434 2019-04-09  Bruno Haible  <bruno@clisp.org>
4436         openmp: Add workaround for 32-bit programs on AIX.
4437         * lib/omp.in.h: New file.
4438         * lib/omp-init.c: New file, based on lib/nproc.c.
4439         * m4/omp_h.m4: New file.
4440         * modules/openmp (Files): Add them.
4441         (Depends-on): Add include_next, c-ctype, setenv.
4442         (configure.ac): Invoke gl_OMP_H.
4443         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
4444         (Include): Mention <omp.h>.
4446 2019-04-09  Bruno Haible  <bruno@clisp.org>
4448         nproc: Fix return value for privileged processes.
4449         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
4450         getpid().
4452 2019-04-07  Bruno Haible  <bruno@clisp.org>
4454         Add copyright notices in several files.
4455         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
4456         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
4457         * lib/libunistring.valgrind: Likewise.
4458         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
4459         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
4460         * lib/memchr.valgrind: Likewise.
4461         * lib/memchr2.valgrind: Likewise.
4462         * lib/rawmemchr.valgrind: Likewise.
4463         * lib/relocatable.valgrind: Likewise.
4464         * lib/strchrnul.valgrind: Likewise.
4466 2019-03-25  Bruno Haible  <bruno@clisp.org>
4468         term-style-control tests: Fix link error.
4469         Reported by Tom G. Christensen in
4470         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
4471         * modules/term-style-control-tests (Makefile.am): Link
4472         test-term-style-control-hello and test-term-style-control-yes against
4473         LIBINTL.
4475 2019-03-24  Bruno Haible  <bruno@clisp.org>
4477         term-style-control: Add tests.
4478         * tests/test-term-style-control-hello.c: New file.
4479         * tests/test-term-style-control-yes.c: New file.
4480         * modules/term-style-control-tests: New file.
4482         term-style-control: New module.
4483         * lib/term-style-control.h: New file, based on libtextstyle's
4484         term-ostream.oo.h and term-ostream.oo.c.
4485         * lib/term-style-control.c: New file, based on libtextstyle's
4486         term-ostream.oo.c.
4487         * modules/term-style-control: New file.
4489 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
4491         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
4492         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
4493         C++98 appears to be supported by Clang, but not by GCC nor ICC.
4495 2019-03-23  Bruno Haible  <bruno@clisp.org>
4497         Support cross-compilation to musl libc.
4498         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
4499         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
4500         musl libc.
4501         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
4502         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
4503         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
4504         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4505         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4506         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
4507         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4508         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
4509         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4510         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
4511         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
4512         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
4513         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
4514         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4515         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
4516         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4517         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4518         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4519         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
4520         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4521         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4522         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4523         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
4524         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4525         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
4526         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4527         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
4528         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
4529         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
4530         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
4531         * m4/log.m4 (gl_FUNC_LOG): Likewise.
4532         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
4533         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
4534         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
4535         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
4536         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
4537         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
4538         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
4539         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
4540         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
4541         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
4542         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
4543         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
4544         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4545         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
4546         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4547         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4548         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
4549         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
4550         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
4551         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
4552         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
4553         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
4554         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
4555         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4556         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
4557         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4558         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4559         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4560         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4561         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4562         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4563         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4564         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
4565         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4566         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4567         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4568         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
4569         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4570         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
4571         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4572         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4573         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4574         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
4575         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4576         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4577         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4580 2019-03-23  Bruno Haible  <bruno@clisp.org>
4582         posix_spawn_file_actions_*: Document musl libc bugs.
4583         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4584         the bug.
4585         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
4586         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
4587         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
4588         cross-compiling to a musl system, guess no.
4589         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
4590         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
4592 2019-03-23  Bruno Haible  <bruno@clisp.org>
4594         futimens: Document musl libc bug.
4595         * doc/posix-functions/futimens.texi: Mention the bug.
4596         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
4597         cross-compiling, guess no on glibc and musl systems.
4599 2019-03-23  Bruno Haible  <bruno@clisp.org>
4601         Clarify that cross-compilation guesses are guesses.
4602         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
4603         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
4604         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
4605         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
4606         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
4607         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
4608         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
4609         gl_cv_glob_lists_symlinks.
4610         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
4611         'guessing ' to ac_cv_func_malloc_0_nonnull.
4612         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
4613         'guessing ' to ac_cv_func_realloc_0_nonnull.
4614         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
4615         'guessing ' to gl_cv_func_poll.
4616         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
4617         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
4618         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
4620 2019-03-23  Bruno Haible  <bruno@clisp.org>
4622         strtold: Fix typo.
4623         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
4625 2019-03-23  Bruno Haible  <bruno@clisp.org>
4627         noreturn: In C++ mode with clang, use _Noreturn as fallback.
4628         Reported by Akim Demaille.
4629         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
4630         [[noreturn]] would not work, use _Noreturn instead.
4632 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
4634         libtextstyle-optional: Fix compiler warnings.
4635         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
4636         as unused.
4638 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
4640         bitset: fix memory leaks
4641         Reported by Bruno Haible.
4642         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
4643         * lib/bitset/vector.c (vbitset_free): New.
4644         (vbitset_vtable): Use it.
4646 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
4648         bitset: minor changes
4649         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
4650         * lib/bitset/table.c: Formatting changes.
4651         Remove useless braces.
4652         Prefer using else in cascades of if/else-if with returns.
4653         * lib/bitset/vector.c: Reduce scopes.
4655 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
4657         bitset: expose bitset_resize
4658         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
4659         * tests/test-bitset.c (check_attributes): Check bitset_resize.
4660         (main): Use a variable bitset as reference, since fixed does not support resize.
4662 2019-03-19  Bruno Haible  <bruno@clisp.org>
4664         doc: Document the 'stdnoreturn' and 'noreturn' modules.
4665         Reported by Akim Demaille.
4666         * doc/noreturn.texi: New file.
4667         * doc/gnulib.texi: Include it.
4669 2019-03-19  Bruno Haible  <bruno@clisp.org>
4671         doc: Document how to use 'static inline'.
4672         * doc/static-inline.texi: New file.
4673         * doc/gnulib.texi: Include it.
4675 2019-03-19  Bruno Haible  <bruno@clisp.org>
4677         libtextstyle-optional: Add tests.
4678         * tests/test-libtextstyle.c: New file, based on libtextstyle's
4679         adhoc-tests/hello.c.
4680         * tests/test-libtextstyle-default.css: New file, copied from
4681         libtextstyle's adhoc-tests/hello-default.css.
4682         * modules/libtextstyle-optional-tests: New file.
4684         libtextstyle-optional: New module.
4685         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
4686         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
4687         * modules/libtextstyle-optional: New file.
4689 2019-03-19  Bruno Haible  <bruno@clisp.org>
4691         c-stack: Make signal handlers more reliable.
4692         * lib/c-stack.c (progname): New variable.
4693         (die): Use it.
4694         (c_stack_action): Initialize it.
4695         (segv_handler): Save and restore errno.
4697 2019-03-19  Bruno Haible  <bruno@clisp.org>
4699         Help making signal handlers more reliable.
4700         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
4701         _GL_ASYNC_SAFE into config.h.
4702         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
4703         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
4704         argument.
4705         * lib/fatal-signal.c (action_t, uninstall_handlers,
4706         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
4707         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
4708         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
4709         _GL_ASYNC_SAFE.
4710         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
4711         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
4713 2019-03-18  Bruno Haible  <bruno@clisp.org>
4715         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
4716         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
4717         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
4719 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
4721         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
4722         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
4723         GCC 4.8.
4725 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
4727         fts: minor simplification
4728         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
4730 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
4732         bitset, timevar: Depend on c99.
4733         Reported by Bruno Haible.
4734         * modules/bitset, modules/timevar (Depends-on): Add c99.
4736 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
4738         bitset: a bit (...) more tests
4739         * tests/test-bitset.c (check_attributes): Check zero and ones.
4741 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
4743         bitset: fix overflows.
4744         Reported by Bruno Haible.
4745         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
4746         * lib/bitset/table.c (tbitset_test): last_bit is the position of
4747         the bit in the array of bitset_word, so be sure to take its modulo
4748         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
4749         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
4751 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
4753         bitset: style changes.
4754         * lib/bitset/table.c: Use NULL, not 0, for pointers.
4755         Formatting changes.
4756         (tbitset_list): Reduce scopes.
4758 2019-03-16  Bruno Haible  <bruno@clisp.org>
4760         fatal-signal: Pass the signal number to the action.
4761         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
4762         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
4763         (fatal_signal_handler): Pass the signal number to the action.
4764         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
4765         signal number as parameter.
4766         (create_temp_dir): Update.
4767         * lib/wait-process.c (cleanup_slaves_action): New function.
4768         (register_slave_subprocess): Update at_fatal_signal invocation.
4769         * NEWS: Mention the change.
4771 2019-03-16  Bruno Haible  <bruno@clisp.org>
4773         fatal-signal: Add function that lists the fatal signals.
4774         * lib/fatal-signal.h (get_fatal_signals): New declaration.
4775         * lib/fatal-signal.c (get_fatal_signals): New function.
4777 2019-03-14  Bruno Haible  <bruno@clisp.org>
4779         isatty: Make it return true in Cygwin consoles on native Windows.
4780         * lib/isatty.c: Include <string.h>.
4781         (GetProcAddress): New macro.
4782         (GetNamedPipeClientProcessIdFuncType): New type.
4783         (GetNamedPipeClientProcessIdFunc): New variable.
4784         (QueryFullProcessImageNameFuncType): New type.
4785         (QueryFullProcessImageNameFunc): New variable.
4786         (initialized): New variable.
4787         (initialize): New function.
4788         (IsCygwinConsoleHandle): New function.
4789         (isatty): Invoke it.
4790         * doc/posix-functions/isatty.texi: Mention the issue.
4792 2019-03-14  Bruno Haible  <bruno@clisp.org>
4794         all: Update URLs to msdn.microsoft.com.
4795         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
4796         was moved to docs.microsoft.com.
4798 2019-03-13  Bruno Haible  <bruno@clisp.org>
4800         gnulib-tool: Clarify the coding style.
4801         Suggested by Pavel Raiskup <praiskup@redhat.com>.
4802         * gnulib-tool: Add comment about coding style.
4804 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
4806         strtod: fix clash with strtold
4807         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
4808         * lib/strtod.c (compute_minus_zero, minus_zero):
4809         Simplify by remving the macro / external variable,
4810         and having just a function.  User changed.  This avoids
4811         the need for an external variable that might clash.
4813 2019-03-10  Bruno Haible  <bruno@clisp.org>
4815         alloca-opt: Fix conflict mingw's new <alloca.h> file.
4816         Reported by Eli Zaretskii <eliz@gnu.org>.
4817         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
4818         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
4819         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
4821 2019-03-10  Bruno Haible  <bruno@clisp.org>
4823         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
4824         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
4825         is in use.
4826         * tests/test-printf-posix2.c: Likewise.
4828 2019-03-10  Bruno Haible  <bruno@clisp.org>
4830         uninorm tests: Free allocated memory.
4831         * tests/uninorm/test-u32-normalize-big.h
4832         (struct normalization_test_file): Remove 'const' from allocated member.
4833         (free_normalization_test_file): New declaration.
4834         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
4835         memory.
4836         (free_normalization_test_file): New function.
4837         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
4838         'struct normalization_test_file' contents.
4839         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
4840         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
4841         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
4843 2019-03-10  Bruno Haible  <bruno@clisp.org>
4845         di-set: Fix memory leak.
4846         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
4847         not free().
4849 2019-03-10  Bruno Haible  <bruno@clisp.org>
4851         tests: Free allocated memory.
4852         Reported by <deltatau@protonmail.com> via Assaf Gordon.
4853         * tests/test-astrxfrm.c (main): Free allocated memory.
4854         * tests/test-bitset.c (compare, check_attributes): Free allocated
4855         bitsets.
4856         * tests/test-filenamecat.c (main): Free allocated memory.
4857         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
4858         * tests/test-freadptr.c (main): Likewise.
4859         * tests/test-freadptr2.c (main): Free allocated memory.
4860         * tests/test-freadseek.c (main): Likewise.
4861         * tests/test-gc-arcfour.c (main): Close allocated context.
4862         * tests/test-gc-arctwo.c (main): Likewise.
4863         * tests/test-gc-des.c (main): Close all allocated contexts.
4864         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
4865         * tests/test-pipe-filter-ii1.c (main): Likewise.
4866         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
4867         allocated file actions.
4868         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
4869         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
4870         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
4871         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
4872         * tests/test-strfmon_l.c (main): Free allocated locales.
4873         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
4874         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
4875         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
4876         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
4877         * tests/unistr/test-chr.h (main): Free input32.
4878         * tests/unistr/test-strchr.h (test_strchr): Likewise.
4880 2019-03-10  Bruno Haible  <bruno@clisp.org>
4882         tests: Prepare for using valgrind.
4883         * tests/*.sh: Invoke all test programs through ${CHECKER}.
4884         * tests/*/*.sh: Likewise.
4885         * tests/test-freadptr.c (main): Update accordingly.
4886         * tests/test-freadseek.c (main): Likewise.
4888 2019-03-09  Bruno Haible  <bruno@clisp.org>
4890         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
4891         * lib/get-rusage-as.c (get_rusage_as): When compiled by
4892         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
4893         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
4894         before exiting.
4896 2019-03-09  Jim Meyering  <meyering@fb.com>
4898         test-userspec.c: don't print NULL
4899         * tests/test-userspec.c (main): A test release of gcc,
4900         9.0.1 20190310, warned that this test would attempt to
4901         print a NULL pointer via a %s printf format.  Fix that
4902         and remove the unnecessary preceding "!diag" conjunct.
4903         Also add a comment.
4905 2019-03-03  Bruno Haible  <bruno@clisp.org>
4907         getloadavg: Write NULL for the null pointer.
4908         Reported by Michal Privoznik <mprivozn@redhat.com>.
4909         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
4911 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
4913         alloca, tsearch-tests: Write NULL for the null pointer.
4914         * lib/alloca.c (i00afunc): Write NULL instead of 0.
4915         * tests/test-tsearch.c (mangle_tree): Likewise.
4917 2019-03-09  Bruno Haible  <bruno@clisp.org>
4919         strfmon_l: Fix -fsanitize=address finding.
4920         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
4921         <string.h>.
4922         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
4923         (directive_t, directives_t): New types.
4924         (fmon_parse): New function.
4925         (rpl_strfmon_l): Don't call va_arg more often than needed for the
4926         format string. Consume 'long double' arguments in places where the
4927         format string indicates so.
4928         * modules/strfmon_l (Depends-on): Add 'stdbool'.
4930 2019-03-09  Bruno Haible  <bruno@clisp.org>
4932         crypto/des: Fix undefined behaviour.
4933         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
4934         shift operations on 'int'.
4936 2019-03-09  Bruno Haible  <bruno@clisp.org>
4938         Fix undefined behaviour.
4939         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
4940         'unsigned int', to avoid shift operations on 'int'.
4941         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
4942         * tests/test-count-leading-zeros.c (main): Use a random number that has
4943         as many bits as TYPE, not only 2*15 or 2*31 bits.
4944         * tests/test-count-trailing-zeros.c (main): Likewise.
4945         * tests/test-count-one-bits.c (main): Likewise.
4946         * tests/test-memmem.c: Don't include "null-ptr.h".
4947         (main): Use zerosize_ptr() instead of null_ptr().
4948         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
4950 2019-03-08  Bruno Haible  <bruno@clisp.org>
4952         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
4953         Reported by Jeffrey Walton <noloader@gmail.com>.
4954         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
4955         invoke memset with a zero size.
4956         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
4957         Likewise.
4958         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
4959         Adjust accordingly.
4961 2019-03-08  Bruno Haible  <bruno@clisp.org>
4963         unistr/*, uniconv/*: Fix undefined behaviour.
4964         Reported by Jeffrey Walton <noloader@gmail.com>.
4965         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
4966         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
4967         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
4968         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
4970 2019-03-08  Bruno Haible  <bruno@clisp.org>
4972         unistr/u8-cmp: Fix undefined behaviour.
4973         Reported by Jeffrey Walton <noloader@gmail.com>.
4974         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
4976 2019-03-08  Bruno Haible  <bruno@clisp.org>
4978         unictype/numeric: Fix undefined behaviour.
4979         Reported by Jeffrey Walton <noloader@gmail.com>.
4980         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
4981         on shift overflow, caught by "gcc -fsanitize=undefined".
4982         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
4983         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
4984         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
4986 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
4988         git-version-gen: fix --version copyright year
4989         * build-aux/git-version-gen, build-aux/move-if-change (version):
4990         --version output copyright year is now taken from script year,
4991         so that it no longer needs to be updated by hand.
4993 2019-03-04  Bruno Haible  <bruno@clisp.org>
4995         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
4996         This approach supports relocatable installation of shared libraries
4997         which depend on other shared libraries from the same package.
4998         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
4999         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
5000         wrapper around the original LIBTOOL.
5001         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
5002         token '@loader_path' instead of '$ORIGIN'.
5003         * build-aux/libtool-reloc: New file.
5004         * modules/relocatable-prog (Files): Add it.
5005         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
5006         the recent changes. Document the need to set the *_LDFLAGS of libraries.
5007         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
5008         Makefile.am, not in configure.ac.
5010 2019-03-04  Bruno Haible  <bruno@clisp.org>
5012         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
5013         * build-aux/install-reloc: Revert change.
5014         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
5016 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5018         nstrftime: support the ‘+’ flag
5019         * lib/nstrftime.c (add, __strftime_internal):
5020         Add support for the ‘+’ flag introduced in POSIX.1-2017.
5021         (__strftime_internal): New arg ‘width’.  All uses changed.
5022         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
5024 2019-02-24  Bruno Haible  <bruno@clisp.org>
5026         relocatable-prog: Improve verbose output.
5027         * build-aux/install-reloc (func_verbose): Escape characters that would
5028         be interpreted by the shell.
5030 2019-02-24  Bruno Haible  <bruno@clisp.org>
5032         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
5033         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
5034         "sys/stat.h".
5035         * lib/lstat.c: Likewise.
5036         * lib/fstat.c: Likewise.
5037         * lib/fstatat.c: Likewise.
5039 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
5041         long-options: add parse_gnu_standard_options_only
5042         Discussed in https://bugs.gnu.org/33468 .
5044         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
5045         (parse_gnu_standard_options_only): Add function to process
5046         the GNU default options --help and --version and fail for
5047         any other unknown long or short option. See
5048         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
5049         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
5050         * modules/long-options (depends-on): Add stdbool, exitfail.
5051         * top/maint.mk (sc_prohibit_long_options_without_use): Update
5052         syntax-check rule, add new function name.
5054 2019-02-23  Bruno Haible  <bruno@clisp.org>
5056         relocatable-prog: Update documentation.
5057         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
5058         the recent changes.
5060 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
5062         nstrftime: tweak arg order
5063         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
5064         All callers changed.  Suggested by TAMUKI Shoichi in:
5065         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
5067 2019-02-23  Bruno Haible  <bruno@clisp.org>
5069         relocatable-prog: Use wrapper-free installation also on Mac OS X.
5070         Reported by Paul Smith <psmith@gnu.org>.
5071         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
5072         (func_relativize): New function, from gnulib-tool.
5073         Handle mode 'macosx' through invocations of 'otool' and
5074         'install_name_tool'.
5075         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
5076         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
5077         'install-reloc' invocation with mode 'macosx'.
5079 2019-02-23  Bruno Haible  <bruno@clisp.org>
5081         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
5082         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
5083         Hurd with glibc >= 2.27.
5085 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
5087         nstrftime: merge glibc strftime changes
5088         This incorporates:
5089         2019-02-11 Fix a few whitespace arrangement inconsistencies
5090         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
5091         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
5092         2019-01-11 strftime: use the "L_" macro with character literals
5093         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
5094         callers changed.  Default width of %Ey is now 2.  This is needed
5095         for proper handling of Japanese dates starting on 2019-05-01.
5097 2019-02-19  Bruno Haible  <bruno@clisp.org>
5099         relocatable-prog: Use $ORIGIN trick on more platforms.
5100         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
5101         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
5102         Solaris >= 10, Haiku. But don't use it on Android.
5103         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
5104         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
5106 2019-02-19  Bruno Haible  <bruno@clisp.org>
5108         progreloc: Speed up executable lookup on various platforms.
5109         * lib/progreloc.c: Include <errno.h>.
5110         (safe_read, full_read): New functions.
5111         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
5112         prefer the information from the /proc file system to a PATH search.
5114 2019-02-19  Bruno Haible  <bruno@clisp.org>
5116         progreloc: Simplify code for Android.
5117         * lib/progreloc.c (executable_fd): Don't define on Android.
5118         (maybe_executable, find_executable): Don't use executable_fd on Android.
5120 2019-02-15  Bruno Haible  <bruno@clisp.org>
5122         gnulib-tool: Support --import with just a few tests, not --with-tests.
5123         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
5124         'inctests' when generating files; use 'inctests' only for computing the
5125         transitive closure.
5127 2019-02-14  Bruno Haible  <bruno@clisp.org>
5129         gnulib-tool: Improve handling of multiple --local-dir options.
5130         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
5131         options work.
5132         * gnulib-tool (func_path_prepend): Remove function.
5133         (func_path_foreach): Make IFS handling more robust.
5134         (local_gnulib_path): Collect --local-dir values using func_path_append,
5135         not func_path_prepend.
5136         (func_determine_path_separator): Make IFS handling more robust.
5137         (func_lookup_file_cb): New function.
5138         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
5139         func_lookup_local_file. Apply the patches in the reverse order of their
5140         origin in $local_gnulib_path.
5141         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
5142         * NEWS: Mention that the first --local-dir option is the one with
5143         highest priority.
5145 2019-02-10  Bruno Haible  <bruno@clisp.org>
5147         libtextstyle: New module.
5148         * m4/libtextstyle.m4: New file.
5149         * modules/libtextstyle: New file.
5151 2019-02-05  Bruno Haible  <bruno@clisp.org>
5153         declared.sh: Fix bug with variables of pointer type.
5154         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
5155         before the symbol to be omitted if the preceding character is a '*'.
5157 2019-02-04  Bruno Haible  <bruno@clisp.org>
5159         Add script for running tests under valgrind.
5160         * build-aux/run-test: New file, from GNU libunistring.
5161         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
5162         as well.
5164 2019-02-04  Bruno Haible  <bruno@clisp.org>
5166         declared.sh: Fix --version output.
5167         * build-aux/declared.sh (func_version): Update package name.
5169 2019-02-03  Bruno Haible  <bruno@clisp.org>
5171         Add script for determining the set of symbols to export from a library.
5172         * build-aux/declared.sh: New file, from GNU libunistring.
5173         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
5174         Mention it.
5176 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
5178         vla: add commentary about VLA_ELEMS
5179         * lib/vla.h (VLA_ELEMS): Add commentary,
5180         some inspired by Bruno Haible’s proposal in:
5181         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
5183         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
5184         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
5185         assume the C99 signatures for strtod and strtold.  Programs that
5186         require stricter adherence to C99 should also use the strtod and
5187         strtold modules as needed, and we no longer need the
5188         HAVE_C99_STRTOLD macro.
5189         * NEWS: Mention this.
5190         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
5191         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
5192         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
5193         (Files): Remove m4/c-strtod.m4.
5194         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
5195         exists.
5197 2019-02-02  Bruno Haible  <bruno@clisp.org>
5199         fma: Improve code style.
5200         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
5202 2019-02-02  Colin Watson  <cjwatson@debian.org>
5204         *-map tests: Fix compilation error.
5205         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
5206         * tests/test-hash_map.c: Likewise.
5207         * tests/test-linkedhash_map.c: Likewise.
5209 2019-01-31  Bruno Haible  <bruno@clisp.org>
5211         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
5212         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
5213         GNULIB_defined_strtold_function): New macros.
5214         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
5215         (STRTOD): Ignore HAVE_C99_STRTOLD.
5216         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
5217         deemed buggy. But do use it on platforms where uselocale exists and is
5218         usable.
5219         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
5220         deemed buggy. On platforms where uselocale exists and is usable, use
5221         uselocale and strtod/strtold.
5222         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
5223         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
5224         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
5225         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
5226         (Depends-on): Add strtod.
5227         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
5228         (Depends-on): Add strtold.
5230 2019-01-31  Bruno Haible  <bruno@clisp.org>
5232         strtod, strtold: Use the locale's decimal point.
5233         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
5234         (decimal_point_char): New function, copied from lib/vasnprintf.c.
5235         (parse_number): Add a radixchar argument. Use it instead of '.'.
5236         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
5237         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
5238         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
5239         * tests/test-strtod1.c: New file.
5240         * tests/test-strtod1.sh: New file.
5241         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
5242         locale-fr.m4 and its dependencies.
5243         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
5244         (Makefile.am): Arrange to compile test-strtod1.c and run
5245         test-strtod1.sh.
5246         * tests/test-strtold1.c: New file.
5247         * tests/test-strtold1.sh: New file.
5248         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
5249         locale-fr.m4 and its dependencies.
5250         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
5251         (Makefile.am): Arrange to compile test-strtold1.c and run
5252         test-strtold1.sh.
5254 2019-01-31  Bruno Haible  <bruno@clisp.org>
5256         strtod, strtold tests: Simplify tests.
5257         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
5258         * tests/test-strtold.c (main): Likewise.
5260 2019-01-31  Bruno Haible  <bruno@clisp.org>
5262         strtod, strtold: Avoid unnecessary rounding errors.
5263         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
5264         decimal to DOUBLE conversion.
5266 2019-01-31  Bruno Haible  <bruno@clisp.org>
5268         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
5269         * lib/strtod.c (STRTOD): When there is an extra character after the
5270         exponent marker 'p', reparse the number.
5271         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
5272         * doc/posix-functions/strtold.texi: Likewise.
5274 2019-01-29  Bruno Haible  <bruno@clisp.org>
5276         strtold: Add tests.
5277         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
5278         * modules/strtold-tests: New file.
5280 2019-01-29  Bruno Haible  <bruno@clisp.org>
5282         strtold: New module.
5283         * lib/stdlib.in.h (strtold): New declaration.
5284         * lib/strtold.c: New file.
5285         * lib/strtod.c: Consider USE_LONG_DOUBLE.
5286         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
5287         USE_LDEXP): New macros.
5288         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
5289         USE_LONG_DOUBLE.
5290         (underlying_strtod): Remove function. Replace with some macros.
5291         Re-add the code for a missing underlying function that was removed on
5292         2013-02-19.
5293         * m4/strtold.m4: New file.
5294         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
5295         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
5296         REPLACE_STRTOLD.
5297         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
5298         REPLACE_STRTOLD.
5299         * modules/strtold: New file.
5300         * doc/posix-functions/strtold.texi: Document the new module.
5302 2019-01-29  Bruno Haible  <bruno@clisp.org>
5304         strtod: Fix compilation error on IRIX 6.5.
5305         * modules/strtod (Depends-on): Add 'math'.
5307 2019-01-28  Bruno Haible  <bruno@clisp.org>
5309         Fix build error when building a shared libunistring on Android.
5310         * tests/uninorm/test-nfc.c (n): Don't define on Android.
5311         (main): Add 'volatile', to defeat a GCC optimization that would
5312         eliminate the reference.
5313         * tests/uninorm/test-nfd.c (n): Don't define on Android.
5314         (main): Add 'volatile', to defeat a GCC optimization that would
5315         eliminate the reference.
5316         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
5317         (main): Add 'volatile', to defeat a GCC optimization that would
5318         eliminate the reference.
5319         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
5320         (main): Add 'volatile', to defeat a GCC optimization that would
5321         eliminate the reference.
5323 2019-01-27  Bruno Haible  <bruno@clisp.org>
5325         Avoid build errors due to wrong references between modules.
5326         * lib/uninorm/canonical-decomposition.c: Include
5327         "uninorm/decomposition-table.h", not "decomposition-table.h".
5328         * lib/uninorm/decomposition.c: Likewise.
5329         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
5330         not "decompose-internal.h".
5331         * lib/uninorm/u16-normalize.c: Likewise.
5332         * lib/uninorm/u32-normalize.c: Likewise.
5333         * lib/uninorm/uninorm-filter.c: Likewise.
5334         * lib/uninorm/nfkc.c: Likewise.
5335         * lib/uninorm/nfkd.c: Likewise.
5336         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
5337         "caseprop.h".
5338         * lib/unicase/u8-ct-totitle.c: Likewise.
5339         * lib/unicase/u8-prefix-context.c: Likewise.
5340         * lib/unicase/u8-suffix-context.c: Likewise.
5341         * lib/unicase/u16-casemap.c: Likewise.
5342         * lib/unicase/u16-ct-totitle.c: Likewise.
5343         * lib/unicase/u16-prefix-context.c: Likewise.
5344         * lib/unicase/u16-suffix-context.c: Likewise.
5345         * lib/unicase/u32-casemap.c: Likewise.
5346         * lib/unicase/u32-ct-totitle.c: Likewise.
5347         * lib/unicase/u32-prefix-context.c: Likewise.
5348         * lib/unicase/u32-suffix-context.c: Likewise.
5349         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
5350         "unicasemap.h".
5351         * lib/unicase/u8-toupper.c: Likewise.
5352         * lib/unicase/u8-ct-tolower.c: Likewise.
5353         * lib/unicase/u8-ct-toupper.c: Likewise.
5354         * lib/unicase/u16-tolower.c: Likewise.
5355         * lib/unicase/u16-toupper.c: Likewise.
5356         * lib/unicase/u16-ct-tolower.c: Likewise.
5357         * lib/unicase/u16-ct-toupper.c: Likewise.
5358         * lib/unicase/u32-tolower.c: Likewise.
5359         * lib/unicase/u32-toupper.c: Likewise.
5360         * lib/unicase/u32-ct-tolower.c: Likewise.
5361         * lib/unicase/u32-ct-toupper.c: Likewise.
5362         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
5363         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
5364         * lib/unicase/u16-ct-casefold.c: Likewise.
5365         * lib/unicase/u32-ct-casefold.c: Likewise.
5367 2019-01-27  Bruno Haible  <bruno@clisp.org>
5369         gperf: Fix error when this module is required by some test module.
5370         * modules/gperf (Applicability): Set to 'all'.
5372 2019-01-27  Bruno Haible  <bruno@clisp.org>
5374         tmpfile: Add support for Android.
5375         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
5376         works.
5377         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
5378         Android.
5379         * modules/tmpfile (Depends-on): Add 'stdbool'.
5380         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
5381         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
5383 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
5385         bitsetv: allow free on NULL.
5386         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
5388 2019-01-27  Bruno Haible  <bruno@clisp.org>
5390         test-framework-sh: Improve maintainability.
5391         * tests/init.sh: Clarify what belongs together. Reorder definitions.
5393 2019-01-27  Bruno Haible  <bruno@clisp.org>
5395         tests: Don't assume that /tmp exists.
5396         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
5397         * tests/test-copy-acl-1.sh: Likewise.
5398         * tests/test-file-has-acl-1.sh: Likewise.
5399         * tests/test-copy-file-1.sh: Likewise.
5401 2019-01-27  Bruno Haible  <bruno@clisp.org>
5403         tests: Accommodate a shell that is not in /bin/sh.
5404         * tests/init.sh (setup_): Set srcdir and builddir.
5405         (BOURNE_SHELL): New variable.
5406         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
5407         * modules/file-has-acl-tests (Depends-on): Likewise.
5408         * modules/copy-file-tests (Depends-on): Likewise.
5409         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
5410         scripts through $BOURNE_SHELL.
5411         * tests/test-set-mode-acl-2.sh: Likewise.
5412         * tests/test-copy-acl-1.sh: Likewise.
5413         * tests/test-copy-acl-2.sh: Likewise.
5414         * tests/test-file-has-acl-1.sh: Likewise.
5415         * tests/test-file-has-acl-2.sh: Likewise.
5416         * tests/test-copy-file-1.sh: Likewise.
5417         * tests/test-copy-file-2.sh: Likewise.
5418         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
5419         invoker.
5420         * tests/test-copy-acl.sh (builddir): Likewise.
5421         * tests/test-file-has-acl.sh (builddir): Likewise.
5422         * tests/test-copy-file.sh (builddir): Likewise.
5423         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
5424         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
5425         * tests/test-vc-list-files-git.sh: Likewise.
5427 2019-01-27  Bruno Haible  <bruno@clisp.org>
5429         tests: Fix some "unused variable" warnings.
5430         * tests/test-fts.c (fts_dealloc): Remove unused variable.
5431         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
5432         * tests/test-striconveh.c (main): Move some variable into the
5433         '#if HAVE_ICONV'.
5434         * tests/test-striconveha.c (main): Likewise.
5435         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
5436         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
5437         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
5438         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
5439         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
5440         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
5441         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
5442         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
5443         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
5444         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
5445         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
5446         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
5447         * tests/test-tsearch.c (main): Move some variable into the
5448         '#if HAVE_INITSTATE'.
5450 2019-01-27  Bruno Haible  <bruno@clisp.org>
5452         unigbrk/uc-grapheme-breaks: Fix build failure.
5453         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
5454         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
5456 2019-01-27  Bruno Haible  <bruno@clisp.org>
5458         mountlist: Merge two .m4 files.
5459         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
5460         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
5461         * m4/ls-mntd-fs.m4: Remove file.
5462         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
5464 2019-01-27  Bruno Haible  <bruno@clisp.org>
5466         tests: Enable Linux specific tests on Android.
5467         * tests/test-flock.c (main): Treat Android like Linux.
5468         * tests/test-openat-safer.c (main): Likewise.
5470 2019-01-27  Bruno Haible  <bruno@clisp.org>
5472         relocatable-prog: Use Linux code on Android.
5473         * lib/progreloc.c: Treat Android like Linux.
5475 2019-01-26  Bruno Haible  <bruno@clisp.org>
5477         getloadavg: Add support for Android.
5478         * lib/getloadavg.c: Treat Android like Linux.
5480 2019-01-26  Bruno Haible  <bruno@clisp.org>
5482         vma-iter: Add support for Android.
5483         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
5484         * lib/vma-iter.c: Treat Android like Linux.
5485         * lib/get-rusage-data.c (get_rusage_data): Likewise.
5487 2019-01-26  Bruno Haible  <bruno@clisp.org>
5489         fts: Optimize on Android.
5490         * lib/fts.c: Treat Android like Linux.
5492 2019-01-26  Bruno Haible  <bruno@clisp.org>
5494         fts: Add support for Android.
5495         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
5496         defined by this module and the ones in libc.
5497         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
5499 2019-01-26  Bruno Haible  <bruno@clisp.org>
5501         mountlist: Use Linux code on Android.
5502         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
5503         (unescape_tab, read_file_system_list): Enable Linux code on Android
5504         as well.
5505         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
5506         and endmntent.
5507         * modules/mountlist (Depends-on): Add 'getline'.
5509 2019-01-26  Bruno Haible  <bruno@clisp.org>
5511         localename tests: Fix test failure on Android.
5512         * modules/localename-tests (Depends-on): Add 'setlocale'.
5514 2019-01-26  Bruno Haible  <bruno@clisp.org>
5516         mountlist: Port better to Android.
5517         * lib/mountlist.c (MOUNTED): Redefine on Android.
5518         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
5519         Android.
5521 2019-01-26  Bruno Haible  <bruno@clisp.org>
5523         striconveh: Fix use of uninitialized iconv_t.
5524         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5525         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
5526         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
5528 2019-01-26  Bruno Haible  <bruno@clisp.org>
5530         nonblocking-socket-tests: Fix test failure on Android 4.3.
5531         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
5532         also on Android.
5534 2019-01-26  Bruno Haible  <bruno@clisp.org>
5536         sh-filename: Add support for Android 4.3.
5537         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
5539 2019-01-26  Bruno Haible  <bruno@clisp.org>
5541         ptsname_r: Work around bug on Android 4.3.
5542         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
5543         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
5544         correct.
5545         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
5546         is defined, just fix the return value.
5547         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
5548         The behaviour of musl libc is nothing to be "fixed", since it is
5549         compliant with the next POSIX standard.
5551 2019-01-26  Bruno Haible  <bruno@clisp.org>
5553         ttyname_r: Work around bug on Android 4.3.
5554         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
5555         * lib/ttyname_r.c (ttyname_r): Implement for Android.
5556         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
5557         * doc/posix-functions/ttyname.texi: Likewise.
5559 2019-01-25  Bruno Haible  <bruno@clisp.org>
5561         getprogname: Port to Android 4.3.
5562         * lib/getprogname.c (getprogname): On Android, take only the last
5563         component of __progname.
5565 2019-01-25  Bruno Haible  <bruno@clisp.org>
5567         wcrtomb: Work around bug on Android 4.3.
5568         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
5569         the C locale.
5570         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
5571         which does not have the 'wctomb' function.
5572         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
5573         * tests/test-wcrtomb.c (main): Accept argument '5'.
5574         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
5576 2019-01-25  Bruno Haible  <bruno@clisp.org>
5578         setlocale: Work around bug on Android 4.3.
5579         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
5580         the "C" locale.
5581         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
5582         * doc/posix-functions/setlocale.texi: Mention the Android bug.
5584 2019-01-24  Bruno Haible  <bruno@clisp.org>
5586         memchr: Work around bug on Android <= 5.0.
5587         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
5588         * doc/posix-functions/memchr.texi: Mention the Android bug.
5590 2019-01-24  Bruno Haible  <bruno@clisp.org>
5592         random: Fix compilation error on Android 4.3.
5593         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
5594         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
5595         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
5596         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
5597         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
5598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
5599         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
5600         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
5601         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
5602         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
5603         REPLACE_INITSTATE, REPLACE_SETSTATE.
5604         * doc/posix-functions/random.texi: Correct the description of the
5605         situation on Android.
5606         * doc/posix-functions/srandom.texi: Likewise.
5607         * doc/posix-functions/rand.texi: Likewise.
5608         * doc/posix-functions/srand.texi: Likewise.
5610 2019-01-24  Bruno Haible  <bruno@clisp.org>
5612         mbtowc: Fix compilation error on Android 4.3.
5613         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
5614         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
5615         HAVE_MBTOWC.
5616         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
5617         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
5618         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
5619         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
5620         * doc/posix-functions/mbtowc.texi: Mention the change.
5622 2019-01-24  Bruno Haible  <bruno@clisp.org>
5624         fdatasync: Fix compilation error on Android 4.3.
5625         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
5626         test whether fdatasync() exists.
5628 2019-01-24  Bruno Haible  <bruno@clisp.org>
5630         unlinkat: Fix compilation error on Android 4.3.
5631         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
5632         also on Android.
5633         * doc/posix-functions/unlinkat.texi: Mention the issue.
5635 2019-01-24  Bruno Haible  <bruno@clisp.org>
5637         renameat: Fix compilation error on Android 4.3.
5638         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
5639         * doc/posix-functions/renameat.texi: Mention the issue.
5641 2019-01-24  Bruno Haible  <bruno@clisp.org>
5643         fchownat: Fix compilation error on Android 4.3.
5644         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
5645         use.
5646         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
5647         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
5648         * doc/posix-functions/fchownat.texi: Mention the issue.
5650 2019-01-23  Bruno Haible  <bruno@clisp.org>
5652         gnulib-tool: Support running testdirs on Android.
5653         * build-aux/test-driver.diff: New file.
5654         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
5655         build-aux/test-driver after running automake.
5657 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
5659         relocatable-prog: avoid warnings from Automake
5660         * modules/relocatable-prog: Don't declare PHONY dependencies in
5661         Automake conditionals.
5663 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
5665         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
5666         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
5668 2019-01-23  Bruno Haible  <bruno@clisp.org>
5670         threadlib: Revert commit from 2018-06-25. We now have a better fix.
5671         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
5672         preceding -Wl,--as-needed option. Don't check whether the linker
5673         supports --as-needed/--no-as-needed and --push-state/--pop-state.
5675 2019-01-23  Bruno Haible  <bruno@clisp.org>
5677         thread: Force linking with -lpthread, even when --as-needed is in use.
5678         Reported by Richard W.M. Jones <rjones@redhat.com> in
5679         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
5680         * lib/glthread/thread.h (pthread_create): Don't declare weak.
5682 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
5683             Bruno Haible  <bruno@clisp.org>
5685         relocatable: avoid compiler warnings (-Wshadow)
5686         * lib/relocatable.c (compute_curr_prefix): Rename local variables
5687         to avoid name collisions with global variables.
5689 2019-01-22  Bruno Haible  <bruno@clisp.org>
5691         vasnprintf: Don't use %n on Android.
5692         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
5693         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
5694         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
5696 2019-01-22  Bruno Haible  <bruno@clisp.org>
5698         *printf: Support cross-compilation to Android.
5699         * m4/printf.m4: Add cross-compilation guesses for Android.
5701 2019-01-21  Bruno Haible  <bruno@clisp.org>
5703         diacrit: Mark deprecated.
5704         * modules/diacrit (Status, Notice): Mark as deprecated.
5705         * NEWS: Mention it.
5707 2019-01-20  Bruno Haible  <bruno@clisp.org>
5709         rintl: Override broken implementation on NetBSD.
5710         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
5711         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
5712         REPLACE_RINTL.
5713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
5714         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
5715         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
5716         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
5718 2019-01-20  Bruno Haible  <bruno@clisp.org>
5720         log10l: Work around inaccurate implementation on NetBSD.
5721         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
5722         * lib/log10l.c: Comment out too simplistic override.
5723         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
5725 2019-01-20  Bruno Haible  <bruno@clisp.org>
5727         logl: Work around inaccurate implementation on NetBSD.
5728         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
5729         * lib/logl.c: Comment out unused code.
5730         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
5732 2019-01-20  Bruno Haible  <bruno@clisp.org>
5734         expm1l: Work around inaccurate implementation on NetBSD.
5735         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
5736         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
5737         REPLACE_EXPM1L.
5738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
5739         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
5740         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
5741         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
5743 2019-01-20  Bruno Haible  <bruno@clisp.org>
5745         expl: Work around inaccurate implementation on NetBSD.
5746         * lib/math.in.h (expl): Test also REPLACE_EXPL.
5747         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
5748         REPLACE_EXPL.
5749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
5750         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
5751         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
5752         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
5754 2019-01-20  Bruno Haible  <bruno@clisp.org>
5756         exp2l: Work around inaccurate implementation on NetBSD.
5757         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
5758         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
5760 2019-01-20  Bruno Haible  <bruno@clisp.org>
5762         floor, floorl: Avoid autoconf warnings.
5763         * modules/floor (configure.ac): Use AC_REQUIRE.
5764         * modules/floorl (configure.ac): Likewise.
5766 2019-01-20  Bruno Haible  <bruno@clisp.org>
5768         Defeat current GCC optimizations in math autoconf tests.
5769         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
5770         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5771         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5772         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5773         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
5774         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
5775         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5776         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5777         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
5778         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5779         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5780         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5781         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5782         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5783         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
5784         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
5785         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
5786         * m4/log.m4 (gl_FUNC_LOG): Likewise.
5787         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5788         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
5789         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5790         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
5791         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
5792         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
5793         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
5794         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
5795         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
5796         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5797         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5798         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5799         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5800         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5801         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5802         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5803         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5804         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5805         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5806         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5808 2019-01-19  Pádraig Brady  <P@draigBrady.com>
5810         gettext: support disabling use of VLAs
5811         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
5813 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
5815         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
5816         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
5818 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
5820         fcntl: Fix syntax error (regression from 2018-10-05).
5821         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
5823 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
5825         relocatable: improve documentation.
5826         * doc/relocatable-maint.texi (Supporting Relocation): For
5827         substitutions performed by config.status, we need more variables
5828         (for instance datarootdir defaults to '${prefix}/share' so we need
5829         prefix).
5831 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
5833         backup: update dependencies
5834         * modules/backup-rename (Depends-on): It now depends on opendirat
5835         instead of opendir.  It also uses stdint, and xalloc-oversized.
5836         But no longer dirfd.
5837         * modules/backupfile (Depends-on): Add xalloc-oversized.
5839 2019-01-13  Bruno Haible  <bruno@clisp.org>
5841         getcwd: Fix test failure when building on a Linux 9p file system.
5842         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
5843         EINVAL from mkdir like ENAMETOOLONG.
5844         * tests/test-getcwd.c (test_long_name): Likewise.
5846 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
5848         Fix typos found by codespell.
5849         * lib/*.[hc]: Fix typos in comments.
5850         * pygnulib/*.py: Fix typos in error messages and comments.
5852 2019-01-12  Bruno Haible  <bruno@clisp.org>
5854         doc: Fix documentation about container data types.
5855         Reported by Werner Lemberg <wl@gnu.org>.
5856         * doc/containers.texi (Container data types): Fix typo.
5858 2019-01-10  Bruno Haible  <bruno@clisp.org>
5860         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
5861         Reported by Reuben Thomas <rrt@sc3d.org>.
5862         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
5864 2019-01-06  Bruno Haible  <bruno@clisp.org>
5866         maintainer-makefile: Make the configure.ac section optional.
5867         * top/maint.mk (GREP, SED): Define if not defined.
5869 2019-01-06  Bruno Haible  <bruno@clisp.org>
5871         localename: Assume setlocale function.
5872         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
5873         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
5875 2019-01-06  Bruno Haible  <bruno@clisp.org>
5877         doc: Add documentation about container data types.
5878         * doc/containers.texi: New file.
5879         * doc/gnulib.texi (Particular Modules): Include it.
5881 2019-01-06  Bruno Haible  <bruno@clisp.org>
5883         doc: Update documentation about 'progname' module.
5884         * doc/progname.texi: Rename from doc/error.texi. Change node name and
5885         title. Rewrite.
5886         * doc/gnulib.texi (Particular Modules): Update.
5888 2019-01-06  Bruno Haible  <bruno@clisp.org>
5890         doc: Document the xstdopen and *-safer modules.
5891         * doc/xstdopen.texi: New file.
5892         * doc/gnulib.texi (Particular Modules): Include it.
5894 2019-01-06  Bruno Haible  <bruno@clisp.org>
5896         xstdopen: Add tests.
5897         * tests/test-xstdopen.c: New file.
5898         * tests/test-xstdopen.sh: New file.
5899         * modules/xstdopen-tests: New file.
5901         xstdopen: New module.
5902         * lib/xstdopen.h: New file.
5903         * lib/xstdopen.c: New file.
5904         * modules/xstdopen: New file.
5906 2019-01-06  Bruno Haible  <bruno@clisp.org>
5908         stdopen: Fix compilation error with IRIX cc.
5909         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
5911 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5913         xfreopen need not include stdio--.h
5914         * lib/xfreopen.c: Do not include stdio--.h.
5916         xfreopen need not depend on freopen-safer
5917         * modules/xfreopen (Depends-on):
5918         Depend on freopen, not freopen-safer.
5920         stdopen: modernize and simplify
5921         * lib/stdopen.c: Update copyright date
5922         Do not include sys/types.h; no longer needed these days.
5923         (stdopen): Use C99-style decl in loop.  Return int errno
5924         value, rather than just a bool.  Do not worry about fd mismatches,
5925         since the caller cares only if 0, 1, 2 are occupied.
5926         * lib/stdopen.h: No need to include <stdbool.h>.
5927         * m4/stdopen.m4: Remove.
5928         * modules/stdopen: New file.
5930         stdopen: copy from last use in coreutils
5931         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
5932         New files, taken from their last commit in coreutils
5933         2007-07-23T12:35:58Z!jim@meyering.net
5934         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
5936 2019-01-05  Bruno Haible  <bruno@clisp.org>
5938         argp: Don't pass an invalid argument to dgettext().
5939         Reported by He X <xw897002528@gmail.com>.
5940         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
5941         dgettext().
5943 2019-01-05  Bruno Haible  <bruno@clisp.org>
5945         argp: Don't pass an invalid argument to dgettext().
5946         Reported by He X <xw897002528@gmail.com>.
5947         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
5948         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
5949         dgettext().
5951 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5953         stdioext: port to newer 32-bit Android
5954         Problem reported by Tom Yan in:
5955         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
5956         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
5957         (fp_) [__ANDROID__]: Use it.
5959 2019-01-04  Bruno Haible  <bruno@clisp.org>
5961         lock: Fix link error with --enable-threads=pth.
5962         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
5963         Mark as weak.
5965 2019-01-04  Bruno Haible  <bruno@clisp.org>
5967         Fix link errors in unit tests.
5968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5969         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
5970         * modules/array-map-tests (Makefile.am): Link test-array_map against
5971         libintl.
5972         * modules/array-set-tests (Makefile.am): Link test-array_set against
5973         libintl.
5974         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
5975         libintl.
5976         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
5977         libintl.
5978         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
5979         against libintl.
5980         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
5981         against libintl.
5983 2019-01-04  Bruno Haible  <bruno@clisp.org>
5985         Fix incorrect 'Link' sections.
5986         * modules/regex (Link): Mention the link requirement of module 'lock'.
5987         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
5989 2019-01-04  Bruno Haible  <bruno@clisp.org>
5991         Fix some 'Link' sections.
5992         * modules/c-stack (Link): Add link directive from the 'gettext-h'
5993         dependency.
5994         * modules/getaddrinfo (Link): Likewise.
5996 2019-01-04  Bruno Haible  <bruno@clisp.org>
5998         Remove redundant 'Link' sections.
5999         * modules/canon-host (Link): Remove section.
6000         * modules/timevar (Link): Likewise.
6002 2019-01-04  Bruno Haible  <bruno@clisp.org>
6004         Remove incorrect 'Link' sections.
6005         * modules/acl (Link): Remove section. Use combined 'Link' sections from
6006         the dependencies instead.
6007         * modules/crypto/md5 (Link): Likewise.
6008         * modules/crypto/sha1 (Link): Likewise.
6009         * modules/crypto/sha256 (Link): Likewise.
6010         * modules/crypto/sha512 (Link): Likewise.
6011         * modules/faccessat (Link): Likewise.
6012         * modules/fdutimensat (Link): Likewise.
6013         * modules/iconv_open-utf (Link): Likewise.
6014         * modules/propername (Link): Likewise.
6015         * modules/qacl (Link): Likewise.
6016         * modules/unicodeio (Link): Likewise.
6017         * modules/utimecmp (Link): Likewise.
6018         * modules/utimensat (Link): Likewise.
6019         * modules/xstriconv (Link): Likewise.
6020         * modules/xstriconveh (Link): Likewise.
6022 2019-01-04  Bruno Haible  <bruno@clisp.org>
6024         gnulib-tool: New option --extract-recursive-link-directive.
6025         * gnulib-tool (func_usage): Document the new options
6026         --extract-recursive-dependencies, --extract-recursive-link-directive.
6027         (func_verify_module): Document output variables.
6028         (func_get_dependencies_recursively): New function.
6029         (func_get_link_directive_recursively): New function.
6030         Use them to implement the new options
6031         --extract-recursive-dependencies, --extract-recursive-link-directive.
6032         * doc/gnulib-tool.texi (Link-time requirements): New section.
6034 2019-01-04  Bruno Haible  <bruno@clisp.org>
6036         Clarify meaning of 'Link' section in module description.
6037         * doc/gnulib.texi (Module description): Clarify the meaning of the
6038         'Link' section versus the one of the dependencies.
6039         * NEWS: Mention the change.
6041 2019-01-04  Bruno Haible  <bruno@clisp.org>
6043         pselect: Fix module description.
6044         * modules/pselect (Link): Put one link option per line.
6046 2019-01-04  Bruno Haible  <bruno@clisp.org>
6048         cosl: Fix module description.
6049         * modules/cosl (Link): Fix typo.
6050         * modules/mathl (configure.ac): Likewise.
6052 2019-01-04  Bruno Haible  <bruno@clisp.org>
6054         c-xvasprintf: Fix module dependencies.
6055         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
6057 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
6059         bootstrap: die when some submodules are not initialized
6060         * build-aux/bootstrap: Make sure all submodules are initialized.
6062 2019-01-04  Bruno Haible  <bruno@clisp.org>
6064         bitsetv: Fix module dependencies.
6065         * lib/bitsetv.c: Include xalloc.h.
6066         * modules/bitsetv (Depends-on): Add 'xalloc'.
6068 2019-01-04  Bruno Haible  <bruno@clisp.org>
6070         xmemdup0: Remove redundant code.
6071         * lib/xmemdup0.h (xalloc_die): Remove declaration.
6073 2019-01-04  Bruno Haible  <bruno@clisp.org>
6075         backupfile: Fix module dependencies.
6076         * modules/backupfile (Depends-on): Add 'xalloc'.
6078 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
6080         bitset, crypto/gc: fix conflicts with Solaris 11
6081         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
6082         avoid clash with Solaris 11 <sys/bitset.h>.
6083         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
6084         with Solaris 11 <xorg/gc.h>.
6086 2019-01-04  Bruno Haible  <bruno@clisp.org>
6088         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
6089         Reported by Andy Fiddaman <andy@omniosce.org>.
6090         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
6092 2019-01-03  Eric Blake  <eblake@redhat.com>
6094         maintainer-makefile: fix typo in previous patch
6095         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
6096         of Roman's work.
6098 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
6100         maintainer-makefile: prefer $(GREP) over grep
6101         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
6102         defined.
6103         * top/maint.mk: Use it everywhere.
6105         maintainer-makefile: split long argument lines
6106         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
6107         it would be too long for exec limits on BSD.
6109 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6111         mkfifo: bring back HAVE_MKFIFO macro
6112         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
6113         Problem reported by Andrew Janke in:
6114         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
6116 2018-12-21  Bruno Haible  <bruno@clisp.org>
6118         Assume Autoconf >= 2.63.
6119         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
6120         versions < 2.60.
6122 2018-12-21  Bruno Haible  <bruno@clisp.org>
6124         memcmp: Mention the clang bug.
6125         * tests/test-memcmp.c: Add comment about a known test failure.
6126         * doc/posix-functions/memcmp.texi: Mention the clang bug.
6128 2018-12-20  Jim Meyering  <meyering@fb.com>
6130         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
6131         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
6132           echo '123-x'|LC_ALL=C grep -E '.\bx'
6133         The goal is to revert the first, but reverting it requires to restore
6134         the function deleted in the second. I ran this to restore the deleted
6135         function:
6136           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
6137             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
6138             | patch -R -p1
6139         * lib/dfa.c (charclass_context): Restore deleted function.
6140         Reverting the primary commit removes this change:
6141         dfa: Simplify a building state
6142         * lib/dfa.c (build_state): Simplify a building state.
6144 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6146         version-etc: allow zero authors
6147         * lib/version-etc.c (version_etc_arn): If no authors are given,
6148         omit authorship info instead of dumping core.
6150 2018-12-19  Bruno Haible  <bruno@clisp.org>
6152         lchown tests: Be more permissive regarding errno values.
6153         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
6154         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
6155         alternative to ENOSYS.
6156         * modules/lchown-tests (Depends-on): Add 'errno'.
6157         * modules/fchownat-tests (Depends-on): Likewise.
6159 2018-12-18  Bruno Haible  <bruno@clisp.org>
6161         duplocale: Avoid test failure on AIX 7.
6162         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
6163         (configure.ac): Invoke gt_FUNC_USELOCALE.
6164         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
6165         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
6166         works.
6168 2018-12-18  Bruno Haible  <bruno@clisp.org>
6170         localename: Fix test failure on AIX 7.
6171         Reported by Assaf Gordon in
6172         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
6173         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
6174         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
6175         instead of ac_cv_func_uselocale.
6176         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
6177         HAVE_USELOCALE.
6178         * lib/localename-table.h: Likewise.
6179         * lib/localename-table.c: Likewise.
6180         * tests/test-localename.c: Likewise.
6181         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
6183 2018-12-18  Bruno Haible  <bruno@clisp.org>
6185         localename: Update comments regarding Cygwin.
6186         * lib/localename.c: Update comment.
6187         * doc/posix-functions/uselocale.texi: Update platforms list.
6188         * doc/posix-functions/newlocale.texi: Likewise.
6189         * doc/posix-functions/duplocale.texi: Likewise.
6190         * doc/posix-functions/freelocale.texi: Likewise.
6192 2018-12-16  Bruno Haible  <bruno@clisp.org>
6194         c-stack: Fix for Linux/sparc.
6195         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
6196         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
6198 2018-12-16  Bruno Haible  <bruno@clisp.org>
6200         localename: Avoid test failure on some glibc systems.
6201         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
6202         Unset environment variables that might disturb the first setlocale call,
6203         and verify that this setlocale call succeeds.
6205 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
6207         random: Fix build error on native Windows (regression from 2018-06-21).
6208         * lib/random.c (__srandom, __initstate, __setstate, __random,
6209         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
6210         to the symbols without '__' prefix.
6212 2018-12-16  Bruno Haible  <bruno@clisp.org>
6214         obstack, libc-config: Support HP-UX cc in C99 mode.
6215         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
6216         compiler, even when in C99 mode.
6217         * lib/cdefs.h (__flexarr): Likewise.
6218         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
6220 2018-12-16  Bruno Haible  <bruno@clisp.org>
6222         localename: Fix test failure on OpenBSD >= 6.2.
6223         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
6224         locale system. Define HAVE_FAKE_LOCALES in this case.
6225         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
6226         HAVE_USELOCALE.
6227         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
6228         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
6229         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
6230         platforms list.
6231         * doc/posix-functions/newlocale.texi: Likewise.
6232         * doc/posix-functions/duplocale.texi: Update platforms list.
6233         * doc/posix-functions/freelocale.texi: Likewise.
6235 2018-12-16  Bruno Haible  <bruno@clisp.org>
6237         duplocale tests: Re-enable the test on platforms without <monetary.h>.
6238         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
6239         of the test, on platforms without <monetary.h>.
6241 2018-12-16  Bruno Haible  <bruno@clisp.org>
6243         localename: Update comments.
6244         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
6246 2018-12-15  Jim Meyering  <meyering@fb.com>
6248         regex: fix indentation
6249         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
6251 2018-12-15  Bruno Haible  <bruno@clisp.org>
6253         openat-safer tests: Avoid test failure on NetBSD 8.
6254         * tests/test-openat-safer.c (main): Execute a Linux specific test only
6255         on Linux.
6257 2018-12-15  Jim Meyering  <meyering@fb.com>
6259         regex: work around a bug in glibc-2.27 and prior
6260         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
6261         assertion for /0|()0|\1|0/.
6262         * tests/test-regex.c (main): Add the same test here.
6264 2018-12-15  Bruno Haible  <bruno@clisp.org>
6266         localename: Fix use of uninitialized shell variable.
6267         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
6268         gt_cv_locale_solaris114 always before use. Remove assignment without
6269         effect.
6271 2018-12-15  Bruno Haible  <bruno@clisp.org>
6273         dfa tests: Avoid test failure on Alpine Linux.
6274         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
6275         command found on Alpine Linux.
6277 2018-12-15  Jim Meyering  <meyering@fb.com>
6279         dfa: avoid new warnings from gcc
6280         These would prevent building with -Werror and a Dec snapshot of gcc.
6281         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
6282         Rename each inner instance to "p".
6283         (charclass_context): Remove unused static function.
6285 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
6287         mkdir-p: improve diagnostic for FUSE mounts
6288         Problem reported by Niklas Hambüchen in:
6289         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
6290         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
6291         errno to mkdir errno if the stat errno is likely more interesting.
6293 2018-12-14  Bruno Haible  <bruno@clisp.org>
6295         hash-map: Add tests.
6296         * tests/test-hash_map.c: New file.
6297         * modules/hash-map-tests: New file.
6299         linkedhash-map: Add tests.
6300         * tests/test-linkedhash_map.c: New file.
6301         * modules/linkedhash-map-tests: New file.
6303         array-map: Add tests.
6304         * tests/test-array_map.c: New file.
6305         * modules/array-map-tests: New file.
6307         xmap: New module.
6308         * lib/gl_xmap.h: New file.
6309         * lib/gl_xmap.c: New file.
6310         * modules/xmap: New file.
6312         hash-map: New module.
6313         * lib/gl_hash_map.h: New file.
6314         * lib/gl_hash_map.c: New file.
6315         * modules/hash-map: New file.
6317         linkedhash-map: New module.
6318         * lib/gl_linkedhash_map.h: New file.
6319         * lib/gl_linkedhash_map.c: New file.
6320         * lib/gl_anyhash1.h: Update comments.
6321         * lib/gl_anyhash2.h: Likewise.
6322         * modules/linkedhash-map: New file.
6324         array-map: New module.
6325         * lib/gl_array_map.h: New file.
6326         * lib/gl_array_map.c: New file.
6327         * modules/array-map: New file.
6329         map: New module.
6330         * lib/gl_map.h: New file.
6331         * lib/gl_map.c: New file.
6332         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
6333         conflict with gl_map.h.
6334         * modules/map: New file.
6336 2018-12-13  Bruno Haible  <bruno@clisp.org>
6338         select tests: Avoid test failure on Cygwin.
6339         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
6341 2018-12-13  Bruno Haible  <bruno@clisp.org>
6343         localtime-buffer: Avoid endless recursion in localtime and gmtime.
6344         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
6346 2018-12-13  Bruno Haible  <bruno@clisp.org>
6348         localeconv tests: Avoid test failure on Cygwin.
6349         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
6350         'mon_grouping' tests.
6352 2018-12-11  Bruno Haible  <bruno@clisp.org>
6354         omap: Don't dispose the old value when the function returns it.
6355         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
6356         here.
6357         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
6358         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
6359         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
6360         here.
6362         array-omap, avltree-omap, rbtree-omap: Tweak style.
6363         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
6364         false.
6365         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
6367         rbtree-omap: Add tests.
6368         * tests/test-rbtree_omap.c: New file.
6369         * modules/rbtree-omap-tests: New file.
6371         avltree-omap: Add tests.
6372         * tests/test-avltree_omap.c: New file.
6373         * modules/avltree-omap-tests: New file.
6375         array-omap: Add tests.
6376         * tests/test-array_omap.c: New file.
6377         * modules/array-omap-tests: New file.
6379         xomap: New module.
6380         * lib/gl_xomap.h: New file.
6381         * lib/gl_xomap.c: New file.
6382         * modules/xomap: New file.
6384         rbtree-omap: New module.
6385         * lib/gl_rbtree_omap.h: New file.
6386         * lib/gl_rbtree_omap.c: New file.
6387         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
6388         Parameterize.
6389         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
6390         * modules/rbtree-omap: New file.
6391         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
6392         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
6394         avltree-omap: New module.
6395         * lib/gl_avltree_omap.h: New file.
6396         * lib/gl_avltree_omap.c: New file.
6397         * lib/gl_avltree_ordered.h: Code moved to here from
6398         lib/gl_avltree_oset.c. Parameterize.
6399         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
6400         * lib/gl_anytree_omap.h: New file.
6401         * modules/avltree-omap: New file.
6402         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
6403         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
6405         array-omap: New module.
6406         * lib/gl_array_omap.h: New file.
6407         * lib/gl_array_omap.c: New file.
6408         * modules/array-omap: New file.
6410         omap: New module.
6411         * lib/gl_omap.h: New file.
6412         * lib/gl_omap.c: New file.
6413         * modules/omap: New file.
6415 2018-12-11  Bruno Haible  <bruno@clisp.org>
6417         hash-set, linkedhash-set: Reduce code duplication.
6418         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
6419         lib/gl_anyhash_set1.h.
6420         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
6421         lib/gl_anyhash_set2.h. Parameterize.
6422         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
6423         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
6424         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
6425         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
6426         * lib/gl_rbtreehash_list.c: Likewise.
6427         * lib/gl_linkedhash_list.c: Likewise.
6428         (hash_resize_after_add): Remove function.
6429         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
6430         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
6431         * gl_hash_set.c: Likewise.
6432         * modules/avltreehash-list (Files, Makefile.am): Update file list.
6433         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
6434         * modules/linkedhash-list (Files, Makefile.am): Likewise.
6435         * modules/linkedhash-set (Files, Makefile.am): Likewise.
6436         * modules/hash-set (Files, Makefile.am): Likewise.
6438 2018-12-11  Bruno Haible  <bruno@clisp.org>
6440         array-set: Optimize.
6441         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
6442         outside the loop, not inside the loop.
6444 2018-12-11  Bruno Haible  <bruno@clisp.org>
6446         times: Fix tests.
6447         * tests/test-times.c (doublecmp): Implement a total order.
6449 2018-12-11  Bruno Haible  <bruno@clisp.org>
6451         array-set, linkedhash-set, hash-set: Fix tests.
6452         * tests/test-array_set.c (cmp_objects_in_array): New function.
6453         (check_equals): Use it.
6454         * tests/test-hash_set.c: Likewise.
6455         * tests/test-linkedhash_set.c: Likewise.
6457 2018-12-08  Bruno Haible  <bruno@clisp.org>
6459         Fix comments.
6460         * lib/gl_list.h (gl_list_free): Clarify what it does.
6461         * lib/gl_oset.h (gl_oset_free): Likewise.
6462         * lib/gl_set.h (gl_set_free): Likewise.
6463         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
6464         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
6465         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
6466         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
6468 2018-12-03  Bruno Haible  <bruno@clisp.org>
6470         hash-set: Add tests.
6471         * tests/test-hash_set.c: New file.
6472         * modules/hash-set-tests: New file.
6474         linkedhash-set: Add tests.
6475         * tests/test-linkedhash_set.c: New file.
6476         * modules/linkedhash-set-tests: New file.
6478         array-set: Add tests.
6479         * tests/test-array_set.c: New file.
6480         * modules/array-set-tests: New file.
6482         xset: New module.
6483         * lib/gl_xset.h: New file.
6484         * lib/gl_xset.c: New file.
6485         * modules/xset: New file.
6487         hash-set: New module.
6488         * lib/gl_hash_set.h: New file.
6489         * lib/gl_hash_set.c: New file.
6490         * modules/hash-set: New file.
6492         linkedhash-set: New module.
6493         * lib/gl_linkedhash_set.h: New file.
6494         * lib/gl_linkedhash_set.c: New file.
6495         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
6496         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
6497         * lib/gl_anyhash_primes.h: New file, extracted from
6498         lib/gl_anyhash_list2.h.
6499         * lib/gl_anyhash_list2.h: Include it.
6500         (primes, next_prime): Remove definitions.
6501         * modules/linkedhash-set: New file.
6502         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
6503         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
6504         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
6505         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
6506         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
6507         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
6509         array-set: New module.
6510         * lib/gl_array_set.h: New file.
6511         * lib/gl_array_set.c: New file.
6512         * modules/array-set: New file.
6514         set: New module.
6515         * lib/gl_set.h: New file.
6516         * lib/gl_set.c: New file.
6517         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
6518         gl_set.h.
6519         * modules/set: New file.
6521 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
6523         bison: don't force the Yacc mode
6524         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
6525         errors when Bison features are used in the grammar file.  Some of
6526         these features (such as %expect) were flagged non-yacc recently.  Most
6527         of the time, -y is actually used to please Automake's ylwrap which
6528         expects the output to be y.tab.c.
6529         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
6531 2018-12-01  Bruno Haible  <bruno@clisp.org>
6533         gnupload: Document short options.
6534         * build-aux/gnupload (usage): Document the short options.
6536 2018-11-28  Ben Elliston  <bje@gnu.org>
6538         gnupload: Support option -h as alias of --help.
6539         * build-aux/gnupload: Support -h.
6541 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
6543         memrchr: port better to clang
6544         * lib/memrchr.c (__memrchr): Cast to void * instead of to
6545         longword *, to pacify clang -Wcast-align (Bug#33544).
6547 2018-11-29  Eric Blake  <eblake@redhat.com>
6549         docs: mention printf %m considerations
6550         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
6551         is not portable, and is easy enough to work around.
6552         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
6553         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
6554         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
6555         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
6556         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6557         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6558         * doc/posix-functions/printf.texi (printf): Likewise.
6559         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
6560         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
6561         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
6562         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6563         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6564         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6565         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6566         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6567         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
6568         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
6569         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6570         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6572 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
6574         bitset: rename ebitset/expandable.* as tbitset/table.*
6575         See
6576         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
6577         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
6578         * lib/bitset/table.h, lib/bitset/table.c: these.
6579         Rename all the ebitset* symbols as tbitset*.
6580         Adjust dependencies.
6582 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
6584         bitset: check the operations
6585         * tests/test-bitset.c (bitset_random): New.
6586         Use it.
6587         * lib/bitset/expandable.c (ebitset_not): Fix typo.
6589 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
6591         bitset: properly use false/true instead of 0/1 for Booleans
6592         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
6593         0/1, as Booleans.
6595 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
6597         bitset: rename BITSET_VARRAY as BITSET_VECTOR
6598         For consistency with the name of the file.
6599         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
6600         * lib/bitset/stats.c, lib/bitset/vector.c
6601         (BITSET_VARRAY): Rename as...
6602         (BITSET_VECTOR): this.
6604 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
6606         strerror_r-posix: memmove, not memcpy
6607         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
6608         since the source and destination might overlap in the call
6609         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
6610         Simplify.
6612 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
6614         bitsetv: new module
6615         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
6617 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
6619         bitset: add tests and doc
6620         First stabs at providing a documentation and test for the bitset
6621         module.
6622         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
6624 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
6626         bitset: new module
6627         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
6628         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
6629         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
6630         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
6631         * lib/bitset/vector.h, modules/bitset:
6632         New.
6634 2018-11-23  Bruno Haible  <bruno@clisp.org>
6636         localename: Fix gettext test failures on mingw.
6637         * lib/localename.c (gl_locale_name_posix): Convert the result of
6638         gl_locale_name_environ to XPG syntax.
6640 2018-11-23  Karl Berry  <karl@freefriends.org>
6642         * config/srclistvars.txt,
6643         * config/srclist.txt: remove all gettext references;
6644         the gettext maintainers will sync as needed.
6646 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
6648         mktime: add libc-config dependency
6649         I missed this when we synced from glibc.
6650         * modules/mktime (Depends-on): Add libc-config.
6652 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
6654         longlong: fix comment typo
6655         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
6657 2018-11-11  Bruno Haible  <bruno@clisp.org>
6659         havelib: Remove the need to include asm-underscore.m4.
6660         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
6661         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
6662         gl_HOST_CPU_C_ABI.
6663         * modules/havelib (Files): Add host-cpu-c-abi.m4.
6664         (Depends-on): Remove host-cpu-c-abi.
6666 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
6668         parse-datetime: simplify test for mktime failure
6669         * lib/parse-datetime.y (mktime_ok): Simplify.
6670         Remove args TZ and T; no longer needed.  Callers changed.
6672         posixtm: simplify test for mktime failure
6673         * lib/posixtm.c (posixtime): Simplify.
6675         nstrftime: simplify test for mktime failure
6676         * lib/nstrftime.c (__strftime_internal): Simplify.
6678 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
6680         gnulib-common.m4: port _Noreturn to C++
6681         Problem reported by Akim Demaille in:
6682         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
6683         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
6684         Merge adjustments from _Noreturn.h and from glibc into the non-C++
6685         version.
6686         * lib/_Noreturn.h: Match gnulib-common.
6688 2018-10-30  Bruno Haible  <bruno@clisp.org>
6690         gnu-make: Fix for NetBSD 8 'make'.
6691         Reported by Reuben Thomas in
6692         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
6693         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
6694         output, ignoring exit codes.
6696 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
6698         maintainer-makefile: fix syntax-check rule for "same.h"
6699         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
6700         for 'same_nameat', too.
6702 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
6704         havelib: fix nested ‘configure’ chatter
6705         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
6706         AC_CACHE_CHECK calls, which resulted in confusing output like
6707         “checking for the common suffixes of directories in the library
6708         search path... checking for 64-bit host... no lib,lib”.
6710         backupfile: tweak for better code
6711         * lib/backupfile.c: Sort include directives, and remove
6712         unnecessary <limits.h> include.
6713         (FALLTHROUGH): New macro, copied from other modules.
6714         (backupfile_internal): Use it to avoid code duplication.
6715         This lets GCC 8.2.1 generate better code by inlining the
6716         call to check_extension.
6718 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
6720         backupfile: new dir_fd args
6721         New module opendirat with code taken from fts.
6722         Use this module to let backupfile use a directory file descriptor.
6723         * NEWS: Document the incompatible change.
6724         * lib/backup-find.c (find_backup_file_name):
6725         * lib/backup-rename.c (backup_file_rename):
6726         New arg DIR_FD.
6727         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
6728         (SIZE_MAX): Remove.
6729         Include opendirat.h rather than dirent--.h.
6730         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
6731         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
6732         (backupfile_internal): New arg DIR_FD.  All callers changed.
6733         * lib/fts.c: Include opendirat.h.
6734         (opendirat): Move to opendirat.c.
6735         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
6736         * modules/backupfile (Depends-on): Remove dirfd, opendir.
6737         Add opendirat.
6738         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
6739         Add opendirat.
6741 2018-10-23  Bruno Haible  <bruno@clisp.org>
6743         localename: Simplify support for per-thread locales on Solaris 11.4.
6744         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
6745         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
6746         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
6747         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
6748         specific code.
6749         * lib/localename-table.h: Update comments.
6750         * lib/localename-table.c: Update comments.
6751         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
6752         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
6753         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
6754         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
6755         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
6756         HAVE_NAMELESS_LOCALES here.
6757         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
6758         m4/intlsolaris.m4.
6759         * modules/gettext (Files): Likewise.
6761 2018-10-22  Bruno Haible  <bruno@clisp.org>
6763         std-gnu11: Support Autoconf versions < 2.64.
6764         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
6765         when _AC_DO_LIMIT does not exist.
6767 2018-10-22  Bruno Haible  <bruno@clisp.org>
6769         Assume Autoconf >= 2.63.
6770         * DEPENDENCIES: Mention the requirement.
6772         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
6773         (func_get_filelist): Don't list m4/onceonly.m4 any more.
6774         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
6775         * m4/onceonly.m4: Remove file.
6777         * m4/openmp.m4: Remove file.
6778         * modules/openmp (Files): Remove m4/openmp.m4.
6780         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
6781         htmldir, dvidir, pdfdir, psdir, localedir.
6782         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
6784         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
6785         Autoconf < 2.60.
6786         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
6787         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
6789         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
6790         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
6791         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
6793         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
6794         exists.
6795         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
6797         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
6798         Autoconf < 2.61.
6800         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
6801         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
6802         Autoconf >= 2.52.
6804         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
6805         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
6806         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
6808 2018-10-22  Bruno Haible  <bruno@clisp.org>
6810         Assume Automake >= 1.11.
6811         * m4/configmake.m4: Update comments.
6812         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
6813         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
6814         of 'eval'.
6815         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
6816         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
6817         requires Automake >= 1.11.
6819 2018-10-22  Bruno Haible  <bruno@clisp.org>
6821         localename: Fix typo in comment.
6822         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
6824 2018-10-22  Bruno Haible  <bruno@clisp.org>
6826         Fix failure of 'gnulib-tool --create-testdir' with all modules.
6827         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
6829 2018-10-21  Bruno Haible  <bruno@clisp.org>
6831         locale: Ease integration with GNU libintl.
6832         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
6833         GNULIB_defined_freelocale): New macros.
6835 2018-10-21  Bruno Haible  <bruno@clisp.org>
6837         localename: Fine-tune support for per-thread locales on Solaris 11.4.
6838         * lib/localename-table.h: New file, extracted from lib/localename.c.
6839         * lib/localename-table.c: Likewise.
6840         * lib/localename.c: Include localename-table.h.
6841         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
6842         locale_hash_function instead of pointer_hash.
6843         * modules/localename (Files): Add lib/localename-table.h,
6844         lib/localename-table.c.
6845         (lib_SOURCES): Add localename-table.c.
6846         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
6847         for Solaris 11.4 locale system only on Solaris. Test for it
6848         independently whether getlocalename_l exists.
6849         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
6850         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
6851         HAVE_NAMELESS_LOCALES.
6852         * modules/gettext (Files): Add m4/intlsolaris.m4.
6854 2018-10-21  Bruno Haible  <bruno@clisp.org>
6856         Small update from gettext.
6857         * m4/intl.m4: Update from gettext:
6858         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
6859         mode on AIX.
6860         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
6861         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
6863 2018-10-16  Bruno Haible  <bruno@clisp.org>
6865         mountlist: Remove support for Cray with UNICOS 9.
6866         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
6867         MOUNTED_LISTMNTENT.
6868         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
6870 2018-10-16  Bruno Haible  <bruno@clisp.org>
6872         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
6873         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
6874         STAT_STATFS2_FS_DATA.
6875         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
6876         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
6877         MOUNTED_GETMNT.
6878         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
6879         * lib/getloadavg.c (decstation): Remove definition and case.
6880         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
6881         * lib/getgroups.c: Likewise.
6882         * doc/posix-functions/getgroups.texi: Likewise.
6883         * lib/time.in.h: Update comments.
6885 2018-10-16  Bruno Haible  <bruno@clisp.org>
6887         getloadavg: Remove support for ConvexOS.
6888         * lib/getloadavg.c: Remove convex case.
6890 2018-10-16  Bruno Haible  <bruno@clisp.org>
6892         getloadavg: Remove support for Sony NEWS.
6893         * lib/getloadavg.c: Remove sony_news case.
6895 2018-10-16  Bruno Haible  <bruno@clisp.org>
6897         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
6898         * lib/fsusage.c: Remove _SEQUENT_ case.
6899         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
6900         * lib/mountlist.c: Don't test for MNTTABNAME.
6901         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
6902         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
6903         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
6904         * lib/stat-size.h: Don't mention the Sequent bug.
6905         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
6907 2018-10-16  Bruno Haible  <bruno@clisp.org>
6909         fsusage: Remove support for AIX 3.
6910         * lib/fsusage.c: Remove code for AIX 3.
6911         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
6913 2018-10-16  Bruno Haible  <bruno@clisp.org>
6915         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
6916         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
6917         * lib/fsusage.c: Remove code for AIX PS/2.
6918         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
6919         * lib/getloadavg.c: Likewise.
6921 2018-10-16  Bruno Haible  <bruno@clisp.org>
6923         getloadavg: Remove support for HP-UX on m68k.
6924         * lib/getloadavg.c: Remove hp9000s300 case.
6926 2018-10-16  Bruno Haible  <bruno@clisp.org>
6928         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
6929         * lib/fsusage.c: Remove DOLPHIN case.
6930         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
6931         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
6933 2018-10-16  Bruno Haible  <bruno@clisp.org>
6935         getloadavg: Remove support for Alliant FX/2800.
6936         * lib/getloadavg.c: Remove alliant case.
6938 2018-10-16  Bruno Haible  <bruno@clisp.org>
6940         getloadavg: Remove support for tek4300.
6941         * lib/getloadavg.c: Remove tek4300 case.
6943 2018-10-16  Bruno Haible  <bruno@clisp.org>
6945         getloadavg: Remove support for Ardent.
6946         * lib/getloadavg.c: Remove ardent case.
6948 2018-10-16  Bruno Haible  <bruno@clisp.org>
6950         mountlist: Remove support for SVR2.
6951         Reported by Andrew Borodin <aborodin@vmail.ru> in
6952         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
6953         * lib/mountlist.c: Remove MOUNTED_FREAD case.
6954         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
6955         MOUNTED_FREAD.
6957 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
6959         libc-config: merge from glibc
6960         * lib/cdefs.h (__glibc_has_attribute): New macro.
6962         regex: depend on libc-config
6963         * modules/regex (Depends-on): Add libc-config.
6964         This is needed after the recent autoupdate from glibc.
6966 2018-10-14  Bruno Haible  <bruno@clisp.org>
6968         localename: Add support for per-thread locales on Solaris 11.4.
6969         * lib/locale.in.h (newlocale, freelocale): New declarations.
6970         (duplocale): Declare also when the 'localename' module requests it.
6971         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
6972         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
6973         (struniq): Update.
6974         (struct locale_categories_names, struct locale_hash_node): New types.
6975         (LOCALE_HASH_TABLE_SIZE): New constant.
6976         (locale_hash_table, locale_lock): New variables.
6977         (pointer_hash, get_locale_t_name): New functions.
6978         (newlocale, duplocale, freelocale): New overridden functions.
6979         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
6980         * m4/intlsolaris.m4: New file.
6981         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
6982         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
6983         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
6984         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
6985         declared.
6986         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
6987         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
6988         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
6989         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
6990         * modules/localename (Files): Add intlsolaris.m4.
6991         (Depends-on): Add 'locale'.
6992         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
6993         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
6994         the signatures.
6996 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
6998         timevar: use gethrxtime to get wall clock time
6999         clock_gettime is not portable.  gethrxtime takes the best available
7000         option to get the wall clock time, including clock_gettime (monotonic
7001         clock), and gettime (non monotonic).
7002         Also, using xtime_t instead of float preserves the precision.
7003         Suggested by Bruno Haible.
7004         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
7005         * modules/timevar (Depends-on): We need gethrxtime.
7006         We no longer use times().
7007         (Link): Update.
7008         * lib/timevar.h (timevar_time_def): Use xtime_t.
7009         * lib/timevar.c (set_to_current_time): Use gethrxtime.
7010         (timevar_print): Instead of checking whether the timings themselves
7011         are large enough for the timevar to be printed, check the percentages.
7013 2018-10-14  Bruno Haible  <bruno@clisp.org>
7015         wcsnrtombs: Work around Solaris 11.4 bug.
7016         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
7017         macro.
7018         (gl_FUNC_WCSNRTOMBS): Invoke it.
7019         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
7021 2018-10-14  Bruno Haible  <bruno@clisp.org>
7023         mbsnrtowcs: Work around Solaris 11.4 bug.
7024         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
7025         macro.
7026         (gl_FUNC_MBSNRTOWCS): Invoke it.
7027         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
7029 2018-10-14  Bruno Haible  <bruno@clisp.org>
7031         doc: Update for Solaris 11.4.
7032         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
7033         mention Solaris 11.4.
7034         * m4/printf.m4: Update comments about Solaris.
7035         * m4/log.m4: Likewise.
7036         * m4/log10.m4: Likewise.
7037         * m4/logb.m4: Likewise.
7038         * m4/logbf.m4: Likewise.
7039         * m4/logbl.m4: Likewise.
7040         * m4/rename.m4: Likewise.
7041         * m4/wcrtomb.m4: Likewise.
7042         * m4/hostent.m4: Likewise.
7043         * m4/servent.m4: Likewise.
7045 2018-10-14  Bruno Haible  <bruno@clisp.org>
7047         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
7048         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
7049         pointer.
7050         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
7051         pointer.
7052         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
7053         pointer.
7054         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
7055         pointer.
7056         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
7057         pointer.
7059 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
7061         bootstrap: fix wget command for po files.
7062         * build-aux/bootstrap (po_download_command_format): Fix comment,
7063         and adjust callers.
7065 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
7067         timevar: improve the output format
7068         Suggested by Bruno Haible.
7069         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
7070         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
7071         wall, since its resolution is much higher.
7073 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
7075         timevar: expect that getrusage is available.
7076         Don't keep both times and getrusage as backend: both are guaranteed by
7077         gnulib, a single one suffices.  Using getrusage is open to possibly
7078         tracking other types of resources in the future.
7079         * modules/timevar (Depends-on): Add getrusage.
7080         (configure.ac): Remove gl_TIMEVAR.
7081         (Files): Remove m4/timevar.m4.
7082         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
7083         * lib/timevar.h (timevar_enabled): Clarify documentation.
7084         * lib/timevar.c: Remove all the code about times.
7085         Remove all the CPP guards about getrusage: expect it to be present
7086         (courtesy of gnulib).
7088 2018-10-12  Bruno Haible  <bruno@clisp.org>
7090         mountlist: Improve support for Solaris in 64-bit mode.
7091         Reported by David Wood <David.Wood@deshaw.com> in
7092         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
7093         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
7094         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
7095         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
7097 2018-10-12  Bruno Haible  <bruno@clisp.org>
7099         mountlist: Add support for Minix.
7100         Reported by Assaf Gordon in
7101         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
7102         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
7103         AC_CHECK_FUNCS to check for 'getmntinfo'.
7104         * lib/mountlist.c: Update comments.
7106 2018-10-12  Bruno Haible  <bruno@clisp.org>
7108         Make better use of Autoconf.
7109         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
7110         * m4/manywarnings.m4: Likewise.
7111         * m4/manywarnings-c++.m4: Likewise.
7112         * m4/socklen.m4: Likewise.
7113         * m4/sockpfaf.m4: Likewise.
7114         * m4/stdarg.m4: Likewise.
7115         * m4/visibility.m4: Likewise.
7116         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
7117         indentation.
7118         * m4/ls-mntd-fs.m4: Likewise.
7120 2018-10-11  Bruno Haible  <bruno@clisp.org>
7122         mountlist: Modernize platform lists.
7123         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
7124         platforms, deemphasizing the obsolete ones.
7125         * lib/mountlist.c: Likewise.
7127 2018-10-11  Bruno Haible  <bruno@clisp.org>
7129         getprogname: Add support for 32-bit programs on HP-UX.
7130         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
7131         try the similar functions 32-bit programs on 64-bit HP-UX.
7133 2018-10-11  Bruno Haible  <bruno@clisp.org>
7135         getprogname: Work around program name truncation when possible.
7136         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
7137         possibly use pst_cmd instead.
7139 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7141         fts: cleanup after FTS_NOATIME removal
7142         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
7143         (FTS_STOP): Shrink to minimal values.  We don’t need to
7144         worry about binary compatibility in Gnulib, and the old way
7145         of doing things had a hole in the user options that caused
7146         FTS_OPTIONMASK to not work as desired.
7148 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
7150         fts: remove FTS_NOATIME
7151         This reverts commit da4d6974013c822af1498941e32db774b2031765.
7152         We cannot guarantee that O_NOATIME works: e.g. openat fails
7153         with EPERM if the effective user ID of the caller does not match
7154         the owner of the file and the caller is not privileged.
7155         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
7156         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
7157         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
7158         (FTS_OPTIONMASK): Adjust.
7159         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
7160         (fd_ring_check): Likewise.
7162 2018-10-08  Bruno Haible  <bruno@clisp.org>
7164         csharpcomp*, csharpexec*: Remove support for pnet.
7165         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
7166         HAVE_CSCC.
7167         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
7168         Don't test HAVE_CSCC.
7169         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
7170         (compile_csharp_class): Don't invoke it.
7171         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
7172         HAVE_ILRUN.
7173         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
7174         Don't test HAVE_ILRUN.
7175         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
7176         (execute_csharp_program): Don't invoke it.
7177         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
7178         any more.
7180 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
7182         renameatu: prefer renameat2 to syscall
7183         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
7184         Use renameat2 instead of syscall (Bug#32796).
7185         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
7187 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
7189         bootstrap, gnulib-tool: use https instead of insecure rsync
7190         * build-aux/bootstrap (download_po_files, po_download_command_format):
7191         Don't try using rsync; always use wget over https to fetch PO files.
7192         * gnulib-tool (func_import): Likewise.
7193         * pygnulib/GLImport.py (GLImport.execute): Likewise.
7195 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
7197         bootstrap, gnulib-tool: correct the translations wget command
7198         * build-aux/bootstrap (po_download_command_format2): Restrict
7199         recursion to a single level.
7200         * gnulib-tool (func_import): Likewise.
7201         * pygnulib/GLImport.py (GLImport.execute): Likewise.
7203 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
7205         doc: the gnulib snapshots are not maintained
7206         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
7208 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
7210         timevar: add to lib_SOURCES
7211         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
7213 2018-10-07  Bruno Haible  <bruno@clisp.org>
7215         dirent: Update documentation.
7216         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
7218 2018-10-05  Bruno Haible  <bruno@clisp.org>
7220         strpbrk: Make it possible to namespace the defined symbol.
7221         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
7223 2018-10-05  Bruno Haible  <bruno@clisp.org>
7225         strcspn: Make it possible to namespace the defined symbol.
7226         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
7228 2018-10-05  Bruno Haible  <bruno@clisp.org>
7230         raise: Make it possible to namespace the defined symbol.
7231         * lib/raise.c (raise): Undefine only after the replacement function has
7232         been defined.
7233         (raise): Renamed from rpl_raise.
7234         (raise_nothrow): Move to the end of the compilation unit.
7236 2018-10-05  Bruno Haible  <bruno@clisp.org>
7238         memcmp: Make it possible to namespace the defined symbol.
7239         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
7241 2018-10-05  Bruno Haible  <bruno@clisp.org>
7243         explicit_bzero: Make it possible to namespace the defined symbol.
7244         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
7245         glibc.
7247 2018-10-05  Bruno Haible  <bruno@clisp.org>
7249         mkdir-p: Depend on 'mkdir'.
7250         * modules/mkdir-p (Depends-on): Add 'mkdir'.
7252 2018-10-05  Bruno Haible  <bruno@clisp.org>
7254         tempname: Depend on 'mkdir'.
7255         Reported by Maarten Bosmans <mkbosmans@gmail.com>
7256         at <https://savannah.gnu.org/bugs/?33379>.
7257         * modules/tempname (Depends-on): Add 'mkdir'.
7259 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
7261         timevar: rely on gnulib modules for time portability.
7262         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
7263         * m4/timevar.m4: Don't check for clock_t and struct tms,
7264         guaranteed by gnulib.
7265         * lib/timevar.h: Use extern "C" protection.
7266         Include <stdio.h> for FILE.
7267         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
7268         they are guaranteed by gnulib.
7269         Remove uses of clock as (now useless) fallback.
7271 2018-10-04  Bruno Haible  <bruno@clisp.org>
7273         sh-filename: New module.
7274         * m4/sh-filename.m4: New file.
7275         * modules/sh-filename: New file.
7276         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
7277         "/bin/sh".
7278         * tests/test-posix_spawn1.c (main): Likewise.
7279         * tests/test-posix_spawn2.c (main): Likewise.
7280         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
7281         is_envjavac_gcj43): Likewise.
7282         * lib/javaexec.c (execute_java_class): Likewise.
7283         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
7284         * modules/posix_spawnp-tests (Depends-on): Likewise.
7285         * modules/javacomp (Depends-on): Likewise.
7286         * modules/javaexec (Depends-on): Likewise.
7288 2018-10-04  Bruno Haible  <bruno@clisp.org>
7290         spawn-pipe tests: Avoid test failure on native Windows.
7291         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
7292         that fd 2 is closed.
7294 2018-10-04  Bruno Haible  <bruno@clisp.org>
7296         fcntl: Make it possible to namespace the defined symbol.
7297         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
7298         been defined.
7299         (fcntl): Renamed from rpl_fcntl.
7300         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
7301         from fcntl.
7302         (klibc_fcntl): Move to the end of the compilation unit.
7304 2018-10-02  Bruno Haible  <bruno@clisp.org>
7306         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
7307         * tests/test-vasnprintf.c (test_function): Change the test added on
7308         2018-09-23 to check only the 18 most significant digits.
7310         vasnprintf tests: Avoid test failure on Cygwin.
7311         * tests/test-vasnprintf.c (test_function): Change the test added on
7312         2018-09-23 to check only the 42 most significant digits.
7314 2018-10-01  Bruno Haible  <bruno@clisp.org>
7316         mkostemp, mkostemps: Update documentation.
7317         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
7318         * doc/glibc-functions/mkostemps.texi: Likewise.
7320 2018-10-01  Tom Tromey  <tom@tromey.com>
7322         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
7323         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
7324         on OS X.
7326 2018-09-30  Pádraig Brady  <P@draigBrady.com>
7328         hmac-*: refactor to remove repetitive code
7329         * lib/hmac.c: A new parameterized single implementation.
7330         * lib/hmac-md5.c: Define parameters and include implementation.
7331         * lib/hmac-sha1.c: Likewise.
7332         * lib/hmac-sha256.c: Likewise.
7333         * lib/hmac-sha512.c: Likewise.
7334         * modules/crypto/hmac-md5: Reference the new implementation file.
7335         * modules/crypto/hmac-sha1: Likewise.
7336         * modules/crypto/hmac-sha256: Likewise.
7337         * modules/crypto/hmac-sha512: Likewise.
7338         * tests/test-hmac-md5.c: Refactor common code to a single function.
7339         * tests/test-hmac-sha1.c: Likewise.
7340         * tests/test-hmac-sha256.c: Likewise.
7341         * tests/test-hmac-sha512.c: Likewise.
7343 2018-09-30  Zhang Qing  <zhangqingl@126.com>
7345         hmac-sha512: fix hash for keys > blocksize (128 bytes)
7346         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
7347         key length to that output by sha512, not the blocksize.
7348         Otherwise uninitialized data from the stack
7349         is used when computing the hash.
7350         * tests/test-hmac-sha512.c: Add a shortened key test case.
7351         Reported at https://github.com/coreutils/gnulib/pull/5
7353 2018-09-30  Bruno Haible  <bruno@clisp.org>
7355         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
7356         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
7357         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
7358         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
7359         'unsigned int' before comparison with an unsigned value.
7361 2018-09-30  Bruno Haible  <bruno@clisp.org>
7363         grantpt: Remove unnecessary dependency.
7364         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
7366 2018-09-30  Bruno Haible  <bruno@clisp.org>
7368         timevar: Small tweaks.
7369         * lib/timevar.h: Fix comments. Add parameter names to function
7370         declarations.
7371         * lib/timevar.c: Include timevar.h immediately after config.h.
7372         * lib/timevar.def: Fix comments.
7373         * modules/timevar (Maintainer): List Akim Demaille.
7375 2018-09-30  Bruno Haible  <bruno@clisp.org>
7377         timevar: Include documentation in gnulib manual.
7378         * doc/timevar.texi: Change node and section name to 'Profiling of
7379         program phases'.
7380         In the code snippets, tweak the #includes and use GNU coding style.
7381         * doc/gnulib.texi: Include timevar.texi.
7383 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
7385         timevar: import from Bison.
7386         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
7387         New files.
7388         * lib/timevar.def: New file.
7389         * doc/timevar.texi: New file.
7391 2018-09-26  Bruno Haible  <bruno@clisp.org>
7393         javacomp-script, javacomp: Add preliminary support for Java 12..17.
7394         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
7395         * lib/javacomp.c (default_target_version): Likewise.
7397 2018-09-26  Bruno Haible  <bruno@clisp.org>
7399         javacomp-script, javacomp: Add support for Java 11.
7400         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
7401         target-version 11.
7402         * lib/javaversion.h: Update comments.
7403         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
7404         source_version_index, get_goodcode_snippet, get_failcode_snippet,
7405         TARGET_VERSION_BOUND, target_version_index,
7406         corresponding_classfile_version): Accept source_version 11 and
7407         target_version 11.
7408         * lib/javacomp.h: Update comments accordingly.
7410 2018-09-23  Bruno Haible  <bruno@clisp.org>
7412         vasnprintf: Fix heap memory overrun bug.
7413         Reported by Ben Pfaff <blp@cs.stanford.edu> in
7414         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
7415         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
7416         memory.
7417         * tests/test-vasnprintf.c (test_function): Add another test.
7419 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
7421         maint: mktime.c now shared with glibc
7422         * config/srclist.txt: intprops.h, timegm.c and mktime.c
7423         are now the same in Gnulib and glibc.
7425         mktime: fix _LIBC typo
7426         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
7428 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7430         dfa: optimization for state merge
7431         * lib/dfa.c (merge2): New function.
7432         (merge_nfa_state): Use it.
7434 2018-09-18  Jim Meyering  <meyering@fb.com>
7436         dfa: trivial comment fix: s/is/if/
7437         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
7439 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7441         dfa: use more-informative function name
7442         * lib/dfa.c (maybe_disable_superset_dfa):
7443         Rename from dfautf8noss.  Use change.
7445         dfa: tweak allocation performance
7446         * lib/dfa.c (merge_nfa_state, dfaoptimize):
7447         Prefer ptrdiff_t for indexes some more.
7448         Use char for flags, as it’s wide enough.
7449         Allocate queue and flags together, with one malloc call.
7450         No need to use xnmalloc since the multiplication and
7451         addition cannot overflow (it’s already been checked by
7452         earlier allocation).  Prefer memset to open-coding.
7454         dfa: prune states as we go
7455         * lib/dfa.c (prune): Remove.
7456         dfa: reorder enum for efficiency
7457         (merge_nfa_state): Prune as we go instead of at the end.
7458         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
7460         * lib/dfa.c (END): Now -1 again.  Reorder other elements
7461         of the enumeration to make it easier for GCC to generate
7462         efficient code by using fewer comparisons to check for
7463         ranges of values.
7464         (atom): Take advantage of the reordering.
7466 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7468         dfa: optimize alternation in NFA
7469         Even when similar states exist in alternation, the DFA treats them
7470         as separate items, which may complicate the transition in NFA and
7471         cause slowdown.  This change assembles the states into one.  For
7472         example, ab|ac is changed into a(b|c).  This change speeds-up
7473         matching for many branched patterns.  For example, grep speeds up
7474         more than 30× in:
7476           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
7477           time -p env LC_ALL=C grep -vf in in
7479         * lib/dfa.c (prune): New function.
7480         (merge_nfa_state): New function.  It merges similar NFA states.
7481         (dfaoptimize): New function.  It seeks merged and removed nodes.
7482         (dfaanalyze): Call new function.
7483         (dfautf8noss): Change name from dfaoptimize because of addition of new
7484         function.
7485         (dfacomp): Update caller.
7487         dfa: simplify initial state
7488         Simplifying the initial state enables easier optimization of the NFA.
7489         * lib/dfa.c (enum token): Add new element BEG.
7490         (prtok): Adjust due to adding element BEG.
7491         (dfaparse): Put BEG at a head of tokens.
7492         (state_index): Adjust due to adding element BEG.
7493         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
7494         build initial state.
7495         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
7497 2018-09-18  Bruno Haible  <bruno@clisp.org>
7499         file-has-acl: Fix test failure on Cygwin 2.9.
7500         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
7501         * lib/acl-internal.h: Likewise.
7502         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
7503         * lib/acl-internal.c: Update comments regarding Cygwin.
7504         * lib/acl_entries.c: Likewise.
7505         * lib/file-has-acl.c: Likewise.
7506         (file_has_acl): For Cygwin, use a different way to determine whether
7507         the "default" ACL of a directory is nontrivial.
7508         * lib/get-permissions.c: Update comments regarding Cygwin.
7509         * lib/set-permissions.c: Likewise.
7511 2018-09-18  Bruno Haible  <bruno@clisp.org>
7513         stat-time tests: Fix test failure on Cygwin.
7514         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
7516 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7518         doc: OS X 10.11 lacked ns time functions
7519         According to <https://github.com/zeromq/libzmq/issues/2175>,
7520         nanosecond-resolution timestamp functions were introduced
7521         in macOS 10.12, so document the last version (OS X 10.11)
7522         where they were absent.
7524         gettime: nanotime never existed
7525         Problem reported by Bruno Haible in:
7526         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
7527         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
7528         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
7530 2018-09-18  Bruno Haible  <bruno@clisp.org>
7532         doc: Update statement about target platforms.
7533         Reported by Simon Sobisch.
7534         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
7535         restrictions on MSVC versions.
7537 2018-09-18  Bruno Haible  <bruno@clisp.org>
7539         posix_spawn tests: Fix link error on 64-bit Cygwin.
7540         * tests/test-posix_spawn1.c (environ): Remove declaration.
7541         * tests/test-posix_spawn2.c (environ): Likewise.
7542         * tests/test-posix_spawn3.c (environ): Likewise.
7543         * tests/test-posix_spawn4.c (environ): Likewise.
7544         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
7545         * modules/posix_spawnp-tests (Depends-on): Likewise.
7547 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
7549         timespec: new function current_timespec
7550         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
7551         and don’t worry about it failing on a CLOCK_REALTIME arg.
7552         POSIX requires it to succeed and I don’t know of any
7553         counterexamples where the fallbacks would work.
7554         (current_timespec): New function, taken from Emacs.  It is more
7555         convenient than gettime, and can help register allocation.
7556         * lib/timespec.h: Include arg-nonnull.h.
7557         (current_timespec): New declaration.
7558         (gettime, settime): Declare args to be nonnull.
7559         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
7561 2018-09-16  Bruno Haible  <bruno@clisp.org>
7563         setlocale: Improve locale handling on macOS 10.12 or newer.
7564         * lib/setlocale.c: Include header files for CoreFoundation. Declare
7565         gl_locale_name_canonicalize.
7566         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
7567         and LC_MESSAGES.
7568         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
7570 2018-09-16  Bruno Haible  <bruno@clisp.org>
7572         Update list of locale names with scripts on macOS.
7573         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
7574         match Mac OS X 10.13 and recent glibc.
7576 2018-09-16  Bruno Haible  <bruno@clisp.org>
7578         gettext: Use newer macOS APIs when possible.
7579         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
7580         CFLocaleCopyPreferredLanguages.
7582 2018-09-16  Bruno Haible  <bruno@clisp.org>
7584         localename: Revisit macOS specific code.
7585         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
7586         Fix comments about Mac OS X versions.
7588 2018-09-15  Bruno Haible  <bruno@clisp.org>
7590         setlocale: Improve support for locales not supported by libc.
7591         Reported by Dapeng Gao <peter@dpgao.cc> at
7592         <https://savannah.gnu.org/bugs/?54479>.
7593         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
7594         (libintl_setlocale): Use a more error-tolerant strategy when the locale
7595         to be set is not supported by libc: Emit warnings instead of failing.
7597 2018-09-15  Bruno Haible  <bruno@clisp.org>
7599         strstr, strcasestr: Add workaround against glibc-2.28 bug.
7600         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
7601         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
7602         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
7603         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
7604         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
7605         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
7606         * doc/glibc-functions/strcasestr.texi: Likewise.
7608 2018-09-14  Bruno Haible  <bruno@clisp.org>
7610         doc: Fix bottom of top-level page.
7611         Reported by Akim Demaille <akim.demaille@gmail.com> in
7612         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
7613         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
7614         mode.
7615         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
7616         accordingly.
7618 2018-09-12  Bruno Haible  <bruno@clisp.org>
7620         Add test case from a recent glibc bug.
7621         * tests/test-strstr.c (main): Add test of long needle.
7622         * tests/test-strcasestr.c (main): Likewise.
7623         * tests/test-c-strstr.c (main): Likewise.
7624         * tests/test-c-strcasestr.c (main): Likewise.
7625         * tests/test-memmem.c (main): Likewise.
7627 2018-09-12  Bruno Haible  <bruno@clisp.org>
7629         Apply Eric Blake's improvements from 2011-02-25 to more tests.
7630         * tests/test-c-strstr.c (main): Add the same tests here as well.
7632 2018-09-12  Bruno Haible  <bruno@clisp.org>
7634         Apply Jim Meyering's fix from 2015-01-11 to more tests.
7635         * tests/test-memmem.c (main): Free haystack.
7636         * tests/test-strcasestr.c (main): Likewise.
7637         * tests/test-c-strcasestr.c (main): Likewise.
7639 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
7641         xstrtol: fix missing-TYPE_SIGNED typo
7642         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
7644 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
7646         timespec: fix resolution confusion
7647         In normal usage, clock resolution is given in seconds, but the
7648         code was mistakenly using inverse seconds and calling it
7649         “resolution”.  Fix this, partly by renaming two identifiers.
7650         The old names will be kept for a bit, to ease transition.
7651         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
7652         New constants, replacing TIMESPEC_RESOLUTION and
7653         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
7654         All uses changed.
7656 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
7658         mktime: simplify in prep for glibc merge
7659         * lib/mktime.c, lib/timegm.c [_LIBC]:
7660         Include mktime-internal.h (a small file just for glibc)
7661         instead of using a typedef.
7663 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
7665         intprops: minor clarification of code
7666         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
7667         Use _GL_INT_CONVERT rather than reinventing it.
7669 2018-09-07  Bruno Haible  <bruno@clisp.org>
7671         Fix a comment.
7672         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
7674 2018-09-07  Bruno Haible  <bruno@clisp.org>
7676         posix_spawn_file_actions_addchdir: Add tests.
7677         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
7678         * tests/test-posix_spawn4.c: New file.
7679         * modules/posix_spawn_file_actions_addchdir-tests: New file.
7681 2018-09-07  Bruno Haible  <bruno@clisp.org>
7683         posix_spawn_file_actions_addchdir: New module.
7684         Suggested by Eric Blake in
7685         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
7686         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
7687         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
7688         union member 'chdir_action'.
7689         * lib/spawn_faction_addchdir.c: New file.
7690         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
7691         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
7692         HAVE_WORKING_POSIX_SPAWN.
7693         * lib/spawn_faction_adddup2.c: Likewise.
7694         * lib/spawn_faction_addopen.c: Likewise.
7695         * m4/posix_spawn_faction_addchdir.m4: New file.
7696         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
7697         'posix_spawn_file_actions_addchdir' is present and whether
7698         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
7699         instead of HAVE_WORKING_POSIX_SPAWN.
7700         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
7701         posix_spawn_file_actions_addchdir is declared.
7702         (gl_SPAWN_H_DEFAULTS): Initialize
7703         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
7704         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
7705         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
7706         * modules/spawn (Makefile.am): Substitute
7707         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
7708         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
7709         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
7710         * modules/posix_spawn_file_actions_addchdir: New file.
7711         * modules/posix_spawn_file_actions_addclose (Depends-on,
7712         configure.ac): Test also REPLACE_POSIX_SPAWN.
7713         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
7714         configure.ac): Likewise.
7715         * modules/posix_spawn_file_actions_addopen (Depends-on,
7716         configure.ac): Likewise.
7717         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
7718         signature.
7719         * doc/posix-functions/posix_spawn.texi: Mention the new module.
7720         * doc/posix-functions/posix_spawnp.texi: Likewise.
7722 2018-09-06  Bruno Haible  <bruno@clisp.org>
7724         stddef: Override max_align_t on NetBSD 8.0/x86.
7725         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
7726         the value of __alignof__ (max_align_t).
7727         * doc/posix-headers/stddef.texi: Mention the issue.
7729 2018-09-06  Bruno Haible  <bruno@clisp.org>
7731         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
7732         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
7733         system fcntl.
7734         * doc/posix-functions/fcntl.texi: Document the issue.
7736 2018-09-06  Bruno Haible  <bruno@clisp.org>
7738         count-trailing-zeros tests: Rely on limits-h module.
7739         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
7740         definition.
7741         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
7743 2018-09-06  Bruno Haible  <bruno@clisp.org>
7745         count-leading-zeros tests: Rely on limits-h module.
7746         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
7747         definition.
7748         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
7750 2018-09-06  Bruno Haible  <bruno@clisp.org>
7752         count-one-bits tests: Rely on limits-h module.
7753         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
7754         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
7756 2018-09-06  Bruno Haible  <bruno@clisp.org>
7758         xstrtoll: Rely on limits-h module.
7759         * lib/xstrtol.c: Don't include intprops.h.
7760         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
7761         * modules/xstrtol (Depends-on): Remove 'intprops'.
7762         * modules/xstrtoll (Depends-on): Add 'limits-h'.
7764 2018-09-06  Bruno Haible  <bruno@clisp.org>
7766         strtoll, strtoull: Rely on limits-h module.
7767         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
7768         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
7769         * modules/strtoll (Depends-on): Add limits-h.
7770         * modules/strtoull (Depends-on): Likewise.
7772 2018-09-06  Bruno Haible  <bruno@clisp.org>
7774         intprops tests: Fix compilation error with pre-C99 compiler.
7775         * tests/test-intprops.c (verify_stmt): New macro.
7776         (VERIFY, main): Use it.
7778 2018-09-06  Bruno Haible  <bruno@clisp.org>
7780         limits-h: Provide numerical limits macros.
7781         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
7782         IRIX and for GCC.
7783         (WORD_BIT, LONG_BIT): Define.
7784         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
7785         <limits.h> does not define LLONG_MAX or WORD_BIT.
7786         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
7787         TYPE_MAXIMUM): New macros, from intprops.h.
7788         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
7789         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
7790         provides.
7792 2018-09-05  Bruno Haible  <bruno@clisp.org>
7794         fcntl: Don't access nonexistent optional argument.
7795         Reported by Frank Busse <f.busse@imperial.ac.uk> in
7796         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
7797         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
7798         don't consume an argument. For actions that take an 'int' argument,
7799         consume an 'int' argument.
7801 2018-09-05  Eric Blake  <eblake@redhat.com>
7803         doc: mention environ pitfall
7804         * doc/posix-functions/environ.texi (environ): Assigning NULL to
7805         environ is a glibc extension.
7807 2018-09-03  Bruno Haible  <bruno@clisp.org>
7809         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
7810         Reported by Antoine Luong <antoine.luong@c-s.fr> in
7811         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
7812         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
7813         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
7814         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
7816 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
7818         mktime: fix unlikely race+overflow bug
7819         Problem reported by Alexandre Oliva in:
7820         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
7821         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
7822         to avoid an unlikely race if the compiler delays a load and
7823         if this cascades into a signed integer overflow.
7825 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
7827         mktime, timegm: simplify glibc time64_t
7828         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
7829         Now long int, not time_t, since long int is the longstanding type
7830         for this in glibc and there is no need to change it even if time_t
7831         becomes 64 bits - even int would do, though this would be a change
7832         to the glibc generated code.  When this change is merged into
7833         glibc, it should simplify the time_t vs time64_t situation.
7835         mktime, timegm: simplify merge to glibc
7836         Move code around to make a merge to glibc easier to audit.
7837         This should not change behavior.
7838         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7839         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7840         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7841         simplify later conditionals; default the others to zero.  In uses
7842         of these conditionals, explicitly spell out how _LIBC affects
7843         things, so it’s easier to review from a glibc viewpoint.
7844         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7845         compartmentalize tzset issues.  Move system-dependent tzsettish
7846         code here from mktime.
7847         (mktime): Move tzsettish code to my_tzset, and move
7848         localtime_offset to within mktime so that it doesn’t
7849         need a separate ifdef.
7851 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
7853         intprops: avoid evaluation of some expressions
7854         This makes EXPR_SIGNED (e) easier to use, as it no longer
7855         evaluates the expression E.  Formerly, E was required to be free
7856         of side effects.
7857         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
7858         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
7859         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
7861 2018-08-23  Bruno Haible  <bruno@clisp.org>
7863         getcwd: Add cross-compilation guesses.
7864         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
7865         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
7866         Based on a patch by Paul Eggert.
7867         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
7868         guesses for all GNU systems.
7870 2018-08-19  Bruno Haible  <bruno@clisp.org>
7872         glob-h: Formalize side effects from other modules.
7873         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
7874         * m4/glob.m4 (gl_GLOB): Invoke it.
7876         fnmatch-h: Formalize side effects from other modules.
7877         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
7878         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
7880         limits-h: Formalize side effects from other modules.
7881         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
7882         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
7884 2018-08-19  Bruno Haible  <bruno@clisp.org>
7886         getpass: Move declaration to <unistd.h>.
7887         * lib/unistd.in.h (getpass): New declaration.
7888         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
7889         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
7890         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
7891         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
7892         On glibc systems, don't set REPLACE_GETPASS to 1.
7893         * modules/getpass (Depends-on): Add 'unistd'.
7894         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
7895         (Include): Specify <unistd.h> instead of "getpass.h".
7896         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
7897         (configure.ac): Sync with the configure.ac section of modules/getpass.
7898         (Include): Specify <unistd.h> instead of "getpass.h".
7899         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
7900         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
7901         REPLACE_GETPASS.
7902         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
7903         REPLACE_GETPASS.
7904         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
7905         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
7906         and musl.
7907         * NEWS: Mention the change.
7909 2018-08-19  Bruno Haible  <bruno@clisp.org>
7911         glob: Fix over-optimization due to attribute __nonnull__.
7912         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
7914 2018-08-19  Bruno Haible  <bruno@clisp.org>
7916         glob: Fix another compilation error when glob.h is not replaced.
7917         Reported by Reuben Thomas <rrt@sc3d.org> in
7918         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
7919         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
7920         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
7922 2018-08-18  Bruno Haible  <bruno@clisp.org>
7924         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
7925         Reported by Reuben Thomas <rrt@sc3d.org> in
7926         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
7927         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
7928         in config.h.
7930 2018-08-18  Bruno Haible  <bruno@clisp.org>
7932         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
7933         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
7934         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
7935         Solution proposed by Eli Zaretskii.
7936         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
7937         * lib/gettimeofday.c (GetProcAddress): Likewise.
7938         * lib/link.c (GetProcAddress): Likewise.
7939         * lib/physmem.c (GetProcAddress): Likewise.
7940         * lib/poll.c (GetProcAddress): Likewise.
7941         * lib/select.c (GetProcAddress): Likewise.
7942         * lib/stat-w32.c (GetProcAddress): Likewise.
7944 2018-08-18  Bruno Haible  <bruno@clisp.org>
7946         glob: Fix another compilation error when glob.h is not replaced.
7947         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
7948         * lib/globfree.c: Include <libc-config.h>.
7950 2018-08-18  Bruno Haible  <bruno@clisp.org>
7952         glob: Fix compilation error when glob.h is not replaced.
7953         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
7954         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
7955         * lib/glob_pattern_p.c: Include <libc-config.h>.
7956         * modules/glob (Depends-on): Add libc-config.
7958 2018-08-18  Bruno Haible  <bruno@clisp.org>
7960         scratch_buffer: Add tests.
7961         * tests/test-scratch-buffer.c: New file.
7962         * modules/scratch_buffer-tests: New file.
7964 2018-08-18  Bruno Haible  <bruno@clisp.org>
7966         scratch_buffer: Fix include file.
7967         Reported by Reuben Thomas <rrt@sc3d.org> in
7968         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
7969         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
7970         double-inclusion guard.
7972 2018-08-18  Bruno Haible  <bruno@clisp.org>
7974         glob-h: Revert Paul Eggert's revert.
7975         * m4/glob_h.m4: Revert to previous state.
7976         * modules/glob-h: Likewise.
7978 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7980         glob-h: always build glob.h
7981         This works around a problem reported by Reuben Thomas in:
7982         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
7983         This workaround always builds glob.h, even on platforms that
7984         do not need it; perhaps this could be improved someday.
7985         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
7986         is always created now.
7987         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
7989 2018-08-13  Bruno Haible  <bruno@clisp.org>
7991         monetary: Simplify m4 code.
7992         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
7993         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
7995 2018-08-13  Bruno Haible  <bruno@clisp.org>
7997         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
7998         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
7999         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
8000         and by Paul J. Lucas <paul@lucasmail.org> in
8001         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
8002         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
8004 2018-08-11  Bruno Haible  <bruno@clisp.org>
8006         setlocale: Trivial simplification.
8007         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
8009 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
8011         verify: port 'assume' to traditional tools
8012         * lib/verify.h (assume): Port better to Oracle Studio 12.6
8013         and other tools that use /*NOTREACHED*/ comments.
8015 2018-08-10  Bruno Haible  <bruno@clisp.org>
8017         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
8018         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
8019         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
8020         'fnmatch-gnu' is in use.
8022 2018-08-07  Bruno Haible  <bruno@clisp.org>
8024         glob-h: Add tests.
8025         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
8026         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
8027         tests/test-glob-h.c.
8028         * modules/glob-h-tests: New file.
8029         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
8030         conditions.
8031         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
8032         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
8034 2018-08-07  Bruno Haible  <bruno@clisp.org>
8036         glob-h: New module.
8037         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
8038         replacements.
8039         * lib/glob.c: Include <config.h>.
8040         * m4/glob_h.m4: New file.
8041         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
8042         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
8043         REPLACE_GLOB_PATTERN_P as appropriate.
8044         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
8045         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
8046         * modules/glob-h: New file.
8047         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
8048         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
8049         lstat, sys_stat. Change conditions.
8050         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
8051         REPLACE_GLOB_PATTERN_P. Set module indicator.
8052         (Makefile.am): Remove code that is moved to glob-h.
8053         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
8054         * modules/posixcheck (Depends-on): Add glob-h.
8056 2018-08-06  Bruno Haible  <bruno@clisp.org>
8058         Force generation of substitute .h file when C++ support is enabled.
8059         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
8060         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
8061         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
8062         FNMATCH_H to non-empty.
8063         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
8064         ICONV_H to non-empty.
8065         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
8066         MONETARY_H to non-empty.
8067         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
8068         non-empty.
8070 2018-08-06  Bruno Haible  <bruno@clisp.org>
8072         fnmatch-h: Fix test compilation error on mingw (regression from today).
8073         * lib/fnmatch.in.h: Fix conditions.
8075 2018-08-06  Bruno Haible  <bruno@clisp.org>
8077         sys_resource: Relicense under LGPLv2+.
8078         John Malmberg's approval is in
8079         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
8080         * modules/sys_resource (License): Change to LGPLv2+.
8082 2018-08-06  Bruno Haible  <bruno@clisp.org>
8084         fnmatch-h: Add tests.
8085         * tests/test-fnmatch-h.c: New file.
8086         * modules/fnmatch-h-tests: New file.
8087         * tests/test-fnmatch-h-c++.cc: New file.
8088         * modules/fnmatch-h-c++-tests: New file.
8090 2018-08-06  Bruno Haible  <bruno@clisp.org>
8092         fnmatch-h: New module.
8093         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
8094         replacements.
8095         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
8096         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
8097         'posixcheck' warning.
8098         * m4/fnmatch_h.m4: New file.
8099         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
8100         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
8101         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
8102         as appropriate.
8103         * modules/fnmatch-h: New file.
8104         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
8105         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
8106         conditions.
8107         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
8108         indicator.
8109         (Makefile.am): Remove code that is moved to fnmatch-h.
8110         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
8111         REPLACE_FNMATCH.
8112         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
8113         * modules/posixcheck (Depends-on): Add fnmatch-h.
8115 2018-08-06  Bruno Haible  <bruno@clisp.org>
8117         Enable more C++ tests.
8118         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
8119         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
8120         * modules/strings-tests (Depends-on): Add strings-c++-tests.
8121         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
8122         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
8124 2018-08-06  Bruno Haible  <bruno@clisp.org>
8126         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
8127         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
8128         getopt.h.
8129         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
8131 2018-08-05  Bruno Haible  <bruno@clisp.org>
8133         utime-h: Generate header file when module 'posixcheck' is in use.
8134         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
8135         UTIME_H to non-empty.
8137 2018-08-05  Bruno Haible  <bruno@clisp.org>
8139         monetary: Generate header file when module 'posixcheck' is in use.
8140         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
8141         use, set MONETARY_H to non-empty.
8143 2018-08-05  Bruno Haible  <bruno@clisp.org>
8145         iconv-h: Generate header file when module 'posixcheck' is in use.
8146         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
8147         set ICONV_H to non-empty.
8149 2018-08-05  Bruno Haible  <bruno@clisp.org>
8151         Optimize the "checking whether ... is declared without a macro" checks.
8152         Suggested by Paul Eggert in
8153         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
8154         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
8155         Gnulib module 'posixcheck' is not in use.
8157 2018-08-05  Bruno Haible  <bruno@clisp.org>
8159         iconv-h: Enable 'posixcheck' warnings.
8160         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
8161         iconv_open.
8162         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
8164 2018-08-05  Bruno Haible  <bruno@clisp.org>
8166         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
8167         * m4/extern-inline.m4: Add more comments.
8168         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
8169         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
8170         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
8172 2018-08-04  Bruno Haible  <bruno@clisp.org>
8174         New module 'posixcheck'.
8175         * modules/posixcheck: New file.
8176         * m4/posixcheck.m4: New file.
8177         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
8178         (Which modules?): Reference it.
8180 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
8182         dfa: fix memory leak
8183         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
8185 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
8187         ieee754-h: new module
8188         It looks like Emacs can use this for some NaN processing.
8189         Emacs uses it only on double NaNs so it should be safe.
8190         * MODULES.html.sh (func_all_modules): Add ieee754-h.
8191         * config/srclist.txt: Mention ieee754.h in a comment.
8192         * doc/glibc-headers/ieee754.texi (ieee754.h):
8193         Gnulib now has a substitute that should work
8194         except for long double and for non-IEEE platforms.
8195         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
8196         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
8198 2018-07-27  Bruno Haible  <bruno@clisp.org>
8200         iswcntrl: Mention minor problem on macOS.
8201         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
8203 2018-07-26  Colin Watson  <cjwatson@debian.org>
8205         bootstrap, gnulib-tool: fix translations rsync
8206         Previously, we created files such as $pobase/Makefile.in.in and then the
8207         subsequent rsync would immediately delete them.
8208         * build-aux/bootstrap (po_download_command_format): Avoid deleting
8209         non-.po files in target directory when rsyncing translations.
8210         * gnulib-tool (func_import): Likewise.
8211         * pygnulib/GLImport.py (GLImport.execute): Likewise.
8213 2018-07-25  Jim Meyering  <meyering@fb.com>
8215         bootstrap: reinstate definition fo gnulib_mk.
8216         That variable is used at least by cppi.
8217         * build-aux/bootstrap (gnulib_mk): Restore definition.
8218         This reverts the deletion from v0.1-1844-gc66dba9ba.
8220 2018-07-23  Bruno Haible  <bruno@clisp.org>
8222         doc: For module names, use texinfo markup @code{} or @samp{}.
8223         * doc/alloca.texi: Mark gnulib module names with @code.
8224         * doc/alloca-opt.texi: Likewise.
8225         * doc/quote.texi: Likewise.
8226         * doc/posix-functions/freopen.texi: Likewise.
8227         * doc/posix-functions/open.texi: Likewise.
8228         * doc/posix-functions/readlink.texi: Likewise.
8229         * doc/posix-functions/readlinkat.texi: Likewise.
8230         * doc/posix-functions/stdout.texi: Likewise.
8231         * doc/posix-functions/stderr.texi: Likewise.
8232         * doc/posix-functions/unlink.texi: Likewise.
8233         * doc/posix-functions/unlinkat.texi: Likewise.
8234         * doc/posix-functions/utime.texi: Likewise.
8235         * doc/posix-functions/utimensat.texi: Likewise.
8236         * doc/posix-functions/utimes.texi: Likewise.
8237         * doc/posix-headers/stdint.texi: Likewise.
8238         * doc/glibc-functions/futimesat.texi: Likewise.
8239         * doc/glibc-functions/lutimes.texi: Likewise.
8240         * doc/glibc-functions/memmem.texi: Likewise.
8242 2018-07-23  Werner LEMBERG  <wl@gnu.org>
8244         doc: Avoid some overfull lines in the TeX output.
8245         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
8246         @example.
8247         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
8248         newline before the long URL.
8249         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
8250         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
8251         Add line breaks in code snippets.
8253 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
8255         hard-locale: simplify by removing hard-locale.m4
8256         * m4/hard-locale.m4: Remove.
8257         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
8258         (configure.ac): Do not call gl_HARD_LOCALE.
8260         gnulib-tool: limit line length for git send-email
8261         * gnulib-tool (func_import): Break actioncmd log line
8262         into multiple lines.
8264 2018-07-16  Bruno Haible  <bruno@clisp.org>
8266         ffs: Ensure declaration on mingw.
8267         Reported by Daniel P. Berrangé <berrange@redhat.com>
8268         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
8269         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
8270         also declared.
8272 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
8274         regex-tests: add dependency
8275         * modules/regex-tests (Depends-on): Add gettext-h.
8276         This is needed given the recent changes to regex,
8277         which no longer depends on gettext-h.
8279 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8281         regex: now in sync with glibc
8282         * config/srclist.txt: Gnulib and glibc regex code
8283         are synchronized again.
8285 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8287         renameatu: rename from renameat2
8288         It's looking like Glibc will add a renameat2 function
8289         that is incompatible with Gnulib renameat2; see:
8290         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
8291         To help avoid future confusion, rename renameat2 to something else.
8292         Use the name 'renameatu', as the Gnulib function is close to the
8293         Glibc function.  Perhaps someday there will also be a renameat2
8294         Gnulib module, which mimicks the future glibc renameat2, but that
8295         can wait as nobody seems to need such a module now.
8296         * NEWS: Mention this.
8297         * lib/renameatu.c: Rename from lib/renameat2.c.
8298         * lib/renameatu.h: Rename from lib/renameat2.h.
8299         * modules/renameatu: Rename from modules/renameat2.
8300         * modules/renameatu-tests: Rename from modules/renameat2-tests.
8301         All uses of "renameat2" in identifiers or file name
8302         changed to "renameatu", except for two instances in
8303         lib/renameatu.c that deal with the Linux kernel's
8304         renameat2 syscall.
8306 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
8308         gnulib-tool: minor tweaks for --gnu-make
8309         * gnulib-tool: Do not allow --gnu-make in test modes,
8310         since they all require automake.
8311         (func_emit_lib_Makefile_am): Don’t emit automake comment
8312         if --gnu-make.
8314         regex: work around conditional-dependencies glitch
8315         * modules/regex (Depends-on): Add langinfo.
8316         Without this change, I had problems building an experimental
8317         version of GNU Emacs.  The symptom of the bug was a message
8318         ‘./configure: line 12726: test: =: unary operator expected’.
8319         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
8320         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
8321         was unset.  Although gl_FUNC_NL_LANGINFO has
8322         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
8323         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
8324         --conditional-dependencies sometimes arranges for the
8325         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
8326         code.  Since the regex code includes <langinfo.h> it should be
8327         depending on the langinfo module anyway, and this happens to work
8328         around the bug, so install that as a workaround for now.  To
8329         reproduce the original problem, run the following shell script on
8330         the version of Gnulib just before this patch was installed.
8331                 rm -fr foo
8332                 mkdir foo
8333                 cat >foo/configure.ac <<'EOF'
8334                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
8335                 gl_EARLY
8336                 gl_INIT
8337                 AC_OUTPUT
8338                 EOF
8339                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
8340                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
8341                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
8342                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
8343                 cd foo
8344                 aclocal -I m4
8345                 autoconf
8346                 ./configure --with-included-regex
8348 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
8350         wchar: fix bug when checking for ‘inline’
8351         I discovered this when looking into using the regex module
8352         with Emacs.
8353         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
8354         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
8355         conftest1.c and conftest2.c but these files were not created.
8356         As far as I can see, this check never worked and nobody reported
8357         it until now, which is a bit worrisome.
8359 2018-06-30  Jim Meyering  <meyering@fb.com>
8361         bootstrap: s/--option val/--option=val/
8362         * build-aux/bootstrap (gnulib_tool_options): Change the
8363         spelling of "--option val" pairs to "--option=val", for
8364         aesthetics, and also so that this file no longer triggers
8365         a common help2man syntax-check warning when copied into
8366         projects like grep, gzip, etc.
8368 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
8370         manywarnings: omit -Wswitch-default
8371         This should make things more consistent, as we already ignore
8372         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
8373         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
8374         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
8375         Add -Wswitch-default.
8376         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
8377         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
8378         Remove -Wswitch-default.
8380         regex: revert most trimming
8381         Problems reported by Bruno Haible in:
8382         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
8383         * modules/regex (Depends-on): Add lock, memcmp, memmove,
8384         and wctype back in.  lock because regex users shouldn’t
8385         need to know that regex needs locking, and the rest because
8386         gnulib-tool should ordinarily ignore them anyway.
8388 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8390         regex: trim module dependencies
8391         * modules/regex (Depends-on): Remove gettext-h and lock,
8392         since the regex code should work OK without these modules,
8393         and Emacs uses it that way.  Also remove memcmp, memmove,
8394         and wctype, as these modules are obsolete and should not be
8395         needed any more.
8397 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
8399         regex: glibc does not use intprops.h
8400         Maybe we can talk glibc into using intprops.h someday, but
8401         now doesn’t seem to be a good time.
8402         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
8403         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
8404         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
8406 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
8408         regex: port to recently proposed glibc regex merge
8409         This patch is inspired by Adhemerval Zanella's recent proposal
8410         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
8411         to merge glibc and Gnulib regex.  It aims to simplify the merge on
8412         the glibc side, without keeping Gnulib portable.
8413         * lib/regex.h: Fix a problem with glibc installed-header checking,
8414         as follows:
8415         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
8416         (_Restrict_arr_): Prefer __restrict_arr if defined,
8417         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
8418         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
8419         (build_wcs_upper_buffer, build_upper_buffer)
8420         (re_string_translate_buffer, re_string_context_at):
8421         Move decls here from lib/regex_internal.h, for glibc internal tests.
8422         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
8423         glibc BZ #18496.
8424         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
8425         -Wunused-value.
8426         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
8427         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
8428         (bitset_mask): Now static inline, and without any __attribute__
8429         ((unused)) decoration, for glibc internal tests.
8431 2018-06-25  Bruno Haible  <bruno@clisp.org>
8433         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
8434         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
8435         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
8436         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
8437         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
8438         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
8439         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
8440         / -lthread / -lpth does not get optimized away by a preceding
8441         --as-needed option.
8443 2018-06-25  Bruno Haible  <bruno@clisp.org>
8445         Continue to use spaces for indentation, not tabs.
8446         * MODULES.html.sh: Untabify.
8447         * doc/regex.texi: Likewise.
8448         * lib/acl-internal.c: Likewise.
8449         * lib/dfa.c: Likewise.
8450         * lib/exclude.c: Likewise.
8451         * lib/exclude.h: Likewise.
8452         * lib/get-permissions.c: Likewise.
8453         * lib/gettimeofday.c: Likewise.
8454         * lib/parse-datetime.y: Likewise.
8455         * lib/pselect.c: Likewise.
8456         * lib/set-permissions.c: Likewise.
8457         * lib/time.in.h: Likewise.
8458         * m4/canonicalize.m4: Likewise.
8459         * m4/gc.m4: Likewise.
8460         * m4/gnulib-common.m4: Likewise.
8461         * m4/pthread_sigmask.m4: Likewise.
8462         * m4/vararrays.m4: Likewise.
8463         * tests/test-digest.h: Likewise.
8464         * tests/test-fcntl-h.c: Likewise.
8465         * tests/test-timespec.c: Likewise.
8466         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
8468 2018-06-25  Bruno Haible  <bruno@clisp.org>
8470         manywarnings: Don't enable -Wjump-misses-init warnings by default.
8471         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
8472         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
8473         -Wjump-misses-init.
8475 2018-06-25  Jim Meyering  <meyering@fb.com>
8477         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
8478         * lib/acl-internal.h (free_permission_context): Remove that
8479         attribute directive.  Otherwise, it would provoke this from GCC 9:
8480         lib/acl-internal.h:300:3: error: 'const' attribute on function \
8481           returning 'void' [-Werror=attributes]
8483 2018-06-24  Jim Meyering  <meyering@fb.com>
8485         parse-datetime: accommodate gcc-4.8.5
8486         Bruno Haible reported the build failure in
8487         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
8488         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
8489         on declaration of new local.
8491 2018-06-24  Bruno Haible  <bruno@clisp.org>
8493         af_alg: Fail in continuable manner on Linux/powerpc64le.
8494         Reported by Assaf Gordon <assafgordon@gmail.com>
8495         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
8496         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
8497         byte send() as the first round.
8499 2018-06-24  Bruno Haible  <bruno@clisp.org>
8501         af_alg: Fix state of stream after sendfile() succeeds.
8502         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
8503         the stream is correctly positioned afterwards.
8504         * modules/crypto/af_alg (Depends-on): Add fflush.
8505         * tests/test-digest.h (test_digest_on_files): Verify that after the
8506         operation the stream is positioned at end of file.
8508 2018-06-24  Jim Meyering  <meyering@fb.com>
8510         canon-host: take GCC9's advice rather than ignoring warning
8511         Pádraig Brady suggested not to ignore this GCC9 advice.
8512         * lib/canon-host.c: Undo preceding change.
8513         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
8515         parse-datetime.y: avoid spurious GCC 9 warning
8516         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
8517         a function local prior to the first "goto fail".  The prior use would
8518         evoke this:
8519         parse-datetime.y: In function 'parse_datetime2':
8520         parse-datetime.y:1791:19: error: jump skips variable initialization \
8521           [-Werror=jump-misses-init]
8522         parse-datetime.y:2385:2: note: label 'fail' defined here
8523         parse-datetime.y:188:43: note: '({anonymous})' declared here
8524         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
8526         canon-host.c: avoid spurious GCC 9 warning
8527         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
8529         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
8530         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
8531         * m4/manywarnings.m4: Remove them.
8532         Otherwise, building coreutils, I would see this:
8533         cc1: error: deprecated command line option '-Wchkp' [-Werror]
8534         cc1: error: -Wabi won't warn about anything [-Werror=abi]
8535         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
8536           which is also used by default
8537         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
8539 2018-06-24  Bruno Haible  <bruno@clisp.org>
8541         af_alg tests: Add another test.
8542         * tests/test-digest.h (test_digest_on_files): Also check a large file
8543         with a skipped header.
8544         * tests/test-md5.c: Include macros.h.
8545         * tests/test-sha1.c: Likewise.
8546         * tests/test-sha256.c: Likewise.
8547         * tests/test-sha512.c: Likewise.
8548         * modules/crypto/md5-tests (Files): Add tests/macros.h.
8549         * modules/crypto/sha1-tests (Files): Likewise.
8550         * modules/crypto/sha256-tests (Files): Likewise.
8551         * modules/crypto/sha512-tests (Files): Likewise.
8553 2018-06-24  Pádraig Brady  <P@draigBrady.com>
8555         maint: clarify comments about sticky EOF
8556         * lib/af_alg.c: Be more direct that we can't
8557         assume stickiness of EOF for portability reasons.
8558         * lib/md5.c: Clarify that this isn't just a glibc issue.
8559         * lib/sha1.c: Likewise.
8560         * lib/sha256.c: Likewise.
8561         * lib/sha512.c: Likewise.
8563 2018-06-24  Bruno Haible  <bruno@clisp.org>
8565         af_alg: Comment and style improvements.
8566         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
8567         (afalg_buffer, afalg_stream): Improve comments.
8569 2018-06-24  Pádraig Brady  <P@draigBrady.com>
8571         af_alg: disable kernel hash functions by default
8572         All the kernel routines were seen to be significantly slower
8573         with these relatively recent components on an i3-2310M system:
8574           kernel-4.10.6-200.fc25.x86_64
8575           openssl-1.0.2m-1.fc25.x86_64
8576         sha1 was nearly twice as slow in the kernel for example.
8577         Further considerations why this should not be the default, at:
8578         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
8580         * m4/af_alg.m4: Require --with-linux-crypto to enable.
8581         * m4/gl-openssl.m4: Tweak accordingly.
8583 2018-06-24  Pádraig Brady  <P@draigBrady.com>
8585         af_alg: avoid hangs when reading from streams
8586         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
8587         and thus avoid doing a fread() when feof() is set.
8588         * lib/md5.c: Ensure feof() is called before fread().
8589         * lib/sha1.c: Likewise.
8590         * lib/sha256.c: Likewise.
8591         * lib/sha512.c: Likewise.
8593 2018-06-24  Pádraig Brady  <P@draigBrady.com>
8595         af_alg: fix error handling when hash not returned
8596         * lib/af_alg.c (afalg_stream): Handle the case where we've
8597         successfully written data to the kernel in the read/write loop,
8598         but the kernel doesn't respond with the hash.
8600 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
8602         libc-config: merge from glibc
8603         * lib/cdefs.h (__inline, __restrict):
8604         Copy from current glibc.  This fixes glibc bug 17721,
8605         which Gnulib had already fixed in a different way.
8606         (__nonnull): Lessen the distance from glibc by using the
8607         glibc definition inside an ‘#ifndef __nonnull’.
8608         (__attribute_nonstring__): New macro, copied from
8609         current glibc.
8610         * lib/libc-config.h (__attribute_nonstring__): New undef.
8611         (__restrict): Remove; workaround no longer needed.
8612         Keep the __inline workaround, though, as it uses HAVE___INLINE to
8613         support more compilers than the glibc __inline can.
8615 2018-06-24  Bruno Haible  <bruno@clisp.org>
8617         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
8618         * lib/mbrtowc.c (enc_t): New enum type.
8619         (locale_enc, locale_enc_cached): New functions.
8620         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
8621         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
8622         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
8623         instead.
8624         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
8625         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
8626         * modules/wcwidth (configure.ac): Invoke it.
8628 2018-06-24  Bruno Haible  <bruno@clisp.org>
8630         wchar-single: Fix test failure in wcwidth tests.
8631         * tests/test-wcwidth.c (main): If the wchar-single module is present,
8632         skip the tests in the C locale.
8634 2018-06-23  Pádraig Brady  <P@draigBrady.com>
8636         crypto: mention --without-linux-crypto in --with-openssl --help
8637         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
8638         routines take precedence in --with-openssl help output.
8640 2018-06-23  Pádraig Brady  <P@draigBrady.com>
8642         wchar-single: a new module to enable optimizations in wchar replacements
8643         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
8644         GNULIB_WCHAR_SINGLE is enabled.
8645         * lib/wcwidth.c (wcwidth): Likewise.
8647 2018-06-23  Bruno Haible  <bruno@clisp.org>
8649         libc-config: Fix conflict with FreeBSD include files.
8650         * lib/cdefs.h (__nonnull): Remove definition.
8651         * lib/libc-config.h (__nonnull): Remove undefinition.
8653 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
8655         random_r: do not crash if state is unaligned
8656         Problem reported by Bruce Korb in:
8657         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
8658         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
8659         with 'cc -O2 -xmemalign=8s'.
8660         * lib/random_r.c: Include string.h, for memcpy.
8661         (get_int32, set_int32): New functions.
8662         (__srandom_r, __initstate_r, __setstate_r, __random_r):
8663         Use them to avoid assumption that state pointer is aligned.
8664         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
8665         * tests/test-random_r.c (test_failed): New function.
8666         (main): Use it, to test for alignment bugs.
8668         random_r: omit unnecessary include
8669         * lib/random_r.c: Do not include limits.h.
8671         random, random_r: merge from glibc
8672         * lib/random.c, lib/random_r.c:
8673         Include libc-config.h if !_LIBC, not config.h unilaterally.
8674         * lib/random.c:
8675         Do not include stdint.h or time.h; not needed.
8676         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
8677         (unsafe_state): Rename from generator.  All uses changed.
8678         Use C99-style initializers.
8679         (__random, __srandom, __initstate, __setstate): Rename from
8680         non-underscored version, but define it to non-underscored version
8681         on Gnulib.  Add a lock.
8682         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
8683         Likewise.
8684         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
8685         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
8686         (__srandom_r): Use int32_t instead of long int where int32_t will do.
8687         (__random_r): Use uint32 to fix glibc bug 17343.
8688         * modules/random, modules/random_r (Depends-on): Add libc-config.
8689         Depend on stdint only if $HAVE_RANDOM = 0.
8691 2018-06-19  Jim Meyering  <meyering@fb.com>
8693         README-release: also run any check-very-expensive tests
8694         * top/README-release: Adjust instructions so they run the
8695         check-very-expensive tests when there is such a target.
8697 2018-06-18  Bruno Haible  <bruno@clisp.org>
8699         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
8700         * m4/pthread_rwlock_rdlock.m4: Add comment.
8701         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
8702         are reader-preferring in glibc.
8703         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
8704         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
8706 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
8708         crypto: use byteswap
8709         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
8710         * lib/sm3.c: Include <byteswap.h>.
8711         (SWAP): Use its macros rather than reinventing the wheel.
8712         * modules/crypto/md4, modules/crypto/md5-buffer:
8713         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
8714         * modules/crypto/sha512-buffer, modules/crypto/sm3:
8715         (Depends-on): Add byteswap.
8717 2018-06-17  Pádraig Brady  <P@draigBrady.com>
8719         gendocs.sh: fix support for legacy --texi2html
8720         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
8721         to the default makeinfo invocation.
8722         Reported by Bruce Korb
8724 2018-06-17  Bruno Haible  <bruno@clisp.org>
8726         gettext po infrastructure: Update from current gettext git.
8727         Reported by Akim Demaille <akim@lrde.epita.fr>.
8728         * build-aux/po/Makefile.in.in: Update from current gettext git.
8729         * build-aux/po/remove-potcdate.sin: Likewise.
8730         * config/srclist.txt: Temporarily disable sync for these files.
8732 2018-06-17  Bruno Haible  <bruno@clisp.org>
8734         getloadavg: Return 0 on Windows without Cygwin.
8735         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
8737 2018-06-17  Paul Smith  <psmith@gnu.org>
8739         getloadavg: Allow building on Windows without Cygwin
8740         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
8741         * m4/getloadavg.m4: Check for unistd.h.
8743 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
8745         Port crypto/af_alg to GCC 4.8.4
8746         Problem reported by Peter Simons in:
8747         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
8748         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
8750 2018-05-27  Colin Watson  <cjwatson@debian.org>
8752         bootstrap: document source fetching in --help
8753         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
8755 2018-04-09  Colin Watson  <cjwatson@debian.org>
8757         bootstrap: allow non-submodule control of gnulib
8758         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
8759         bootstrap.conf when fetching gnulib using "git clone" or via
8760         GNULIB_SRCDIR.
8762 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8764         crypto: omit stream ops Emacs doesn’t need
8765         * lib/md5.c (md5_stream):
8766         * lib/sha1.c (sha1_stream):
8767         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
8768         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
8769         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
8770         defined.  Emacs needs this, as it does not use the stream
8771         operations and doesn’t need all the af_alg stuff we’ve recently
8772         added.  Perhaps a similar change is needed to the other crypto
8773         modules, but this patch changes only those needed for Emacs.
8774         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
8775         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
8776         New modules, used by Emacs.
8777         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8778         * modules/crypto/sha512: Rewrite to depend on the new modules.
8780 2018-05-20  Pádraig Brady  <P@draigBrady.com>
8782         fts: avoid a memory leak edge case
8783         * lib/fts.c (fts_open): Set an appropriate fts_level
8784         so that an immediate fts_close() will free the allocation.
8785         * tests/test-fts.c (fts_dealloc): Add a test case which
8786         will trigger under valgrind or address sanitizer.
8787         Fixes https://bugs.gnu.org/31439
8789 2018-05-20  Bruno Haible  <bruno@clisp.org>
8791         wcwidth tests: Fix link error.
8792         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
8793         $(LIBUNISTRING).
8795 2018-05-20  Bruno Haible  <bruno@clisp.org>
8797         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
8798         * modules/regex (Files): Add m4/glibc21.m4.
8800 2018-05-20  Bruno Haible  <bruno@clisp.org>
8802         localcharset: Optimize.
8803         * lib/localcharset.c (alias_table): Comment out no-op mappings for
8804         platforms where these don't matter. This reduces the table size,
8805         which in turn reduces the lookup time.
8807 2018-05-19  Bruno Haible  <bruno@clisp.org>
8809         localcharset: Map the locale encodings found in newer OSes.
8810         * lib/localcharset.c (alias_table): Add mapping for locale encodings
8811         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
8812         IRIX 6.5, Minix 3.3.
8813         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
8815 2018-05-19  Bruno Haible  <bruno@clisp.org>
8817         localcharset: Move mapping tables into the code. Use a binary search.
8818         * lib/localcharset.h: Document the GNU canonical names for character
8819         encodings here.
8820         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
8821         relocatable.h, configmake.h.
8822         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
8823         macros.
8824         (charset_aliases): Remove variable.
8825         (get_charset_aliases): Remove function.
8826         (struct table_entry): New type.
8827         (alias_table, locale_table): New constants.
8828         (locale_charset): Use the alias_table or locale_table to get the
8829         canonicalized encoding name.
8830         * lib/config.charset: Remove file.
8831         * lib/ref-add.sin: Remove file.
8832         * lib/ref-del.sin: Remove file.
8833         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
8834         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
8835         * modules/localcharset (Notice): Remove.
8836         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
8837         glibc21.m4.
8838         (Depends-on): Remove configmake.
8839         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
8840         (Makefile.am): Simplify.
8841         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
8843 2018-05-19  Bruno Haible  <bruno@clisp.org>
8845         localcharset: Add a manual test.
8846         * tests/test-localcharset.c: New file.
8847         * modules/localcharset-tests: New file.
8849 2018-05-19  Bruno Haible  <bruno@clisp.org>
8851         localcharset: Remove support for obsolete platforms.
8852         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
8853         Mac OS X 10.2. Comment out dubious entry for Solaris.
8855 2018-05-19  Jim Meyering  <meyering@fb.com>
8857         gnupload: adjust comment
8858         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
8859         more likely we'll remove the just-added code in a year or two.
8861 2018-05-19  Bruno Haible  <bruno@clisp.org>
8863         gnupload: Fix "gpg-agent is not available in this session" error.
8864         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
8866 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8868         crypto/af_alg: fix --help
8869         * m4/af_alg.m4: Avoid spurious newline in --help output.
8871 2018-05-13  Bruno Haible  <bruno@clisp.org>
8873         nl_langinfo: Fix compilation error on Android.
8874         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
8875         INT_CURR_SYMBOL, etc. only if these items are defined.
8877 2018-05-13  Bruno Haible  <bruno@clisp.org>
8879         truncate: Fix compilation error on Android.
8880         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
8881         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
8882         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
8883         HAVE_TRUNCATE.
8884         * modules/truncate: Likewise.
8885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
8886         not HAVE_TRUNCATE.
8887         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
8888         HAVE_TRUNCATE.
8889         * doc/posix-functions/truncate.texi: Mention the issue.
8891 2018-05-13  Bruno Haible  <bruno@clisp.org>
8893         pthread: Fix compilation error on Android.
8894         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
8895         recursive inclusion of this file.
8897 2018-05-13  Bruno Haible  <bruno@clisp.org>
8899         posix_spawn: Fix compilation error on Android.
8900         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
8901         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
8902         (posix_spawn_file_actions_t): Consider also the case
8903         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
8905 2018-05-13  Bruno Haible  <bruno@clisp.org>
8907         tsearch: Move from K&R C to ANSI C.
8908         * lib/tsearch.c (tfind): Convert definition to ANSI C.
8910 2018-05-13  Bruno Haible  <bruno@clisp.org>
8912         tsearch: Fix compilation error on Android.
8913         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
8914         is 0.
8915         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
8916         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
8917         GNULIB_defined_tsearch is true.
8918         (twalk): Define only if GNULIB_defined_twalk is true.
8919         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
8920         is 0.
8921         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
8922         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
8923         * modules/search (Makefile.am): Substitute HAVE_TWALK.
8925 2018-05-13  Bruno Haible  <bruno@clisp.org>
8927         imaxdiv: Fix compilation error on Android.
8928         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
8929         is not defined.
8930         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
8931         HAVE_DECL_IMAXDIV, is 0.
8932         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
8933         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
8935 2018-05-13  Bruno Haible  <bruno@clisp.org>
8937         Support selective inclusion mechanism of recent mingw.org header files.
8938         Reported by Eli Zaretskii <eliz@gnu.org>.
8939         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
8940         __need_ssize_t, or __need_time_t is defined, just include the system's
8941         <sys/types.h>.
8942         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
8943         include the system's <locale.h>.
8945 2018-05-13  Bruno Haible  <bruno@clisp.org>
8947         Avoid compilation error due to 'mmap' on Android.
8948         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
8949         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
8950         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
8951         Undefine on Android.
8953 2018-05-13  Bruno Haible  <bruno@clisp.org>
8955         Add cross-compilation guesses for Linux systems without glibc.
8956         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
8957         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
8958         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8959         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8960         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
8961         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
8962         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8963         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8964         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
8965         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
8966         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8967         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8968         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
8969         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8970         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8971         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
8972         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8973         * m4/utimens.m4 (gl_UTIMENS): Likewise.
8975 2018-05-13  Bruno Haible  <bruno@clisp.org>
8977         getpagesize: Fix compilation error on Android.
8978         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
8979         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
8980         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
8981         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
8982         HAVE_GETPAGESIZE accordingly.
8983         * modules/getcwd (Files): Add m4/getpagesize.m4.
8985 2018-05-13  Bruno Haible  <bruno@clisp.org>
8987         tcgetsid: Fix compilation error on Android.
8988         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
8989         AC_CHECK_FUNC.
8991 2018-05-13  Bruno Haible  <bruno@clisp.org>
8993         getpass: Fix configure test for Android.
8994         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
8995         AC_CHECK_FUNC.
8997 2018-05-13  Bruno Haible  <bruno@clisp.org>
8999         ffs: Fix compilation error on Android.
9000         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
9002 2018-05-13  Bruno Haible  <bruno@clisp.org>
9004         mkfifo: Fix compilation error on Android.
9005         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
9006         AC_CHECK_FUNC.
9008 2018-05-13  Bruno Haible  <bruno@clisp.org>
9010         c-strtod: Fix configure test for Android.
9011         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
9012         AC_CHECK_FUNC.
9014 2018-05-13  Bruno Haible  <bruno@clisp.org>
9016         random: Fix compilation error on Android.
9017         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
9018         AC_CHECK_FUNC.
9020 2018-05-13  Bruno Haible  <bruno@clisp.org>
9022         grantpt: Fix compilation error on Android.
9023         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
9024         AC_CHECK_FUNC.
9026 2018-05-13  Bruno Haible  <bruno@clisp.org>
9028         stdioext: Fix compilation errors with newer Android headers.
9029         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
9030         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
9031         fallbacks for Android.
9032         * lib/fpending.c: Update comments.
9033         * lib/fpurge.c: Likewise.
9034         * lib/freadable.h: Likewise.
9035         * lib/freadable.c: Likewise.
9036         * lib/freadahead.c: Likewise.
9037         * lib/freading.h: Likewise.
9038         * lib/freadptr.c: Likewise.
9039         * lib/fseterr.c: Likewise.
9040         * lib/fwritable.h: Likewise.
9041         * lib/fwritable.c: Likewise.
9042         * lib/fwriting.h: Likewise.
9043         * lib/fwriting.c: Likewise.
9045 2018-05-13  Bruno Haible  <bruno@clisp.org>
9047         doc: Add info about Android versions 2.0 to 8.1.
9048         * doc/**/*.texi: Add info about functions in all released versions of
9049         Bionic.
9051 2018-05-12  Bruno Haible  <bruno@clisp.org>
9053         fseeko: On mingw, don't use the hidden function _fseeki64.
9054         Reported by Eli Zaretskii <eliz@gnu.org>.
9055         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
9056         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
9058 2018-05-12  Bruno Haible  <bruno@clisp.org>
9060         glob: Choose 'dirent_type' in a way that works better on mingw.
9061         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
9062         * lib/glob.c (dirent_type): Define as uint_fast32_t.
9064 2018-05-12  Bruno Haible  <bruno@clisp.org>
9066         execute, spawn-pipe: Avoid warning about redefining 'close'.
9067         Reported by Eli Zaretskii <eliz@gnu.org>.
9068         * lib/execute.c: Undefine 'close' before redefining it.
9069         * lib/spawn-pipe.c: Likewise.
9071 2018-05-12  Bruno Haible  <bruno@clisp.org>
9073         nanosleep: Avoid test failure on mingw when it has nanosleep.
9074         Reported by Eli Zaretskii <eliz@gnu.org>.
9075         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
9076         If it does not exist, use a simpler test program that does not call
9077         alarm().
9079 2018-05-10  Bruno Haible  <bruno@clisp.org>
9081         lock, cond, thread, tls: Use a different symbol as libpthread witness.
9082         Reported by Devin Hussey <husseydevin@gmail.com>.
9083         Based on a patch by Paul Eggert.
9084         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
9085         as witness of libpthread.
9086         * lib/glthread/cond.h (pthread_in_use): Likewise.
9087         * lib/glthread/thread.h (pthread_in_use): Likewise.
9088         * lib/glthread/tls.h (pthread_in_use): Likewise.
9090 2018-05-10  Bruno Haible  <bruno@clisp.org>
9092         cond tests: Fix compilation error on Solaris.
9093         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
9094         macro.
9096 2018-05-10  Bruno Haible  <bruno@clisp.org>
9098         doc: Add partial info about Android 4.3.
9099         * doc/*-functions/*.texi: Add info about functions that were added
9100         to Bionic between Android 4.3 and Android 9.0.
9102 2018-05-10  Bruno Haible  <bruno@clisp.org>
9104         doc: Add info about Android 9.0.
9105         * doc/**/*.texi: Add info about functions and headers in Bionic from
9106         Android 9.0.
9108 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
9110         af_alg: fix my typo in afalg_buffer
9111         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
9112         (afalg_stream): Simplify and avoid the need for a runtime test
9113         at the end.
9115         af_alg: recover better from crypto failures
9116         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
9117         input stream is seekable, by repositioning the stream back to
9118         where it was, possibly by just calling sendfile with an offset
9119         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
9120         cases, which lets our callers try again with user-mode code.
9121         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
9122         instead of on fflush and lseek.
9124         af_alg: distiguish I/O errors better
9125         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
9126         not -EIO, if it’s OK for the caller to try again with user-mode code.
9127         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
9128         some other error number) if fflush fails, as the caller should not
9129         try again that case.
9131         af_alg: avoid gotos
9132         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
9133         gotos, as they were a source of unreliability and made the code a
9134         bit harder to follow.
9136         af_alg: don’t leak file descriptors into children
9137         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
9138         This code should be compiled only on recent GNU/Linux platforms
9139         so we shouldn’t have to also depend on the accept4 module.
9141         af_alg: coalesce socket creation
9142         * lib/af_alg.c (alg_socket): New function.
9143         (afalg_buffer, afalg_stream): Use it.  This avoids some
9144         code duplication and gotos.
9146         af_alg: fix file descriptor leak
9147         * lib/af_alg.c (afalg_stream): Close leak.
9149         af_alg: Pacify --enable-gcc-warnings on GCC 8
9150         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
9151         and checking to pacify gcc -Wjump-misses-init on GCC 8.
9153 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9155         af_alg: Pacify --enable-gcc-warnings
9156         Problem reported by Assaf Gordon in:
9157         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
9158         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
9159         gcc -Wjump-misses-init.
9160         * lib/sha512.c (shaxxx_stream): Now static.
9162 2018-05-06  Bruno Haible  <bruno@clisp.org>
9164         af_alg: Add ability to use Linux kernel crypto API on data in memory.
9165         * lib/af_alg.h (afalg_buffer): New declaration.
9166         * lib/af_alg.c (afalg_buffer): New function.
9168 2018-05-06  Bruno Haible  <bruno@clisp.org>
9170         af_alg: Avoid warnings.
9171         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
9172         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
9174 2018-05-06  Bruno Haible  <bruno@clisp.org>
9176         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
9177         * tests/bench-digest.h: New file.
9178         * tests/bench-md5.c: New file.
9179         * tests/bench-sha1.c: New file.
9180         * tests/bench-sha224.c: New file.
9181         * tests/bench-sha256.c: New file.
9182         * tests/bench-sha384.c: New file.
9183         * tests/bench-sha512.c: New file.
9184         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
9185         tests/bench-digest.h.
9186         (Depends-on): Add getrusage, gettimeofday.
9187         (Makefile.am): Add variables to build bench-md5.
9188         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
9189         tests/bench-digest.h.
9190         (Depends-on): Add getrusage, gettimeofday.
9191         (Makefile.am): Add variables to build bench-sha1.
9192         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
9193         tests/bench-sha256.c, tests/bench-digest.h.
9194         (Depends-on): Add getrusage, gettimeofday.
9195         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
9196         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
9197         tests/bench-sha512.c, tests/bench-digest.h.
9198         (Depends-on): Add getrusage, gettimeofday.
9199         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
9201 2018-05-06  Bruno Haible  <bruno@clisp.org>
9203         af_alg: Fix a resource leak.
9204         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
9205         New local variable 'result'.
9207 2018-05-06  Bruno Haible  <bruno@clisp.org>
9209         af_alg: Fix bug with streams that are not at position 0.
9210         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
9211         assume that the stream is positioned at position 0.
9212         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
9213         of the stream.
9214         * lib/md5.h (md5_stream): Likewise.
9215         * lib/sha1.h (sha1_stream): Likewise.
9216         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
9217         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
9218         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
9220         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
9221         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
9222         stream that is not positioned at the beginning.
9224 2018-05-06  Bruno Haible  <bruno@clisp.org>
9226         af_alg: Add configure option to enable/disable use of Linux crypto API.
9227         Suggested by Assaf Gordon <assafgordon@gmail.com>.
9228         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
9229         USE_LINUX_CRYPTO_API.
9230         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
9231         * lib/af_alg.c: Likewise.
9233 2018-05-06  Bruno Haible  <bruno@clisp.org>
9235         Followup to 'af_alg: New module.'.
9236         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
9237         * modules/crypto/sha1 (Depends-on): Likewise.
9238         * modules/crypto/sha256 (Depends-on): Likewise.
9239         * modules/crypto/sha512 (Depends-on): Likewise.
9241 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9243         crypto/{md5,sha1,sha256,sha512}: simplify
9244         * lib/md5.c (md5_stream):
9245         * lib/sha1.c (sha1_stream):
9246         * lib/sha256.c (shaxxx_stream):
9247         Simplify, partly by assuming C99.
9248         * lib/sha256.c (shaxxx_stream):
9249         New function, which implements both sha256 and sha224.
9250         Simplify, partly by assuming C99.
9251         (sha256_stream, sha224_stream):
9252         Use it to avoid code duplication, removing a FIXME.
9253         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
9254         Likewise.
9256         af_alg: Improve comments.
9257         * lib/af_alg.h: Use imperatives and tighten up wording.
9259 2018-05-05  Bruno Haible  <bruno@clisp.org>
9261         af_alg: Improve comments.
9262         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
9264 2018-05-05  Bruno Haible  <bruno@clisp.org>
9266         af_alg: New module.
9267         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
9268         * lib/af_alg.c: Include "af_alg.h" before the other header files.
9269         * lib/md5.c: Include "af_alg.h" unconditionally.
9270         (md5_stream): Invoke afalg_stream unconditionally.
9271         * lib/sha1.c: Include "af_alg.h" unconditionally.
9272         (sha1_stream): Invoke afalg_stream unconditionally.
9273         * lib/sha256.c: Include "af_alg.h" unconditionally.
9274         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
9275         * lib/sha512.c: Include "af_alg.h" unconditionally.
9276         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
9277         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
9278         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
9279         * modules/crypto/af_alg: New file.
9280         * modules/crypto/md5 (Files): Remove files that are now in the
9281         'crypto/af_alg' module.
9282         (Depends-on): Add crypto/af_alg.
9283         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
9284         (Makefile.am): Don't mention af_alg.c here.
9285         * modules/crypto/sha1 (Files): Remove files that are now in the
9286         'crypto/af_alg' module.
9287         (Depends-on): Add crypto/af_alg.
9288         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
9289         (Makefile.am): Don't mention af_alg.c here.
9290         * modules/crypto/sha256 (Files): Remove files that are now in the
9291         'crypto/af_alg' module.
9292         (Depends-on): Add crypto/af_alg.
9293         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
9294         (Makefile.am): Don't mention af_alg.c here.
9295         * modules/crypto/sha512 (Files): Remove files that are now in the
9296         'crypto/af_alg' module.
9297         (Depends-on): Add crypto/af_alg.
9298         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
9299         (Makefile.am): Don't mention af_alg.c here.
9301 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9303         crypto tests: pacify GCC
9304         * tests/test-digest.h (test_digest_on_files):
9305         Don’t assume digest size fits in int (!).
9307         af_alg: minor style improvements
9308         * lib/af_alg.c (afalg_stream): Prefer C99 style
9309         decl-after-statement, since we’re already assuming C99.  Clarify
9310         by strengthening the bind test and omit unnecessary assignment.
9312 2018-05-05  Bruno Haible  <bruno@clisp.org>
9314         af_alg: Fix bug on empty files.
9315         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
9316         stream is empty.
9318 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9320         sys-limits.h: new file for crypto and safe I/O
9321         * lib/af_alg.c: Include sys-limits.h.
9322         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
9323         (afalg_stream): Also reject negative sizes for sendfile; they
9324         should not happen and the code is a bit cleaner and faster this way.
9325         * lib/safe-read.c: Include sys-limits.h.
9326         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
9327         * lib/sys-limits.h: New file, with values and commentary derived
9328         from the old safe-read.c and from GNU Emacs sysdep.c.
9329         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9330         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
9331         Add lib/sys-limits.h to Files section.
9333 2018-05-05  Bruno Haible  <bruno@clisp.org>
9335         af_alg: Improve function signature.
9336         * lib/af_alg.h (afalg_stream): Swap second and third argument.
9337         * lib/af_alg.c (afalg_stream): Likewise.
9338         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
9340 2018-05-05  Bruno Haible  <bruno@clisp.org>
9342         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
9343         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
9344         * modules/crypto/sha1 (Depends-on): Likewise.
9345         * modules/crypto/sha256 (Depends-on): Likewise.
9346         * modules/crypto/sha512 (Depends-on): Likewise.
9348 2018-05-05  Bruno Haible  <bruno@clisp.org>
9350         crypto/{md5,sha1,sha256,sha512}: Fix module description.
9351         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
9352         * modules/crypto/sha1 (Depends-on): Likewise.
9353         * modules/crypto/sha256 (Depends-on): Likewise.
9354         * modules/crypto/sha512 (Depends-on): Likewise.
9356 2018-05-05  Bruno Haible  <bruno@clisp.org>
9358         af_alg: Add documentation.
9359         * lib/af_alg.h: Add comments.
9361 2018-05-05  Bruno Haible  <bruno@clisp.org>
9363         sha512: Add tests.
9364         * tests/test-sha512.c: New file.
9365         * modules/crypto/sha512-tests: New file.
9367 2018-05-05  Bruno Haible  <bruno@clisp.org>
9369         sha256: Add tests.
9370         * tests/test-sha256.c: New file.
9371         * modules/crypto/sha256-tests: New file.
9373 2018-05-05  Bruno Haible  <bruno@clisp.org>
9375         sha1 tests: Add test for sha1_stream.
9376         * tests/test-sha1.c: Include test-digest.h.
9377         (main): Invoke test_digest_on_files on 'sha1_stream'.
9378         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
9380 2018-05-05  Bruno Haible  <bruno@clisp.org>
9382         md5 tests: Add test for md5_stream.
9383         * tests/test-digest.h: New file.
9384         * tests/test-md5.c: Include test-digest.h.
9385         (main): Invoke test_digest_on_files on 'md5_stream'.
9386         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
9388 2018-04-28  Matteo Croce  <mcroce@redhat.com>
9390         md5sum: Use AF_ALG when available.
9391         * lib/md5.c: Include af_alg.h.
9392         (md5_stream): Use afalg_stream when available.
9393         * modules/crypto/md5 (Files): Add the af_alg files.
9394         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
9395         (Makefile.am): Add af_alg.c.
9397 2018-04-28  Matteo Croce  <mcroce@redhat.com>
9399         sha512sum: Use AF_ALG when available.
9400         * lib/sha512.c: Include af_alg.h.
9401         (sha512_stream, sha384_stream): Use afalg_stream when available.
9402         * modules/crypto/sha512 (Files): Add the af_alg files.
9403         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
9404         (Makefile.am): Add af_alg.c.
9406 2018-04-28  Matteo Croce  <mcroce@redhat.com>
9408         sha256sum: Use AF_ALG when available.
9409         * lib/sha256.c: Include af_alg.h.
9410         (sha256_stream, sha224_stream): Use afalg_stream when available.
9411         * modules/crypto/sha256 (Files): Add the af_alg files.
9412         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
9413         (Makefile.am): Add af_alg.c.
9415 2018-04-28  Matteo Croce  <mcroce@redhat.com>
9417         sha1sum: Use AF_ALG when available.
9418         * lib/af_alg.h: New file.
9419         * lib/af_alg.c: New file.
9420         * lib/sha1.c: Include af_alg.h.
9421         (sha1_stream): Use afalg_stream when available.
9422         * m4/linux-if-alg.m4: New file.
9423         * modules/crypto/sha1 (Files): Add the new files.
9424         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
9425         (Makefile.am): Add af_alg.c.
9427 2018-05-05  Bruno Haible  <bruno@clisp.org>
9429         all: Replace more http URLs by https URLs.
9430         * lib/localename.c: Use https: URL.
9431         * lib/timespec.h: Likewise.
9433 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
9435         maint: port more modules to GCC 8
9436         * lib/dirname.h (base_name):
9437         * lib/exclude.h (new_exclude):
9438         * lib/xstrndup.h (xstrndup):
9439         Add malloc attribute.
9440         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
9441         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
9442         This pacifies GCC 8.
9443         * m4/gnulib-common.m4 (gl_COMMON_BODY):
9444         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
9446 2018-05-03  Bruno Haible  <bruno@clisp.org>
9448         Simplify code. Drop support for Borland C++ on Windows.
9449         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
9450         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
9451         'defined _WIN32'.
9452         * lib/canonicalize-lgpl.c: Likewise.
9453         * lib/classpath.c: Likewise.
9454         * lib/clean-temp.c: Likewise.
9455         * lib/csharpexec.c: Likewise.
9456         * lib/ctime.c: Likewise.
9457         * lib/dosname.h: Likewise.
9458         * lib/dup2.c: Likewise.
9459         * lib/errno.in.h: Likewise.
9460         * lib/error.c: Likewise.
9461         * lib/euidaccess.c: Likewise.
9462         * lib/execute.c: Likewise.
9463         * lib/fcntl.in.h: Likewise.
9464         * lib/fcntl.c: Likewise.
9465         * lib/filename.h: Likewise.
9466         * lib/findprog.c: Likewise.
9467         * lib/flock.c: Likewise.
9468         * lib/fopen.c: Likewise.
9469         * lib/freopen.c: Likewise.
9470         * lib/fstat.c: Likewise.
9471         * lib/fsync.c: Likewise.
9472         * lib/gc-gnulib.c: Likewise.
9473         * lib/get-rusage-data.c: Likewise.
9474         * lib/getaddrinfo.c: Likewise.
9475         * lib/getdelim.c: Likewise.
9476         * lib/getdtablesize.c: Likewise.
9477         * lib/gethostname.c: Likewise.
9478         * lib/getlogin.c: Likewise.
9479         * lib/getlogin_r.c: Likewise.
9480         * lib/getopt.c: Likewise.
9481         * lib/getpagesize.c: Likewise.
9482         * lib/getpass.c: Likewise.
9483         * lib/getrusage.c: Likewise.
9484         * lib/gettimeofday.c: Likewise.
9485         * lib/glob.c: Likewise.
9486         * lib/inttypes.in.h: Likewise.
9487         * lib/isapipe.c: Likewise.
9488         * lib/javaexec.c: Likewise.
9489         * lib/link.c: Likewise.
9490         * lib/localcharset.c: Likewise.
9491         * lib/localename.h: Likewise.
9492         * lib/localename.c: Likewise.
9493         * lib/localtime.c: Likewise.
9494         * lib/lseek.c: Likewise.
9495         * lib/mbsinit.c: Likewise.
9496         * lib/mkdir.c: Likewise.
9497         * lib/msvc-nothrow.h: Likewise.
9498         * lib/nanosleep.c: Likewise.
9499         * lib/nl_langinfo.c: Likewise.
9500         * lib/nonblocking.c: Likewise.
9501         * lib/nproc.c: Likewise.
9502         * lib/open.c: Likewise.
9503         * lib/openpty.c: Likewise.
9504         * lib/pathmax.h: Likewise.
9505         * lib/pipe-filter-aux.c: Likewise.
9506         * lib/pipe-filter-gi.c: Likewise.
9507         * lib/pipe-filter-ii.c: Likewise.
9508         * lib/pipe.c: Likewise.
9509         * lib/pipe2.c: Likewise.
9510         * lib/poll.c: Likewise.
9511         * lib/popen.c: Likewise.
9512         * lib/posix_openpt.c: Likewise.
9513         * lib/printf-parse.c: Likewise.
9514         * lib/progreloc.c: Likewise.
9515         * lib/putenv.c: Likewise.
9516         * lib/read.c: Likewise.
9517         * lib/relocatable.c: Likewise.
9518         * lib/rename.c: Likewise.
9519         * lib/same-inode.h: Likewise.
9520         * lib/secure_getenv.c: Likewise.
9521         * lib/select.c: Likewise.
9522         * lib/sethostname.c: Likewise.
9523         * lib/setlocale.c: Likewise.
9524         * lib/sigaction.c: Likewise.
9525         * lib/sigprocmask.c: Likewise.
9526         * lib/sleep.c: Likewise.
9527         * lib/spawn-pipe.h: Likewise.
9528         * lib/spawn-pipe.c: Likewise.
9529         * lib/spawni.c: Likewise.
9530         * lib/stat-time.h: Likewise.
9531         * lib/stat-w32.c: Likewise.
9532         * lib/stat.c: Likewise.
9533         * lib/stdio.in.h: Likewise.
9534         * lib/stdio-impl.h: Likewise.
9535         * lib/stdio-read.c: Likewise.
9536         * lib/stdio-write.c: Likewise.
9537         * lib/stdlib.in.h: Likewise.
9538         * lib/strerror_r.c: Likewise.
9539         * lib/strftime-fixes.c: Likewise.
9540         * lib/sys_stat.in.h: Likewise.
9541         * lib/sys_types.in.h: Likewise.
9542         * lib/sys_wait.in.h : Likewise.
9543         * lib/system-quote.h: Likewise.
9544         * lib/system-quote.c: Likewise.
9545         * lib/tmpdir.c: Likewise.
9546         * lib/tzset.c: Likewise.
9547         * lib/uname.c: Likewise.
9548         * lib/unistd.in.h: Likewise.
9549         * lib/utime.in.h: Likewise.
9550         * lib/utime.c: Likewise.
9551         * lib/utimecmp.c: Likewise.
9552         * lib/utimens.c: Likewise.
9553         * lib/vasnprintf.c: Likewise.
9554         * lib/vma-iter.h: Likewise.
9555         * lib/vma-iter.c: Likewise.
9556         * lib/wait-process.c: Likewise.
9557         * lib/wcsftime.c: Likewise.
9558         * lib/wctype.in.h: Likewise.
9559         * lib/write.c: Likewise.
9560         * tests/nap.h: Likewise.
9561         * tests/test-cloexec.c: Likewise.
9562         * tests/test-dup-safer.c: Likewise.
9563         * tests/test-dup2.c: Likewise.
9564         * tests/test-dup3.c: Likewise.
9565         * tests/test-fcntl.c: Likewise.
9566         * tests/test-get-rusage-data.c: Likewise.
9567         * tests/test-getaddrinfo.c: Likewise.
9568         * tests/test-getlogin.h: Likewise.
9569         * tests/test-isatty.c: Likewise.
9570         * tests/test-localename.c: Likewise.
9571         * tests/test-mbrtowc-w32.c: Likewise.
9572         * tests/test-nonblocking.c: Likewise.
9573         * tests/test-nonblocking-pipe-main.c: Likewise.
9574         * tests/test-nonblocking-socket-main.c: Likewise.
9575         * tests/test-nonblocking-socket.h: Likewise.
9576         * tests/test-pipe.c: Likewise.
9577         * tests/test-pipe2.c: Likewise.
9578         * tests/test-poll.c: Likewise.
9579         * tests/test-pthread_sigmask1.c: Likewise.
9580         * tests/test-select.h: Likewise.
9581         * tests/test-sethostname2.c: Likewise.
9582         * tests/test-sigprocmask.c: Likewise.
9583         * tests/test-spawn-pipe-child.c: Likewise.
9584         * tests/test-stat-time.c: Likewise.
9585         * tests/test-system-quote-main.c: Likewise.
9586         * tests/test-utimens-common.h: Likewise.
9587         * tests/test-wcrtomb-w32.c: Likewise.
9588         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
9589         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
9590         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
9591         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
9592         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
9593         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
9594         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
9595         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9596         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9597         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9598         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
9599         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
9600         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
9601         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9602         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
9603         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9605 2018-05-02  Bruno Haible  <bruno@clisp.org>
9607         localename: Fix test failures on mingw.
9608         * lib/localename.c (gl_locale_name_thread): Remove code specific to
9609         native Windows.
9610         (gl_locale_name_posix): Move code specific to native Windows here.
9611         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
9612         Accept result without charset suffix, as it appears on mingw.
9614 2018-04-28  Paul Smith  <psmith@gnu.org>
9616         bootstrap: Avoid gnulib operations if not needed
9617         * build-aux/bootstrap: Remove unused variable gnulib_mk.
9618         Set $gnulib_extra_files early so it can be overridden in .conf.
9619         Remove redundant --import flag from $gnulib_tool_options.
9620         Set $use_gnulib to false if no gnulib modules or files are needed.
9621         If $use_gnulib is false, don't do anything related to gnulib.
9622         A lot of this is just whitespace (indentation) changes.
9624 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
9626         manywarnings: port to GCC 8.0
9627         * build-aux/gcc-warning.spec: Add -Wcatch-value,
9628         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
9629         fact that the GCC help message now mentions operands for
9630         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
9631         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
9632         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
9633         and -Wunused-const-variable.
9634         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
9635         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
9636         -Wmissing-attributes, -Wmultistatement-macros,
9637         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
9638         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
9640 2018-04-24  Bruno Haible  <bruno@clisp.org>
9642         sys_socket: Make SO_REUSEPORT available across platforms.
9643         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9644         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
9645         * doc/posix-headers/sys_socket.texi: Mention the issue.
9646         * tests/test-poll.c (SO_REUSEPORT): Remove.
9647         * tests/test-select.h: Include <sys/socket.h>.
9648         (SO_REUSEPORT): Remove.
9649         * modules/select-tests (Depends-on): Add 'sys_socket'.
9651 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
9653         localcharset: short-circuit the search for an alias on a Mac
9654         * lib/localcharset.c (get_charset_aliases): Add a tautological
9655         UTF-8 entry to speed up the search for this case.
9656         Most machines default to a UTF-8 locale nowadays, so begin the
9657         list of aliases with a dummy UTF-8 entry so it will be found
9658         immediately and a time-consuming search through the rest of
9659         the list is avoided.
9661 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
9663         fts: add comment
9664         * lib/fts.c (fts_build): Explain why ==, not >.
9665         See remark by Bernhard Voelker in:
9666         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
9668         fts: fix bug in find across filesystems
9669         This fixes a bug I introduced last summer.
9670         Problem reported by Kamil Dudka in:
9671         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
9672         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
9673         (leaf_optimization):
9674         New arg for file descriptor.  All callers changed.
9675         (fts_build): Check for whether inodes should be sorted
9676         before closing the directory.
9678 2018-04-07  Bruno Haible  <bruno@clisp.org>
9680         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
9681         Reported by Genki Sky <sky@genki.is>.
9682         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
9683         version 0.9.10 or newer.
9684         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
9685         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
9686         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
9687         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
9688         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
9690 2018-04-07  Bruno Haible  <bruno@clisp.org>
9692         execute: Update comment.
9693         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
9695 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9697         fts: treat CIFS like NFS
9698         Problem reported by Kamil Dudka in:
9699         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
9700         * lib/fts.c (S_MAGIC_CIFS): New macro.
9701         (dirent_inode_sort_may_be_useful, leaf_optimization):
9702         Treat CIFS like NFS.
9704 2018-03-28  Bruno Haible  <bruno@clisp.org>
9706         c-stack: Fix possible build failure on some platforms.
9707         * lib/c-stack.c (die): Define whenever this function is referenced.
9709 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
9711         time_rz: fix workaround for Mac OS X 10.6 infloop
9712         Problems reported by Charles A. Roelli (Bug#27736#117).
9713         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
9714         Also, discard output, which clutters the 'configure' log.
9716 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
9718         havelib: port to Solaris 10 /bin/sh
9719         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
9720         instead of '! test EXPR'.
9722 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
9724         time_rz: work around Mac OS X 10.6 infloop
9725         * doc/posix-functions/localtime.texi:
9726         * doc/posix-functions/localtime_r.texi: Mention the bug.
9727         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
9728         better to fix localtime and localtime_r instead, but that would be
9729         more work and is not needed to fix the Emacs problem.
9730         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
9732 2018-03-24  Jim Meyering  <meyering@fb.com>
9734         test-version-etc.sh: don't use diff directly: use init.sh's compare
9735         We'd rather not sacrifice readable "diff -u" output even for
9736         "diff -c" output (not supported by busybox) or for even less
9737         readable ed-style "diff" output.  So use init.sh's compare function
9738         * tests/test-version-etc.sh: Source init.sh and add "." to path.
9739         Remove "./" from invocation of test-version-etc, so we use path.
9740         And s/diff/compare/.
9741         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
9742         to get init.sh.
9743         Prompted by Eric Blake's comments in
9744         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
9746 2018-03-24  Bruno Haible  <bruno@clisp.org>
9748         javacomp-script, javacomp: Add support for Java 10.
9749         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
9750         target-version 10.
9751         * lib/javaversion.h: Update comments.
9752         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
9753         source_version_index, get_goodcode_snippet, get_failcode_snippet,
9754         TARGET_VERSION_BOUND, target_version_index,
9755         corresponding_classfile_version): Accept source_version 10 and
9756         target_version 10.
9757         * lib/javacomp.h: Update comments accordingly.
9759 2018-03-24  Bruno Haible  <bruno@clisp.org>
9761         javacomp-script, javacomp: Update comments.
9762         * m4/javacomp.m4: Update comments regarding gcj.
9763         * lib/javacomp.h: Likewise.
9765 2018-03-24  Bruno Haible  <bruno@clisp.org>
9767         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
9768         * lib/javaversion.h: Update comments.
9769         * lib/javacomp.h: Likewise.
9770         * lib/javacomp.c (default_target_version, source_version_index,
9771         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
9772         "1.9".
9773         (TARGET_VERSION_BOUND): Bump to 9.
9774         (target_version_index, corresponding_classfile_version): Recognize "9"
9775         instead of "1.9".
9776         (get_source_version_for_javac): New function.
9777         (is_envjavac_nongcj_usable, is_javac_usable): Add
9778         source_version_for_javac argument.
9779         (compile_java_class): Determine and pass source_version_for_javac.
9780         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
9781         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
9782         appropriate.
9784 2018-03-23  Jim Meyering  <meyering@fb.com>
9786         test-version-etc.sh: port to diff without -c
9787         * tests/test-version-etc.sh: Don't use diff's -c option.
9788         This caused spurious test failure on Alpine Linux, which
9789         uses busybox's diff. Reported by Assaf Gordon in
9790         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
9792 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
9794         c-stack: port to recent GCC build
9795         Problem reported by The Fireplace (Bug#30913).
9796         * lib/c-stack.c (die): Define only if used.
9798 2018-03-20  Bruno Haible  <bruno@clisp.org>
9800         euidaccess: Port to native Windows.
9801         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
9802         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
9804 2018-03-19  Bruno Haible  <bruno@clisp.org>
9806         javacomp: Add support for Java 7, 8, 9.
9807         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
9808         source_version_index, get_goodcode_snippet, get_failcode_snippet,
9809         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
9810         and target_version 1,7, 1.8, 1.9.
9811         * lib/javacomp.h: Update comments accordingly.
9813 2018-03-19  Bruno Haible  <bruno@clisp.org>
9815         javacomp-script: Add support for Java 9.
9816         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
9817         target-version 1.9.
9819 2018-03-16  Bruno Haible  <bruno@clisp.org>
9821         glob: Don't compile replacements on recent glibc systems.
9822         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
9823         REPLACE_GLOB is 0, include the system's <glob.h> and use
9824         _GL_CXXALIAS_SYS.
9825         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
9826         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
9827         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
9828         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
9829         Remove snippet/warn-on-use.
9830         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
9831         (Makefile.am): Create glob.h always. Update list of substitutions in
9832         glob.h. Don't depend on $(WARN_ON_USE_H).
9834 2018-03-16  Bruno Haible  <bruno@clisp.org>
9836         glob: Fix link error on native Windows.
9837         * modules/glob (Depends-on): Add 'lstat'.
9839 2018-03-15  Bruno Haible  <bruno@clisp.org>
9841         glob: Fix compilation error in C++ mode.
9842         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
9844 2018-03-15  Bruno Haible  <bruno@clisp.org>
9846         host-cpu-c-abi: Support for RISC-V CPU.
9847         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
9848         riscv32 and riscv64 ABIs.
9849         References:
9850         https://github.com/riscv/riscv-toolchain-conventions
9851         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
9852         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
9854 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
9856         fflush: be more paranoid about libio.h change
9857         Suggested by Eli Zaretskii in:
9858         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
9859         * lib/fbufmode.c (fbufmode):
9860         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
9861         (disable_seek_optimization, rpl_fflush):
9862         * lib/fpending.c (__fpending):
9863         * lib/fpurge.c (fpurge):
9864         * lib/freadable.c (freadable):
9865         * lib/freadahead.c (freadahead):
9866         * lib/freading.c (freading):
9867         * lib/freadptr.c (freadptr):
9868         * lib/freadseek.c (freadptrinc):
9869         * lib/fseeko.c (fseeko):
9870         * lib/fseterr.c (fseterr):
9871         * lib/fwritable.c (fwritable):
9872         * lib/fwriting.c (fwriting):
9873         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
9875 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
9877         maint: write-file-hooks -> before-save-hook
9878         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
9879         it's time to use the recommended replacement.
9880         Problem reported by Glenn Morris in:
9881         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
9882         * build-aux/announce-gen, build-aux/bootstrap:
9883         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
9884         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
9885         * build-aux/gnu-web-doc-update, build-aux/gnupload:
9886         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
9887         * build-aux/update-copyright, build-aux/useless-if-before-free:
9888         * build-aux/vc-list-files:
9889         Update hook usage for files where Gnulib is the canonical source.
9891 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
9893         binary-io: pacify gcc -Wunused-parameter
9894         Problem reported by Reuben Thomas in:
9895         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
9896         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
9897         Use _GL_UNUSED where appropriate.
9899         fflush: adjust to glibc 2.28 libio.h removal
9900         Problem reported by Daniel P. Berrangé in:
9901         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
9902         * lib/fbufmode.c (fbufmode):
9903         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
9904         (disable_seek_optimization, rpl_fflush):
9905         * lib/fpending.c (__fpending):
9906         * lib/fpurge.c (fpurge):
9907         * lib/freadable.c (freadable):
9908         * lib/freadahead.c (freadahead):
9909         * lib/freading.c (freading):
9910         * lib/freadptr.c (freadptr):
9911         * lib/freadseek.c (freadptrinc):
9912         * lib/fseeko.c (fseeko):
9913         * lib/fseterr.c (fseterr):
9914         * lib/fwritable.c (fwritable):
9915         * lib/fwriting.c (fwriting):
9916         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
9917         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
9918         Define if not already defined.
9920 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
9922         environ: fix link error on 32-bit Cygwin
9923         Problem reported for GNU Emacs by Ken Brown in:
9924         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
9925         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
9927 2018-02-24  Bruno Haible  <bruno@clisp.org>
9929         mbrtowc tests: Fix regression on glibc.
9930         Reported by Bernhard Voelker.
9931         * tests/test-mbrtowc.c (main): Fix expected value of wc.
9933 2018-02-24  Bruno Haible  <bruno@clisp.org>
9935         striconveha, uniconv/*: Avoid test failures on musl libc.
9936         * tests/iconvsupport.c: New file.
9937         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
9938         does not support the ISO-2022-JP-2 encoding.
9939         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
9940         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9941         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9942         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9943         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9944         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9945         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
9946         (Makefile.am): Link test-striconveha with iconvsupport.o.
9947         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
9948         tests/iconvsupport.c.
9949         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
9950         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
9951         tests/iconvsupport.c.
9952         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
9953         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
9954         tests/iconvsupport.c.
9955         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
9956         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
9957         tests/iconvsupport.c.
9958         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
9959         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
9960         tests/iconvsupport.c.
9961         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
9962         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
9963         tests/iconvsupport.c.
9964         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
9966 2018-02-24  Bruno Haible  <bruno@clisp.org>
9968         localename: Add support for musl libc.
9969         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
9970         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
9971         on Linux platforms which define NL_LOCALE_NAME.
9973 2018-02-24  Bruno Haible  <bruno@clisp.org>
9975         mbrtowc tests: Don't make assumptions about the charset the C locale.
9976         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
9977         particular mapping in the C locale.
9979 2018-02-24  Bruno Haible  <bruno@clisp.org>
9981         ptsname_r: Don't expect that this function sets errno.
9982         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
9983         from ptsname_r().
9984         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
9986 2018-02-23  Bruno Haible  <bruno@clisp.org>
9988         xmalloca: pacify gcc -Wbad-function-cast
9989         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
9991 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
9993         nl_langinfo: pacify gcc -Wunused-function
9994         * lib/nl_langinfo.c (ctype_codeset): Do not define if
9995         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
9996         this case.  Without this change, I got a diagnostic when building
9997         coreutils on Fedora 27 with gcc 7.3.1 20180130.
9999         same: pacify gcc -Wunused-variable
10000         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
10001         Omit unused variable.
10003         malloca: pacify gcc -Wbad-function-cast
10004         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
10005         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
10006         To pacify GCC, I had to cast alloca’s result to some type other
10007         than void * before casting that to uintptr_t.
10009 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10011         utimecmp: new function utimecmpat
10012         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
10013         Do not include utimens.h.
10014         (utimecmpat): New function, generalizing utimecmp.
10015         (utimecmp): Now a thin layer around utimecmpat.
10016         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
10017         utimensat instead of on lstat and utimens.
10019         same: new function same_nameat
10020         * lib/same.c: Include fcntl.h.
10021         * lib/same.c (same_nameat): New function, generalizing same_name.
10022         (same_name): Now a thin layer around same_nameat.
10023         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
10024         * modules/same (Depends-on): Depend on fstatat, openat.
10026 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
10028         warnings: Add support for Objective C.
10029         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
10030         macro.
10032 2018-02-17  Bruno Haible  <bruno@clisp.org>
10034         lock: Fix test-once1 crash on FreeBSD11.
10035         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
10036         'pthread_create', not 'pthread_cancel'.
10038 2018-02-17  Bruno Haible  <bruno@clisp.org>
10040         lock: Add test of gl_once.
10041         * tests/test-once.c: New file.
10042         * modules/lock-tests (Files): Add it.
10043         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
10045 2018-02-17  Bruno Haible  <bruno@clisp.org>
10047         thread: Fix compilation error on IRIX.
10048         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
10049         needed; include it outside the C++ extern "C" {} block.
10050         * doc/posix-headers/pthread.texi: Mention the problem with
10051         pthread_atfork on IRIX.
10053 2018-02-04  Bruno Haible  <bruno@clisp.org>
10055         nl_langinfo: Override the system's nl_langinfo() when needed.
10056         Reported by Jim Meyering.
10057         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
10058         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
10060 2018-02-04  Bruno Haible  <bruno@clisp.org>
10062         signal-h, monetary, strings: Fix build failure in some cases.
10063         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10064         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
10065         as delimiter in sed command, not '|'.
10066         * modules/monetary (Makefile.am): Likewise.
10067         * modules/strings (Makefile.am): Likewise.
10069 2018-02-03  Jim Meyering  <meyering@fb.com>
10071         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
10072         * top/maint.mk (sc_file_system): Don't complain about
10073         "/proc/filesystems".
10075 2018-02-03  Bruno Haible  <bruno@clisp.org>
10077         stdlib: Fix compilation error on OpenIndiana.
10078         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
10079         <sys/time.h>.
10080         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
10081         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10083 2018-02-03  Bruno Haible  <bruno@clisp.org>
10085         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
10086         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
10087         and use $EGREP instead of 'grep -E'.
10088         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
10089         'grep -E'.
10091 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
10093         malloca: Add a compile-time verification.
10094         * lib/malloca.c (small_t): Verify that it is wide enough.
10095         * modules/malloca (Depends-on): Add verify.
10097 2018-02-02  Bruno Haible  <bruno@clisp.org>
10099         malloca: Add an argument check.
10100         Suggested by Paul Eggert.
10101         * lib/malloca.c (freea): Check against an invalid argument.
10103 2018-02-02  Bruno Haible  <bruno@clisp.org>
10105         localename: Add support for OpenIndiana.
10106         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
10107         Solaris 11 variants with uselocale() but without getlocalename_l().
10109 2018-02-02  Bruno Haible  <bruno@clisp.org>
10111         malloca, xmalloca: Make multithread-safe.
10112         Reported by Florian Weimer <fweimer@redhat.com>.
10113         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
10114         * lib/malloca.h (malloca): In the stack allocation case, return a
10115         pointer that is a multiple of 2 * sa_alignment_max.
10116         (sa_increment): Remove enum item.
10117         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
10118         a pointer that is a multiple of 2 * sa_alignment_max.
10119         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
10120         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
10121         HASH_TABLE_SIZE, mmalloca_results): Remove.
10122         (small_t): New type.
10123         (mmalloca, free): Rewritten.
10124         * lib/malloca.valgrind: Remove file.
10125         * modules/malloca (Files): Remove it.
10126         (Depends-on): Remove verify.
10128 2018-01-31  Bruno Haible  <bruno@clisp.org>
10130         environ: Fix link error on 64-bit Cygwin.
10131         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
10132         __declspec(dllimport) attribute.
10133         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
10135 2018-01-30  Bruno Haible  <bruno@clisp.org>
10137         get-rusage-data: Add support for Minix 3.
10138         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
10140 2018-01-30  Bruno Haible  <bruno@clisp.org>
10142         vma-iter: Add support for Minix 3.
10143         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
10144         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
10146 2018-01-27  Bruno Haible  <bruno@clisp.org>
10148         Fix malfunction of socket functions on HP-UX in 64-bit mode.
10149         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
10150         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
10151         _HPUX_ALT_XOPEN_SOCKET_API.
10152         * modules/accept (Depends-on): Add 'extensions'.
10153         * modules/getpeername (Depends-on): Likewise.
10154         * modules/getsockname (Depends-on): Likewise.
10155         * modules/getsockopt (Depends-on): Likewise.
10156         * modules/recvfrom (Depends-on): Likewise.
10157         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
10158         * doc/posix-functions/getpeername.texi: Likewise.
10159         * doc/posix-functions/getsockname.texi: Likewise.
10160         * doc/posix-functions/getsockopt.texi: Likewise.
10161         * doc/posix-functions/recvfrom.texi: Likewise.
10163 2018-01-27  Bruno Haible  <bruno@clisp.org>
10165         getsockname tests: More tests.
10166         * tests/test-getsockname.c (open_server_socket): New function, mostly
10167         copied from test-poll.c.
10168         (main): Check that getsockname fills in addr.
10169         * modules/getsockname-tests (Depends-on): Add the necessary
10170         dependencies.
10171         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
10173 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
10175         manywarnings: fix maintainer comment
10176         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
10177         it does not mistakenly think that ‘-1)’ is an option.
10179 2018-01-26  Bruno Haible  <bruno@clisp.org>
10181         langinfo: Fix last commit.
10182         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10183         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
10185 2018-01-24  Bruno Haible  <bruno@clisp.org>
10187         langinfo, nl_langinfo: Add support for alternative month names.
10188         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
10189         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
10190         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
10191         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
10192         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
10193         * doc/posix-functions/nl_langinfo.texi: Likewise.
10195 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10197         Merge strftime.c changes from glibc
10198         This incorporates:
10199         2017-11-14 [BZ #10871] Implement alternative month names
10200         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
10201         2017-06-20 Use locale_t, not __locale_t, throughout glibc
10202         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
10203         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
10204         Use locale_t, not __locale_t.
10205         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
10206         (__strftime_internal): Add support for alternate months.
10208 2018-01-23  Bruno Haible  <bruno@clisp.org>
10210         doc: Mention another prerequisite for using Gnulib.
10211         Reported at <https://stackoverflow.com/questions/48378214/>.
10212         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
10213         AC_CONFIG_HEADERS.
10215 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
10217         build: GuixSD doesn't have /bin/bash
10218         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
10220 2018-01-21  Bruno Haible  <bruno@clisp.org>
10222         Avoid test failures on Microsoft Windows Subsystem for Linux.
10223         * tests/test-fcntl.c (main): Allow a different errno.
10224         * tests/test-rename.h (test_rename): Likewise.
10225         * tests/test-renameat.c (main): Likewise.
10226         * tests/test-renameat2.c (main): Likewise.
10228 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
10230         filenamecat: make base a suffix of result
10231         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
10232         (mfile_name_concat): Always make BASE a suffix of the result, as
10233         cp expects this.  To implement this, separate with '.' instead of
10234         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
10235         * tests/test-filenamecat.c (main): Adjust tests to match
10236         current behavior.  Check that BASE_IN_RESULT points to
10237         a copy of BASE and is a suffix of the resultk, and that DIR
10238         is a prefix of the result that is no longer than the prefix
10239         indicated by BASE_IN_RESULT.
10241 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
10243         update-copyright: Handle use of ©
10244         * build-aux/update-copyright ($circle_c_re): Update regex to
10245         handle use of © in headers.
10247 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
10249         Fix -Wundef warning in user-included header lib/cdefs.h.
10250         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
10252 2018-01-04  Bruno Haible  <bruno@clisp.org>
10254         pthread_sigmask: Avoid compilation error on mingw.
10255         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10256         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
10257         macro.
10259 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
10261         test-framework-sh: ‘ps -ef’, not ‘ps ef’
10262         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
10263         Suggested by Bob Proulx (Bug#29968).
10264         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
10266 2018-01-02  Eric Blake  <eblake@redhat.com>
10268         stat-time: silence -Wunused-parameter regression
10269         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
10270         Prefer attribute over cast-to-void.
10271         (stat_time_normalize): Mark st as potentially unused.
10273 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10275         test-framework-sh: avoid netstat
10276         Problem reported by Kristýna Streitová (Bug#29947).
10277         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
10278         deprecated on SuSE and it's not that important anyway.
10280 2018-01-01  Jim Meyering  <meyering@fb.com>
10282         update-copyright: add code to handle more special cases
10283         After running "make update-copyright" this year, five files
10284         required additional manual changes.  Automate those adjustments
10285         for next year.
10286         * Makefile (_year_and_prev): Define.
10287         (update-copyright): Add perl commands to induce this year's post-
10288         update-copyright adjustments.
10290 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10292         version-etc: new year
10293         * build-aux/gendocs.sh (version):
10294         * doc/gendocs_template:
10295         * doc/gendocs_template_min:
10296         * doc/gnulib.texi:
10297         * lib/version-etc.c (COPYRIGHT_YEAR):
10298         Update copyright dates by hand in templates and the like.
10300         maint: fix 'make update-copyright'
10301         * Makefile (update-copyright): Adjust to 2016-11-23 change
10302         to config/srclist-update, which changed the format of srclist.txt.
10304 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
10306         chdir-safer: remove this module
10307         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
10308         * NEWS: Document removal.
10309         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
10310         * modules/chdir-safer: Remove these files.
10312 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
10314         Add cross-compilation results for GNU/Hurd.
10315         * m4/calloc.m4: Add GNU/Hurd guess.
10316         * m4/cbrtl.m4: Likewise.
10317         * m4/ceil.m4: Likewise.
10318         * m4/ceilf.m4: Likewise.
10319         * m4/ceill.m4: Likewise.
10320         * m4/chown.m4: Likewise.
10321         * m4/duplocale.m4: Likewise.
10322         * m4/exp2l.m4: Likewise.
10323         * m4/expm1.m4: Likewise.
10324         * m4/fchdir.m4: Likewise.
10325         * m4/floor.m4: Likewise.
10326         * m4/floorf.m4: Likewise.
10327         * m4/fmod.m4: Likewise.
10328         * m4/fmodf.m4: Likewise.
10329         * m4/fmodl.m4: Likewise.
10330         * m4/getcwd.m4: Likewise.
10331         * m4/getgroups.m4: Likewise.
10332         * m4/gettimeofday.m4: Likewise.
10333         * m4/hypot.m4: Likewise.
10334         * m4/hypotf.m4: Likewise.
10335         * m4/hypotl.m4: Likewise.
10336         * m4/link-follow.m4: Likewise.
10337         * m4/link.m4: Likewise.
10338         * m4/linkat.m4: Likewise.
10339         * m4/log.m4: Likewise.
10340         * m4/log10.m4: Likewise.
10341         * m4/log10f.m4: Likewise.
10342         * m4/log1p.m4: Likewise.
10343         * m4/log1pf.m4: Likewise.
10344         * m4/log1pl.m4: Likewise.
10345         * m4/log2.m4: Likewise.
10346         * m4/log2f.m4: Likewise.
10347         * m4/logf.m4: Likewise.
10348         * m4/lstat.m4: Likewise.
10349         * m4/malloc.m4: Likewise.
10350         * m4/mbrlen.m4: Likewise.
10351         * m4/mbrtowc.m4: Likewise.
10352         * m4/mkdir.m4: Likewise.
10353         * m4/mkfifo.m4: Likewise.
10354         * m4/mknod.m4: Likewise.
10355         * m4/mkstemp.m4: Likewise.
10356         * m4/modf.m4: Likewise.
10357         * m4/modff.m4: Likewise.
10358         * m4/modfl.m4: Likewise.
10359         * m4/printf.m4: Likewise.
10360         * m4/pselect.m4: Likewise.
10361         * m4/ptsname.m4: Likewise.
10362         * m4/putenv.m4: Likewise.
10363         * m4/readlink.m4: Likewise.
10364         * m4/realloc.m4: Likewise.
10365         * m4/remainder.m4: Likewise.
10366         * m4/remainderf.m4: Likewise.
10367         * m4/remainderl.m4: Likewise.
10368         * m4/rmdir.m4: Likewise.
10369         * m4/round.m4: Likewise.
10370         * m4/roundf.m4: Likewise.
10371         * m4/roundl.m4: Likewise.
10372         * m4/select.m4: Likewise.
10373         * m4/setenv.m4: Likewise.
10374         * m4/signbit.m4: Likewise.
10375         * m4/sleep.m4: Likewise.
10376         * m4/stat.m4: Likewise.
10377         * m4/strerror.m4: Likewise.
10378         * m4/strtok_r.m4: Likewise.
10379         * m4/symlink.m4: Likewise.
10380         * m4/symlinkat.m4: Likewise.
10381         * m4/trunc.m4: Likewise.
10382         * m4/truncf.m4: Likewise.
10383         * m4/truncl.m4: Likewise.
10384         * m4/tzset.m4: Likewise.
10385         * m4/ungetc.m4: Likewise.
10386         * m4/usleep.m4: Likewise.
10387         * m4/wcwidth.m4: Likewise.
10389 2017-12-28  Bruno Haible  <bruno@clisp.org>
10391         gnulib-tool: Make --conditional-dependencies work better.
10392         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
10393         * gnulib-tool (Options): Don't reject the combination of
10394         --conditional-dependencies with --with-tests.
10395         (func_emit_autoconf_snippets): Add argument referenceable_modules.
10396         Don't reference $modules.
10397         (func_import, func_create_testdir): Pass it.
10399 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10401         regex: use re_malloc etc. consistently
10402         Problem and original patch reported by Arnold Robbins in:
10403         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
10404         * lib/regcomp.c (re_comp):
10405         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
10406         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
10408 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
10409             Paul Eggert  <eggert@cs.ucla.edu>
10411         glob: Silence warning about void pointer arithmetic.
10412         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
10413         arithmetic.
10415 2017-12-15  Bruno Haible  <bruno@clisp.org>
10417         spawn-pipe: Silence a clang warning.
10418         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10419         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
10420         in this file.
10422 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10424         explicit_bzero: port to macOS + Clang 9.0.0
10425         Problem reported by Marcus Johnson (Bug#29658).
10426         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
10427         Don’t use asm.
10429 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
10431         doc: Improve explanation of supporting relocatable libraries.
10432         * doc/relocatable-maint.texi (Supporting Relocation): Explain
10433         properly how to build the relocatable module for
10434         libraries. (Method and example code from Bruno Haible.)
10436 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
10438         doc: Use better texinfo tags in a few cases.
10439         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
10440         instead of @samp in a few places.
10442 2017-12-11  Bruno Haible  <bruno@clisp.org>
10444         unistr/base: Update comment.
10445         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
10447 2017-12-10  Pádraig Brady  <P@draigBrady.com>
10449         test-faccessat.c: unlink temp file to avoid subsequent test failure
10450         * tests/test-faccessat.c: Remove the file to avoid failure
10451         to open the file on subsequent runs due to being created
10452         with no permissions.
10454 2017-12-10  Bruno Haible  <bruno@clisp.org>
10456         doc: New sect. "Modifying the build rules of a Gnulib import directory".
10457         * doc/gnulib-tool.texi (Modified build rules): New node.
10459 2017-12-10  Bruno Haible  <bruno@clisp.org>
10461         doc: Tweak wording.
10462         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
10463         "binaries".
10465 2017-12-05  Sam Steingold  <sds@gnu.org>
10466             Bruno Haible  <bruno@clisp.org>
10468         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
10469         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
10470         AC_EGREP_CPP pattern.
10472 2017-12-03  Bruno Haible  <bruno@clisp.org>
10474         all: Replace more http URLs by https URLs.
10475         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
10476         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
10477         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
10478         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
10480 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
10482         Port better to CentOS 5
10483         Problems reported by Tom G. Christensen in:
10484         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
10485         * doc/glibc-functions/strverscmp.texi (strverscmp):
10486         Document strverscmp bug with glibc 2.9 and earlier.
10487         * doc/posix-functions/tzset.texi (tzset):
10488         Document that TZ with angle brackets is POSIX-2001 and later.
10489         * tests/test-nstrftime.c: Include unistd.h.
10490         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
10491         (TZ): Use it to skip tests with angle brackets in TZ,
10492         for older systems.
10494         stat: add missing module dependencies
10495         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
10496         Add stat-time.
10498 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
10500         stat: fix compilation failure on macOS Sierra
10501         Reported by Marius Schamschula <mschamschula@gmail.com> in:
10502         https://savannah.gnu.org/bugs/?52546
10503         * lib/stat.c: Add missing include of stat-time.h.
10505 2017-11-28  Jim Meyering  <meyering@fb.com>
10507         test-faccessat.c: correct BASE definition to avoid parallel test failure
10508         * tests/test-faccessat.c (BASE): Define using this file's name, not
10509         that of test-lstat.c.  Using the latter caused this test to fail
10510         sometimes when run concurrently with test-lstat.
10512 2017-11-27  Daiki Ueno  <ueno@gnu.org>
10514         unicase: fix VPATH build
10515         * modules/unicase/special-casing (Makefile.am): Ensure that the
10516         base directory is created when generating
10517         unicase/special-casing.h.
10519 2017-11-27  Daiki Ueno  <ueno@gnu.org>
10521         libunistring: update to Unicode 9.0.0
10522         * lib/gen-uni-tables.c (fill_properties): Recognize
10523         Sentence_Terminal and Prepended_Concatenation_Mark.
10524         (is_property_default_ignorable_code_point): Exclude U+08E2.
10525         (fill_arabicshaping): Allow missing whitespace when parsing;
10526         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
10527         (output_blocks): Increase the element size of the level1 table to
10528         accommodate more blocks.
10529         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
10530         Update each class according to the standard.
10531         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
10532         E_Base_GAZ characters.
10533         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
10534         Glue_After_Zwj, and E_Base_GAZ characters.
10535         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
10536         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
10537         enum value.
10538         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
10539         value.
10540         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
10541         LBP_ZWJ, LBP_EB, and LBP_EM.
10542         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
10543         enum value.
10544         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
10545         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
10546         declaration.
10547         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
10548         (uniwbrk_table): Implement WB14.
10549         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
10550         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
10551         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
10552         uc-is-grapheme-break.
10553         * modules/unigbrk/uc-grapheme-breaks: New module.
10554         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
10555         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
10556         enum value.
10557         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
10558         * lib/unigbrk/u-grapheme-breaks.h: New file.
10559         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
10560         u-grapheme-breaks.h instead of uc_is_grapheme_break.
10561         * lib/unigbrk/uc-grapheme-breaks.c: New file.
10562         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
10563         29.
10564         * tests/unigbrk/test-uc-gbrk-prop.c
10565         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
10566         GBP_GAZ, and GBP_EBG.
10567         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
10568         * tests/unigbrk/test-uc-is-grapheme-break.c
10569         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
10570         GBP_GAZ, and GBP_EBG.
10571         (main): Skip unsupported rules involving 3 or more characters,
10572         namely GB10, GB12, and GB13.
10573         * lib/uniwidth/width.c (nonspacing_table_data): Update.
10574         * all generated files under lib/uni* and tests/uni*: Regenerate.
10575         * all the affected modules: Bump version.
10577 2017-11-26  Bruno Haible  <bruno@clisp.org>
10579         strfmon_l: Fix compilation error with glibc 2.5.
10580         Reported by Tom G. Christensen <tgc@jupiterrise.com>
10581         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
10582         * lib/monetary.in.h: Include also <locale.h>.
10584 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
10586         posixtm: remove PDS_LEADING_YEAR
10587         This changes the API slightly, in a hopefully-innocuous way.
10588         Without this change the code had undefined behavior when a
10589         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
10590         Problem reported by Pádraig Brady in:
10591         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
10592         * NEWS: Mention this.
10593         * lib/posixtm.c (posix_time_parse): Treat the absence of
10594         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
10595         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
10596         present, but define it as zero, for compatibility with existing
10597         source code).  All other PDS_* values moved up.
10598         * tests/test-posixtm.c (LY): New macro.
10599         (T): Use it.  Do not expect a particular numeric encoding
10600         for PDS_CENTURY etc.
10602 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
10604         stat: work around Solaris bug with tv_nsec < 0
10605         * doc/posix-functions/fstat.texi (fstat):
10606         * doc/posix-functions/fstatat.texi (fstatat):
10607         * doc/posix-functions/lstat.texi (lstat):
10608         * doc/posix-functions/stat.texi (stat):
10609         Mention Solaris 11 bug.
10610         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
10611         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
10612         * lib/lstat.c (rpl_lstat):
10613         * lib/stat.c (rpl_stat):
10614         Normalize resulting timestamps.
10615         * lib/fstatat.c (normal_fstatat): New function.
10616         (rpl_fstatat): Use it.
10617         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
10618         (stat_time_normalize): New function.
10619         * m4/fstat.m4 (gl_FUNC_FSTAT):
10620         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
10621         * m4/lstat.m4 (gl_FUNC_LSTAT):
10622         * m4/stat.m4 (gl_FUNC_STAT):
10623         Replace on Solaris.
10624         * modules/fstat (Depends-on):
10625         * modules/fstatat (Depends-on):
10626         Add stat-time.
10627         * modules/stat-time (Depends-on): Add errno, intprops.
10629 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
10631         regex: merge from glibc
10632         * lib/regcomp.c (init_word_char): Add comments.
10634 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10636         regex: merge from glibc
10637         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
10638         * lib/regex_internal.h (internal_function): Remove.
10639         All uses removed.
10641 2017-11-20  Bruno Haible  <bruno@clisp.org>
10643         crypto/gc-sm3: Fix buffer overrun.
10644         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
10645         Reported by Coverity.
10647 2017-11-12  Jim Meyering  <meyering@fb.com>
10649         maint: shorten https://lists.gnu.org/archive/html/... links
10650         Each /archive/html/ part can be replace with /r/.
10651         Run this to induce the change:
10652         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
10653         * ChangeLog: Perform that substitution.
10654         * Makefile: Likewise.
10655         * STATUS-libposix: Likewise.
10656         * build-aux/bootstrap: Likewise.
10657         * doc/maintain.texi: Likewise.
10658         * gnulib-tool: Likewise.
10659         * lib/allocator.h: Likewise.
10660         * lib/argp-ba.c: Likewise.
10661         * lib/argp-pv.c: Likewise.
10662         * lib/canon-host.c: Likewise.
10663         * lib/canonicalize-lgpl.c: Likewise.
10664         * lib/float.in.h: Likewise.
10665         * lib/fstat.c: Likewise.
10666         * lib/getdelim.c: Likewise.
10667         * lib/getprogname.c: Likewise.
10668         * lib/glthread/thread.h: Likewise.
10669         * lib/intprops.h: Likewise.
10670         * lib/mbsrtowcs-state.c: Likewise.
10671         * lib/safe-read.c: Likewise.
10672         * lib/signal.in.h: Likewise.
10673         * lib/stat.c: Likewise.
10674         * lib/stdbool.in.h: Likewise.
10675         * lib/stdio-impl.h: Likewise.
10676         * lib/stdio.in.h: Likewise.
10677         * lib/sysexits.in.h: Likewise.
10678         * lib/timespec.h: Likewise.
10679         * lib/wcsrtombs-state.c: Likewise.
10680         * m4/alloca.m4: Likewise.
10681         * m4/extern-inline.m4: Likewise.
10682         * m4/fstatat.m4: Likewise.
10683         * m4/gnulib-common.m4: Likewise.
10684         * m4/lib-ignore.m4: Likewise.
10685         * m4/printf.m4: Likewise.
10686         * m4/regex.m4: Likewise.
10687         * m4/stat-size.m4: Likewise.
10688         * m4/std-gnu11.m4: Likewise.
10689         * m4/stdbool.m4: Likewise.
10690         * m4/sys_types_h.m4: Likewise.
10691         * m4/threadlib.m4: Likewise.
10692         * m4/vararrays.m4: Likewise.
10693         * pygnulib/GLImport.py: Likewise.
10694         * tests/test-exp.h: Likewise.
10695         * tests/test-exp2.h: Likewise.
10696         * tests/test-expm1.h: Likewise.
10697         * tests/test-fflush2.c: Likewise.
10698         * tests/test-getopt_long.h: Likewise.
10699         * tests/test-intprops.c: Likewise.
10700         * tests/test-log.h: Likewise.
10701         * tests/test-log10.h: Likewise.
10702         * tests/test-log1p.h: Likewise.
10703         * tests/test-log2.h: Likewise.
10704         * tests/test-printf-posix.h: Likewise.
10705         * tests/test-regex.c: Likewise.
10706         * tests/test-snprintf-posix.h: Likewise.
10707         * tests/test-sprintf-posix.h: Likewise.
10708         * tests/test-stdalign.c: Likewise.
10709         * tests/test-stdbool.c: Likewise.
10710         * tests/test-vasnprintf-posix.c: Likewise.
10711         * tests/test-vasprintf-posix.c: Likewise.
10712         * top/maint.mk: Likewise.
10714 2017-11-12  Bruno Haible  <bruno@clisp.org>
10716         faccessat: Make the last change more robust.
10717         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
10718         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
10720 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
10722         faccessat: port to macOS (Bug#29231)
10723         macOS faccessat has the same bug that lstat does: if the file
10724         name ends in '/' it ignores the trailing slash.
10725         Problem reported for Emacs by Vincent Zhang.
10726         * doc/posix-functions/faccessat.texi (faccessat): Document this.
10727         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
10728         around the initial includes.  Include errno.h, string.h, sys/stat.h.
10729         (orig_faccessat) [HAVE_FACCESSAT]: New function.
10730         Include "unistd.h" after defining it.
10731         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
10732         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
10733         Handle in the usual way.
10734         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
10735         lstat dereferences symlinks, since faccessat is likely to
10736         have the same problem.
10737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
10738         * modules/faccessat (Depends-on): Add fstatat.
10739         Depend if REPLACE_FACCESSAT is 1, too.
10740         (configure.ac): Link if REPLACE_FACCESSAT is 1.
10741         * modules/faccessat-tests (Depends-on): Add symlink.
10742         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
10743         * tests/test-faccessat.c (main): Test for the bug.
10745 2017-11-11  Bruno Haible  <bruno@clisp.org>
10747         getprogname: Fix compilation error on IRIX.
10748         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
10749         'namesize'.
10751 2017-11-11  Bruno Haible  <bruno@clisp.org>
10753         year2038: Tweak last patch.
10754         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
10756 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10758         year2038: be more insistent about 64-bit time_t
10759         Applications requiring access to arbitrary files should not be
10760         built with 32-bit time_t on hosts that have 64-bit timestamps,
10761         as this can lead to real trouble at runtime.
10762         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
10763         Check on all systems, not just MinGW.  Use a heuristic involving
10764         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
10765         output a failure or just a warning, to make it more likely that
10766         builders will select 64-bit time_t.
10768 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
10770         havelib: fix typo in previous change
10771         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
10773         Don’t use AC_EGREP_CPP if affected by CFLAGS
10774         * m4/float_h.m4 (gl_FLOAT_H):
10775         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
10776         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
10777         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
10778         * m4/year2038.m4 (gl_YEAR2038):
10779         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
10780         likely to be affected by the choice of CFLAGS, since CFLAGS are
10781         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
10782         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
10784         fstatat: pacify GCC on unusual platform
10785         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
10786         Omit, as it’s unused in this case.
10788 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
10790         timespec: prefer ‘assume’ to ‘assure’
10791         This avoids some runtime tests.  The rest of the module makes
10792         similar assumptions and there is little point to testing here.
10793         * lib/timespec.h: Include verify.h instead of assure.h.
10794         (timespec_cmp): Use ‘assume’, not ‘assure’.
10795         Also, remove an unnecessary cast to ‘int’, as lots of other
10796         code in this module now causes -Wconversion to complain, and
10797         this is a problem with -Wconversion not with the code.
10799         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
10801         Port recent gnulib-tool change to Dash
10802         * gnulib-tool (func_create_testdir): Don't assume that the shell
10803         retokenizes after expanding "$@" inside the call to
10804         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
10806 2017-10-27  Jim Meyering  <meyering@fb.com>
10808         timespec.h: use "assure" to avoid a spurious warning
10809         * lib/timespec.h: Include "assure.h" and use it to help
10810         gcc7's -Wstrict-overflow avoid a false positive warning
10811         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
10812         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
10813         * modules/timespec (Depends-on): Add assure.
10815 2017-10-29  Bruno Haible  <bruno@clisp.org>
10817         Avoid several test failures with traditional locales on Haiku.
10818         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
10819         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
10820         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
10821         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
10822         LOCALE_ZH_CN=none.
10824 2017-10-29  Bruno Haible  <bruno@clisp.org>
10826         strerror_r-posix: Fix behaviour and test failure on Haiku.
10827         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
10828         are positive. Work around return value 0 instead of ERANGE on Haiku.
10829         For unknown error numbers, use a format string consistent with perror().
10830         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
10831         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
10832         are positive.
10834 2017-10-29  Bruno Haible  <bruno@clisp.org>
10836         get-rusage-data: Avoid crash on Haiku.
10837         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
10839 2017-10-29  Bruno Haible  <bruno@clisp.org>
10841         get-rusage-as: Avoid crash on Haiku.
10842         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
10844 2017-10-29  Bruno Haible  <bruno@clisp.org>
10846         ilogbl: Ensure replacement on Haiku.
10847         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
10848         REPLACE_ILOGBL if ilogbl does not work.
10849         (gl_FUNC_ILOGBL_WORKS): New macro.
10850         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
10851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
10852         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
10853         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
10854         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
10856 2017-10-29  Bruno Haible  <bruno@clisp.org>
10858         expl: Ensure replacement on Haiku.
10859         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
10860         zero.
10861         * doc/posix-functions/expl.texi: Mention the Haiku problem.
10863 2017-10-29  Bruno Haible  <bruno@clisp.org>
10865         math: Fix test failure on Haiku.
10866         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
10867         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
10868         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
10869         * doc/posix-headers/math.texi: Mention the Haiku problem.
10871 2017-10-29  Bruno Haible  <bruno@clisp.org>
10873         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
10874         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
10875         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
10877 2017-10-29  Bruno Haible  <bruno@clisp.org>
10879         crypto/*: Verify that the header file is self-contained.
10880         * tests/test-gc-*.c: Include the module's header file immediately after
10881         <config.h>.
10882         * tests/test-hmac-*.c: Likewise.
10883         * tests/test-arcfour.c: Likewise.
10884         * tests/test-arctwo.c: Likewise.
10885         * tests/test-des.c: Likewise.
10886         * tests/test-md2.c: Likewise.
10887         * tests/test-md4.c: Likewise.
10888         * tests/test-md5.c: Likewise.
10889         * tests/test-rijndael.c: Likewise.
10890         * tests/test-sha1.c: Likewise.
10891         * tests/test-sm3.c: Likewise.
10893 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10894             Bruno Haible  <bruno@clisp.org>
10896         crypto/gc: fix build failure with -Werror=suggest-attribute=const
10897         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
10899 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10901         New module: crypto/gc-sm3
10902         * lib/gc.h: Declare SM3-related stuffs.
10903         * lib/gc-gnulib.c: Support sm3 in internal functions.
10904         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
10905         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
10906         * modules/crypto/gc-sm3: Define gc-sm3 module.
10907         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
10908         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
10909         * MODULES.html.sh: List gc-sm3 module.
10911 2017-10-29  Bruno Haible  <bruno@clisp.org>
10913         random, random_r: Mention different prototypes on Haiku.
10914         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
10915         * doc/glibc-functions/random_r.texi: Likewise.
10916         * doc/glibc-functions/initstate_r.texi: Likewise.
10917         * doc/glibc-functions/setstate_r.texi: Likewise.
10919 2017-10-28  Bruno Haible  <bruno@clisp.org>
10921         posix_spawn: Avoid spurious message in configure output.
10922         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
10923         'cmp' command.
10925 2017-10-28  Bruno Haible  <bruno@clisp.org>
10927         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
10928         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
10929         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10931 2017-10-28  Bruno Haible  <bruno@clisp.org>
10933         ioctl: Override non-POSIX declaration on Haiku.
10934         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
10935         * lib/sys_ioctl.in.h: Add comment about Haiku.
10936         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
10937         * doc/glibc-headers/sys_ioctl.texi: Likewise.
10939 2017-10-28  Bruno Haible  <bruno@clisp.org>
10941         crypto/sm3: Add overview documentation to the .h file.
10942         * lib/sm3.h: Add comments.
10944 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10946         New module: crypto/sm3
10947         This new module can be used to compute SM3 message digest of files or
10948         memory blocks according to the specification GM/T 004-2012
10949         Cryptographic Hash Algorithm SM3, published by State Cryptography
10950         Administration, China.
10951         The official SM3 cryptographic hash algorithm specification is
10952         available at
10953         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
10954         * lib/sm3.h: Declare the APIs of sm3 module.
10955         * lib/sm3.c: Implement SM3 hash algorithm.
10956         * m4/sm3.m4: m4 file for sm3 module.
10957         * modules/crypto/sm3: Define sm3 module.
10958         * tests/test-sm3.c: Implement SM3 test case.
10959         * modules/crypto/sm3-tests: Define sm3 test module.
10960         * MODULES.html.sh: List sm3 module.
10962 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10964         gc-libgcrypt: fix undefined enum type in switch statement
10965         Resolve the following build failure:
10966         lib/gc-libgcrypt.c: In function 'gc_hash_open':
10967         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
10968         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
10969              case 0:
10970              ^~~~
10971         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
10972         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
10974 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10976         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
10977         Resolve the following build failure:
10978         lib/gc-libgcrypt.c: In function 'gc_hash_read':
10979         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
10980         in signedness [-Werror=pointer-sign]
10981             digest = gcry_md_read (ctx->gch, 0);
10982                    ^
10983         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
10985 2017-10-26  Bruno Haible  <bruno@clisp.org>
10987         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
10988         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
10989         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
10991 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
10993         glob: fix another heap buffer overflow
10994         Problem reported by Tim Rühsen in:
10995         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
10996         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
10998 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
11000         quotearg: pacify compiler re unsigned
11001         * lib/quotearg.c (quotearg_n_options):
11002         Rewrite to avoid diagnostic from overly-picky compiler.
11003         Problem reported by Sami Kerola in:
11004         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
11006         glob: fix heap buffer overflow
11007         * lib/glob.c (glob): Fix off-by-one error introduced into
11008         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
11009         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
11010         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
11011         Fix suggested by Bruno Haible.
11013 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
11015         glob: pacify fuzzer for mempcpy
11016         Problem reported by Tim Rühsen in:
11017         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
11018         * lib/glob.c (glob): Do not pass NULL to mempcpy.
11020 2017-10-12  Bruno Haible  <bruno@clisp.org>
11022         doc: Fix syntax error (regression from 2017-10-03).
11023         * doc/posix-functions/strncpy.texi: Fix syntax error.
11025 2017-10-12  Bruno Haible  <bruno@clisp.org>
11027         doc: Update for Solaris 11.3.
11028         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
11029         mention Solaris 11.3.
11030         * m4/log2.m4: Fix comments.
11031         * m4/log2f.m4: Likewise.
11032         * m4/printf.m4: Update comments.
11033         * m4/rename.m4: Likewise.
11034         * m4/strncat.m4: Likewise.
11036         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
11038 2017-10-10  Bruno Haible  <bruno@clisp.org>
11040         doc: Improve doc about ioctl.
11041         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
11042         prototype.
11044 2017-10-09  Bruno Haible  <bruno@clisp.org>
11046         wcwidth: Don't use obsolete syntax of 'test'.
11047         Reported by Eric Blake.
11048         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
11049         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
11051 2017-10-09  Bruno Haible  <bruno@clisp.org>
11053         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
11054         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
11055         and Daniel P. Berrange <berrange@redhat.com>.
11056         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
11057         on glibc systems. The getopt-pfx-core.h file declares exactly what
11058         unistd.h needs, nothing more.
11060 2017-10-08  Bruno Haible  <bruno@clisp.org>
11062         vma-iter: Improve support for FreeBSD.
11063         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
11064         vma_iterate.
11065         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
11067 2017-10-08  Bruno Haible  <bruno@clisp.org>
11069         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
11070         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
11072 2017-10-07  KO Myung-Hun  <komh@chollian.net>
11074         test-framework-sh: Fix 'invalid path dir' error.
11075         On OS/2, a path separator is ';' not ':'. And ':' is used as a
11076         separator between a drive letter and directory parts.
11077         As a result, an absolute path such as x:/path/to/dir on OS/2 is
11078         treated as an invalid path dir.
11079         * tests/init.sh (PATH_SEPARATOR): Set at startup.
11080         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
11081         instead of hard coded ':'.
11083 2017-10-07  Bruno Haible  <bruno@clisp.org>
11085         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
11086         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
11087         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
11088         (rof_open): On Linux, do multiple read() calls and make sure
11089         MIN_LEFTOVER bytes are left when read() returns.
11091 2017-10-07  Bruno Haible  <bruno@clisp.org>
11093         vma-iter: Improve support for GNU/Hurd.
11094         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
11095         API, not the /proc file system.
11097 2017-10-07  Bruno Haible  <bruno@clisp.org>
11099         test-framework-sh: Don't require bash on Windows and OS/2.
11100         Reported by KO Myung-Hun.
11101         * tests/test-init.sh: Use 'shopt' only when running in bash.
11103 2017-10-06  KO Myung-Hun  <komh@chollian.net>
11105         wcwidth: check a macro version of wcwidth () as well
11106         * lib/wchar.in.h: Revert commit from 2016-01-14.
11107         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
11109 2017-10-06  Bruno Haible  <bruno@clisp.org>
11111         getopt-posix: Clarify copyright header.
11112         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
11113         * lib/getopt-pfx-core.h: Likewise.
11114         * lib/getopt-pfx-ext.h: Likewise.
11115         * lib/getopt-cdefs.in.h: Likewise.
11117 2017-10-03  Bruno Haible  <bruno@clisp.org>
11119         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
11120         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
11121         gl_HOST_CPU_C_ABI.
11123 2017-10-03  Bruno Haible  <bruno@clisp.org>
11125         doc: warn about misuse of strncpy and wcsncpy.
11126         * doc/posix-functions/strcpy.texi: Describe requirements on prior
11127         memory allocation.
11128         * doc/posix-functions/wcscpy.texi: Likewise.
11129         * doc/posix-functions/strncpy.texi: Describe what this function is not
11130         useful for.
11131         * doc/posix-functions/wcsncpy.texi: Likewise.
11133 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
11135         fsuage: fix typo in previous change
11136         * lib/fsusage.c: Remove stray include of full-read.h.
11137         Problem reported by Sam Steingold for macOS (Bug#28669).
11139 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
11141         fsusage: remove SVR2 support
11142         SVR2 was obsolete by 1986 and is no longer supported by anybody,
11143         and its code was getting in the way of use of this module by
11144         Emacs, which has its own ‘read’ function anyway.
11145         * lib/fsusage.c: Do not include sys/filsys.h.
11146         (get_fs_usage): Remove SVR2-specific code.
11147         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
11148         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
11149         * modules/fsusage (Depends-on): Do not depend on full-read.
11151         Simplify autoupdate of licenses
11152         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
11153         place.
11155 2017-10-01  Bruno Haible  <bruno@clisp.org>
11157         vma-iter: Add support for GNU/Hurd.
11158         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
11159         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
11161 2017-09-30  Bruno Haible  <bruno@clisp.org>
11163         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
11164         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
11165         fail when module 'largefile' is in use.
11166         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
11167         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
11168         Don't test HAVE_SYS_PROCFS_H.
11170 2017-09-30  Bruno Haible  <bruno@clisp.org>
11172         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
11173         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
11174         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
11175         * modules/havelib (Depends-on): Add host-cpu-c-abi.
11177 2017-09-30  Bruno Haible  <bruno@clisp.org>
11179         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
11180         * lib/uniname/uniname.c (unicode_name_character): Add braces around
11181         scope of local variables.
11183 2017-09-28  Bruno Haible  <bruno@clisp.org>
11185         string: code style
11186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
11187         substitutable variables.
11188         * modules/string (Makefile.am): Likewise.
11190 2017-09-26  Bruno Haible  <bruno@clisp.org>
11192         uniname/uniname-tests: Tighten code.
11193         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
11194         local variables into one.
11196 2017-09-26  Bruno Haible  <bruno@clisp.org>
11198         vma-iter: Improvements for Linux and BSD platforms.
11199         - Add support for DragonFly BSD.
11200         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
11201         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
11202         Read the entire file into memory in a single system call.
11203         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
11204         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
11206 2017-09-26  Bruno Haible  <bruno@clisp.org>
11208         vma-iter: Provide the protection flags on FreeBSD.
11209         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
11210         skip three fields between the addresses and the protection flags.
11212 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11214         glob: remove bogus extern decl
11215         * lib/glob.c (__glob_pattern_type): Remove now-spurious
11216         extern declaration.  Problem reported by Adhemerval Zanella in:
11217         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
11219 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11221         uniname/uniname-tests: integer overflow fix
11222         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
11223         Check for integer overflow.
11225         duplocale-tests: fix unlikely crash
11226         * tests/test-duplocale.c (get_locale_dependent_values):
11227         Don’t crash with absurdly long month names.
11229         maint: fix overflow checking in nap.h
11230         * modules/chown-tests:
11231         * modules/fchownat-tests, modules/fdutimensat-tests:
11232         * modules/futimens-tests, modules/lchown-tests:
11233         * modules/stat-time-tests, modules/utime-tests:
11234         * modules/utimens-tests, modules/utimensat-tests:
11235         Depend on intprops.
11236         * tests/nap.h: Include intprops.h.
11237         (diff_timespec): Handle overflow properly.
11239         sys_types: update URL
11240         * m4/sys_types_h.m4: Use https: URL.
11242         parse-datetime: fix dependency
11243         * modules/parse-datetime (Depends-on): Depend
11244         on nstrftime, not strftime.
11246         parse-datetime, posixtm: avoid uninit access
11247         * lib/parse-datetime.y (parse_datetime2):
11248         * lib/posixtm.c (posixtime):
11249         Do not access uninitialized storage, even though the resulting
11250         value is never used.
11252 2017-09-25  Bruno Haible  <bruno@clisp.org>
11254         vma-iter: Improvements for BSD platforms.
11255         - Add support for GNU/kFreeBSD.
11256         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
11257         - Speed up on OpenBSD.
11258         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
11259         (vma_iterate_bsd): New function.
11260         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
11261         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
11262         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
11263         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
11265 2017-09-23  Bruno Haible  <bruno@clisp.org>
11267         strfmon_l: New module.
11268         * modules/strfmon_l: New file.
11269         * lib/strfmon_l.c: New file.
11270         * m4/strfmon_l.m4: New file.
11271         * doc/posix-functions/strfmon_l.texi: Mention the new module.
11272         * modules/strfmon_l-tests: New file.
11273         * tests/test-strfmon_l.c: New file.
11275         monetary: New module.
11276         * modules/monetary: New file.
11277         * lib/monetary.in.h: New file.
11278         * m4/monetary_h.m4: New file.
11279         * doc/posix-headers/monetary.texi: Mention the new module.
11280         * modules/monetary-tests: New file.
11281         * tests/test-monetary.c: New file.
11282         * modules/monetary-c++-tests: New file.
11283         * tests/test-monetary-c++.cc: New file.
11284         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
11286 2017-09-23  Bruno Haible  <bruno@clisp.org>
11288         duplocale tests: Fix test crash on Linux/x86.
11289         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
11290         locale from the current thread before freeing it.
11292 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
11294         mktime: port to OpenVMS
11295         Problem reported by John E. Malmberg in:
11296         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
11297         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
11299 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11301         manywarnings: port to GCC on 64-bit MS-Windows
11302         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
11303         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
11304         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
11306 2017-09-13  Bruno Haible  <bruno@clisp.org>
11308         all: Replace many more http URLs by https URLs. Update stale URLs.
11309         * users.txt: Remove mention of 'newts'.
11310         * lib/localename.c: Update comment about LANG_SOTHO.
11312 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11314         all: Replace many http URLs by https URLs.
11316 2017-09-12  Bruno Haible  <bruno@clisp.org>
11318         doc: Prefer https URLs where possible.
11319         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
11320         * doc/ld-output-def.texi: Remove unavailable URL.
11322 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11324         maintainer-makefile: FTP -> HTTPS
11325         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
11326         of FTP, which is planned to be decommissioned on 2017-11-01.
11328 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
11330         libc-config: Fix __GNUC_PREREQ macro.
11331         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
11332         __GNUC_MINOR.
11334 2017-09-09  Bruno Haible  <bruno@clisp.org>
11336         gnulib-tool: Simplify commit from 2015-08-20.
11337         * gnulib-tool (func_add_or_update): Remove local variable
11338         is_binary_file.
11340 2017-09-08  Bruno Haible  <bruno@clisp.org>
11342         stddef: Avoid conflict with system-defined max_align_t.
11343         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
11344         Reported by Werner Lemberg <wl@gnu.org> in
11345         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
11346         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
11347         (max_align_t): Define as a macro.
11348         (GNULIB_defined_max_align_t): New macro. Guards against multiple
11349         definitions of rpl_max_align_t in different copies of gnulib-generated
11350         <stddef.h>.
11352 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11354         libc-config: port to MSVC
11355         Problems reported by Gisle Vanem in:
11356         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
11357         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
11358         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
11359         * m4/__inline.m4: New file.
11360         * modules/libc-config (Files): Add it.
11361         (Depends-on): Use it.
11363         glob: Use enum for __glob_pattern_type result
11364         From a patch proposed by Adhemerval Zanella in:
11365         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
11366         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
11367         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
11368         * lib/glob_internal.h (__glob_pattern_type):
11369         * lib/glob.c (glob):
11370         * lib/glob_pattern_p.c (__glob_pattern_p):
11371         Use them.
11373         glob: fix for use in glibc
11374         Problem reported by Adhemerval Zanella in:
11375         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
11376         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
11377         Do not redefine if _LIBC.
11379 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11381         glob: fix bugs with long login names
11382         Problem reported by Adhemerval Zanella in:
11383         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
11384         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
11385         (glob): Use the same scratch buffer for both getlogin_r and
11386         getpwnam_r.  Don’t require preallocation of the login name.  This
11387         simplifies storage allocation, and corrects the handling of
11388         long login names.
11390 2017-09-02  Bruno Haible  <bruno@clisp.org>
11392         dirent: Update doc.
11393         * doc/posix-headers/dirent.texi: More concrete list of platforms.
11395 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11397         glob: fix getpwnam_r errno typo
11398         * lib/glob.c (glob): Fix longstanding misuse of errno after
11399         getpwnam_r, which returns an error number rather than setting
11400         errno.
11402         glob: fix typo in recent change
11403         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
11404         Fix recently-introduced typo.
11406 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11408         glob: don't save and restore errno unnecessarily
11409         * lib/glob.c (glob): Don't save and restore errno
11410         merely because we have getpwnam_r.
11412         glob: don't assume getpwnam_r
11413         * lib/glob.c (glob): Port recent patches to platforms
11414         lacking getpwnam_r.
11416         scratch_buffer: don’t use private glibc API
11417         Suggested by Florian Weimer in:
11418         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
11419         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
11420         * lib/scratch_buffer_grow.c: Rename to
11421         lib/malloc/scratch_buffer_grow.c.
11422         * lib/scratch_buffer_grow_preserve.c: Rename to
11423         lib/malloc/scratch_buffer_grow_preserve.c.
11424         * lib/scratch_buffer_set_array_size.c: Rename to
11425         lib/malloc/scratch_buffer_set_array_size.c.
11426         * lib/scratch_buffer.h: New file.
11427         * modules/scratch_buffer (Files, Makefile.am):
11428         Adjust to source-file renaming.
11430 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11432         glob: use scratch_buffer instead of extend_alloca
11433         Much of the lib/glob.c part of this patch comes from a glibc patch
11434         proposed by Adhemerval Zanella in:
11435         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
11436         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
11437         included via glob.h, does this for us now.
11438         (__set_errno): Remove, as libc-config does this for us now.
11439         Include <scratch_buffer.h>.
11440         (GETPW_R_SIZE_MAX): Remove.
11441         (glob): Use struct scratch_buffer instead of extend_alloca.
11442         * lib/glob.in.h: Include libc-config.h rather than
11443         including <sys/cdefs.h> conditionally.
11444         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
11445         (__glibc_unlikely, __restrict, weak_alias):
11446         Remove, as libc-config does this for us now.
11447         * m4/glob.m4 (gl_PREREQ_GLOB):
11448         Remove sys/cdefs.h tests; no longer needed.
11449         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
11450         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
11452         scratch_buffer: new module
11453         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
11454         * lib/scratch_buffer_grow_preserve.c:
11455         * lib/scratch_buffer_set_array_size.c:
11456         New files, copied from glibc with very minor changes that can be
11457         copied back.
11458         * modules/scratch_buffer: New file.
11460         libc-config: new module
11461         * MODULES.html.sh: Add libc-config.
11462         * lib/cdefs.h: New file, copied from the GNU C Library with very
11463         minor changes that can be copied back.
11464         * lib/libc-config.h, modules/libc-config: New files.
11466 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11468         glob: match dangling symlinks
11469         This fixes a bug I inadvertently introduced to Gnulib when I
11470         merged glibc glob back into gnulib on 2007-10-16.  This fix is
11471         inspired by a patch proposed for glibc by Adhemerval Zanella in:
11472         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
11473         * doc/posix-functions/glob.texi: Update list of affected platforms.
11474         * lib/glob.c (__lstat64): New macro.
11475         (is_dir): New function.
11476         (glob, glob_in_dir): Match symlinks even if they are dangling.
11477         (link_stat, link_exists_p): Remove.  All uses removed.
11478         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
11479         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
11480         * modules/glob-tests (Depends-on): Add symlink.
11481         * tests/test-glob.c: Include errno.h, unistd.h.
11482         (BASE): New macro.
11483         (main): Test dangling symlinks, if symlinks are supported.
11485         glob, backupfile: inode 0 is a valid inode number
11486         * doc/posix-functions/readdir.texi (readdir):
11487         * doc/posix-headers/dirent.texi (dirent.h):
11488         Document more readdir portability issues.
11489         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
11490         (numbered_backup): Don’t treat inode 0 any differently from
11491         other inode values.
11492         * lib/glob.c (struct readdir_result): Remove skip_entry member.
11493         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
11494         All uses removed.
11495         * modules/glob (Depends-on): Remove d-ino.
11497         glob: simplify symlink detection
11498         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
11499         uint8_t, as C99 does not require uint8_t.
11500         (struct readdir_result): Use it.  Do not define skip_entry unless
11501         it is needed; this saves a byte on platforms lacking d_ino.
11502         (readdir_result_type, readdir_result_skip_entry):
11503         New functions, replacing ...
11504         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
11505         ... these functions, which were removed.  This makes the callers
11506         easier to read.  All callers changed.
11507         (D_INO_TO_RESULT): Now empty if there is no d_ino.
11509 2017-08-30  Pádraig Brady  <P@draigBrady.com>
11511         fts-tests: tag as a longrunning-test so not included by default
11512         * modules/fts-tests: This test takes about 20s on current systems,
11513         and uses about 285M of space on ext4.
11515 2017-08-30  Pádraig Brady  <P@draigBrady.com>
11517         renameat2: fix compilation on alpine linux
11518         * m4/renameat.m4: Check for <linux/fs.h> presence.
11519         * lib/renameat2.h: Only include <linux/fs.h> if present.
11520         Reported by Assaf Gordon on Alpine Linux.
11522 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11524         glob: try to port recent changes to MS-Windows
11525         Problem reported by Bruno Haible in:
11526         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
11527         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
11528         * lib/glob.in.h (__glob_pattern_p): ... to here.
11530 2017-08-24  Eric Blake  <eblake@redhat.com>
11532         warnings: fix compilation with old autoconf
11533         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
11534         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
11535         AC_DEFUN.
11536         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
11537         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
11539 2017-08-24  Bruno Haible  <bruno@clisp.org>
11541         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
11542         * modules/glob (Depends-on): Add c99.
11544 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11546         glob: fix typo that broke platforms lacking d_ino
11547         This typo also hurt performance on GNU/Linux and similar hosts.
11548         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
11549         in previous change.
11551 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11553         glob: merge from glibc with Zanella glob changes
11554         Merge glob from glibc, with changes for glob proposed
11555         by Adhemerval Zanella in the thread starting here:
11556         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
11557         plus some fixes for this merge.
11558         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
11559         New files, ported from glibc.
11560         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
11561         with __restrict.
11562         (__size_t): Remove.  All uses replaced by size_t.
11563         (size_t): Define by defining __need_size_t and including <stddef.h>.
11564         This should work even in non-glibc platforms, where any name
11565         pollution is OK.
11566         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
11567         (struct stat64): Don’t worry about __GLOB_GNULIB.
11568         (glob, globfree, glob_pattern_p): Remove macros for
11569         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
11570         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
11571         but set errno.
11572         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
11573         removed since the glibc behavior works on null pointers.
11574         Do not include stdio.h; old SunOS is irrelevant now.
11575         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
11576         Include glob_internal.h.
11577         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
11578         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
11579         worked only coincidentally.
11580         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
11581         Remove macros; now done in glob.in.h.
11582         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
11583         (glob): Properly initialize glob structure with
11584         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
11585         Remove old code using SHELL since Bash no longer
11586         uses this.
11587         (glob, prefix_array): Separate MS code better.
11588         (glob, glob_in_dir): Use C99 decls before statements when glibc
11589         does.
11590         (glob_in_dir): Remove old Amiga and VMS code.
11591         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
11592         separate files.
11593         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
11594         (__glibc_unlikely):
11595         Move here from glob.c.
11596         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
11597         (weak_alias): New macro.
11598         (__size_t): Remove.  All uses replaced by size_t.
11599         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
11600         * modules/glob (Files): Add +lib/glob_internal.h,
11601         lib/glob_pattern_p.c, lib/globfree.c.
11602         (Depends-on): Remove snippet/arg-nonnull.
11604 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
11606         glob: port to clang's Undefined Sanitizer
11607         Problem reported by Tim Rühsen in:
11608         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
11609         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
11610         (glob_in_dir): Do not rely on undefined behavior in accessing
11611         struct members beyond their bounds.  Use a flexible array member
11612         instead.
11614 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11616         vc-list-files: port to Solaris 10
11617         * build-aux/vc-list-files: Don't assume test -e works.
11619 2017-08-21  Karl Berry  <karl@freefriends.org>
11621         * doc/posix-functions/srandom.texi (srandom): typo }.
11623 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11625         git-version-gen: port to Solaris 10
11626         Problem reported by Dagobert Michelsen in:
11627         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
11628         * build-aux/git-version-gen (v_from_git):
11629         Use expr instead of shell substitution.
11631 2017-08-19  Bruno Haible  <bruno@clisp.org>
11633         host-cpu-c-abi: Improve detection of MIPS ABI.
11634         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
11635         _MIPS_SIM.
11637 2017-08-17  Bruno Haible  <bruno@clisp.org>
11639         hypot tests: Fix test failure on FreeBSD 11.0/x86.
11640         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
11642 2017-08-17  Bruno Haible  <bruno@clisp.org>
11644         float: Fix LDBL_MIN value on FreeBSD/x86.
11645         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
11647 2017-08-17  Bruno Haible  <bruno@clisp.org>
11649         random: Fix test compilation failure on Cygwin 1.5.25.
11650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
11651         HAVE_DECL_SETSTATE.
11652         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
11653         declared.
11654         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
11655         HAVE_DECL_SETSTATE.
11656         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
11657         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
11658         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
11659         * doc/posix-functions/random.texi: Likewise.
11660         * doc/posix-functions/setstate.texi: Likewise.
11661         * doc/posix-functions/srandom.texi: Likewise.
11663 2017-08-16  Bruno Haible  <bruno@clisp.org>
11665         stdnoreturn: Fix test compilation failure on Cygwin.
11666         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
11667         <stdnoreturn.h> replacement.
11668         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
11669         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
11671 2017-08-16  Bruno Haible  <bruno@clisp.org>
11673         thread: Fix conflict with pthread_sigmask module.
11674         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
11675         it's defined as a macro.
11676         * modules/thread (Depends-on): Add pthread_sigmask.
11678 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
11680         rename: port better to NetBSD
11681         * doc/posix-functions/rename.texi (rename): NetBSD 7
11682         does not have the link-count bug.
11683         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
11684         broken merely because rename ("a", "b") removes "a" when the two
11685         names are hard links to the same file.
11687 2017-08-16  Bruno Haible  <bruno@clisp.org>
11689         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
11690         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
11691         the target file names with '$(srcdir)/'.
11692         * modules/unicase/locale-language (Makefile.am): Likewise.
11693         * modules/unicase/special-casing (Makefile.am): Likewise.
11694         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
11695         * modules/unictype/category-byname (Makefile.am): Likewise.
11696         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
11697         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
11698         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
11699         * modules/unictype/property-byname (Makefile.am): Likewise.
11700         * modules/unictype/scripts (Makefile.am): Likewise.
11701         * modules/uninorm/composition (Makefile.am): Likewise.
11703 2017-08-16  Bruno Haible  <bruno@clisp.org>
11705         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
11706         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
11707         value for OpenBSD.
11709 2017-08-16  Bruno Haible  <bruno@clisp.org>
11711         rename, renameat: Update doc regarding NetBSD.
11712         * doc/posix-functions/rename.texi: Clarify that when using
11713         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
11714         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
11715         version.
11717 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11719         renameat2: port better to macOS
11720         * lib/renameat2.c (renameat2): Use renameatx_np if available.
11722         futimens: don’t assume struct timespec layout
11723         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
11724         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
11725         * tests/test-fdutimensat.c (main):
11726         * tests/test-futimens.h (test_futimens):
11727         * tests/test-lutimens.h (test_lutimens):
11728         * tests/test-utimens.h (test_utimens):
11729         * tests/test-utimensat.c (main):
11730         Don’t assume that struct timespec is a two-member structure in
11731         tv_sec, tv_nsec order.  Although this is true on all platforms we
11732         know about, POSIX does not guarantee it.
11734         rename: document+test NetBSD rename
11735         Test failure reported by Bruno Haible in:
11736         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
11737         This is an area where NetBSD is better-behaved than POSIX,
11738         so allow the NetBSD behavior in tests.
11739         * doc/posix-functions/rename.texi:
11740         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
11741         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
11743 2017-08-15  Bruno Haible  <bruno@clisp.org>
11745         renameat: Ensure declaration in <stdio.h> on NetBSD.
11746         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
11747         * doc/posix-functions/renameat.texi: Mention this problem.
11749 2017-08-15  Bruno Haible  <bruno@clisp.org>
11751         duplocale: Work around NetBSD 7.0 bug.
11752         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
11753         * lib/duplocale.c: Add comment about NetBSD problem.
11754         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
11756 2017-08-15  Bruno Haible  <bruno@clisp.org>
11758         duplocale tests: Verify use with *_l functions.
11759         * modules/duplocale-tests (configure.ac): Test for uselocale and
11760         some *_l functions.
11761         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
11762         from main.
11763         (get_locale_dependent_values_from, test_with_locale_parameter): New
11764         functions.
11765         (main): Test both test_with_uselocale and test_with_locale_parameter.
11767 2017-08-15  Bruno Haible  <bruno@clisp.org>
11769         extensions: Enable NetBSD specific extensions.
11770         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
11772 2017-08-14  Bruno Haible  <bruno@clisp.org>
11774         open, openat: Update doc about O_CLOEXEC.
11775         * doc/posix-functions/open.texi: More concrete list of platforms.
11776         * doc/posix-functions/openat.texi: Likewise.
11778 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11780         open: support O_CLOEXEC
11781         * NEWS, doc/posix-functions/open.texi:
11782         * doc/posix-functions/openat.texi: Document this.
11783         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
11784         (GNULIB_defined_O_CLOEXEC): New symbol.
11785         * lib/open.c: Include cloexec.h.
11786         (open): Support O_CLOEXEC.
11787         * lib/openat.c: Include cloexec.h.
11788         (rpl_openat): Support O_CLOEXEC.
11789         * lib/popen-safer.c: Do not include cloexec.h.
11790         (open_noinherit): Remove.
11791         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
11792         * lib/save-cwd.c: Do not include cloexec.h.
11793         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
11794         * m4/open-cloexec.m4: New file.
11795         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
11796         Replace 'open' if O_CLOEXEC is not present.
11797         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
11798         Replace 'openat' if O_CLOEXEC is not present.
11799         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
11800         * modules/open (Files): Add m4/open-cloexec.m4.
11801         (Depends-on): Depend on cloexec if replacing 'open'.
11802         * modules/openat (Files): Add m4/open-cloexec.m4.
11803         (Depends-on): Depend on cloexec if replacing openat.
11804         * modules/popen-safer (Depends-on): Remove cloexec.
11805         * modules/save-cwd (Depends-on): Remove cloexec, and add
11806         fd-safer-flag and 'open'.
11808 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
11810         reallocarray: minor fixes
11811         * doc/glibc-functions/reallocarray.texi: Update version numbers.
11812         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
11813         * modules/reallocarray (License): Change from GPL to LGPL.
11814         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
11815         Indent properly and don't use tabs.
11817 2017-08-13  Darshit Shah  <darnir@gnu.org>
11819         reallocarray: New module
11820         reallocarray is a new function in glibc 2.26 to safely allocate an array
11821         of memory locations with integer overflow protection.
11822         * MODULES.html.sh: Add reallocarray.
11823         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
11824         * lib/reallocarray.c: New file to implement module reallocarray.
11825         * lib/stdlib.in.h: Add function declarations for reallocarray.
11826         * m4/reallocarray.m4: New file.
11827         * m4/stdlib_h.m4: Declare reallocarray.
11828         * modules/reallocarray: New file.
11829         * modules/reallocarray-test: New file.
11830         * modules/stdlib: Coerce stdlib.h to export reallocarray.
11831         * tests/test-reallocarray.c: New test.
11833 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11835         dirent-safer: fix cloexec race
11836         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
11837         (opendir_safer): Use F_DUPFD_CLOEXEC.
11838         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
11839         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
11840         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
11841         instead of dup_safer.
11843         fts: fix cloexec races
11844         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
11845         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
11846         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
11847         (fd_ring_check): Set cloexec flag on new file descriptors.
11848         (fts_build, fd_ring_check): While we’re at it, make sure the
11849         resulting file descriptor is not 0, 1, or 2, since that is easy.
11851 2017-08-11  Bruno Haible  <bruno@clisp.org>
11853         fts tests: Fix link error.
11854         Reported by Tom G. Christensen in
11855         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
11856         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
11858 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11860         fts: port recent changes to CentOS 6
11861         Problem reported by Tom G. Christensen in:
11862         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
11863         * lib/fts.c (fsword): New type.
11864         (struct dev_type, filesystem_type): Use it.
11865         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
11866         Also, check for f_type only if fstatfs and sys/vfs.h work.
11868 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11870         tempname: do not depend on secure_getenv
11871         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
11872         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
11873         * modules/tempname (Depends-on): Remove secure_getenv.
11875 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
11877         extensions: add _OPENBSD_SOURCE
11878         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
11880 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
11881             Bruno Haible  <bruno@clisp.org>
11883         manywarnings: Add support for C++.
11884         * build-aux/g++-warning.spec: New file.
11885         * m4/manywarnings-c++.m4: New file.
11886         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
11887         redirects to manywarnings-c++.m4.
11888         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
11890 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
11892         git-version-gen: another fix for tags with "-"
11893         * build-aux/git-version-gen: Improve fix for tags containing "-".
11894         Suggested by Markus Armbruster in:
11895         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
11897 2017-08-06  Bruno Haible  <bruno@clisp.org>
11899         warnings, manywarnings: Add support for multiple languages, not just C.
11900         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
11901         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
11902         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
11903         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
11904         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
11905         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
11906         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
11907         of the current language. If C++ is the current language, modify
11908         WARN_CXXFLAGS instead of WARN_CFLAGS.
11909         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
11910         gl_MANYWARN_ALL_GCC.
11911         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
11913 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
11915         git-version-gen: Fix for tags containing '-'
11917         Really old versions of git-describe (before v1.5.0, Feb 2007)
11918         don't have the number of commits in their long format output,
11919         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
11920         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
11921         recognizes both patterns, and normalizes the old format to the new one.
11923         Unfortunately, this normalization code gets confused when the tag
11924         contains '-'.  Reproducer:
11926             $ git-tag -m test v0.2-rc1
11927             $ build-aux/git-version-gen .tarball-version; echo
11928             build-aux/git-version-gen: WARNING: git rev-list failed
11929             UNKNOWN
11931         We take exact tag "v0.2-rc1" for the old format, extract the presumed
11932         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
11933         commits since tha tag.  Fails, because tag "v0.2" does not exist.
11935         * git-version-gen: We could perhaps drop support for versions from
11936         more than a decade ago.  But tightening the pattern match is easy
11937         enough, so do that.  Still breaks when you use version tags ending in
11938         something matching -g????, but you arguably get what you deserve then.
11940 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
11942         valgrind-tests: use ls, and cache
11943         * m4/valgrind-tests.m4: Test ls, not bash.
11944         Problem reported by Reuben Thomas.
11945         Also, cache the result so that it can be overridden.
11947 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
11949         manywarnings: port to 64-bit GCC builds of Emacs
11950         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
11951         object size rather than hardwiring 2147483647.  This is needed to
11952         build GNU Emacs, which has one conditional (and used
11953         only-in-theory) call to malloc with a literal greater than
11954         2147483647.
11956 2017-08-04  Bruno Haible  <bruno@clisp.org>
11958         Relax the license of some modules with no runtime code.
11959         * modules/std-gnu11 (License): Set to 'unlimited'.
11960         * modules/c99 (License): Likewise.
11961         Reported by Reuben Thomas <rrt@sc3d.org>.
11962         * modules/d-ino (License): Set to 'LGPL'.
11963         * modules/host-os (License): Likewise.
11964         * modules/longlong (License): Likewise.
11966 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
11968         renameat2: port to RHEL 7 + NFS
11969         * lib/renameat2.c (renameat2) [SYS_renameat2]:
11970         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
11971         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
11973 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
11975         renameat2: port to non-renameat platforms
11976         Problem reported for MSVC-2015 by Gisle Vanem in:
11977         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
11978         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
11979         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
11981 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
11983         manywarnings: port to 32-bit GCC bug
11984         Problem reported by Pino Toscano in:
11985         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
11986         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
11987         not 2**63 - 1, to work around the following GCC bug:
11988         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
11990 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
11992         backupfile: new function to validate backup suffix
11993         * lib/backupfile.c (set_simple_backup_suffix): New function.
11994         (backupfile_internal): Use it.
11996         canonicalize: fix EOVERFLOW commentary
11997         Problem reported by Bruno Haible in:
11998         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
11999         * lib/canonicalize.c (canonicalize_filename_mode):
12000         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
12002         Don't interpret EOVERFLOW to mean nonexistence
12003         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
12004         may be EOVERFLOW; this is likely more useful than reporting the
12005         stat errno.
12006         * lib/glob.c (link_stat): Rename from link_exists2_p and
12007         return -1/0 instead of 0/1.  Caller changed.
12008         * lib/glob.c (link_exists_p):
12009         * lib/renameat2.c (rename_noreplace, renameat2):
12010         * lib/tempname.c (try_nocreate):
12011         If errno == EOVERFLOW then the directory entry exists, so do not
12012         act as if it does not exist.
12014         backup-rename: new module
12015         It is like backupfile, except it avoids some race conditions,
12016         and it does not output to stderr or exit.
12017         * MODULES.html.sh: Add backup-rename.
12018         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
12019         * modules/backup-rename: New files.
12020         * lib/backupfile.c: Turn this into an internals file, which
12021         contains code common to backupfile and backup_rename.  Include
12022         backupfile-internal.h instead of backupfile.h.  Do not include
12023         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
12024         renameat2.h and fcntl.h.
12025         (BACKUP_NOMEM): New constant.
12026         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
12027         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
12028         (backupfile_internal): Rename from find_backup_file_name.
12029         Support new arg RENAME.
12030         (backup_args, backup_types, get_version, xget_version):
12031         Move to lib/backup-find.c.
12032         * lib/backupfile.h (backup_file_rename): New decl.
12033         * modules/backupfile (Files): Add lib/backup-internal.h,
12034         lib/backup-find.c.
12035         (Depends-on): Add dirfd, fcntl, renameat2.
12036         (lib_SOURCES): Add backup-find.c.
12038         renameat2: port better to older Solaris
12039         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
12040         Add goto to use a label, to silence picky compilers.
12042         fts-tests: port to gcc -Wwrite-strings
12043         * tests/test-fts.c (base, base_d): New static vars.
12044         (argv, remove_tree, main): Use them.
12046 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
12048         relocatable-lib{,-lgpl}: improve documentation
12049         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
12050         Various other updates.
12052 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
12053             Bruno Haible  <bruno@clisp.org>
12055         relocatable-lib{,-lgpl}: add Valgrind suppressions
12056         * lib/relocatable.valgrind: New file.
12057         * modules/relocatable-lib (Files): Add relocatable.valgrind.
12058         * modules/relocatable-lib-lgpl: Likewise.
12060 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
12062         relocatable: Make the license on the sources the GPL.
12063         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
12064         LGPL, which was a special case so that the relocatable source files
12065         could be used without gnulib-tool, to GPL. They can still be used under
12066         the LGPL, using the --lgpl option to gnulib-tool.
12068 2017-07-30  Bruno Haible  <bruno@clisp.org>
12070         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
12071         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
12072         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
12073         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
12074         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
12076 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
12078         faccessat: document AT_SYMLINK_NOFOLLOW issue
12079         * doc/posix-functions/faccessat.texi: Modernize platform list.
12080         Document AT_SYMLINK_NOFOLLOW limitation.
12082         renameat2: port to Solaris 10
12083         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
12084         with AT_SYMLINK_NOFOLLOW (which is not portable).
12085         (renameat): Undef before using, to avoid endless recursion when
12086         the replacement renameat calls renameat2 which calls the
12087         replacement renameat.
12088         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
12089         * modules/renameat2 (Depends-on): Remove faccessat.
12090         * modules/renameat-tests (test_renameat_LDADD):
12091         * modules/renameat2-tests (test_renameat2_LDADD):
12092         Remove $(LIB_EACCESS).
12094         renameat2: new module
12095         Although the Linux syscall renameat2 is not in glibc (yet?), it is
12096         useful to have access to its RENAME_NOREPLACE flag.
12097         * MODULES.html.sh (func_all_modules): Add renameat2.
12098         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
12099         * modules/renameat2-tests, tests/test-renameat2.c: New files.
12100         * lib/renameat.c (renameat): Move most of the implementation
12101         to renameat2, and just call renameat2.
12102         * modules/renameat (Files): Remove lib/at-func2.c.
12103         (Depends-on): Depend only on renameat2.
12104         (Include): Remove <fcntl.h>.
12105         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
12106         since renameat (via renameat2) might use faccessat.
12108 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
12110         vc-list-files: Adjust the script to support git worktrees
12111         * build-aux/vc-list-files: Require existence, not directory.
12113 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
12115         doc: bring MODULES.html.sh up to date
12116         Somehow a few months ago we stopped updating MODULES.html.sh.
12117         I don’t recall explicitly deciding this, so I updated it now.
12118         Alternatively I suppose we could remove it.
12119         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
12120         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
12121         truncate, utime, utime-h, windows-stat-inodes,
12122         windows-stat-override, windows-stat-timespec, year2038.  Sort.
12124 2017-07-26  Jim Meyering  <meyering@fb.com>
12126         fprintftime: fix build-break caused by recent renaming
12127         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
12128         "strftime.c".
12129         * modules/fprintftime: Depend directly on nstrftime.
12131 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
12133         regex: work with GCC7's -Werror=implicit-fallthrough=
12134         * lib/regex_internal.h (FALLTHROUGH): New macro.
12135         * lib/regcomp.c (peek_token_bracket, parse_expression):
12136         * lib/regexec.c (check_node_accept): Use it.
12138 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12140         fts: simplify fts_build
12141         * lib/fts.c (fts_build): Simplify, and be lazier about
12142         calling leaf_optimization.
12144         fts: three levels of leaf optimization
12145         * lib/fts.c (enum leaf_optimization): New type with three values.
12146         (S_MAGIC_AFS): New macro.  Sort them.
12147         (leaf_optimization): Rename from leaf_optimization_applies, and
12148         return enum leaf_optimization instead of bool.  All uses changed.
12149         Add cases for unknown type and for AFS.
12150         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
12152         fts: cache dirent_inode_sort_may_be_useful too
12153         * lib/fts.c (struct dev_type): New struct.
12154         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
12155         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
12156         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
12157         Now takes FTSENT const *, not int.  All uses changed.  Use
12158         filesystem_type to cache.
12159         (link_count_optimize_ok): Remove.  Caller changed to use
12160         leaf_optimization_applies, which now uses shared cache.
12162         fts: introduce MIN_DIR_NLINK
12163         * lib/fts.c (MIN_DIR_NLINK): New constant.
12164         Use it instead of 2, whenever we are talking about link counts.
12166         fts: nlink_t signedness fixups
12167         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
12168         so that root need not be a special case later.
12169         (fts_read): Remove now-redundant test for fts_level.
12170         Do not assume that nlink_t is signed.
12171         (fts_build): Remove useless decrement of nlinks.
12172         (fts_stat): Avoid unlikely signed integer overflow later, if
12173         nlink_t is signed.
12175         fts-tests: new module
12176         * modules/fts-tests, tests/test-fts.c: New files.
12178 2017-07-23  Bruno Haible  <bruno@clisp.org>
12180         Rename module 'strftime' to 'nstrftime'.
12181         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
12182         * lib/nstrftime.c: Renamed from lib/strftime.c.
12183         * modules/nstrftime: Renamed from modules/strftime.
12184         (Files, Makefile.am): Update.
12185         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
12186         Fix comment.
12187         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
12188         (Files, Makefile.am): Update.
12189         * modules/strftime: New file, an obsolete indirection.
12190         * doc/posix-functions/strftime.texi: Update reference.
12191         * config/srclist.txt: Update info.
12192         * NEWS: Mention the change.
12194 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
12196         malloca: Silence a warning from clang's memory sanitizer.
12197         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
12198         (freea): Use it.
12200 2017-07-18  Bruno Haible  <bruno@clisp.org>
12202         host-cpu-c-abi: Fix detection of MIPS ABI.
12203         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
12204         ABI, not the CPU instruction set.
12206 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12208         explicit_bzero: new module
12209         The explicit_bzero function has been added to glibc.
12210         This module is intended to supports its use in GNU programs.
12211         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
12212         * m4/explicit_bzero.m4, modules/explicit_bzero:
12213         New files.
12214         * doc/gnulib.texi (Glibc string.h): Link to new doc.
12215         * lib/string.in.h (explicit_bzero): Declare.
12216         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
12217         * modules/string (string.h): Substitute its vars.
12219 2017-07-16  Bruno Haible  <bruno@clisp.org>
12221         threadlib: Support static linking.
12222         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
12223         set gl_cv_have_weak to 'no'.
12225 2017-07-16  Bruno Haible  <bruno@clisp.org>
12227         unicase/locale-language: Fix link dependencies.
12228         * modules/unicase/locale-language (Link): New section.
12229         * modules/unicase/locale-language-tests (Makefile.am): Link
12230         test-locale-language program with $(LIBTHREAD).
12232 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
12234         sys_socket: Add support for OpenVMS.
12235         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
12236         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
12238 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
12240         sys_resource: Add support for OpenVMS.
12241         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
12242         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
12244 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
12245             Bruno Haible  <bruno@clisp.org>
12247         math: Add support for OpenVMS.
12248         * lib/math.in.h [__VMS]: Include <fp.h>.
12249         * doc/posix-headers/math.texi: Mention OpenVMS issues.
12251 2017-07-15  Bruno Haible  <bruno@clisp.org>
12253         getdtablesize: Add minimal support for OpenVMS.
12254         Reported by John E. Malmberg <wb8tyw@qsl.net>.
12255         * modules/getdtablesize (Description): Fix.
12256         * lib/getdtablesize.c: Fix comment.
12257         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
12258         getdtablesize() function, even though the test fails.
12259         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
12260         limitation on OpenVMS.
12262 2017-07-13  Bruno Haible  <bruno@clisp.org>
12264         Revisit cross-compilation guesses.
12265         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
12267 2017-07-13  Bruno Haible  <bruno@clisp.org>
12269         Improve cross-compilation guesses for native Windows.
12270         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
12271         Windows.
12272         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
12273         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
12274         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12275         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
12276         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
12277         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12278         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12279         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12280         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12281         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
12282         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12283         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
12284         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
12285         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12286         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
12287         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12288         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
12289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
12290         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12291         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
12292         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12293         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12294         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
12295         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
12296         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
12297         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
12298         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
12299         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
12300         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12301         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
12302         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12303         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
12304         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
12305         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
12306         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
12307         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
12308         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
12309         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12310         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
12311         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12312         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12313         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12314         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
12315         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
12316         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
12317         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
12318         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
12319         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
12320         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
12321         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
12322         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
12323         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
12324         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
12325         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
12326         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
12327         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
12328         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
12329         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
12330         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
12331         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
12332         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12333         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
12334         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
12335         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
12336         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
12337         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12338         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
12339         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12340         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
12341         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
12342         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
12343         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
12344         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12345         * m4/regex.m4 (gl_REGEX): Likewise.
12346         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
12347         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
12348         gl_FUNC_REMAINDERF_WORKS): Likewise.
12349         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
12350         gl_FUNC_REMAINDERL_WORKS): Likewise.
12351         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12352         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
12353         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12354         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12355         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12356         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12357         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12358         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12359         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
12360         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12361         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
12362         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
12363         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12364         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12365         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12366         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12367         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12368         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12369         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12370         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
12371         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
12372         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12373         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12374         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
12375         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12376         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12377         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12378         Likewise.
12379         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12380         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
12381         Windows. Enable also on Autoconf 2.70.
12382         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12383         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12384         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12385         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
12386         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12387         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
12388         for native Windows.
12389         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12390         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
12392 2017-07-13  Bruno Haible  <bruno@clisp.org>
12394         Improve cross-compilation guesses for native Windows.
12395         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
12396         Windows.
12397         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
12398         memchr.m4.
12399         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12401 2017-07-13  Bruno Haible  <bruno@clisp.org>
12403         Improve cross-compilation guesses for native Windows.
12404         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
12405         native Windows.
12406         (gl_FUNC_FFLUSH): Update accordingly.
12407         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
12408         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
12410 2017-07-11  Bruno Haible  <bruno@clisp.org>
12412         More systematic m4 quoting and indentation.
12413         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
12414         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12415         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
12416         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12417         * m4/host-os.m4 (gl_HOST_OS): Likewise.
12418         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
12419         gl_WINSIZE_IN_PTEM): Likewise.
12420         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
12421         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
12422         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
12423         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
12424         Correct indentation.
12425         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12426         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12427         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
12428         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
12429         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
12430         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12432 2017-07-10  Bruno Haible  <bruno@clisp.org>
12434         round, roundf: Avoid compiler warning in configure test.
12435         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
12436         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12438 2017-07-10  Bruno Haible  <bruno@clisp.org>
12440         getlogin tests: Avoid #ifdefs when sharing code between modules.
12441         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
12442         * modules/getlogin-tests (Files): Likewise. Remove
12443         tests/test-getlogin_r.c.
12444         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
12445         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
12446         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
12447         getlogin().
12449 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
12451         getlogin: don’t assume one name per uid
12452         Problem reported by Wolfgang F. Muthmann (Bug#27640).
12453         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
12454         (ttyname): Remove test.
12455         * modules/getlogin_r-tests (ttyname): Remove test.
12456         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
12457         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
12458         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
12459         getlogin rather than getlogin_r.  This avoids code duplication.
12460         (main): Use isatty and fstat rather than ttyname and stat.
12461         Use getpwnam instead of getpwuid, to be portable to test platforms
12462         that have multiple login names for the same uid.
12464 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
12465             Bruno Haible  <bruno@clisp.org>
12467         glob: Fix more memory leaks.
12468         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
12469         returning.
12470         Reported by Tim Rühsen.
12472 2017-07-10  Bruno Haible  <bruno@clisp.org>
12474         Make sure $host and $host_os are defined when used.
12475         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
12476         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
12477         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
12478         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12479         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12480         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
12481         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
12482         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
12483         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12484         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
12485         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
12486         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
12487         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
12488         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
12489         m4_ifdef block.
12491 2017-07-09  Bruno Haible  <bruno@clisp.org>
12493         *printf: Fix cross-compilation guess for Solaris.
12494         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
12495         2010-12-21.
12497 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12498             Bruno Haible  <bruno@clisp.org>
12500         vasnprintf: port to macOS 10.13
12501         Problem reported by comex in:
12502         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
12503         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
12505 2017-07-06  Bruno Haible  <bruno@clisp.org>
12507         imaxdiv tests: Fix logic.
12508         * tests/test-imaxdiv.c (main): Use == instead of =.
12509         Reported by Coverity.
12511 2017-07-06  Bruno Haible  <bruno@clisp.org>
12513         uninorm/filter: Fix use-after-free bug.
12514         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
12515         sortbuf == filter->sortbuf invariant.
12516         Reported by Coverity.
12518 2017-07-06  Bruno Haible  <bruno@clisp.org>
12520         glob: Fix more memory leaks.
12521         * lib/glob.c (glob): Free dirname before returning.
12522         Reported by Coverity and Tim Rühsen.
12524 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12526         parse-datetime: fix uninit var bug
12527         Reported by Bruno Haible in:
12528         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
12529         * lib/parse-datetime.y (parse_datetime2): Do not use
12530         uninitialized.
12532 2017-07-05  Bruno Haible  <bruno@clisp.org>
12534         doc: Update for MSVC 14.
12535         * doc/posix-headers/*.texi: Add info about MSVC 14.
12536         * doc/posix-functions/*.texi: Likewise.
12537         * doc/pastposix-functions/*.texi: Likewise.
12538         * doc/glibc-headers/*.texi: Likewise.
12539         * doc/glibc-functions/*.texi: Likewise.
12541 2017-07-05  Bruno Haible  <bruno@clisp.org>
12543         sched: Fix build failure on native Windows (regression from 2017-06-19).
12544         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
12546 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
12548         stdioext: Port to OpenVMS.
12549         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
12550         * lib/fpending.c (fpending): Remove non-working VMS specific code.
12551         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
12552         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
12553         * lib/fpurge.c (fpurge): Likewise.
12554         * lib/freadable.c (freadable): Likewise.
12555         * lib/freadahead.c (freadahead): Likewise.
12556         * lib/freading.c (freading): Likewise.
12557         * lib/freadptr.c (freadptr): Likewise.
12558         * lib/freadseek.c (freadseek): Likewise.
12559         * lib/fseeko.c (fseeko): Likewise.
12560         * lib/fseterr.c (fseterr): Likewise.
12561         * lib/fwritable.c (fwriteable): Likewise.
12562         * lib/fwriting.c (fwriting): Likewise.
12564 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
12566         glob: Declare variables at the very start of their scope.
12567         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
12568         its separate scope, so the functions will compile on Haiku.
12570 2017-07-01  Bruno Haible  <bruno@clisp.org>
12572         logbl: Work around a glibc bug on PowerPC64LE.
12573         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
12574         numbers.
12575         * doc/posix-functions/logbl.texi: Update.
12577 2017-06-29  Bruno Haible  <bruno@clisp.org>
12579         stat, fstat: Compile stat-w32.c only on platforms that need it.
12580         Suggested by Paul Eggert.
12581         * modules/stat (configure.ac): Request stat-w32.o only on native
12582         Windows.
12583         * modules/fstat (configure.ac): Likewise.
12585 2017-06-25  Bruno Haible  <bruno@clisp.org>
12587         stat: Improve last change.
12588         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
12590 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12592         stat: port to xlc 12.01
12593         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
12594         12.01 complains "Compilation unit is empty."
12596 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12598         xalloc-oversized: port to icc
12599         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
12600         __builtin_mul_overflow if ICC is defined, as this results in
12601         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
12602         20170213.
12604 2017-06-19  Bruno Haible  <bruno@clisp.org>
12606         classpath: Avoid including config.h twice, as it produces warnings.
12607         Reported by John E. Malmberg <wb8tyw@gmail.com>.
12608         * lib/classpath.h: Conditionalize the include of config.h.
12610 2017-06-19  Bruno Haible  <bruno@clisp.org>
12611             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
12613         sched: Fix compilation failure on OpenVMS.
12614         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
12615         test whether <pthread.h> exists and defines struct sched_param.
12616         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
12618 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
12620         diffseq: port to GCC 7 with --enable-gcc-warnings
12621         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
12622         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
12623         not complain about big_snake being defined but not used.
12625 2017-06-15  Bruno Haible  <bruno@clisp.org>
12627         gettext-h: Update theoretical condition for use of variable size arrays.
12628         Reported by Paul Eggert.
12629         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
12630         to include the theoretical condition for availability of variable size
12631         arrays, if we could trust the value of __STDC_VERSION__.
12633 2017-06-12  Bruno Haible  <bruno@clisp.org>
12635         Relicense some modules under LGPLv2+.
12636         Daiki Ueno's approval is in
12637         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
12638         * modules/uniwidth/base (License): Change to LGPLv2+.
12639         * modules/uniwidth/width (License): Likewise.
12641 2017-06-11  Bruno Haible  <bruno@clisp.org>
12643         localename: Fix test failure on DragonFly BSD.
12644         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
12645         like FreeBSD.
12647 2017-06-11  Bruno Haible  <bruno@clisp.org>
12649         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
12650         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
12651         * lib/float.in.h: Likewise.
12652         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
12654 2017-06-11  Bruno Haible  <bruno@clisp.org>
12656         gnulib-tool: Clean up after autotools.
12657         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
12658         useless directory left over by the Autotools.
12660 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
12662         getopt-posix: port to glibc 2.25.90
12663         Problem reported by Daniel P. Berrange in:
12664         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
12665         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
12666         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
12667         #undef if __GETOPT_PREFIX is defined.
12669 2017-06-11  Bruno Haible  <bruno@clisp.org>
12671         strtod-obsolete: Fix license.
12672         * modules/strtod-obsolete (License): Change to LGPL.
12674 2017-06-10  Jim Meyering  <meyering@fb.com>
12676         maint: update to work with GCC7's -Werror=implicit-fallthrough=
12677         * lib/savewd.c (FALLTHROUGH): Define.
12678         (savewd_save, savewd_restore): Use this, rather than a comment,
12679         whenever one switch case falls through into the next.
12681 2017-06-08  Bruno Haible  <bruno@clisp.org>
12683         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
12684         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
12685         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
12686         case.
12688 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
12690         doc: remove robots, add prereqs
12691         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
12692         builds.  Simon's robot site does not seem to be up, so remove
12693         mentions of it for now.
12695 2017-06-08  Bruno Haible  <bruno@clisp.org>
12697         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
12698         * gnulib-tool (func_symlink_target): New function, extracted from
12699         func_symlink.
12700         (func_symlink, func_symlink_if_changed): Use it.
12702 2017-06-08  Bruno Haible  <bruno@clisp.org>
12704         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
12705         * gnulib-tool (func_ln_s): Determine cp_src correctly.
12707 2017-06-07  Bruno Haible  <bruno@clisp.org>
12709         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
12710         Reported by John E. Malmberg <wb8tyw@gmail.com> in
12711         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
12712         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
12713         override, pass 2 arguments to getcwd, not 3.
12715 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
12717         same-inode: port better to VMS 8.2 and later
12718         Problem reported by John E. Malmberg in:
12719         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
12720         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
12721         Use the usual POSIX definition.
12722         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
12724 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
12726         error: fix POSIX violation for va_end
12727         Problem reported by Bruno Haible in:
12728         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
12729         * lib/error.c (error_tail): Do not call va_end here.
12730         (error, error_at_line): Call it here instead.
12732 2017-05-28  Bruno Haible  <bruno@clisp.org>
12734         c-strtod: Make it usable in C++ mode.
12735         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
12737 2017-05-25  Jim Meyering  <meyering@fb.com>
12739         quotearg: fix compilation failure due to FALLTHROUGH misuse
12740         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
12741         macro back to /* fall through */ comment.  The macro can apply only
12742         to a following case statement.  Reported by Assaf Gordon.
12744 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
12746         intprops: port to recent icc
12747         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
12748         but does not support __builtin_add_overflow etc.
12749         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
12750         Define to 0.
12752 2017-05-23  Karl Berry  <karl@freefriends.org>
12754         * config/srclist.txt (iconv.m4): sync broken, comment out
12755         until (hopefully) the next gettext release.
12757 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
12759         Remove repeated words in comments.
12761 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
12763         fallthrough: reinstate a FALLTHROUGH instance in quotearg
12764         quotearg.c: Reinstate this instance which is significant
12765         when the if branch is not taken.
12767 2017-05-21  Bruno Haible  <bruno@clisp.org>
12769         gnulib-tool: Add options to create hard links.
12770         * gnulib-tool (func_usage): Document options --hardlink,
12771         --local-hardlink, --more-hardlinks.
12772         (func_symlink): Renamed from func_ln.
12773         (func_symlink_if_changed): Renamed from func_ln_if_changed.
12774         (func_hardlink): New function.
12775         (copymode, lcopymode): New variables.
12776         (symbolic, lsymbolic): Remove variables.
12777         (Options): Implement options --hardlink, --local-hardlink,
12778         --more-hardlinks.
12779         (func_should_link): Renamed from func_should_symlink. Set copyaction.
12780         (func_add_file, func_update_file): Update invocation of
12781         func_should_link. Invoke func_hardlink when appropriate.
12782         (func_import): Update comments.
12783         (func_create_testdir): Update invocation of func_should_link. Invoke
12784         func_hardlink when appropriate.
12785         Finally, invoke 'git update-index --refresh' to mitigate the effects of
12786         the hard links on git.
12788 2017-05-20  Bruno Haible  <bruno@clisp.org>
12790         argp: Simplify bit manipulation.
12791         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
12792         on a signed integer type.
12794 2017-05-20  Bruno Haible  <bruno@clisp.org>
12796         Avoid wrong configure results with gcc -fsanitize=address.
12797         This completes the work done on 2016-02-06 on this topic.
12798         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
12799         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12800         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12801         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12802         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
12803         returning.
12804         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
12805         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
12806         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12807         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
12808         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12809         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
12810         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
12811         free allocated memory before returning.
12812         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12813         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
12814         objects before returning.
12815         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
12816         returning.
12818 2017-05-20  Bruno Haible  <bruno@clisp.org>
12820         gnulib-tool: Don't create hard links between gnulib and its testdirs.
12821         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
12823 2017-05-20  Bruno Haible  <bruno@clisp.org>
12825         argp, tsearch tests: Fix file list.
12826         * modules/argp-tests (Files): Add tests/macros.h.
12827         * modules/tsearch-tests (Files): Likewise.
12829 2017-05-20  Bruno Haible  <bruno@clisp.org>
12831         getopt-posix tests: Remove redundant include.
12832         * tests/test-getopt.h: Don't include "macros.h". It's already included
12833         by tests/test-getopt-main.h.
12835 2017-05-19  Jim Meyering  <meyering@fb.com>
12837         dfa: two small simplifications
12838         * lib/dfa.c (build_state): Avoid repeating longer expressions.
12840 2017-05-18  Jim Meyering  <meyering@fb.com>
12842         fallthrough: update for GCC 7/8
12843         * lib/quotearg.c (FALLTHROUGH): New macro.
12844         Use it whenever one switch case falls through into the next,
12845         replacing "/* Fall through */" comments.  This exposed one
12846         instance of an unwarranted "fall through" comment: unwarranted
12847         because it preceded a "goto" label not a case statement.
12848         * lib/freopen-safer.c (freopen_safer): Likewise.
12849         * lib/fts.c (leaf_optimization_applies): Likewise.
12850         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
12851         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
12852         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
12853         tests/macros.h for the definition.
12854         * tests/test-argp.c (group1_parser): Likewise.
12855         * tests/test-getopt.h (getopt_loop): Likewise.
12857 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12859         argp: fix shift bug
12860         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
12861         behavior on shift overflow, caught by gcc -fsanitize=undefined.
12863         argp: fix pointer-subtraction bug
12864         * lib/argp-help.c (hol_append): Don’t subtract pointers to
12865         different arrays, as this can run afoul of -fcheck-pointer-bounds.
12866         See the thread containing Bruno Haible’s report in:
12867         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
12869 2017-05-19  Bruno Haible  <bruno@clisp.org>
12871         printf-posix tests: Avoid test failure with "gcc --coverage".
12872         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12873         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
12874         than 5000000.
12875         * tests/test-fprintf-posix2.c (main): Likewise.
12877 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12879         closeout: don’t close stderr when sanitizing
12880         * NEWS: Document this.
12881         * lib/closeout.c (__has_feature): New macro, if not already defined.
12882         (SANITIZE_ADDRESS): New constant.
12883         (close_stdout): Don’t close stderr if sanitizing addresses.
12885 2017-05-19  Bruno Haible  <bruno@clisp.org>
12887         get-rusage-data tests: Avoid failure on Linux/glibc.
12888         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
12889         on glibc systems.
12891 2017-05-18  Bruno Haible  <bruno@clisp.org>
12893         localename: Include necessary header files on Cygwin.
12894         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
12895         where NL_LOCALE_NAME is defined.
12897 2017-05-18  Bruno Haible  <bruno@clisp.org>
12899         gettext: Update macros from gettext git.
12900         * m4/intldir.m4: Require Autoconf >= 2.60.
12901         * m4/progtest.m4: Fix typos in copyright notice.
12903 2017-05-18  Bruno Haible  <bruno@clisp.org>
12905         copy-file tests: Fix link error (regression from 2017-05-01).
12906         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12907         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
12908         $(LIB_CLOCK_GETTIME).
12910 2017-05-18  Bruno Haible  <bruno@clisp.org>
12912         unicase/special-casing: Fix incompatibility with gperf-3.0.4
12913         (regression from 2017-02-13).
12914         * lib/unicase/special-casing.in.h: Renamed from
12915         lib/unicase/special-casing.h.
12916         * modules/unicase/special-casing (Files): Add
12917         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
12918         (Makefile.am): Add rule for generating unicase/special-casing.h.
12919         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
12920         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
12921         not "special-casing.h".
12922         * lib/unicase/u*.c: Likewise.
12924 2017-05-17  Bruno Haible  <bruno@clisp.org>
12926         README: Don't ask people to read a TeXinfo file.
12927         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12928         * README: Tell people how to read the HTML formatted manual.
12930 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
12932         parse-datetime: Fix memleak
12933         * lib/parse-datetime.y (parse_datetime2): Cleanup on
12934         localtime_rz() failure.
12936 2017-05-16  Bruno Haible  <bruno@clisp.org>
12938         javacomp: Fix handle leak.
12939         Found by Coverity.
12940         * lib/javacomp.c (get_classfile_version): Close fd before returning.
12942 2017-05-16  Bruno Haible  <bruno@clisp.org>
12944         relocate: Make it easier to reclaim allocated memory.
12945         * lib/relocatable.h (relocate2): New declaration/macro.
12946         * lib/relocatable.c (relocate2): New function.
12947         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
12948         relocate2 function.
12949         * lib/localcharset.c (relocate2): Define fallback.
12950         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
12951         allocated memory.
12952         * lib/javaversion.c (relocate2): Define fallback.
12953         (javaexec_version): Invoke relocate2 instead of relocate. Free the
12954         allocated memory.
12956 2017-05-16  Bruno Haible  <bruno@clisp.org>
12958         relocate: Simplify EMX specific code.
12959         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
12960         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
12962 2017-05-16  Bruno Haible  <bruno@clisp.org>
12964         sigpipe tests: Fix file list.
12965         * modules/sigpipe-tests (Files): Add tests/macros.h.
12967 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12969         manywarnings: update for GCC 7
12970         * build-aux/gcc-warning.spec:
12971         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12972         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
12973         requires a non-comment fallthrough attribute.  This is a bit
12974         cleaner than the comment versions.
12975         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
12976         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
12977         Use it whenever one switch case falls through into the next.
12978         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
12979         Use FALLTHROUGH macro.
12981 2017-05-15  Bruno Haible  <bruno@clisp.org>
12983         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
12984         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
12985         @ALLOCA@, not @LTALLOCA@.
12987 2017-05-15  Bruno Haible  <bruno@clisp.org>
12989         sys_select: Avoid "was expanded before it was required" warning.
12990         * modules/sys_select (configure.ac): Require, not invoke,
12991         gl_HEADER_SYS_SELECT.
12993 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
12995         gnulib-tool: improve GNU Make debugging
12996         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
12997         Report autoconf diagnostics when it fails, in the output makefile.
12999 2017-05-14  Bruno Haible  <bruno@clisp.org>
13001         stat-time tests: Improve comment.
13002         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
13004 2017-05-14  Bruno Haible  <bruno@clisp.org>
13006         same-inode: Adapt for windows-stat-inodes.
13007         * lib/same-inode.h: Include <sys/types.h>.
13008         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
13009         * modules/same-inode (Depends-on): Add sys_types.
13011 2017-05-14  Bruno Haible  <bruno@clisp.org>
13013         windows-stat-inodes: New module.
13014         * m4/windows-stat-inodes.m4: New file.
13015         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
13016         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
13017         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
13018         (_GL_WINDOWS_STAT_INODES): New macro.
13019         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
13020         (GetFileInformationByHandleExFunc): New variable.
13021         (initialize): Initialize it.
13022         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
13023         st_ino appropriately.
13024         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
13025         a fallback, because it does not provide st_dev and st_ino values.
13026         * modules/fstat (Depends-on): Add 'verify'.
13027         * modules/windows-stat-inodes: New file.
13028         * doc/windows-stat-inodes.texi: New file.
13029         * doc/gnulib.texi: Include it.
13030         * doc/posix-headers/sys_stat.texi: Mention the new module.
13032 2017-05-14  Bruno Haible  <bruno@clisp.org>
13034         stat-time tests: Workaround for native Windows.
13035         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
13036         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
13037         New variables.
13038         (initialize_filenames): New function.
13039         (main): Invoke it.
13040         (cleanup, prepare_test): Update.
13042 2017-05-14  Bruno Haible  <bruno@clisp.org>
13044         stat-time: Adapt for windows-stat-timespec.
13045         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
13046         entire st_ctim field.
13048 2017-05-13  Jim Meyering  <meyering@fb.com>
13050         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
13051         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
13052         file that uses the assume macro, claiming that verify.h is unused.
13054 2017-05-13  Bruno Haible  <bruno@clisp.org>
13056         Use symbolic values for _WIN32_WINNT.
13057         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
13058         * lib/sethostname.c (_WIN32_WINNT): Likewise.
13060 2017-05-13  Bruno Haible  <bruno@clisp.org>
13062         year2038: New module.
13063         * m4/year2038.m4: New file.
13064         * modules/year2038: New file.
13065         * doc/year2038.texi: New file.
13066         * doc/gnulib.texi: Include it.
13068 2017-05-13  Bruno Haible  <bruno@clisp.org>
13070         largefile: Simplify.
13071         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
13072         of _GL_WINDOWS_64_BIT_ST_SIZE.
13074 2017-05-13  Bruno Haible  <bruno@clisp.org>
13076         largefile: Improve and document.
13077         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
13078         the mingw headers already define 'stat' appropriately.
13079         * modules/largefile (Description): Clarify.
13080         * doc/largefile.texi: New file.
13081         * doc/gnulib.texi: Include it.
13082         * doc/posix-headers/sys_types.texi: Update.
13084 2017-05-13  Bruno Haible  <bruno@clisp.org>
13086         truncate: New module.
13087         * lib/unistd.in.h (truncate): New declaration.
13088         * lib/truncate.c: New file.
13089         * m4/truncate.m4: New file.
13090         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
13091         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
13092         REPLACE_TRUNCATE.
13093         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
13094         HAVE_TRUNCATE, REPLACE_TRUNCATE.
13095         * modules/truncate: New file.
13096         * tests/test-unistd-c++.cc (truncate): Test signature.
13097         * doc/posix-functions/truncate.texi: Mention the new module.
13099         * tests/test-truncate.c: New file.
13100         * modules/truncate-tests: New file.
13102 2017-05-13  Bruno Haible  <bruno@clisp.org>
13104         windows-stat-timespec: New module.
13105         * modules/windows-stat-timespec: New file.
13106         * m4/windows-stat-timespec.m4: New file.
13107         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
13108         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
13109         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
13110         fields st_atim, st_mtim, st_ctim.
13111         (st_atime, st_mtime, st_ctime): Define as macros.
13112         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
13113         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
13114         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
13115         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
13116         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
13117         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
13118         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
13119         FILETIME to 'struct timespec', not 'time_t'.
13120         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
13121         FILETIME to 'struct timespec', not 'time_t'.
13122         * lib/stat-time.h (STAT_TIMESPEC): Define also if
13123         _GL_WINDOWS_STAT_TIMESPEC.
13124         * doc/windows-stat-timespec.texi: New file.
13125         * doc/gnulib.texi: Include it.
13127 2017-05-13  Bruno Haible  <bruno@clisp.org>
13129         windows-stat-override: New module.
13130         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
13131         definition. Define GNULIB_defined_struct_stat.
13132         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
13133         link error if this symbol is used and the corresponding module is not
13134         in use.
13135         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
13136         GNULIB_OVERRIDES_STRUCT_STAT.
13137         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
13138         GNULIB_OVERRIDES_STRUCT_STAT.
13139         * modules/sys_stat (Makefile.am): Substitute
13140         GNULIB_OVERRIDES_STRUCT_STAT.
13141         * modules/windows-stat-override: New file.
13143 2017-05-13  Bruno Haible  <bruno@clisp.org>
13145         fstat: Fix module dependency conditions.
13146         * modules/fstat (Depends-on): Fix typo.
13148 2017-05-13  Bruno Haible  <bruno@clisp.org>
13150         stat, fstat: Complete removal of old native Windows code.
13151         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
13152         * lib/fstat.c: Likewise.
13153         * lib/stat-w32.c: Likewise.
13155 2017-05-13  Bruno Haible  <bruno@clisp.org>
13157         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
13158         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
13160 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13162         getopt-posix: port to mingw
13163         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
13164         Problem reported by Daniel P. Berrage in:
13165         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
13167 2017-05-11  Bruno Haible  <bruno@clisp.org>
13169         gettimeofday: Increase precision on mingw.
13170         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
13171         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
13172         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
13173         GetSystemTimePreciseAsFileTime based implementation always.
13174         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
13175         mingw.
13177 2017-05-11  Bruno Haible  <bruno@clisp.org>
13179         poll: Fix confusion between SOCKETs and FDs on native Windows.
13180         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
13181         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
13183 2017-05-11  Bruno Haible  <bruno@clisp.org>
13185         doc: Clarify doc about socket functions on native Windows.
13186         This reworks doc that was added on 2008-09-29.
13187         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
13188         clearer wording.
13189         * doc/posix-functions/accept.texi: Use clearer wording.
13190         * doc/posix-functions/bind.texi: Likewise.
13191         * doc/posix-functions/connect.texi: Likewise.
13192         * doc/posix-functions/getpeername.texi: Likewise.
13193         * doc/posix-functions/getsockname.texi: Likewise.
13194         * doc/posix-functions/getsockopt.texi: Likewise.
13195         * doc/posix-functions/ioctl.texi: Likewise.
13196         * doc/posix-functions/listen.texi: Likewise.
13197         * doc/posix-functions/recv.texi: Likewise.
13198         * doc/posix-functions/recvfrom.texi: Likewise.
13199         * doc/posix-functions/send.texi: Likewise.
13200         * doc/posix-functions/sendto.texi: Likewise.
13201         * doc/posix-functions/setsockopt.texi: Likewise.
13202         * doc/posix-functions/shutdown.texi: Likewise.
13203         * doc/posix-functions/socket.texi: Likewise.
13205 2017-05-10  Bruno Haible  <bruno@clisp.org>
13207         poll: Fix link error on native Windows.
13208         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
13210 2017-05-10  Bruno Haible  <bruno@clisp.org>
13212         time: Fix missing initialization of HAVE_TIMEZONE_T.
13213         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
13214         here...
13215         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
13216         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
13217         gl_HEADER_SYS_TIME_H_DEFAULTS.
13218         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
13219         (configure.ac): Remove useless quoting.
13221 2017-05-10  Bruno Haible  <bruno@clisp.org>
13223         Implement a way to opt out from MSVC support, part 2.
13224         * modules/msvc-inval (Include): Document recommended idiom.
13225         * modules/msvc-nothrow (Include): Likewise.
13227         Implement a way to opt out from MSVC support.
13228         This is useful for Emacs.
13229         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
13230         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
13231         * lib/error.c: Likewise.
13232         * lib/fcntl.c: Likewise.
13233         * lib/flock.c: Likewise.
13234         * lib/fstat.c: Likewise.
13235         * lib/fsync.c: Likewise.
13236         * lib/ioctl.c: Likewise.
13237         * lib/isapipe.c: Likewise.
13238         * lib/lseek.c: Likewise.
13239         * lib/nonblocking.c: Likewise.
13240         * lib/poll.c: Likewise.
13241         * lib/select.c: Likewise.
13242         * lib/sockets.h: Likewise.
13243         * lib/sockets.c: Likewise.
13244         * lib/stdio-read.c: Likewise.
13245         * lib/stdio-write.c: Likewise.
13246         * lib/utimens.c: Likewise.
13247         * lib/w32sock.h: Likewise.
13248         * lib/w32spawn.h: Likewise.
13249         * tests/test-cloexec.c: Likewise.
13250         * tests/test-dup-safer.c: Likewise.
13251         * tests/test-dup2.c: Likewise.
13252         * tests/test-dup3.c: Likewise.
13253         * tests/test-fcntl.c: Likewise.
13254         * tests/test-pipe.c: Likewise.
13255         * tests/test-pipe2.c: Likewise.
13256         * lib/ftruncate.c: Likewise.
13257         (chsize_nothrow): Renamed from chsize.
13258         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
13259         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
13260         * lib/close.c: Likewise.
13261         * lib/dup.c: Likewise.
13262         * lib/fclose.c: Likewise.
13263         * lib/raise.c: Likewise.
13264         * tests/test-fgetc.c: Likewise.
13265         * tests/test-fputc.c: Likewise.
13266         * tests/test-fread.c: Likewise.
13267         * tests/test-fwrite.c: Likewise.
13268         * lib/getdtablesize.c: Likewise.
13269         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
13270         * lib/isatty.c: Don't include msvc-inval.h if
13271         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
13272         Include <io.h> as an alternative to msvc-nothrow.h.
13273         * lib/read.c: Likewise.
13274         * lib/write.c: Likewise.
13275         * lib/dup2.c: Likewise.
13276         (dup2_nothrow): New function.
13277         (ms_windows_dup2): Use it.
13278         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
13279         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
13280         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
13281         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
13282         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
13283         * m4/read.m4 (gl_FUNC_READ): Likewise.
13284         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
13285         * doc/windows-without-msvc.texi: New file.
13286         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
13287         section.
13289 2017-05-10  Bruno Haible  <bruno@clisp.org>
13291         wait-process: Adjust native Windows support.
13292         * lib/wait-process.c: Use the usual condition for recognizing a native
13293         Windows platform.
13295 2017-05-10  Bruno Haible  <bruno@clisp.org>
13297         doc: New chapter "Native Windows Support".
13298         * doc/gnulib.texi (Native Windows Support): New chapter.
13299         * doc/windows-libtool.texi: Small wording changes.
13300         * doc/windows-sockets.texi: Small wording and formatting changes.
13302 2017-05-10  Bruno Haible  <bruno@clisp.org>
13304         doc: Move section "Library version handling".
13305         * doc/gnulib.texi: Move section "Library version handling"
13306         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
13308 2017-05-10  Bruno Haible  <bruno@clisp.org>
13310         doc: Move section "Running self-tests under valgrind".
13311         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
13312         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
13314 2017-05-10  Bruno Haible  <bruno@clisp.org>
13316         doc: New chapter "Build Infrastructure Modules".
13317         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
13319 2017-05-10  Bruno Haible  <bruno@clisp.org>
13321         Prepare for reordering sections in the manual.
13322         * doc/gnulib.texi: Move several sections to separate files. Include
13323         these files.
13324         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
13325         * doc/obsolete.texi: Likewise.
13326         * doc/extra-tests.texi: Likewise.
13327         * doc/transversal.texi: Likewise.
13328         * doc/namespace.texi: Likewise.
13329         * doc/check-version.texi: Likewise.
13330         * doc/windows-sockets.texi: Likewise.
13331         * doc/windows-libtool.texi: Likewise.
13332         * doc/licenses-texi.texi: Likewise.
13333         * doc/build-automation.texi: Likewise.
13334         * doc/c-locale.texi: Likewise.
13336 2017-05-10  Bruno Haible  <bruno@clisp.org>
13338         Fix instructions how to update manual on www.gnu.org.
13339         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
13341 2017-05-09  Bruno Haible  <bruno@clisp.org>
13343         tzset: Expand comment about TZ problem on native Windows.
13344         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
13345         Paul Eggert.
13346         * lib/ctime.c (rpl_ctime): Likewise.
13347         * lib/localtime.c (rpl_localtime): Likewise.
13348         * lib/mktime.c (mktime): Likewise.
13349         * lib/strftime-fixes.c (rpl_strftime): Likewise.
13350         * lib/wcsftime.c (rpl_wcsftime): Likewise.
13352 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13354         intprops: don’t depend on ‘verify’
13355         Problem reported by Ævar Arnfjörð Bjarmason in:
13356         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
13357         * lib/intprops.h: Do not include verify.h, and move compile-time
13358         checks from here ...
13359         * tests/test-intprops.c (main): ... to here, if they’re not here
13360         already.  Check widths of other standard integer types.
13361         * modules/intprops (Depends-on): Remove ‘verify’.
13363 2017-05-07  Bruno Haible  <bruno@clisp.org>
13365         utimens: On native Windows, support 100ns resolution also if fd < 0.
13366         * lib/utime.in.h: Include <time.h>.
13367         (_gl_utimens_windows): New declaration.
13368         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
13369         (utime): Invoke it.
13370         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
13371         instead of utime.
13372         * modules/utime (Depends-on): Add 'time'.
13374 2017-05-07  Bruno Haible  <bruno@clisp.org>
13376         utimens: Improve error code on native Windows.
13377         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
13378         error code EACCES, not EINVAL.
13380 2017-05-07  Bruno Haible  <bruno@clisp.org>
13382         utime: Handle more Windows error codes.
13383         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
13384         Based on explanations by Billy O'Neal.
13386 2017-05-05  Bruno Haible  <bruno@clisp.org>
13388         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
13389         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
13390         union.
13391         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
13392         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
13393         value of cipher->IV.
13395 2017-05-05  Bruno Haible  <bruno@clisp.org>
13397         wctype-h-c++-tests: Update.
13398         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
13400 2017-05-05  Bruno Haible  <bruno@clisp.org>
13402         wchar-c++-tests: Update.
13403         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
13405 2017-05-05  Bruno Haible  <bruno@clisp.org>
13407         utime-h-c++-tests: New module.
13408         * tests/test-utime-h-c++.cc: New file.
13409         (utime): Declare, missing since 2017-04-30.
13410         * modules/utime-h-c++-tests: New file.
13412 2017-05-05  Bruno Haible  <bruno@clisp.org>
13414         unistd-c++-tests: Update.
13415         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
13416         (read): Declare, missing since 2011-04-15.
13417         (sethostname): Declare, missing since 2011-12-03.
13419 2017-05-05  Bruno Haible  <bruno@clisp.org>
13421         time-c++-tests: Update.
13422         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
13423         (localtime, gmtime): Declare, missing since 2017-04-30.
13424         (ctime): Declare, missing since 2017-04-30.
13425         (strftime): Declare, missing since 2017-04-30.
13426         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
13427         2015-07-24.
13429 2017-05-05  Bruno Haible  <bruno@clisp.org>
13431         sys_resource-c++-tests: New module.
13432         * tests/test-sys_resource-c++.cc: New file.
13433         (getrusage): Declare, missing since 2012-04-13.
13434         * modules/sys_resource-c++-tests: New file.
13436 2017-05-05  Bruno Haible  <bruno@clisp.org>
13438         strings-c++-tests: New module.
13439         * tests/test-strings-c++.cc: New file.
13440         (ffs): Declare, missing since 2011-07-12.
13441         * modules/strings-c++-tests: New file.
13443 2017-05-05  Bruno Haible  <bruno@clisp.org>
13445         string-c++-tests: Update.
13446         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
13447         (ffsll): Declare, missing since 2011-07-15.
13449 2017-05-05  Bruno Haible  <bruno@clisp.org>
13451         stdlib-c++-tests: Update.
13452         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
13453         2011-10-18.
13454         (ptsname_r): Declare, missing since 2011-11-07.
13455         (qsort_r): Declare, missing since 2014-08-29.
13456         (random, srandom, initstate, setstate): Declare, missing since
13457         2012-01-14.
13458         (secure_getenv): Declare, missing since 2013-02-05.
13460 2017-05-05  Bruno Haible  <bruno@clisp.org>
13462         stdio-c++-tests: Update.
13463         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
13465 2017-05-05  Bruno Haible  <bruno@clisp.org>
13467         signal-h-c++-tests: Update.
13468         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
13470 2017-05-05  Bruno Haible  <bruno@clisp.org>
13472         math-c++-tests: Update.
13473         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
13474         (fma): Declare, missing since 2011-10-17.
13475         (fmal): Declare, missing since 2011-10-17.
13477 2017-05-05  Bruno Haible  <bruno@clisp.org>
13479         locale-c++-tests: Update.
13480         * tests/test-locale-c++.cc (localeconv): Declare, missing since
13481         2012-03-25.
13483 2017-05-05  Bruno Haible  <bruno@clisp.org>
13485         inttypes-c++-tests: New module.
13486         * tests/test-inttypes-c++.cc: New file.
13487         (strtoimax): Declare, missing since 2012-01-05.
13488         (strtoumax): Declare, missing since 2012-01-05.
13489         * modules/inttypes-c++-tests: New file.
13491 2017-05-05  Bruno Haible  <bruno@clisp.org>
13493         dirent-c++-tests: Update.
13494         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
13495         (rewinddir): Declare, missing since 2011-09-13.
13496         (dirfd): Declare, missing since 2010-03-08.
13498 2017-05-04  Bruno Haible  <bruno@clisp.org>
13500         argp: Fix mistake in 2017-04-23 commit.
13501         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
13502         assume that strerror_r returns 'int', not 'char *'.
13504 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
13506         argp: Fix typo.
13507         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
13509 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13511         utimens: port to Emacs + MS-Windows
13512         Skip the new MS-Windows-specific code if Emacs.
13513         * lib/utimens.c [EMACS_CONFIGUATION]:
13514         Avoid new MS-Windows-specific code.
13515         (USE_SETFILETIME): New macro.
13516         (fdutimens): Use it.
13518 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13520         tzset: update doc for TZ problems on MS-Windows
13521         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
13522         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
13523         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
13524         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
13525         * doc/posix-functions/wcsftime.texi:
13526         Mention some issues with TZ under MS-Windows.
13528 2017-05-01  Bruno Haible  <bruno@clisp.org>
13530         copy-file: Fix build error on mingw.
13531         * modules/copy-file (Depends-on): Add 'close'.
13533 2017-05-01  Bruno Haible  <bruno@clisp.org>
13535         tzset: Work around TZ problem on native Windows.
13536         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
13537         Windows, set REPLACE_TZSET to 1.
13538         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
13539         invoke '_tzset' instead of 'tzset'.
13540         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
13542         * modules/time_rz (Depends-on): Add tzset.
13543         * lib/time_rz.c (tzset): Remove fallback definition.
13544         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
13546 2017-05-01  Bruno Haible  <bruno@clisp.org>
13548         mktime: Fix dependencies.
13549         * modules/mktime (Depends-on): Add 'time'.
13551 2017-05-01  Bruno Haible  <bruno@clisp.org>
13553         New module 'localtime-buffer', split off from module 'gettimeofday'.
13554         * lib/localtime-buffer.h: New file.
13555         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
13556         * lib/time.in.h (tzset): New declaration.
13557         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
13558         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
13559         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
13560         moved to lib/localtime-buffer.c or lib/tzset.c.
13561         * m4/localtime-buffer.m4: New file.
13562         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
13563         HAVE_TZSET, REPLACE_TZSET.
13564         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
13565         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
13566         gl_LOCALTIME_BUFFER_NEEDED.
13567         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
13568         since 2007-01-18.
13569         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
13570         tzset.
13571         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
13572         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
13573         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
13574         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
13575         * modules/localtime-buffer: New file.
13576         * modules/time (Depends-on): Remove 'gettimeofday'.
13577         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
13578         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
13579         * modules/tzset (Description): Enable hyperlink to POSIX spec.
13580         (Files): Add lib/tzset.c.
13581         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
13582         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
13583         gl_TIME_MODULE_INDICATOR.
13584         * modules/gettimeofday (Depends-on): Add localtime-buffer.
13586 2017-05-01  Bruno Haible  <bruno@clisp.org>
13588         copy-file: Preserve sub-second time stamps.
13589         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
13590         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
13591         transport the time stamps from the original file to the destination
13592         file.
13593         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
13594         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
13595         utime-h.
13597 2017-05-01  Bruno Haible  <bruno@clisp.org>
13599         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
13600         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
13601         also on MSVC.
13602         Reported by Eli Zaretskii <eliz@gnu.org>.
13604 2017-05-01  Bruno Haible  <bruno@clisp.org>
13606         wchar: Fix compilation error with the original mingw.org mingw.
13607         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
13608         <stddef.h> instead.
13609         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
13610         gl_WCTYPE_H.
13611         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
13612         gl_TYPE_WINT_T_PREREQ instead.
13613         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
13614         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
13615         Reported by Eli Zaretskii <eliz@gnu.org>.
13617 2017-04-30  Bruno Haible  <bruno@clisp.org>
13619         utimecmp: Add support for native Windows.
13620         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
13622 2017-04-30  Bruno Haible  <bruno@clisp.org>
13624         utimens: Add support for native Windows.
13625         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
13626         (fdutimens): Provide a native Windows implementation, like utime.c with
13627         added tv_nsec support.
13628         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
13629         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
13631 2017-04-30  Bruno Haible  <bruno@clisp.org>
13633         wcsftime: New module.
13634         * lib/wchar.in.h (wcsftime): New declaration.
13635         * lib/wcsftime.c: New file.
13636         * m4/wcsftime.m4: New file.
13637         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
13638         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
13639         HAVE_WCSFTIME, REPLACE_WCSFTIME.
13640         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
13641         HAVE_WCSFTIME, REPLACE_WCSFTIME.
13642         * modules/wcsftime: New file.
13643         * doc/posix-functions/wcsftime.texi: Mention the new module.
13645 2017-04-30  Bruno Haible  <bruno@clisp.org>
13647         strftime-fixes: New module.
13648         * lib/time.in.h (strftime): New declaration.
13649         * lib/strftime-fixes.c: New file.
13650         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
13651         (gl_FUNC_STRFTIME): Remove macro.
13652         * m4/strftime-fixes.m4: New file.
13653         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
13654         REPLACE_STRFTIME.
13655         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
13656         REPLACE_STRFTIME.
13657         * modules/strftime-fixes: New file.
13658         * doc/posix-functions/strftime.texi: Mention the new module.
13660 2017-04-30  Bruno Haible  <bruno@clisp.org>
13662         mktime: Work around TZ problem on native Windows.
13663         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
13664         from the native Windows workaround.
13665         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
13666         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
13667         'guessing no'.
13668         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
13669         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
13670         NEED_MKTIME_WINDOWS.
13671         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
13672         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
13673         NEED_MKTIME_INTERNAL.
13674         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
13675         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
13676         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
13677         not REPLACE_MKTIME.
13678         * doc/posix-functions/mktime.texi: Mention the native Windows
13679         workaround.
13681 2017-04-30  Bruno Haible  <bruno@clisp.org>
13683         localtime: New module.
13684         * lib/time.in.h (localtime): Declare also if requested by module
13685         'localtime'.
13686         * lib/localtime.c: New file.
13687         * m4/localtime.m4: New file.
13688         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
13689         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
13690         * modules/localtime: New file.
13691         * doc/posix-functions/localtime.texi: Mention the new module.
13693 2017-04-30  Bruno Haible  <bruno@clisp.org>
13695         ctime: New module.
13696         * lib/time.in.h (ctime): New declaration.
13697         * lib/ctime.c: New file.
13698         * m4/ctime.m4: New file.
13699         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
13700         REPLACE_CTIME.
13701         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
13702         * modules/ctime: New file.
13703         * doc/posix-functions/ctime.texi: Mention the new module.
13705 2017-04-30  Bruno Haible  <bruno@clisp.org>
13707         gettimeofday: Provide higher resolution on native Windows.
13708         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
13709         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
13710         (initialize): Initialize it.
13711         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
13712         'struct timeval'. Don't use _ftime().
13713         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
13714         <sys/timeb.h> and _ftime.
13716 2017-04-30  Bruno Haible  <bruno@clisp.org>
13718         Document the problem with the Cygwin environment variable TZ.
13719         * doc/posix-functions/tzset.texi: Add note about TZ.
13720         * doc/posix-functions/ctime.texi: Likewise.
13721         * doc/posix-functions/localtime.texi: Likewise.
13722         * doc/posix-functions/mktime.texi: Likewise.
13723         * doc/posix-functions/strftime.texi: Likewise.
13724         * doc/posix-functions/wcsftime.texi: Likewise.
13725         * doc/pastposix-functions/ftime.texi: Likewise.
13727 2017-04-30  Bruno Haible  <bruno@clisp.org>
13729         utime-tests: New module.
13730         * tests/test-utime.c: New file, based on tests/test-utimens.h.
13731         * tests/test-utimens-common.h: Include <sys/stat.h>.
13732         * modules/utime-tests: New file.
13734 2017-04-29  Bruno Haible  <bruno@clisp.org>
13736         utime: New module.
13737         * lib/utime.in.h: Add comment for snippets.
13738         (utime): New declaration.
13739         * lib/utime.c: New file.
13740         * m4/utime.m4: New file.
13741         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
13742         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
13743         REPLACE_UTIME.
13744         * modules/utime-h (Depends-on): Add snippets.
13745         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
13746         Insert snippets.
13747         * modules/utime: New file.
13748         * doc/posix-functions/utime.texi: Mention the new module.
13750 2017-04-29  Bruno Haible  <bruno@clisp.org>
13752         utime-h: Modernize handling of 'struct utimbuf'.
13753         * lib/utime.in.h: Include next <utime.h> if it exists.
13754         (utimbuf): Define to _utimbuf on native Windows.
13755         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
13756         Set UTIME_H on native Windows.
13757         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
13758         * modules/utime-h (Depends-on): Add include_next.
13759         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
13760         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
13762         * lib/utimens.c (utimbuf): Remove fallback definition.
13763         * m4/utimens.m4 (gl_UTIMENS): Don't require
13764         gl_CHECK_TYPE_STRUCT_UTIMBUF.
13765         * m4/utimbuf.m4: Remove file.
13766         * modules/utimens (Files): Remove m4/utimbuf.m4.
13768 2017-04-29  Bruno Haible  <bruno@clisp.org>
13770         Make use of module 'utime-h'.
13771         * modules/copy-file (Depends-on): Add utime-h.
13772         * lib/copy-file.c: Assume that <utime.h> exists.
13773         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
13775         * modules/utimens (Depends-on): Add utime-h.
13776         * lib/utimens.c: Assume that <utime.h> exists.
13778 2017-04-29  Bruno Haible  <bruno@clisp.org>
13780         utime-h: New module.
13781         * m4/utime_h.m4: New file.
13782         * lib/utime.in.h: New file.
13783         * modules/utime-h: New file.
13784         * doc/posix-headers/utime.texi: Mention the new module.
13786         * tests/test-utime-h.c: New file.
13787         * modules/utime-h-tests: New file.
13789 2017-04-30  Bruno Haible  <bruno@clisp.org>
13791         Fix a few typos.
13792         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
13793         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
13794         * doc/posix-functions/fstat.texi: Fix a plural typo.
13795         * doc/posix-functions/stat.texi: Likewise.
13796         * m4/include_next.m4: Update comments.
13798 2017-04-29  Bruno Haible  <bruno@clisp.org>
13800         error: Fix mistake in 2017-04-23 commit.
13801         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
13802         assume that strerror_r returns 'int', not 'char *'.
13804 2017-04-29  Bruno Haible  <bruno@clisp.org>
13806         stat: Fix time_t values and other problems on native Windows platforms.
13807         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
13808         implementations of stat().
13809         * lib/stat.c: Include filename.h instead of dosname.h. Include
13810         malloca.h, stat-w32.h.
13811         (is_unc_root): New function.
13812         (rpl_stat): New implementation for native Windows. Remove
13813         REPLACE_FUNC_STAT_DIR code.
13814         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
13815         Don't define REPLACE_FUNC_STAT_DIR.
13816         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
13817         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
13818         (Depends-on): Remove dosname. Add filename, malloca.
13819         (configure.ac): Also compile lib/stat-w32.c.
13821 2017-04-29  Bruno Haible  <bruno@clisp.org>
13823         fstat: Fix time_t values on native Windows platforms.
13824         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
13825         * lib/stat-w32.h: New file.
13826         * lib/stat-w32.c: New file.
13827         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
13828         stat-w32.h instead.
13829         (fstat_nothrow): Remove function.
13830         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
13831         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
13832         always.
13833         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
13834         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
13835         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
13836         (configure.ac): Also compile lib/stat-w32.c.
13838 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
13840         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
13841         Problem reported by Assaf Gordon and Gavin Smith in:
13842         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
13843         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
13844         #define this, too.
13846 2017-04-29  Bruno Haible  <bruno@clisp.org>
13848         strerror_r-posix: Fixes for MSVC 14.
13849         * lib/strerror_r.c: Include <stdarg.h>.
13850         (strerror_r): Provide error messages for errno values 100...140.
13851         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
13853 2017-04-28  Bruno Haible  <bruno@clisp.org>
13855         noreturn: New module.
13856         * lib/noreturn.h: New file.
13857         * modules/noreturn: New file.
13858         * tests/test-noreturn.c: New file.
13859         * modules/noreturn-tests: New file.
13860         * tests/test-noreturn-c++.cc: New file.
13861         * modules/noreturn-c++-tests: New file.
13863 2017-04-27  Bruno Haible  <bruno@clisp.org>
13865         wctype-h: Fix compilation error with the original mingw.org mingw.
13866         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
13867         HAVE_CRTDEFS_H.
13868         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
13869         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
13870         <stddef.h> instead.
13871         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
13873 2017-04-26  Pádraig Brady  <P@draigBrady.com>
13875         nap.h: Fix compilation on non windows platforms
13876         * tests/nap.h: Move misplaced endif.
13878 2017-04-26  Pádraig Brady  <P@draigBrady.com>
13879         and Paul Eggert  <eggert@cs.ucla.edu>
13881         time_rz: fix heap buffer overflow vulnerability
13882         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
13883         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
13884         whether there is enough buffer space available, thus avoiding
13885         the problematic promotion of signed to unsigned causing an invalid
13886         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
13887         the start of the buffer.
13888         * tests/test-parse-datetime.c (main): Add a test case written by
13889         Paul Eggert, which overwrites enough of the heap so that
13890         standard glibc will fail with "free(): invalid pointer"
13891         without the patch applied.
13893 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13895         xalloc: add missing integer overflow check
13896         * lib/xalloc.h (x2nrealloc): Also check for multiplication
13897         overflow when P is null.
13899 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13901         parse-datetime: make it standalone
13902         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
13903         (_GL_ATTRIBUTE_FORMAT): New macro.
13904         These are needed to get './gnulib-tool --test parse-datetime' to work.
13906 2017-04-23  Bruno Haible  <bruno@clisp.org>
13908         nap.h: Port to native Windows.
13909         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
13910         use nap_fd instead. On native Windows, close and reopen nap_fd.
13911         (nap_works): Don't compare the ctimes, because on native Windows, these
13912         are the creation times.
13913         (nap): Update.
13915 2017-04-23  Bruno Haible  <bruno@clisp.org>
13917         nap.h: Fix logic.
13918         * tests/nap.h (nap): Avoid signed integer overflow in loop.
13920 2017-04-23  Bruno Haible  <bruno@clisp.org>
13922         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
13923         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
13924         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
13925         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
13926         * lib/argp-help.c (__argp_failure): Likewise.
13928 2017-04-23  Bruno Haible  <bruno@clisp.org>
13930         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
13931         * m4/strerror_r.m4: Revert changes since 2016-10-16.
13932         * lib/strerror_r.c: Likewise.
13934 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
13936         Target a C99 subset, not a C89 subset
13937         For many years Gnulib has targeted C89 and has resisted using C99
13938         features, as some Gnulib-using programs still wanted to target
13939         C89.  As this no longer seems to be the case, relax the porting
13940         requirements to allow some C99 features.  This is merely a change
13941         to the documentation, to give other Gnulib developers a chance to
13942         weigh in on the topic.
13943         * doc/extern-inline.texi (extern inline):
13944         * doc/gnulib-readme.texi (Portability guidelines):
13945         * doc/gnulib-tool.texi (Initial import):
13946         * doc/gnulib.texi (Header files):
13947         Modernize to talk about C99 and C11 instead of C89 and C99.
13948         * doc/gnulib-readme.texi (Portability guidelines):
13949         Now a section, not merely a subsection, so that it
13950         can be split up.  Modernize a bit.
13951         (C language versions, C99 features assumed)
13952         (C99 features avoided):
13953         New sections.
13955 2017-04-23  Bruno Haible  <bruno@clisp.org>
13957         doc: New section "Modules that modify the way other modules work".
13958         * doc/gnulib.texi (Modules that modify the way other modules work): New
13959         section.
13961 2017-04-23  Bruno Haible  <bruno@clisp.org>
13963         stat-time: Update comments.
13964         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
13965         * tests/test-utimens-common.h: Add reference regarding st_ctime on
13966         Windows.
13968 2017-04-01  Bruno Haible  <bruno@clisp.org>
13970         glob: Fix more memory leaks.
13971         * lib/glob.c (glob): Free allocated memory before returning.
13972         Reported by Coverity via Tim Rühsen.
13974 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13976         poll: improve fast check for out-of-range NFD
13977         * lib/poll.c: Do not include intprops.h.
13978         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
13979         * modules/poll (Depends-on): Remove intprops.
13981         ftoastr: cite a newer paper
13982         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
13983         instead of Loitsch 2010.
13985 2017-04-22  Bruno Haible  <bruno@clisp.org>
13987         poll: Enable argument check also in the Windows implementation.
13988         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
13989         Reported by Paul Eggert.
13991 2017-04-22  Bruno Haible  <bruno@clisp.org>
13993         getlogin_r: Work around bug in Mac OS X 10.12.
13994         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
13995         bug.
13996         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
13997         given size minus 1, call getlogin_r a second time, on a larger buffer.
13998         * modules/getlogin_r (Depends-on): Add malloca.
13999         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
14001 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14003         parse-datetime: fix %z and prefer signed int
14004         %z problem reported by Pádraig Brady in:
14005         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
14006         While fixing it, I decided to prefer signed ints to size_t, as
14007         they are less error-prone (e.g., ubsan catches overflow).
14008         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
14009         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
14010         counts, since signed integers make for better debugging.
14011         (date): Don’t assume %z works in printf formats.
14012         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
14013         sizes of buffers known to be small, e.g., because we’re using snprintf.
14014         (parse_datetime2): Simplify call to debug_mktime_not_ok.
14016 2017-04-22  Bruno Haible  <bruno@clisp.org>
14018         *printf: Work around rounding bug on Mac OS X.
14019         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
14020         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
14021         Mac OS X and FreeBSD.
14022         * doc/glibc-functions/*printf.texi: Likewise.
14024 2017-04-22  Bruno Haible  <bruno@clisp.org>
14026         vasnprintf tests: Avoid warnings.
14027         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
14028         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
14029         test.
14031 2017-04-22  Bruno Haible  <bruno@clisp.org>
14033         sys_file tests: Avoid warning.
14034         * tests/test-sys_file.c (main): Add a default clause to the switch
14035         statement.
14037 2017-04-22  Bruno Haible  <bruno@clisp.org>
14039         sethostname: Update doc.
14040         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
14041         Mac OS X.
14043 2017-04-22  Bruno Haible  <bruno@clisp.org>
14045         quotearg tests: Avoid warnings.
14046         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
14047         false.
14049 2017-04-22  Bruno Haible  <bruno@clisp.org>
14051         poll: Enable argument check.
14052         * lib/poll.c: Include intprops.h.
14053         (poll): Check value of nfd correctly.
14054         * modules/poll (Depends-on): Add intprops.
14056 2017-04-22  Bruno Haible  <bruno@clisp.org>
14058         get-rusage-data: Avoid warnings on Mac OS X.
14059         * lib/get-rusage-data.c: On Mac OS X, don't define
14060         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
14061         (get_rusage_data) [Mac OS X]: Just return 0.
14063 2017-04-22  Bruno Haible  <bruno@clisp.org>
14065         xbinary-io: Fix build error.
14066         * modules/xbinary-io (Depends-on): Add gettext-h.
14067         * lib/xbinary-io.c: Include gettext.h and define _().
14068         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
14069         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
14071 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14073         parse-datetime: overflow and debug cleanups
14074         This long patch was triggered by this bug report from Ruediger Meier:
14075         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
14076         I fixed the bug he noted, then found some others nearby, and then
14077         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
14078         up some of the code to follow GNU standards while I was at it.
14079         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
14080         use c_isdigit.
14081         (EPOCH_YEAR): Remove; unused.
14082         (TM_YEAR_BASE): Now an enum rather than a macro.
14083         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
14084         time zone offset, since timezones now are in terms of seconds and
14085         not minutes.
14086         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
14087         appropriate.  Verify that intmax_t is wide enough.
14088         (time_overflow, time_zone_str): New functions, used to deal
14089         more reliably with overflow.
14090         (dbg_printf): Add printf attribute, to help catch integer width errors.
14091         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
14092         (%union, to_hour, yylex, parse_datetime2):
14093         Use intmax_t instead of long int and/or long_time_t.
14094         All uses changed.
14095         (DBGBUFSIZE): Move earlier.
14096         (relative_time, set_hhmmss, parser_control):
14097         Just use int for nanoseconds and for time zones; that’s wide enough.
14098         (parser_control): Use bool for members like year_seen that can
14099         be booleans instead of counters.  All uses changed.
14100         Remove debug_default_input_timezone; no longer needed.
14101         All uses removed.
14102         (apply_relative_time): Return a bool overflow flag.
14103         All uses changed to check for overflow.
14104         (apply_relative_time, zone, date, relunit, relunit_snumber)
14105         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
14106         Check for integer overflow portably.
14107         (str_days): Use just int for N, as it’s wide enough.
14108         Prefer 2D char arrays to arrays of char * when it looks like
14109         2D is a win on typical platforms.
14110         Prefer snprintf to strncpy/strncat, for simplicity;
14111         all buffers are smaller than INT_MAX so this is safe.
14112         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
14113         (debug_print_current_time): Don’t assume tv_nsec is of type long,
14114         as this is not true on x32.  Output "." before any nanoseconds.
14115         (debug_print_current_time, parse_datetime2):
14116         Output local zones using a more-consistent format.
14117         (debug_print_current_time, date, parse_datetime2):
14118         (main) [TEST]:
14119         Don’t assume time_t is the same width as long.
14120         (print_rel_part): New function, replacing ...
14121         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
14122         (debug_print_relative_time): Use bool for boolean.
14123         (local_zone): dsts_seen now counts only tDST instances.
14124         (date): Fix printf of size_t to use %z.  Do not assume numeric
14125         tokens have negative values merely because the context suggests
14126         a syntax with "-" separating tokens.
14127         (time_zone_hhmm): Return bool success indicator, which checks for
14128         overflow.  Store result into PC->time_zone instead.  All callers
14129         changed.
14130         (tm_year_str): New function.  Return a bool success indicator and
14131         store the result into a buffer.  All callers changed.  Output the
14132         numerically correct string even if adding 1900 to the year would
14133         overflow.
14134         (to_tm_year): New function, replacing the old to_year.  All
14135         callers changed.
14136         (tm_diff): Sync with glibc.
14137         (lookup_word): Use to_uchar instead of doing it by hand.
14138         (TZBUFSIZE): Now local to the only function that needs it.
14139         (debug_strfdatetime): Simplify now that time zones are int seconds.
14140         (debug_strfdate): Work even if tm_year + 1900 would overflow.
14141         (get_effective_timezone): Remove.  All uses removed.
14142         (parse_datetime2): Use fprintf in pieces instead of snprintfing
14143         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
14144         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
14145         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
14146         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
14147         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
14148         * modules/parse-datetime (Depends-on): Add inttypes.
14150 2017-04-21  Bruno Haible  <bruno@clisp.org>
14152         gettext-h: Avoid -Wundef warning.
14153         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
14154         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
14155         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
14157 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
14159         error: Avoid "function declaration isn't a prototype" warning.
14160         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
14162 2017-04-21  Bruno Haible  <bruno@clisp.org>
14164         vasnprintf: Fix for MSVC 14.
14165         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
14166         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
14167         of !HAVE_SNPRINTF_RETVAL_C99.
14169 2017-04-21  Bruno Haible  <bruno@clisp.org>
14171         mbrtowc tests: Fix test failures on MSVC 14.
14172         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
14173         behaviour for invalid input.
14175 2017-04-21  Bruno Haible  <bruno@clisp.org>
14177         mbsinit: Fix for MSVC 14.
14178         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
14179         implementation that is in sync with mbrtowc.c. On other platforms, use
14180         an adequate ad-hoc implementation.
14182 2017-04-21  Bruno Haible  <bruno@clisp.org>
14184         Fix test-mbrtowc5.sh failure on native Windows.
14185         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
14186         "C".
14188 2017-04-21  Bruno Haible  <bruno@clisp.org>
14190         Avoid accidental use of native Windows APIs on Cygwin.
14191         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
14192         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
14193         * lib/localename.c (WINDOWS_NATIVE): Likewise.
14195 2017-04-20  Bruno Haible  <bruno@clisp.org>
14197         Remove red warnings from the generated MODULES.html.
14198         * modules/fcntl (Description): Disambiguate function references.
14199         * modules/getcwd-lgpl (Description): Likewise.
14200         * modules/hostent (Description): Likewise.
14201         * modules/servent (Description): Likewise.
14202         * modules/tempname (Description): Likewise.
14204 2017-04-20  Bruno Haible  <bruno@clisp.org>
14206         verify tests: Fix spurious failure with parallel make.
14207         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
14208         EXTRA_PROGRAMS.
14209         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
14210         * tests/test-verify-try.c: New file.
14211         * modules/verify-tests (Files): Add it.
14212         (EXTRA_PROGRAMS): Add test-verify-try.
14213         (MOSTLYCLEANFILES): Update accordingly.
14214         Reported by Adam James Stewart <ajstewart@anl.gov>.
14216 2017-04-18  Bruno Haible  <bruno@clisp.org>
14218         vma-iter: Fix compilation error on Solaris 7.
14219         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
14220         like on IRIX, OSF/1.
14221         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14223 2017-04-18  Bruno Haible  <bruno@clisp.org>
14225         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
14226         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
14227         included.
14228         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
14229         <sys/procfs.h>.
14230         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
14231         <sys/procfs.h> cannot be included.
14232         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14234 2017-04-18  Bruno Haible  <bruno@clisp.org>
14236         getopt-gnu: Add comments.
14237         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
14238         * modules/getopt-gnu (configure.ac): Likewise.
14240 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
14242         regex: port better to Solaris 10
14243         Solaris 10 <locale.h> includes <libintl.h>, which #defines
14244         gettext, and this causes a double #define.
14245         Problem reported by Gavin Smith in:
14246         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
14247         * lib/regex_internal.h (gettext): #undef before #defining.
14249 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
14251         intprops: improve comments
14252         * lib/intprops.h: Improve and shorten commentary.
14253         For the record, if we ever run into a pedantic compiler that
14254         behaves differently from GCC when converting an out-of-range value
14255         to a signed integer, we can work around the problem with something
14256         like the following code, where UCT is the signed counterpart of T
14257         (UCT is sometimes narrower than UT) and all callers are changed
14258         accordingly:
14259         #if __SUNPRO_C <= 0x5120
14260         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
14261            ((t) ((ut) (a) op (ut) (b)))
14262         #else
14263         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
14264            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
14265             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
14266                + TYPE_MINIMUM (t)) \
14267             : (t) (uct) ((ut) (a) op (ut) (b)))
14268         #endif
14270 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
14272         intprops: try to avoid tickling similar bugs
14273         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
14274         needs to be the same width as T; it can be wider.
14275         Change callers so that UT is at least as wide as unsigned int,
14276         as I suspect that this is less likely to run into compiler bugs.
14278         intprops: port to Oracle Studio 12.3 x86
14279         Problem reported by Gavin Smith in:
14280         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
14281         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
14282         Convert unsigned to signed via the usual rather than the standard way,
14283         to avoid a compiler bug in Oracle Studio 12.3 x86.
14285 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
14287         getopt: prefer - to _ in new file names
14288         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
14289         * lib/getopt-core.h: Rename from lib/getopt_core.h.
14290         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
14291         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
14292         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
14293         All uses changed.
14295         getopt: port recent getopt changes to macOS
14296         Problem reported by Harald Maier (Bug#26398).
14297         The macOS C compiler uses __nonnull for its own purposes and that
14298         clashes with glibc's __nonnull.
14299         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
14300         * lib/getopt_cdefs.in.h (__nonnull): Remove.
14301         * lib/getopt_core.h (getopt):
14302         * lib/getopt_ext.h (getopt_long, getopt_long_only):
14303         Use _GL_ARG_NONNULL, not __nonnull.
14304         * lib/unistd.in.h: Move snippet hooks to before where the getopt
14305         .h files are included, so that _GL_ARG_NONNULL is defined in time.
14306         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
14307         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
14309 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14311         getopt-gnu: omit some duplicate code
14312         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
14313         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
14314         gnulib-tool already does this.
14315         * modules/getopt-gnu (configure.ac): Omit code duplicated from
14316         getopt-posix, which we depend on.
14318         getopt-posix: use angle-bracket include
14319         * lib/getopt1.c: Include <config.h>, not "config.h".
14321 2017-04-06  Zack Weinberg  <zackw@panix.com>
14323         getopt: annotate files with relationship to glibc
14325         As the final act in this patchset, adjust the message at the top of
14326         each file to indicate which files are synced with glibc.  (This has
14327         already been done for most of the headers.)
14329         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
14330         Mention in top-of-file boilerplate that these files are shared
14331         between glibc and gnulib.
14334         getopt: split up getopt.in.h and eliminate __need_getopt
14336         Over in glibc, all of the __need macros are being phased out in favor
14337         of small headers that declare only the necessary components, as this
14338         is much simpler and less prone to bugs.  As getopt is shared with
14339         glibc, gnulib needs to do the same for __need_getopt.
14341         __need_getopt is misnamed; what it really means is "we want only the
14342         getopt features specified in POSIX, not the GNU extensions".  glibc
14343         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
14344         these files can be shared verbatim with gnulib.  The portability
14345         wrapper, on the other hand, they have renounced altogether; glibc's
14346         getopt.h will no longer be shared with gnulib at all.  In exchange,
14347         certain glibc-specific quirks (having to do with __posix_getopt) no
14348         longer need appear in gnulib's headers at all.
14350         This patch merges getopt_core.h and getopt_ext.h from glibc, and
14351         splits up the current gnulib-side portability wrapper into three
14352         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
14353         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
14354         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
14355         unistd.in.h just use them.  All new files are clearly marked with
14356         whether they are shared with glibc.
14358         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
14359         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
14360         with glibc, and ...
14361         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
14362         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
14363         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
14364         instead of defining __need_getopt and including the full getopt.h.
14366         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
14367         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
14368         * modules/getopt-posix (Files): Add new headers and sort list.
14369         (Depends-on): No longer need snippet/arg-nonnull.
14370         (Makefile.am): Generate getopt_cdefs.h.
14373         getopt: better handling of ambiguous options
14375         glibc's getopt uses alloca to construct a linked list of possibilities
14376         for an "ambiguous" long option.  In gnulib, malloc should be used
14377         instead.  Providing for both cases complicates things a fair bit.
14379         This patch rewrites ambiguous-option handling to use a boolean vector
14380         instead of a linked list.  There is then only one allocation that
14381         might need freeing; in glibc it can honor __libc_use_alloca as usual,
14382         and in gnulib we define __libc_use_alloca to always be false, so we
14383         don't need ifdefs in the middle of the function.  This should also be
14384         slightly more efficient in the normal case of long options being fully
14385         spelled out -- I think most people aren't even aware they _can_
14386         sometimes abbreviate long options.
14388         One interesting consequence is that the list of possibilities is now
14389         printed in exactly the order they appear in the list of long options,
14390         instead of the first possibility being shuffled to the end.
14392         (The patch looks bigger than it really is because there's a fair bit
14393         of reindentation and code rearrangement.)
14395         * lib/getopt.c: When used standalone, define __libc_use_alloca
14396         as always false and alloca to abort if called.
14397         (process_long_option): Rewrite handling of ambiguous long options
14398         to use a single boolean vector, not a linked list; use
14399         __libc_use_alloca to decide whether to allocate this using alloca.
14402         getopt: refactor long-option handling
14404         There were two copies of the bulk of the code to handle long options.
14405         Now there is only one.
14407         This change temporarily removes the logic to avoid using alloca when
14408         standalone; the next patch in the series will restore it.
14410         * lib/getopt.c (process_long_option): New function split out
14411         from _getopt_internal_r.
14412         (_getopt_internal_r): Replace both copies of the long-option
14413         processing code with calls to process_long_option.
14416         getopt: tidy up _getopt_initialize a bit
14418         _getopt_data.__posixly_correct is completely redundant to
14419         _getopt_data.__ordering, and some work that logically belongs in
14420         _getopt_initialize was being done by _getopt_internal_r, making the
14421         code harder to understand.
14423         As a side effect, getenv will no longer be called if the first
14424         character of the options string is '+' or '-', which is probably a
14425         Good Thing.  (Perhaps we should have a flag character that
14426         specifically asks for the permutation behavior?)
14428         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
14429         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
14430         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
14433         getopt: merge from glibc: repetition reduction
14435         The definitions of the entry point functions 'getopt' and
14436         '__posix_getopt' can be made substantially less repetitive with a
14437         helper macro.
14439         While I was merging the const-correctness changes from gnulib into
14440         glibc I noticed there are still some unnecessary casts in
14441         _getopt_internal_r.
14443         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
14444         a macro.  Consistently cast 'argv' to 'char **' when calling
14445         _getopt_internal.
14446         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
14449         getopt: clean up error reporting
14451         getopt can print a whole bunch of error messages, and when used
14452         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
14453         cancellation point and getopt isn't, and also applying fprintf to a
14454         stream in wide-character mode is not allowed.  So every single error
14455         reporting case has an #ifdef _LIBC block in which it calls internal
14456         libc functions instead.  The counterpart patch series in glibc makes
14457         it possible to simplify all of that down to a set of #defines at the
14458         top of the file; core code is written as if it is safe to just call
14459         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
14460         call any *other* stdio functions.)
14462         * lib/getopt.c: When _LIBC is defined, define fprintf to
14463         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
14464         to _IO_funlockfile.  When neither _LIBC nor
14465         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
14466         funlockfile as no-ops.
14467         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
14468         standalone error-printing code can now be used for libc as well.
14469         Add an flockfile/funlockfile pair around one case where the error
14470         message is printed in several chunks.  Don't use fputc.
14473         getopt: fix fencepost error in ambiguous-W-option handling
14475         getopt_long contains an undocumented (AFAICT) feature in which, if you
14476         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
14477         treated as equivalent to '--foo'.  This is implemented with a partial
14478         second copy of the code for handling long options, and that code
14479         increments optind one too many times when recovering from an ambiguous
14480         abbreviated option, which can cause the main loop to walk past the end
14481         of argv and crash.
14483         I discovered this while writing a test case that tries to exercise all
14484         of getopt's error reporting paths; I wouldn't be surprised to learn
14485         that this feature is never used by real applications.
14487         * lib/getopt.c (_getopt_internal_r): Don't increment
14488         d->optind a second time when reporting ambiguous -W options.
14491         getopt: clean up getopt.c and getopt1.c file headers
14493         In getopt.c, there is no need to include wchar.h at all, and it is
14494         safe nowadays to assume that stdlib.h does declare getenv (several
14495         other gnulib modules make this assumption).
14497         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
14498         by using "" inclusions consistently, and there is no actual need to
14499         include stdlib.h (except in the #ifdef TEST block, where it should be
14500         unconditional), nor to provide a backup definition of NULL at all.
14502         * lib/getopt1.c: Simplify #ifdeffage at top of file.
14503         Move inclusion of stdlib.h to #ifdef TEST block and make
14504         unconditional.  Do not define NULL.
14505         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
14506         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
14507         * modules/getopt-gnu, modules/getopt-posix: Don't call
14508         gl_PREREQ_GETENV.
14511         getopt: harmonize comments with glibc
14513         The comments explaining how the behavior of 'getopt' varies depending
14514         on whether it's the standalone version and whether there are special
14515         characters at the beginning of the options string were inconsistent
14516         between gnulib and glibc, and also out of sync with the code.
14518         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
14521         getopt: remove USE_NONOPTION_FLAGS
14523         getopt includes code to parse an environment variable named
14524         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
14525         in decimal); but all of it has been #ifdefed out since 2001, with no
14526         official way to turn it back on.
14528         According to commentary in glibc's config.h.in, bash version 2.0
14529         set this environment variable to indicate argv elements that were
14530         the result of glob expansion and therefore should not be treated
14531         as options, but the feature was "disabled later" because "it
14532         caused problems".  According to bash's CHANGES file, "later" was
14533         release 2.01; it gives no more detail about what the problems
14534         were.
14536         Version 2.0 of bash was released on the last day of 1996, and version
14537         2.01 in June of 1997.  Twenty years later, I think it is safe to
14538         assume that this environment variable isn't coming back.
14540         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
14541         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
14542         __libc_argc and __libc_argv externs, which were only used by
14543         #ifdef USE_NONOPTION_FLAGS blocks.
14546         getopt: tabify, in preparation for merge with glibc
14548         glibc sticks to the GNU default of indenting with a mix of
14549         8-column tabs and spaces; make the gnulib copy match.
14551         getopt.h is not included because it is *not* going to be merged in its
14552         present form.
14554         * getopt.c, getopt1.c, getopt_int.h: Tabify.
14556 2017-04-02  Bruno Haible  <bruno@clisp.org>
14558         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
14559         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
14560         like it was done in modules/relocatable-lib on 2011-05-21 and in
14561         modules/relocatable-prog on 2011-08-15.
14562         Reported by Reuben Thomas <rrt@sc3d.org>.
14564 2017-03-31  Bruno Haible  <bruno@clisp.org>
14566         glob: Fix invalid free() call.
14567         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
14568         static storage to home_dir.
14569         Reported by Coverity via Tim Rühsen.
14571 2017-03-31  Bruno Haible  <bruno@clisp.org>
14573         glob: Fix memory leaks.
14574         * lib/glob.c (glob): Free allocated memory before returning.
14575         Reported by Coverity via Tim Rühsen.
14577 2017-03-31  Bruno Haible  <bruno@clisp.org>
14579         md5, sha1, sha256, sha512: Add comments regarding correctness.
14580         * lib/md5.h (buflen): Add comments regarding range.
14581         * lib/sha1.h (buflen): Likewise.
14582         * lib/sha256.h (buflen): Likewise.
14583         * lib/sha512.h (buflen): Likewise.
14584         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
14585         * lib/sha1.c (sha1_process_bytes): Likewise.
14586         * lib/sha256.c (sha256_process_bytes): Likewise.
14587         * lib/sha512.c (sha512_process_bytes): Likewise.
14588         Reported by Coverity via Tim Rühsen.
14590 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
14592         getopt: merge from glibc
14593         This does not change anything substantial; it merely simplifies
14594         hypothetical merges back to glibc.
14595         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
14596         Change copyright notice to match what is in glibc.
14597         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
14598         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
14599         __open_memstream rather than open_memstream and __glibc_likely
14600         instead of __builtin_expect.
14601         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
14603 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
14605         dfa: make [0-9] faster in non-C locales
14606         Problem reported by John P. Linderman (Bug#26193).
14607         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
14608         If both ends of the range are ASCII digits, do not worry about
14609         multi-character collating sequences and the like.  Be consistent
14610         about using isalpha as a precondition for setbit_case_fold_c.
14612 2017-03-19  Bruno Haible  <bruno@clisp.org>
14614         lock: Fix compilation error with HP-UX IA64 cc.
14615         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
14616         weak on non-glibc platforms.
14618 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14620         stdalign: tweak version# and test for HP-UX IA64
14621         Problems reported by Bruno Haible in:
14622         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
14623         * lib/stdalign.in.h (_Alignas):
14624         * m4/stdalign.m4 (gl_STDALIGN_H):
14625         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
14626         used octal (as that is how they document it), but it is decimal in
14627         practice now and the ancient implementations no longer matter.
14628         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
14630 2017-03-19  Bruno Haible  <bruno@clisp.org>
14632         vma-iter: Add support for Solaris.
14633         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
14634         approach.
14635         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
14636         * lib/get-rusage-as.c: Update comment about Solaris.
14637         * lib/get-rusage-data.c: Likewise.
14639 2017-03-19  Bruno Haible  <bruno@clisp.org>
14641         vma-iter: Prefer HP-UX specific API on HP-UX.
14642         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
14643         * lib/vma-iter.h: Update.
14644         Just in case HP-UX ever implements mquery().
14646 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14648         stdalign: restore previous behavior for HP-UX IA64
14649         See Bruno Haible's email in:
14650         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
14651         which cites p 150 of a manual saying that 'aligned' works on Itanium.
14652         * lib/stdalign.in.h (_Alignas):
14653         Assume the '061200' applies to Itanium, not to PA-RISC.
14654         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
14656 2017-03-17  Bruno Haible  <bruno@clisp.org>
14658         stat-time, timespec: Support use of the header files in C++ mode.
14659         * lib/stat-time.h: Add "C" linkage declaration.
14660         * lib/timespec.h: Likewise.
14662 2017-03-17  Bruno Haible  <bruno@clisp.org>
14664         stdalign: Make it work with HP-UX cc.
14665         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
14666         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
14667         for HP-UX cc.
14669 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
14671         flexmember: try to detect HP-UX 11.31 cc bug
14672         Problem reported by Bruno Haible in:
14673         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
14674         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
14675         Attempt to detect bug in HP-UX 11.31 cc.
14677 2017-03-16  Bruno Haible  <bruno@clisp.org>
14679         stdint: Fix test compilation failure with HP-UX 11 cc.
14680         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
14681         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
14682         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
14683         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
14685 2017-03-14  Bruno Haible  <bruno@clisp.org>
14687         gnulib-tool: Don't produce a tests directory with only snippet .h files.
14688         * gnulib-tool (func_modules_transitive_closure_separately): If
14689         testsrelated_modules ends up with no "real" modules, aside from
14690         modules with applicability 'all', set it to empty.
14692 2017-03-14  Bruno Haible  <bruno@clisp.org>
14694         vma-iter: Add support for HP-UX.
14695         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
14696         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
14697         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
14698         * lib/get-rusage-as.c: Update comment about HP-UX.
14699         * lib/get-rusage-data.c: Likewise.
14700         (get_rusage_data): Use get_rusage_data_via_setrlimit.
14702 2017-03-14  Bruno Haible  <bruno@clisp.org>
14704         limits-h: Make it work with HP-UX cc.
14705         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
14706         defined.
14708 2017-03-14  Bruno Haible  <bruno@clisp.org>
14710         Fix test failures on DragonFlyBSD.
14711         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
14712         * tests/test-select.h (test_bad_fd): Likewise.
14713         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
14715 2017-03-14  Bruno Haible  <bruno@clisp.org>
14717         freadahead: Silence warning on DragonFlyBSD.
14718         * lib/freadahead.c (__sreadahead): Declare ourselves.
14720 2017-03-14  Bruno Haible  <bruno@clisp.org>
14722         vma-iter: Add comment about AIX.
14723         * lib/vma-iter.c: Add comment about why this module is not implemented
14724         on AIX.
14726 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
14728         snippets: move unadjusted snippet sources to lib
14729         Problem reported by Michal Privoznik in:
14730         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
14731         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
14732         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
14733         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
14734         * lib/unused-parameter.h: Rename from
14735         build-aux/snippet/unused-parameter.h.
14736         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
14737         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
14738         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
14739         * modules/snippet/c++defs (Files:, CXXDEFS_H):
14740         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
14741         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
14742         Adjust to file renamings.
14744 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
14746         gnulib-tool: don't automatically distribute files from top/
14747         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
14748         not distribute top/README-release by default, don't distribute files
14749         from top/ unconditionally.
14750         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
14751         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
14753 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
14755         gnulib-tool: fix typo in comment output
14756         * gnulib-tool (func_import): Fix typo with previous change.
14758         snippets: work around GNU Make 3.82 VPATH
14759         When using 'gnulib-tool --gnu-make' on Emacs, and building
14760         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
14761         an out-of-source (VPATH) build failed because the sans-copyright
14762         snippet file was not built before the file that used it.
14763         Presumably this is some sort of VPATH thing.  Work around the
14764         problem by using the original snippet, i.e., don’t bother to
14765         remove its copyright notice.
14766         * modules/snippet/_Noreturn, modules/snippet/link-warning:
14767         Don’t assume Automake in comments.  Omit long-incorrect comment.
14768         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
14769         (MOSTLYCLEANFILES):
14770         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
14771         (MOSTLYCLEANFILES):
14772         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
14773         (MOSTLYCLEANFILES):
14774         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
14775         (MOSTLYCLEANFILES):
14776         Remove.
14777         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
14778         * modules/snippet/c++defs (CXXDEFS_H):
14779         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
14780         * modules/snippet/warn-on-use (WARN_ON_USE_H):
14781         Don’t bother to remove the copyright notice; just use the
14782         original snippet as-is.
14784 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
14786         gnulib-tool: minor --gnu-make fixups
14787         * gnulib-tool (func_emit_lib_Makefile_am):
14788         Remove useless code that was a blind alley during implementation.
14789         Problem reported by Thien-Thi Nguyen in:
14790         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
14791         (func_import): Note the "--gnu-make" option in the output comment.
14793 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
14795         gnulib-tool: new option --gnu-make
14796         This is for applications like GNU Emacs that use GNU Make
14797         features instead of Automake.
14798         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
14799         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
14800         Do not assume Automake.
14801         * gnulib-tool (func_determine_path_separator)
14802         (func_modules_transitive_closure, func_update_file)
14803         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
14804         (func_import): Add support for --gnu-make.
14806 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
14808         gnulib-common.m4: avoid aclocal.m4 bloat
14809         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
14810         Hide AM_PROG_AR from aclocal, so that aclocal does not
14811         install irrelevant macro definitions into aclocal.m4.
14813 2017-03-10  Bruno Haible  <bruno@clisp.org>
14815         vma-iter: Let callers know about error.
14816         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
14817         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
14819 2017-03-05  Bruno Haible  <bruno@clisp.org>
14821         Fix value of LD for 64-bit compilers on AIX.
14822         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
14823         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
14825 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
14827         dtotimespec: simplify
14828         * lib/dtotimespec.c (dtotimespec): Simplify.
14830 2017-03-04  Bruno Haible  <bruno@clisp.org>
14832         test-calloc-gnu: Reenable test also for GCC 7.
14833         * tests/test-calloc-gnu.c (eight): New function.
14834         (main): Don't skip test; use eight() instead.
14836 2017-03-04  Jim Meyering  <meyering@fb.com>
14838         test-calloc-gnu: port to GCC7
14839         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
14840         that attempts to calloc more than SIZE_MAX bytes, because GCC7
14841         and newer would detect that at compilation time.
14843 2017-03-04  Bruno Haible  <bruno@clisp.org>
14845         tests: Avoid compiler warning about uses of null_ptr.
14846         * tests/null-ptr.h: New file.
14847         * tests/test-canonicalize.c: Include null-ptr.h.
14848         (null_ptr): Remove function.
14849         * tests/test-canonicalize-lgpl.c: Likewise.
14850         * tests/test-memmem.c: Likewise.
14851         * tests/test-ptsname_r.c: Likewise.
14852         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
14853         * modules/canonicalize-lgpl-tests: Likewise.
14854         * modules/memmem-tests: Likewise.
14855         * modules/ptsname_r-tests: Likewise.
14856         Reported by Jim Meyering.
14858 2017-03-03  Bruno Haible  <bruno@clisp.org>
14860         doc: Mention Mac OS X deficiencies regarding semaphores.
14861         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
14862         * doc/posix-functions/sem_destroy.texi: Likewise.
14863         * doc/posix-functions/sem_getvalue.texi: Likewise.
14865 2017-03-03  Bruno Haible  <bruno@clisp.org>
14867         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
14868         Reported by Assaf Gordon <assafgordon@gmail.com> via
14869         Pádraig Brady <P@draigBrady.com>.
14870         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
14871         semaphores.
14872         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
14873         (atomic_int_semaphore): New macro.
14875 2017-02-28  Bruno Haible  <bruno@clisp.org>
14877         perror tests: Tweak for z/OS.
14878         Reported by Daniel Richard G. <skunk@iskunk.org>.
14879         * tests/test-perror.sh: Don't fail z/OS style perror output.
14881 2017-02-26  Bruno Haible  <bruno@clisp.org>
14883         nproc: Refactor large function.
14884         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
14885         from num_processors.
14886         (num_processors): In this function, only deal with OMP.
14888 2017-02-26  Pádraig Brady  <P@draigBrady.com>
14890         nproc: adjust handling of OpenMP environment variables
14891         to match the return value from omp_get_num_threads(), i.e.:
14892          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
14893          - Treat 0 as an invalid value and ignore
14894         Also remove the call to omp_get_num_threads() because
14895         it's ineffective without the omp pragmas in place.
14896         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
14897         so that it can be ignored.
14898         (num_processors): Honor OMP_THREAD_LIMIT even without
14899         OMP_NUM_THREADS being set.  Also fix a typo in the environment
14900         variable being checked, from the previous recent commit.
14902 2017-02-26  Pádraig Brady  <P@draigBrady.com>
14904         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
14905         * lib/nproc.c (parse_omp_threads): A new function refactored
14906         from num_processors() to support parsing both of the
14907         above environment variables.
14908         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
14909         to accurately reflect the current OpenMP nesting level.
14910         Also support the OMP_THREAD_LIMIT environment variable
14911         to limit the max value determined from OMP_NUM_THREADS.
14912         * modules/nproc: Depend on minmax header.
14913         Suggested by Oliver Heimlich.
14915 2017-02-25  Bruno Haible  <bruno@clisp.org>
14917         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
14918         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
14920 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14922         ftoastr: port to -Wdouble-promotion
14923         Work around -Wdouble-promotion false alarm in recent GCCs.
14924         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
14925         (ftoastr_snprintf, FTOASTR): Use it.
14927 2017-02-21  Bruno Haible  <bruno@clisp.org>
14929         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
14930         Reported by Rene Saavedra <rennes@openmailbox.org> in
14931         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
14932         * lib/glthread/lock.h: On glibc systems without
14933         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
14934         implementation of rwlocks.
14935         * lib/glthread/lock.c: Likewise.
14937 2017-02-20  Bruno Haible  <bruno@clisp.org>
14939         lock tests: Fix build failure on z/OS.
14940         Reported by Daniel Richard G. <skunk@iskunk.org>.
14941         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
14942         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
14943         exist.
14945 2017-02-19  Bruno Haible  <bruno@clisp.org>
14947         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
14948         This helps when CC=clang.
14949         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
14950         of /usr/bin/gcc.
14952         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
14953         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
14955 2017-02-19  Bruno Haible  <bruno@clisp.org>
14957         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
14958         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
14959         --with-tests --single-configure is specified.
14961 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
14963         users.txt: Update links, use HTTPS where possible
14964         * users.txt: Updated to HTTPS where possible,
14965         fixed some links to new locations.
14967 2017-02-16  Bruno Haible  <bruno@clisp.org>
14969         xbinary-io: Fix inlining.
14970         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
14972 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14974         xbinary-io: rename from xsetmode
14975         This patch is taken from suggestions by Bruno Haible in:
14976         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
14977         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
14978         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
14979         not ENOTTY, when it is an inappropriate device.
14980         * lib/binary-io.h (SET_BINARY): Resurrect.
14981         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
14982         (xset_binary_mode_error): Rename from xsetmode_error.
14983         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
14984         (xset_binary_mode): Rename from xsetmode.
14985         All uses changed.
14986         * modules/xbinary-io: Rename from modules/xsetmode.
14987         Update file names.
14988         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
14989         * NEWS: Update to match revised behavior.
14991 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14993         tests: Adjust to recent SET_BINARY change
14994         * tests/test-binary-io.c (main):
14995         * tests/test-binary-io.sh: Remove test for SET_BINARY.
14996         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
14997         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
14998         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
15000         xsetmode: new module
15001         This is to fix a problem noted by Eric Blake.
15002         Code was using xfreopen to change files to binary mode, but this
15003         fails for stdout when in append mode.  Such code should use
15004         xsetmode instead.
15005         * NEWS: Document incompatible changes to binary-io module.
15006         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
15007         New function.
15008         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
15009         (set_binary_mode): New function, which also checks for tty.
15010         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
15012 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
15014         headers: fix begin-end typos
15015         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
15016         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
15018         selinux-h: port to PGI 16.10
15019         * lib/se-selinux.in.h: Don't assume that include_next skips over
15020         duplicate -I DIR options.
15022         argp: port to PGI 16.10
15023         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
15025 2017-02-13  Darshit Shah  <darnir@gnu.org>
15027         unicase: Update function protoype to match definition.
15028         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
15029         uses 'size_t' as the datatype for the 'len' parameter in the functions
15030         it generates. Update the prototype specified here to match the newly
15031         generated function.
15033 2017-02-12  Bruno Haible  <bruno@clisp.org>
15035         times test: Avoid gcc warnings on Linux/x32.
15036         * tests/test-times.c (main): Really cast printf arguments from clock_t
15037         to 'long int'.
15039 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15041         glob: port better to emscripten
15042         Problem reported by Bruno Haible in:
15043         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
15044         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
15046 2017-02-11  Bruno Haible  <bruno@clisp.org>
15048         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
15049         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
15050         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
15051         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
15052         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
15053         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
15054         Distinguish hppa64 from hppa.
15056 2017-02-10  Bruno Haible  <bruno@clisp.org>
15058         search: Don't assume that tsearch() exists if 'VISIT' is defined.
15059         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
15060         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
15061         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
15063 2017-02-09  Bruno Haible  <bruno@clisp.org>
15065         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
15066         * doc/gnulib.texi (Libtool and Windows): Recommend
15067         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
15068         Reported by Reuben Thomas <rrt@sc3d.org>.
15070 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15072         stddef-tests: port to SIZE_MAX <= INT_MAX
15073         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
15074         Do not assume that INT_MAX < SIZE_MAX.
15076 2017-02-01  Bruno Haible  <bruno@clisp.org>
15078         lock tests: Fix link error.
15079         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
15080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15082 2017-01-31  Bruno Haible  <bruno@clisp.org>
15084         lock: Fix link error (regression from 2017-01-05).
15085         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
15086         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
15087         pthread_rwlockattr_destroy weak.
15088         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15090 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15092         Port to PGI 16.10 x86-64
15093         This patch fixes one real bug in gl_anylinked_list2.h, along with
15094         some minor glitches that are not bugs.  It does not silence PGI’s
15095         thousands of bogus warnings when compiling test-intprops.c.
15096         Fortunately, the warnings do not cause a failure.
15097         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
15098         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
15099         My goodness, PGI goes back a long ways - this predates C89!
15100         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
15101         For example, ASYNCSAFE (const void *) should expand to
15102         ‘const void *volatile’, not to ‘volatile const void *’.
15103         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
15104         * lib/verify.h (verify) [!__GNUC__]:
15105         Use shorter albeit meaningless string to bypass silly compiler limits.
15106         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
15107         * tests/nan.h (NaNf, NaNd, NaNl):
15108         Use static functions to avoid misguided compiler diagnostics.
15109         Is there some reason we don’t use static functions on all platforms?
15111 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
15113         parse-datetime: handle timezones reentrantly
15114         This API change was prompted by a report by Pádraig Brady in:
15115         https://bug.debian.org/851934#10
15116         To help fix the bug, make parse_datetime2 more reentrant.
15117         * NEWS: Document this incompatible change.
15118         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
15119         Add two arguments, the timezone and the timezone name.
15120         All callers changed.  If TZ="..." is specified, use it for
15121         calculating defaults.
15122         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
15123         this code should be usable in a library.
15124         (mktime_ok, get_effective_timezone):
15125         Accept timezone arg too.  All callers changed.
15126         (get_tz): Remove.
15127         (get_effective_timezone): Check for failures.
15129 2017-01-20  Eric Blake  <eblake@redhat.com>
15131         localename: port to cygwin 2.6
15132         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
15133         Cygwin.
15134         * modules/localename (Depends-on): Add extensions, since
15135         NL_LOCALE_NAME() is not visible without it.
15137 2017-01-17  Pádraig Brady  <P@draigBrady.com>
15139         parse-datetime: fix dependence on AC_PROG_SED
15140         * modules/parse-datetime: Use `sed` directly like all other modules.
15141         Reported by J William Piggott
15143 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
15145         intprops: update doc URLs
15146         * doc/intprops.texi (Integer Range Overflow): Update URLs.
15148 2017-01-16  Bruno Haible  <bruno@clisp.org>
15150         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
15151         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
15152         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
15153         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
15154         distinguish s390 and s390x.
15155         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
15156         * NEWS: Mention the change regarding 'armel'.
15158 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15160         localeinfo: case_folded_counterparts and WEOF
15161         * NEWS: Document this.
15162         * lib/localeinfo.c (case_folded_counterparts):
15163         First arg is now wint_t, not wchar_t.  This generalizes the
15164         function to also work on WEOF, where it returns 0.
15166         dfa: port to gcc -fsanitize=undefined
15167         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
15168         as this runs afoul of gcc -fsanitize=undefined.
15170 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
15172         strftime: %z is -00 if unknown
15173         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
15174         the caller's responsibility to set 'negative_number'.  All uses changed.
15175         (__strftime_internal): Put '-' before a zero UTC offset if the time
15176         zone abbreviation starts with "-", which is the recently-introduced
15177         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
15178         * tests/test-strftime.c: Test for this.
15180 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15182         dfa: port to older GCC
15183         Problem reported by Assaf Gordon in:
15184         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
15185         * modules/c99: New module.  This merely attempts to use the latest
15186         C version, which should be enough to solve this particular problem.
15187         The idea is to document which Gnulib modules assume C99 or later.
15188         * modules/dfa (Depends-on): Add it.
15190 2017-01-10  Bruno Haible  <bruno@clisp.org>
15192         Update DEPENDENCIES.
15193         * DEPENDENCIES: List only https URLs. Update recommended version for
15194         autoconf, automake, gperf.
15196 2017-01-10  Jim Meyering  <meyering@fb.com>
15198         maint.mk: enforce spelling of "timestamp" (i.e., no space)
15199         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
15200         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
15202 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15204         dfa: minor simplification with emptyset
15205         * lib/dfa.c (build_state): Simplify by using emptyset.
15207 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15209         dfa: shrink constraints from 4 bits to 3
15210         * lib/dfa.c (newline_constraint, letter_constraint)
15211         (other_constraint, prev_newline_dependent)
15212         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
15213         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
15214         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
15215         Constraints need only 3 bits, not 4.  Using smaller integers
15216         shrinks the code a bit and makes grep a tad faster on x86-64.
15218         dfa: omit unnecessary ptrdiff_t check
15219         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
15220         overflow, since xnmalloc does that now.
15222         dfa: omit unnecessary allocation
15223         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
15224         an all-zero follow set works just fine.
15226         dfa: omit unused local
15227         * lib/dfa.c (build_state): Fix up recent change.
15229         maint: remove stray .texi files
15230         Although these were superseded by other files like
15231         doc/posix-functions/ctime.texi, the old files were not removed.
15232         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
15234 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
15236         getprogname: fix port to IRIX
15237         * lib/getprogname.c (getprogname) [__sgi]:
15238         Don't dump core if malloc returns NULL.
15240         dfa: fix reallocation bug when matching newlines
15241         Problem reported for sed by S. Gilles (Bug#25390).
15242         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
15243         (dfastate): Reallocate before moving any newline transition ...
15244         (build_state): ... instead of reallocating here, where it is too late.
15246 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
15248         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
15249         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
15251 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
15253         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
15254         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
15256 2017-01-07  Bruno Haible  <bruno@clisp.org>
15258         stdioext: Port to Minix 3.2 and newer.
15259         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
15260         * lib/fseeko.c (fseeko): Likewise.
15261         Reported by Nelson Beebe via Paul Eggert.
15263 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15265         getprogname: port to IRIX
15266         * lib/getprogname.c (getprogname): Port to IRIX.
15267         Based on an idea by Bastien Roucariès at:
15268         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
15269         via code from Bruno Haible at:
15270         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
15272         localename-tests: port to NetBSD 7
15273         Problem reported by Nelson H. F. Beebe.
15274         * tests/test-localename.c:
15275         Test newlocale and uselocale only if both exist.
15277         glob, intprops, xalloc: work around Clang bug
15278         Work around LLVM bug 16404, which is still not fixed.
15279         https://llvm.org/bugs/show_bug.cgi?id=16404
15280         Problem reported by Nelson H. F. Beebe.
15281         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
15282         Remove.
15283         * lib/glob.c (size_add_wrapv):
15284         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
15285         * lib/xalloc-oversized.h (xalloc_oversized):
15286         Do not use overflow builtins if Clang.
15288         dfa: fix 'return' typo
15289         Problem reported by Nelson H. F. Beebe.
15290         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
15292 2017-01-05  Pádraig Brady  <P@draigBrady.com>
15294         parse-datetime: fix generated paths for coverage files
15295         * modules/parse-datetime: Adjust the paths for parse-datetime.y
15296         within parse-datetime.c, so that gcc generates appropriate .gcno
15297         files, allowing lcov to proceed without error.  Previously it
15298         would error trying to find "lib/lib/parse-datetime.y".
15300 2017-01-05  Pádraig Brady  <P@draigBrady.com>
15302         maint.mk: support parallel execution of coverage
15303         * top/maint.mk (coverage): Run dependencies serially,
15304         thus supporting parallel processing of each one,
15305         particularly build-coverage, which builds and runs tests.
15307 2017-01-05  Bruno Haible  <bruno@clisp.org>
15309         lock tests: Prefer semaphore over mutex.
15310         * tests/test-lock.c (USE_SEMAPHORE): New constant.
15311         (struct atomic_int, init_atomic_int, get_atomic_int_value,
15312         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
15313         Suggested by Torvald Riegel <triegel@redhat.com>.
15315 2017-01-05  Bruno Haible  <bruno@clisp.org>
15317         lock: Provide guarantee to avoid writer starvation for rwlocks.
15318         The rationale is: 1) Read-preferring read-write locks are prone to
15319         writer starvation if the number of reader threads multiplied by the
15320         percentage of time they have the lock held is too high. 2) Write-
15321         preferring read-write locks are the only reliable way to avoid this.
15322         3) There have been reports of 'test-lock' hanging on glibc systems
15323         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
15324         and glibc indeed implements read-preferring rwlocks by default, see
15325         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
15326         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
15327         * m4/pthread_rwlock_rdlock.m4: New file.
15328         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
15329         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
15330         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
15331         of rwlock initialization on glibc systems without
15332         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
15333         of rwlocks altogether on non-glibc systems without
15334         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
15335         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
15336         * lib/glthread/lock.c [USE_POSIX_THREADS]
15337         (glthread_rwlock_init_for_glibc): New function.
15338         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
15339         comment.
15340         [USE_PTH_THREADS]: New implementation of rwlocks.
15341         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
15342         readers.
15343         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
15344         (Depends-on): Add 'extensions'.
15345         * tests/test-rwlock1.c: New file.
15346         * lock-tests (Files): Add it.
15347         (Depends-on): Add usleep.
15348         (Makefile.am): Add test-rwlock1 to the tests.
15350 2017-01-05  Bruno Haible  <bruno@clisp.org>
15352         thread: Fix pth port.
15353         * lib/glthread/thread.h (pth_init): Declare weak.
15354         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
15355         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
15356         function.
15358 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
15360         parse-datetime: fix debug message on lone year number
15361         Input dates such as
15362           date -d "Apr 11 22:59:00 2011"
15363         are parsed as date (Apr 11, with default year 2016), then time, then a
15364         number (2011). Based on the combination of previously seen tokens,
15365         'digits_to_date_time' determines 2011 to be a year value.
15366         This fixes the debug messages to correctly show the updated year.
15367         Before:
15368             $ date --debug -d 'Apr 11 22:59:00 2011'
15369             date: parsed date part: (Y-M-D) 2016-04-11
15370             date: parsed time part: 22:59:00
15371             date: parsed number part: today/this/now
15372         After:
15373             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
15374             date: parsed date part: (Y-M-D) 2016-04-11
15375             date: parsed time part: 22:59:00
15376             date: parsed number part: year: 2011
15377         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
15378         'debug_year_seen' member fields.
15379         (digits_to_date_time): Update 'year_seen' as needed.
15380         (debug_print_current_time): Inform about year updates.
15381         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
15383         parse-datetime: fix local timezone debug messages
15384         "Local timezones" are strings that affect only DST relative to the
15385         default timezone. The debug messages in parse-datetime.y printed
15386         wrong information when encountering local timezones.
15387         Examples:
15388         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
15389              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
15390              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
15391         When the default timezone relates to the zone strings, EET/EEST are
15392         parsed as local timezones (tLOCAL_ZONE), and only change the DST
15393         value (0/1, respectively):
15394              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
15395              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
15396         * lib/parse-datetime.y (debug_print_current_time): If local timezone
15397         was seen, inform about DST change, don't print actual timezone.
15398         (debug_strfdatetime): If local timezone was seen, use default timezone
15399         (and adjust as needed) instead of using incorrect timezone.
15400         (parse_datetime2): Use correct time-zone source string, and adjust
15401         default timezone as needed.
15403         parse-datetime: add debug warning about DST changes
15404         Incorrect date arithmetic due to daylight saving time (DST) are a
15405         common (false) bug report in coreutils.
15406         Detect two such cases and print a warning:
15407         1. year/month/day adjustments (performed on 'struct tm'),
15408            where 'mktime' returns a different isdst value.
15409         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
15410            where the result of 'localtime(3)' on the value will return a
15411            different isdst value.
15412         Note: DST changes could be harmless or unnoticeable.
15413         Examples (with 'TZ=America/New_York'):
15414         Unnoticeable: result is 2016-Dec-14
15415            $ date -d '2016-06-15 EDT + 6 months' +%b
15416            Dec
15417         Unnoticeable: result is 2016-Dec-15 11:00:00
15418            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
15419            2016-12-15
15420         This is unexpected:
15421            $ date -d '2016-06-01 EDT + 6 months' +%F
15422            2016-11-30
15423         The new debug warnings will show:
15424            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
15425            ...
15426            date: warning: daylight saving time changed after date adjustment
15427            ...
15428         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
15429         print an appropriate warning message.
15431         parse-datetime: add debug warning about date arithmetic
15432         Date arithmetic are done directly on the fields of 'struct tm',
15433         which can result in invalid dates. Normalization with 'mktime(3)'
15434         will then produce a different date - which might cause unexpected
15435         results.
15436         Examples:
15437           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
15438           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
15439         Note that date normalization is not inherently wrong and not rejected,
15440         as it has legitimate uses:
15441           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
15442         If the user asked to adjust months but 'mday' changed,
15443         or user asked to adjust years but 'month' changed - warn about it.
15444             $ ./src/date --debug -d '2016-10-31 - 1 month'
15445             ...
15446             date: warning: when adding relative months/years, \
15447                            it is recommended to specify the 15th of the month
15448             ...
15449             date: warning: month/year adjustment resulted in shifted dates:
15450             date:      adjusted Y M D: 2016 09 31
15451             date:    normalized Y M D: 2010 10 01
15452             ...
15453         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
15454         a warning message. Improve recommendation of when to use 15 of the
15455         month or noon for date arithmetic.
15457         parse-datetime: fix debug message of relative part after timezone
15458         Relative part (e.g '+8 days') after a timezone string was not
15459         reported (was only reported after a timezone number). Due to the
15460         parser's structure, timezone strings with numbers were handled
15461         separately.
15462         before:
15463              # Timezone number + relative part: OK
15464              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
15465              ...
15466              date: parsed relative part: -8 day(s)
15467              # Timezone string + relative part: missing
15468              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
15469              [ missing message ]
15470         After: messages are printed in both cases.
15471         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
15473         parse-datetime: fix incorrect debug message on lone number
15474         A lone number is an absolute value, not a relative time part.
15475         before:
15476            $ date --debug -d '20130101'
15477            date: parsed number part: today/this/now
15478         After:
15479            $ ./src/date --debug -d '20130101'
15480            date: parsed number part: (Y-M-D) 2013-01-01
15481         * lib/parse-datetime.y ('item'/'number' tokens): Call
15482         'debug_print_current_time' instead of 'debug_print_relative_time'.
15484 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
15486         doc: modernize for C11 etc.
15487         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
15488         for C11, MinGW, etc.  This responds to Paul Smith's question in:
15489         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
15491         dfa: prefer functions to FETCH_WC macro
15492         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
15493         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
15494         wint_t result into DFA->lex.wctok instead of to a separate arg.
15495         All callers changed.  Move more local decls closer to where
15496         they're used.
15498         dfa: narrow more local var scopes
15499         * lib/dfa.c: Move more local decls to be more local.
15501         dfa: remove duplicate assignment
15502         Problem reported by Bruno Haible in:
15503         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
15504         * lib/dfa.c (parse_bracket_exp): Simplify.
15506 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15508         dfa: simplify constraint-dependency checking
15509         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
15510         (prev_other_constraint): Remove.
15511         (prev_newline_dependent, prev_letter_dependent):
15512         Simplify, to avoid an unnecessary bitwise AND operation.
15514         dfa: prefer functions and constants to macros
15515         * lib/dfa.c: Prefer constants to macros where either will do.
15516         (streq, isasciidigit, newline_constraint)
15517         (letter_constraint, other_constraint, succeeds_in_context)
15518         (prev_newline_constraint, prev_letter_constraint)
15519         (prev_other_constraint, prev_newline_dependent)
15520         (prev_letter_dependent, accepting, accepts_in_context):
15521         Now static functions instead of function-like macros.
15522         Use lower-case names accordingly.  All uses changed.
15524         dfa: narrow more local var scopes
15525         * lib/dfa.c: Move some more local decls down to nearer where
15526         they're needed.
15528 2016-12-31  Jim Meyering  <meyering@fb.com>
15530         dfa: narrow the scope of many local variables
15531         * lib/dfa.c: Now that we are no longer constrained to c89, move
15532         declarations of many variables (often indices) "down" into the
15533         scope(s) where used or to the point of definition.  This is a
15534         no-semantic-change diff.
15536 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15538         version-etc: new year
15539         * build-aux/gendocs.sh (version):
15540         * doc/gendocs_template:
15541         * doc/gendocs_template_min:
15542         * doc/gnulib.texi:
15543         * lib/version-etc.c (COPYRIGHT_YEAR):
15544         Update copyright dates by hand in templates and the like.
15545         * all files: Run 'make update-copyright'.
15547 2016-12-31  Eric Blake  <eblake@redhat.com>
15549         do-release-commit-and-tag: avoid shell syntax error
15550         * build-aux/do-release-commit-and-tag (curr_br): $branch can
15551         contain spaces when rebasing.
15553         maint.mk: hoist gnulib_dir definition earlier
15554         * top/maint.mk (gnulib_dir): Move near top of file.
15556 2016-12-31  Jim Meyering  <meyering@fb.com>
15558         maint.mk: do not always evaluate intprops-related shell
15559         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
15560         using gnulib_dir undefined (gnulib_dir is defined later in the
15561         file, which will be fixed separately), and besides, there is no
15562         need to incur the cost of this shell invocation for every single
15563         use of this .mk file.  Reported by Eric Blake in
15564         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
15566 2016-12-30  Jim Meyering  <meyering@fb.com>
15568         maint.mk: improve sc_prohibit_intprops_without_use
15569         * top/maint.mk (_intprops_names): Don't hard-code the list of
15570         symbol names.  Instead, derive it on the fly.
15572 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
15574         dfa: shorten sbit, success
15575         * lib/dfa.c (struct regex_syntax.sbit):
15576         (struct dfa.success): Use char, not int, for array elements, since
15577         they are all in the range 0..7.
15579         dfa: simplify multibyte_prop etc.
15580         This follows up on a change made when dfa.c was in grep, namely grep
15581         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
15582         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
15583         That earlier simplification allows for some more simplification
15584         and trimming down here.
15585         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
15586         (struct lexer_state): New mamber brack.
15587         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
15588         since they must be in the range 0..3 now.
15589         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
15590         the brack member now supersedes them.
15591         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
15592         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
15593         (dfaparse): Remove unnecessary initializations of already-0 storage.
15594         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
15595         (dfassbuild): No need to clear sup->mbcsets.
15597         dfa: minor performance tweak
15598         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
15600         dfa: wrap charclass inside a struct
15601         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
15602         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
15603         about 5% faster, where list.txt is generated by 'aspell dump
15604         master | head -n 100000 >list.txt'.  See Bug#22239.
15605         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
15606         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
15607         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
15608         Adjust to this, e.g., by using charclass * rather than charclass.
15609         All callers changed as needed.
15610         (copyset): Remove.  All uses changed to simple assignment.
15611         (parse_bracket_exp): Use zeroset instead of memset.
15613 2016-12-30  Jim Meyering  <meyering@fb.com>
15615         maint.mk: update list of intprops.h symbol names
15616         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
15617         This avoids a false failure of the sc_prohibit_intprops_without_use
15618         rule in grep.
15620 2016-12-29  Eric Blake  <eblake@redhat.com>
15622         getopt: fix parallel test failure
15623         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
15624         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
15625         * tests/test-getopt-main.h (main): Use different file names
15626         in case test-getopt-gnu and test-getopt-posix run in parallel.
15628 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15630         xalloc: x2nrealloc check for ptrdiff_t overflow
15631         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
15632         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
15634 2016-12-24  Bruno Haible  <bruno@clisp.org>
15636         lock test: Fix performance problem on multi-core machines.
15637         * tests/test-lock.c (USE_VOLATILE): New macro.
15638         (struct atomic_int): New type.
15639         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
15640         functions.
15641         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
15642         as 'struct atomic_int'.
15643         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
15644         reclock_checker_thread, test_recursive_lock): Use the new functions.
15645         Reported by Eric Blake in
15646         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
15647         and by Pádraig Brady in
15648         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
15650 2016-12-19  Bruno Haible  <bruno@clisp.org>
15652         vma-iter: Fix endless loop on 64-bit Windows.
15653         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
15654         'unsigned long'.
15656 2016-12-19  Bruno Haible  <bruno@clisp.org>
15658         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
15659         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
15660         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
15661         Invoke gt_TYPE_WINT_T instead.
15662         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
15663         * modules/stdint (Files): Add m4/wint_t.m4.
15664         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
15665         * modules/wctype-h (Makefile.am): Likewise.
15666         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
15667         not only on MSVC.
15668         * lib/wctype.in.h (wint_t): Likewise.
15670 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
15672         getopt-posix-tests: fix Makefile typo
15673         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
15674         Fix typo: the last ‘_’ was missing in the name.
15675         I suspect that the typo explains this build failure:
15676         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
15677         although I can’t reproduce the problem on Solaris 10 sparc.
15679 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15681         dfa: improve worst-case 'replace' performance
15682         See my note in Bug#22357#71.
15683         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
15684         (merge_constrained): New function, which is like
15685         the old 'merge' function, except with a new argument C2.
15686         Simplify the body by avoiding the need for different sections
15687         of code depending on whether one input is exhausted.
15688         (merge): Use the new function.
15689         (delete): Return the constraint of the deleted position,
15690         not the entire position.  Caller changed.
15691         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
15693 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
15695         dfa: performance improvement for removal of epsilon closure
15696         See Bug#22357#32.
15697         * lib/dfa.c (delete): Use binary search to find deleted index.
15698         (replace): New function.  It replaces a position with the followed set.
15699         (epsclosure): Replace it with a new algorithm.  Update caller.
15701 2016-12-18  Bruno Haible  <bruno@clisp.org>
15703         Split tests for getopt-posix and getopt-gnu.
15704         * tests/test-getopt-posix.c: New file.
15705         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
15706         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
15707         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
15708         GNULIB_TEST_GETOPT_GNU.
15709         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
15710         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
15711         (Makefile.am): Test test-getopt-posix instead of test-getopt.
15712         * modules/getopt-gnu-tests: New file.
15713         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
15715 2016-12-18  Bruno Haible  <bruno@clisp.org>
15717         posix-modules: Add options for specific platforms.
15718         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
15719         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
15720         Invoke func_tmpdir. Filter out the excludes.
15722 2016-12-18  Bruno Haible  <bruno@clisp.org>
15724         getopt: Fix link error for users of getopt() in <unistd.h>.
15725         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
15726         __need_getopt is defined. Undefine all macros before defining them.
15727         * modules/getopt (Include): Clarify that including <unistd.h> is also
15728         OK.
15729         * tests/test-getopt.c: Add comment.
15731 2016-12-17  Bruno Haible  <bruno@clisp.org>
15733         getaddrinfo tests: Avoid compilation error on MSVC.
15734         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
15735         getaddrinfo on native Windows.
15737 2016-12-17  Bruno Haible  <bruno@clisp.org>
15739         getlogin, getlogin_r: Fix link errors on MSVC.
15740         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
15741         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
15742         (Link): New section.
15743         * modules/getlogin_r (Files): Add m4/getlogin.m4.
15744         (configure.ac): Require gl_LIB_GETLOGIN.
15745         (Link): New section.
15746         * NEWS: Mention the new link requirements.
15747         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
15748         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
15750 2016-12-17  Bruno Haible  <bruno@clisp.org>
15752         Un-deprecate the 'progname' module.
15753         * NEWS: Describe the appropriate use-cases of 'progname' versus
15754         'getprogname'. Based on discussion summary at
15755         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
15757 2016-12-17  Bruno Haible  <bruno@clisp.org>
15759         Reorganize NEWS a bit.
15760         * NEWS: Move some not so important changes away from section
15761         "Important Notes".
15763 2016-12-17  Bruno Haible  <bruno@clisp.org>
15765         tanhf: Avoid redefinition error on MSVC.
15766         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
15767         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
15768         may be defined as an inline function.
15769         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
15770         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
15772 2016-12-17  Bruno Haible  <bruno@clisp.org>
15774         tanf: Avoid redefinition error on MSVC.
15775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
15776         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
15777         may be defined as an inline function.
15778         * modules/math (Makefile.am): Substitute REPLACE_TANF.
15779         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
15781 2016-12-17  Bruno Haible  <bruno@clisp.org>
15783         sqrtf: Avoid redefinition error on MSVC.
15784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
15785         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
15786         may be defined as an inline function.
15787         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
15788         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
15790 2016-12-17  Bruno Haible  <bruno@clisp.org>
15792         sinhf: Avoid redefinition error on MSVC.
15793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
15794         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
15795         may be defined as an inline function.
15796         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
15797         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
15799 2016-12-17  Bruno Haible  <bruno@clisp.org>
15801         sinf: Avoid redefinition error on MSVC.
15802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
15803         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
15804         may be defined as an inline function.
15805         * modules/math (Makefile.am): Substitute REPLACE_SINF.
15806         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
15808 2016-12-17  Bruno Haible  <bruno@clisp.org>
15810         logf: Avoid redefinition error on MSVC.
15811         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
15812         may be defined as an inline function.
15814 2016-12-17  Bruno Haible  <bruno@clisp.org>
15816         log10l: Avoid redefinition error on MSVC.
15817         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
15818         may be defined as an inline function.
15820 2016-12-17  Bruno Haible  <bruno@clisp.org>
15822         log10f: Avoid redefinition error on MSVC.
15823         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
15824         may be defined as an inline function.
15826 2016-12-17  Bruno Haible  <bruno@clisp.org>
15828         hypotl: Avoid redefinition error on MSVC.
15829         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
15830         may be defined as an inline function.
15832 2016-12-17  Bruno Haible  <bruno@clisp.org>
15834         hypotf: Avoid redefinition error on MSVC.
15835         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
15836         may be defined as an inline function.
15838 2016-12-17  Bruno Haible  <bruno@clisp.org>
15840         fmodl: Avoid redefinition error on MSVC.
15841         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
15842         may be defined as an inline function.
15844 2016-12-17  Bruno Haible  <bruno@clisp.org>
15846         fmodf: Avoid redefinition error on MSVC.
15847         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
15848         may be defined as an inline function.
15850 2016-12-17  Bruno Haible  <bruno@clisp.org>
15852         expf: Avoid redefinition error on MSVC.
15853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
15854         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
15855         may be defined as an inline function.
15856         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
15857         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
15859 2016-12-17  Bruno Haible  <bruno@clisp.org>
15861         coshf: Avoid redefinition error on MSVC.
15862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
15863         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
15864         may be defined as an inline function.
15865         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
15866         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
15868 2016-12-17  Bruno Haible  <bruno@clisp.org>
15870         cosf: Avoid redefinition error on MSVC.
15871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
15872         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
15873         may be defined as an inline function.
15874         * modules/math (Makefile.am): Substitute REPLACE_COSF.
15875         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
15877 2016-12-17  Bruno Haible  <bruno@clisp.org>
15879         atan2f: Avoid redefinition error on MSVC.
15880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
15881         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
15882         may be defined as an inline function.
15883         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
15884         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
15886 2016-12-17  Bruno Haible  <bruno@clisp.org>
15888         atanf: Avoid redefinition error on MSVC.
15889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
15890         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
15891         may be defined as an inline function.
15892         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
15893         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
15895 2016-12-17  Bruno Haible  <bruno@clisp.org>
15897         asinf: Avoid redefinition error on MSVC.
15898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
15899         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
15900         may be defined as an inline function.
15901         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
15902         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
15904 2016-12-17  Bruno Haible  <bruno@clisp.org>
15906         acosf: Avoid redefinition error on MSVC.
15907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
15908         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
15909         may be defined as an inline function.
15910         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
15911         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
15913 2016-12-17  Bruno Haible  <bruno@clisp.org>
15915         Avoid redefinition errors on MSVC.
15916         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
15917         the function may be defined as an inline function.
15918         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
15919         the function may be defined as an inline function.
15921 2016-12-17  Bruno Haible  <bruno@clisp.org>
15923         Avoid redefinition errors on MSVC.
15924         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
15925         * lib/unistd.in.h: Include <stdio.h> when necessary.
15927 2016-12-17  Bruno Haible  <bruno@clisp.org>
15929         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
15930         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
15931         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
15932         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
15933         WINT_MAX.
15935 2016-12-17  Bruno Haible  <bruno@clisp.org>
15937         Avoid autoconf warning.
15938         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
15939         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
15941 2016-12-17  Bruno Haible  <bruno@clisp.org>
15943         fpending: Revert workaround against Emacs bug.
15944         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
15945         The Emacs bug is fixed by Eli Zaretskii in
15946         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
15948 2016-12-17  Bruno Haible  <bruno@clisp.org>
15950         getlogin_r tests: Port to mingw.
15951         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
15952         regression introduced on 2014-05-19.
15954 2016-12-17  Bruno Haible  <bruno@clisp.org>
15956         getlogin: Port to newer mingw.
15957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
15958         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
15959         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
15960         HAVE_GETLOGIN.
15961         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
15962         HAVE_GETLOGIN.
15963         * doc/posix-functions/getlogin.texi: Mention the issue.
15964         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
15965         regression introduced on 2014-05-14.
15967 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15969         builtin-expect: improve port to IBM XL C
15970         Problem reported for z/OS by Daniel Richard G. in:
15971         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
15972         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
15973         Test for <builtins.h> directly.
15975         builtin-expect: port to IBM XL C
15976         Problem reported for z/OS by Daniel Richard G. in:
15977         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
15978         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
15979         Also allow __builtin_expect defined via a standard include file.
15981         regex: fix dependency
15982         Problem reported by Bruno Haible in:
15983         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
15984         * modules/regex: Depend on builtin-expect.
15986         builtin-expect: new module
15987         Fix fnmatch to use it.
15988         Problem reported for z/OS by Daniel Richard G.
15989         * lib/fnmatch.c (__builtin_expect):
15990         * lib/glob.c (__builtin_expect):
15991         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
15992         * lib/memmem.c (__builtin_expect) [!_LIBC]:
15993         * lib/scandir.c (__builtin_expect):
15994         * lib/strstr.c (__builtin_expect) [!_LIBC]:
15995         Remove macro; config.h now does this.
15996         * lib/gl_anytreehash_list1.h (add_to_bucket):
15997         * lib/regex_internal.h (BE):
15998         Assume __builtin_expect.
15999         * m4/builtin-expect.m4, modules/builtin-expect: New files.
16000         * modules/avltreehash-list, modules/fnmatch, modules/glob:
16001         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
16002         * modules/scandir, modules/strstr-simple:
16003         Depend on builtin-expect.
16005 2016-12-15  Bruno Haible  <bruno@clisp.org>
16007         init.sh: Add possibility to not delete temporary files.
16008         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
16009         to yes, don't erase the temporary directory.
16011 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
16013         regex: fix integer-overflow bug in never-used code
16014         Problem reported by Clément Pit–Claudel in:
16015         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
16016         * lib/regex_internal.h: Include intprops.h.
16017         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
16018         behavior on integer overflow.
16019         * modules/regex (Depends-on): Add intprops.
16021         fpending: fix port to MinGW on Emacs
16022         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
16023         Problem reported by Eli Zaretskii in:
16024         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
16025         Is Plan 9 still a valid porting target, anyway?
16027 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
16029         safe-alloc: use xalloc-oversized
16030         * lib/safe-alloc.c: Include xalloc-oversized.h.
16031         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
16032         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
16034         xalloc: do not exceed PTRDIFF_MAX
16035         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
16036         xalloc_oversized check, since objects larger than PTRDIFF_MAX
16037         bytes have pointer-subtraction problems.
16039         malloca: do not exceed PTRDIFF_MAX
16040         * lib/malloca.h: Include xalloc-oversized.
16041         (nmalloca): Use xalloc_oversized instead of rolling our own.
16042         * modules/malloca (Depends-on):
16043         * modules/relocatable-prog-wrapper (Depends-on):
16044         Add xalloc-oversized.
16046         quotearg: pacify GCC better
16047         * modules/quotearg (Depends-on): Add minmax, stdint.
16048         * lib/quotearg.c: Include minmax.h, stdint.h.
16049         (nslots): Now int, as there seems little point to going to extra
16050         work merely to support the INT_MAX slot, which nobody ever uses.
16051         (quotearg_n_options): Redo size-overflow checks to pacify GCC
16052         and to catch (mostly-theoretical) ptrdiff_t problems too.
16053         This can be done via one comparison.
16055 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
16057         xalloc-oversized: check for PTRDIFF_MAX too
16058         This avoids undefined behavior when subtracting pointers to
16059         objects containing more than PTRDIFF_MAX bytes.
16060         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
16061         Also return 1 if the result would exceed PTRDIFF_MAX>
16062         * modules/xalloc-oversized (Depends-on):
16063         Add stdint.
16065         dfa: fix glitches in previous commit
16066         Sorry, I don't know how I managed to commit the wrong version.
16067         * lib/dfa.c (MIN): Move up.
16068         (xpalloc): Now static.
16070         dfa: fix some unlikely integer overflows
16071         I found these while reviewing the recent Coverity-related fix.
16072         This patch changes part of dfa.c to prefer ptrdiff_t instead of
16073         size_t for object counts.  Using ptrdiff_t is the style typically
16074         used in Emacs; although it wastes a sign bit as sizes can never be
16075         negative, it makes -fsanitize=undefined more likely to catch
16076         integer overflows in index calculation, and nowadays the upside is
16077         typically more important than the downside.  Although perhaps the
16078         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
16079         of dfa.c already does, since it uses state_num which is signed),
16080         that is a bigger change and is not needed to fix the bugs I found.
16081         * lib/dfa.c: Include stdint.h and intprops.h.
16082         (TOKEN_MAX): New macro.
16083         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
16084         (charclass_index, parse_bracket_exp, addtok, insert, merge)
16085         (realloc_trans_if_necessary, free_mbdata):
16086         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
16087         This is safe because xpalloc checks that the sizes do not exceed
16088         either SIZE_MAX or PTRDIFF_MAX.
16089         (xpalloc): New function, mostly taken from Emacs.
16090         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
16091         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
16092         (charclass_index): Check for integer overflow in computing
16093         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
16094         added to it later.
16095         (alloc_position_set): Check for integer overflow.  On typical
16096         platforms this check has zero overhead, since the constant
16097         expression is false.
16098         (realloc_trans_if_necessary):
16099         Remove assertion, which I hope Coverity no longer needs.
16101         * modules/dfa (Depends-on): Add intprops, stdint.
16103 2016-12-12  Jim Meyering  <meyering@fb.com>
16105         dfa: add an assertion to avoid coverity false positive
16106         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
16107         warned that "newalloc1 - 2" could overflow.
16109 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
16111         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
16112         * dfa.h (DFA_CASE_FOLD): Remove.
16113         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
16115 2016-12-13  John W. Eaton  <gnu@jweaton.org>
16117         link: fix test to declare use of rename()
16118         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
16119         -Werror=implicit-function-declaration
16121 2016-12-12  Bruno Haible  <bruno@clisp.org>
16123         fpending: Port to native Windows with MSVC.
16124         * lib/fpending.c: Include stdio-impl.h.
16125         (__fpending): Include all known implementations. Err out if it's not
16126         ported.
16127         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
16128         * modules/fpending (Files): Add lib/stdio-impl.h.
16129         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
16131 2016-12-12  Bruno Haible  <bruno@clisp.org>
16133         stdioext: Port to native Windows with MSVC.
16134         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
16135         (struct _gl_real_FILE): New type.
16136         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
16137         Windows.
16138         * lib/fbufmode.c (fbufmode): Add code for native Windows.
16139         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
16140         other SystemV derived implementations.
16141         * lib/fpurge.c (fpurge): Likewise.
16142         * lib/freadable.c (freadable): Likewise.
16143         * lib/freadahead.c (freadahead): Likewise.
16144         * lib/freading.c (freading): Likewise.
16145         * lib/freadptr.c (freadptr): Likewise.
16146         * lib/freadseek.c (freadptrinc): Likewise.
16147         * lib/fseeko.c (fseeko): Likewise.
16148         * lib/fseterr.c (fseterr): Likewise.
16149         * lib/fwritable.c (fwritable): Likewise.
16150         * lib/fwriting.c (fwriting): Likewise.
16151         Reported by Gisle Vanem <gvanem@yahoo.no>.
16153 2016-12-11  Jim Meyering  <meyering@fb.com>
16155         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
16156         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
16157         to work with most shells, but not with the one provided by many
16158         Solaris 10 systems, so running configure with such a /bin/sh evokes
16159         e.g., "./configure: syntax error at line 33602: `(' unexpected".
16160         Reported by Assaf Gordon in
16161         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
16163 2016-12-10  Bruno Haible  <bruno@clisp.org>
16165         threadlib: Optimize out runtime test on Solaris >= 10.
16166         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
16167         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
16168         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
16170 2016-12-10  Bruno Haible  <bruno@clisp.org>
16172         stdint: Update doc about Solaris 9.
16173         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
16175 2016-12-09  Bruno Haible  <bruno@clisp.org>
16177         c-ctype tests: Fix link error on Solaris 9.
16178         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
16179         Reported at <https://savannah.gnu.org/bugs/?46827>.
16181 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
16183         dfa: fix performance bug that recomputes trans
16184         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
16185         25 on-demand changes.  The bug caused build_state to reset all
16186         d->trans elements to -2 even when d->trans was already non-null.
16187         Use C99 style decls after statements in this function.
16189         same-inode: port to MinGW
16190         Here st_ino is always 0, so change the definition of SAME_INODE so
16191         that 1 means the two files are the same, 0 with st_ino != 0 means
16192         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
16193         reported by Bruno Haible (Bug#25146).
16194         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
16195         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
16197 2016-12-04  Bruno Haible  <bruno@clisp.org>
16199         javacomp-script: Support Java 7 and 8.
16200         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
16201         target-version 1.7, 1.8.
16203 2016-12-02  Daiki Ueno  <ueno@gnu.org>
16205         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
16206         GPLv2" rewriting.
16208 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
16210         * gnulib-tool (func_import): Adhere to the license guideline when
16211         rewriting the license text to "LGPLv3+ or GPLv2":
16212         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
16214 2016-12-02  Bruno Haible  <bruno@clisp.org>
16216         localcharset: Avoid theoretical buffer overrun.
16217         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
16218         return value from setlocale if it would lead to a buffer overrun.
16220 2016-12-01  Bruno Haible  <bruno@clisp.org>
16222         Relicense some modules under LGPLv2+.
16223         Kevin Cernekee's approval is in
16224         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
16225         * modules/fseterr (License): Change to LGPLv2+.
16226         * modules/mbchar (License): Likewise.
16227         * modules/mbiter (License): Likewise.
16228         * modules/mbsnlen (License): Likewise.
16229         * modules/wcwidth (License): Likewise.
16231 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
16233         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
16234         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
16235         OS/2 kLIBC.
16237 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
16239         alphasort, scandir: Port to OS/2 kLIBC
16240         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
16241         declaration.
16242         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
16244 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
16246         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
16247         * lib/relocatable.c (relocate): Do not touch pathname if it is started
16248         with '/@unixroot'.
16250 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
16252         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
16253         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
16254         OS/2 kLIBC unless TCPV40HDRS is defined.
16256 2016-11-29  Jim Meyering  <meyering@fb.com>
16258         dfa: avoid new infinite loop
16259         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
16260         * lib/dfa.c (dfastate): When constructing a new state table, we could
16261         initially declare that we had found a match, and later find that
16262         constraints eliminate that possibility, yet continue to use the
16263         now stale "matched" indicator.  That would lead to an infinite loop.
16264         The solution is to update "matched" when necessary.
16265         Introduced by commit v0.1-983-g403adf1.
16267 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16269         dfa: avoid match middle in multibyte character
16270         * lib/dfa.c (transit_state): If fails in matching single byte characters
16271         on a state including period expression in non-UTF8 multibyte locales,
16272         skip trailing bytes.
16273         (dfa_supported): Revert previous change.
16275 2016-11-27  Jim Meyering  <meyering@fb.com>
16277         dfa: avoid false match in non-UTF8 multibyte locales
16278         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
16279         as "not supported" so that callers will resort to using regex-based
16280         matcher.  This will surely hurt performance, but correctness trumps
16281         performance here, and the affected locales are less and less relevant,
16282         these days.  See grep's bug report https://bugs.gnu.org/24975.
16284 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
16286         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
16287         * lib/ptsname_r.c: Include the appropriate headers.
16288         [__sun]: Delete sys/sysmacros.h include.
16289         [_AIX || __osf__]: Likewise.
16290         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
16292 2016-11-27  Pádraig Brady  <P@draigBrady.com>
16294         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
16295         * lib/md4.c (md4_process_bytes): The existing define is made internal
16296         in recent versions of glibc, so also use this new public define.
16297         * lib/md5.c (md5_process_bytes): Likewise.
16298         * lib/sha1.c (sha1_process_bytes): Likewise.
16299         * lib/sha256.c (sha256_process_bytes): Likewise.
16300         * lib/sha512.c (sha512_process_bytes): Likewise.
16302 2016-11-27  Pádraig Brady  <P@draigBrady.com>
16304         maint: use a more standard return from mbrtowc test
16305         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
16306         from the test program as this often indicates an
16307         unhandled case in the test program.
16308         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
16309         (gl_MBRTOWC_SANITYCHECK): Likewise.
16310         (gl_MBRTOWC_NULL_ARG2): Likewise.
16311         (gl_MBRTOWC_NUL_RETVAL): Likewise.
16313 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
16315         freopen: work around glibc bug with closed fd
16316         Work around glibc bug#15589, where freopen mishandles the case
16317         where stdin etc. are already closed.
16318         * doc/posix-functions/freopen.texi (freopen): Document the bug.
16319         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
16320         instead of __need_FILE, as the latter does not work with glibc.
16321         Include <fcntl.h>, for open flags.
16322         (rpl_freopen): Work around glibc bug.
16323         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
16324         * modules/freopen (Depends-on): Add fcntl-h.
16325         * tests/test-freopen.c (main): Test for bug.
16327 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
16329         fnmatch: fix typo introduced on 2016-08-17
16330         This fixes the port to non-GCC compilers that lack __builtin_expect.
16331         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
16333         dfa: simplify with new function fillset
16334         * lib/dfa.c (fillset): New function.
16335         Use it for clarity when applicable.
16337         dfa: fix glitches with on-demand states
16338         Also, adjust commentary to better match new code.
16339         Some of these glitches predate the recent change.
16340         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
16341         only non-initial states.
16342         (dfastate): Rename locals to better match new roles.
16343         Move them into nested scopes if this is easy.
16344         Omit unnecessary calls to zeroset.
16345         Simplify test for whether to throw in the positions of state 0.
16346         Omit C99-ism (decl after statement) since Gawk still wants C89.
16347         (build_state): Omit unnecessary test and assignment.
16348         Fix some confusion that counted transition tables inaccurately
16349         and could cause a memory leak.
16350         (dfaexec_main): Redo to make it clearer to the compiler that
16351         -1 and -2 are the only negative state numbers here.
16353 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16355         dfa: addition of new state on demand
16356         * src/dfa.c (dfastate): Add argument UC, the current input character.
16357         Fill only a group including the character in transition table.
16358         (realloc_trans_if_necessary): Add the dummy state which means that a
16359         transition table is assigned but the next state is not assigned.
16360         (build_state): Return the next state.  All callers updated.
16361         (transit_state_singlebyte): If we get the dummy state,
16362         fill the transition table.
16363         (dfaexec_main): Handle the dummy state.
16364         (free_mbdata, dfafree): Consider the dummy state.
16366 2016-11-24  Daiki Ueno  <ueno@gnu.org>
16368         srclist: sync with released gettext
16369         * config/srclist.txt: Set "release" option to the files under
16370         $GETTEXT.
16372 2016-11-24  Daiki Ueno  <ueno@gnu.org>
16374         srclist: add "release" option
16375         * config/srclist.txt: Change the format so that the first column
16376         of each line points to the top-level directory of the source
16377         archive.
16378         * config/srclist-update: Accept "release" option that checks files
16379         from the most recently tagged revision in the source archive.
16381 2016-11-21  Bruno Haible  <bruno@clisp.org>
16383         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
16384         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
16385         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
16386         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
16387         Inline and remove member function 'rpl ()' of the wrapper struct.
16389 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16391         dfa: fix logic typo
16392         Problem reported by Stephane Chazelas (Bug#24973).
16393         * lib/dfa.c (using_simple_locale): Fix typo that caused some
16394         non-simple locales like fr_FR to be treated as simple.
16396 2016-11-20  Jim Meyering  <meyering@fb.com>
16398         fix test driver leaks: exclude, malloc, realloc
16399         * tests/test-exclude.c (main): Fix trivial leak.
16400         * tests/test-malloc-gnu.c (main): Likewise.
16401         * tests/test-realloc-gnu.c (main): Likewise.
16402         With these changes, grep's tests are now leak free.
16403         I.e., running them with ASAN elicits no failure:
16404           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
16405             AM_LDFLAGS='-fsanitize=address -static-libasan' check
16407 2016-11-11  Bruno Haible  <bruno@clisp.org>
16409         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
16410         * modules/libunistring: (License): Change from LGPL to
16411         "LGPLv3+ or GPLv2".
16412         * modules/libunistring-optional: Likewise.
16413         * modules/unicase/*: Likewise.
16414         * modules/uniconv/*: Likewise.
16415         * modules/unictype/*: Likewise.
16416         * modules/unigbrk/*: Likewise.
16417         * modules/unilbrk/*: Likewise.
16418         * modules/uniname/*: Likewise.
16419         * modules/uninorm/*: Likewise.
16420         * modules/unistdio/*: Likewise.
16421         * modules/unistr/*: Likewise.
16422         * modules/uniwbrk/*: Likewise.
16423         * modules/uniwidth/*: Likewise.
16425 2016-11-12  Bruno Haible  <bruno@clisp.org>
16427         Relicense some modules under LGPLv2+.
16428         Paul Eggert's approval is in
16429         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
16430         Eric Blake's approval is in
16431         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
16432         Ludovic Courtès's approval is in
16433         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
16434         * modules/isnand-nolibm (License): Change to LGPLv2+.
16435         * modules/isnanf-nolibm (License): Likewise.
16436         * modules/isnanl-nolibm (License): Likewise.
16438 2016-11-19  Bruno Haible  <bruno@clisp.org>
16440         Relicense some modules under LGPLv2+.
16441         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
16442         modules/vasnprintf.
16443         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
16444         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
16445         All other significant changes to the files in lib/ of these modules
16446         are from me.
16447         * modules/memcmp2 (License): Change to LGPLv2+.
16448         * modules/amemxfrm (License): Likewise.
16449         * modules/fpieee (License): Likewise.
16450         * modules/fpucw (License): Likewise.
16451         * modules/frexp-nolibm (License): Likewise.
16452         * modules/frexpl-nolibm (License): Likewise.
16453         * modules/printf-frexp (License): Likewise.
16454         * modules/printf-frexpl (License): Likewise.
16455         * modules/printf-safe (License): Likewise.
16456         * modules/signbit (License): Likewise.
16458 2016-11-17  Bruno Haible  <bruno@clisp.org>
16460         Enable Unicode decoder safety unconditionally.
16461         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
16462         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
16463         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
16464         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
16465         * lib/unistr/u8-prev.c (u8_prev): Likewise.
16466         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
16467         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
16468         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
16469         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
16470         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
16471         * lib/unistr/u16-prev.c (u16_prev): Likewise.
16472         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
16473         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
16474         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
16475         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
16476         * lib/unistr/u32-prev.c (u32_prev): Likewise.
16477         * lib/unistr/u32-next.c (u32_next): Likewise.
16478         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
16479         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
16480         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
16481         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
16482         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
16483         CONFIG_UNICODE_SAFETY tests unconditionally.
16484         * tests/unistr/test-u32-mblen.c (main): Likewise.
16485         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
16486         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
16487         * tests/unistr/test-u32-next.c (main): Likewise.
16488         * tests/unistr/test-u32-strmblen.c (main): Likewise.
16489         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
16490         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
16491         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
16492         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
16493         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
16494         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
16495         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
16496         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
16497         * lib/unistr/u16-check.c (u16_check): Update comment.
16498         * NEWS: Mention the changes that callers should be aware of.
16500 2016-11-19  Bruno Haible  <bruno@clisp.org>
16502         relocatable-prog-wrapper: Fix breakage on Cygwin.
16503         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
16504         (Depends-on): Remove intprops.
16505         * lib/relocwrapper.c: Update dependency tree.
16506         (strerror): Undefine.
16507         * build-aux/install-reloc (func_create_wrapper): Do not compile
16508         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
16510 2016-11-19  Bruno Haible  <bruno@clisp.org>
16512         strerror: Make it compile in C++ mode.
16513         * lib/strerror.c (strerror): Ignore the return value of memcpy().
16515 2016-11-15  Pedro Alves  <palves@redhat.com>
16517         sys_time: add gnulib::timeval for C++
16518         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
16519         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
16520         timeval macro.
16522 2016-11-14  Pedro Alves  <palves@redhat.com>
16524         snippet/c++defs: fix real-floating arg functions in C++ mode
16525         Also, define isfinite, isinf, isnan, signbit in the gnulib
16526         namespace instead of in the global namespace.
16527         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
16528         (_GL_END_NAMESPACE): New.
16529         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
16530         (isfinite, isinf, isnan, signbit) [__cplusplus &&
16531         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
16532         instead of in the global namespace.
16533         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
16534         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
16535         of in the global namespace.
16537 2016-11-13  Jim Meyering  <meyering@fb.com>
16539         strftime: don't use __THROW
16540         Each use of __THROW would provoke this from gcc-7-to-be:
16542           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
16543             on unit local functions [-Wattributes]
16544           static int iso_week_days (int, int) __THROW;
16545           ^~~~~~
16546         * lib/strftime.c (__THROW): Don't define.
16547         Remove each use of __THROW.
16548         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
16549         (tm_diff, iso_week_days, __strftime_internal): Likewise.
16551 2016-11-14  Paul Eggert  <eggert@union>
16553         obstack: port to gcc -fcheck-pointer-bounds
16554         Problem found by 'make check' failure on bleeding-edge coreutils
16555         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
16556         6.2.0-5ubuntu12), configured via "./configure
16557         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
16558         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
16559         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
16560         New macro, copied from fts_.h.
16561         (struct _obstack_chunk.contents): Use it.
16563 2016-11-14  Eric Blake  <eblake@redhat.com>
16565         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
16566         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
16567         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
16569 2016-11-14  Pádraig Brady  <P@draigBrady.com>
16571         strptime: fix compile error in recent change
16572         * lib/strptime.c (__strptime_internal): Fix ported code.
16574 2016-11-11  Bruno Haible  <bruno@clisp.org>
16576         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
16577         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
16578         (func_import): Extend determination of license_incompatibilities.
16579         (func_create_testdir): Extend table of license compatibility. Handle
16580         also the licenses GPLv3+, GPL, LGPLv3+.
16582 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
16584         strftime: tune %q
16585         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
16587         Merge strftime.c changes from glibc
16588         This incorporates:
16589         2007-10-16 [BZ #5184] Add tzset_called argument
16590         2008-06-13 [BZ #6612] pass reference to tzset_called around
16591         2009-10-30 Implement Burmese language locale for Myanmar
16592         2010-01-09 Add support for XPG7 testing
16593         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
16594         2015-10-20 Convert miscellaneous function definitions to prototype style
16595         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
16596         it anyway and this lessens the difference between gnulib and glibc.
16597         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
16598         (__THROW): Define if standard headers do not.
16599         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
16600         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
16601         Declare with __THROW.
16602         (__strftime_internal): Rename from strftime_case_. Add arg for
16603         whether tzset is called.  All uses changed.  Call tzset at most
16604         once.  Allow %OC, for Burmese.
16605         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
16606         Don't assume values are in range.
16608 2016-11-12  Eric Blake  <eblake@redhat.com>
16610         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
16611         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
16612         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
16613         different value.
16615 2006-11-12  Pedro Alves  <palves@redhat.com>
16617         Fix gnulib C++ namespace support and std::frexp
16618         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
16619         _GL_CXXALIASWARN.
16621 2006-11-12  Pedro Alves  <palves@redhat.com>
16623         GNULIB_NAMESPACE::func need not pull in rpl_func
16624         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
16625         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
16626         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
16627         struct instead of a function pointer.
16629 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
16631         manywarnings: fix -Wno-missing-field-initializers detection
16632         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
16633         to be independent of -Wunused-variable.  I.E. ensure the latter
16634         warning doesn't occur so that detection of the former is accurate.
16636 2016-11-05  Pádraig Brady  <pbrady@fb.com>
16638         strftime,strptime: support %q to represent the quarter
16639         * lib/strftime.c (strftime_case_): Add %q case.
16640         * lib/strptime.c (__strptime_internal): Likewise.
16641         * tests/test-strftime.c (quarter_test): A new test case.
16643 2016-11-03  Eric Blake  <eblake@redhat.com>
16645         bootstrap: Fix get_version() for AIX 5.3
16646         * build-aux/bootstrap (get_version): Factor out sed script, since
16647         indented comments choke AIX 5.3 sed.
16648         Reported-by: Michael Felt <aixtools@gmail.com>
16650 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16652         intprops: port to older XL C
16653         Problem reported by Alexander Samoilov in:
16654         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
16655         http://savannah.nongnu.org/bugs/?49448
16656         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
16657         Define to 1 only for XL C 12.1 or later, since this bug
16658         occurs in XL C for AIX 6.0 but not in 12.1.
16660 2016-11-02  Pádraig Brady  <P@draigBrady.com>
16662         backupfile: initialize default suffix within the implementation
16663         * lib/backupfile.c (find_backup_file_name): Initialize the
16664         global variable here, to simplify usage, and to only call
16665         getenv() when needed.
16667 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
16669         futimens: remove FIXME for old Linux kernels
16670         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
16671         this in 2012" FIXME, like that for utimensat.
16673         utimensat: remove FIXME for old Linux kernels
16674         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
16675         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
16676         this in 2012" FIXME, by assuming the file system bug is absent
16677         unless demonstrated to be present.  We no longer need to worry
16678         about Linux kernel 2.6.32 when building with newer kernels.
16680 2016-10-16  Bruno Haible  <bruno@clisp.org>
16682         qsort_r: Fix macrology for platforms that lack the function.
16683         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
16684         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
16685         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
16686         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
16687         not exist.
16688         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
16689         the function exists.
16690         * modules/qsort_r: Add comments.
16692 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16694         sys_types: fix Texinfo typos
16695         * doc/glibc-functions/gnu_dev_major.texi:
16696         * doc/glibc-functions/gnu_dev_makedev.texi:
16697         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
16699 2016-10-26  John David Anglin  <dave.anglin@bell.net>
16701         getprogname: port to HP-UX
16702         See Bug#24805.
16703         * lib/getprogname.c (getprogname) [__hpux]: Port.
16704         * tests/test-getprogname.c (STREQ) [__hpux]:
16705         Special-case for HP-UX limitations on program name length.
16707 2016-10-20  Bruno Haible  <bruno@clisp.org>
16709         Update doc about target platforms.
16710         * doc/gnulib-intro.texi (Target Platforms): Update list.
16712 2016-10-15  Bruno Haible  <bruno@clisp.org>
16714         opendir, readdir, closedir: Relicense under LGPLv2+.
16715         * modules/opendir (License): Change to LGPLv2+.
16716         * modules/readdir (License): Likewise.
16717         * modules/closedir (License): Likewise.
16719 2016-10-16  Bruno Haible  <bruno@clisp.org>
16721         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
16722         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
16723         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
16724         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
16725         HAVE_DECL_STRERROR_R.
16727 2016-10-16  Bruno Haible  <bruno@clisp.org>
16729         Make the 'argp' module work without the 'error' module.
16730         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
16732 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
16734         diffseq: restore TOO_EXPENSIVE heuristic
16735         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
16736         (Bug#24715).  The simplest solution is to restore the
16737         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
16738         using a higher threshold to avoid Bug#16848 on smaller files.
16739         * lib/diffseq.h (struct context): Restore member too_expensive.
16740         (struct partition): Restore members lo_minimal, hi_minimal.
16741         (diag, compareseq): Restore arg find_minimal.  All uses changed.
16742         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
16743         1993 to make 'diff' run faster (but not as well) on large inputs,
16744         but use a threshold of 4096 instead of the old 256.
16745         * lib/fstrcmp.c (strcmp_bounded):
16746         * lib/git-merge-changelog.c (compute_differences):
16747         Adjust to diffseq.h changes.
16749 2016-10-22  Bruno Haible  <bruno@clisp.org>
16751         iconv: Avoid compilation error when bootstrapping GNU libiconv.
16752         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
16753         declaration yet, define ICONV_CONST to empty.
16755 2016-10-15  Bruno Haible  <bruno@clisp.org>
16757         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
16758         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
16759         module.
16761 2016-10-16  Bruno Haible  <bruno@clisp.org>
16763         system-quote tests: Avoid compiler warning on AIX.
16764         * tests/test-system-quote-child.c (fopen): Redefine like the system's
16765         <stdio.h> does.
16767 2016-10-16  Bruno Haible  <bruno@clisp.org>
16769         Fix some "gcc -Wall" warnings.
16770         * tests/test-ffsl.c (main): Use variable x, not i.
16771         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
16772         freopen.
16773         * tests/test-sethostname1.c (main): Explicitly ignore the return value
16774         of sethostname.
16776 2016-10-16  Bruno Haible  <bruno@clisp.org>
16778         gnulib-tool: Make --create-testdir on all modules work again.
16779         * gnulib-tool (func_create_testdir): Don't include the
16780         non-recursive-gnulib-prefix-hack module.
16782 2016-10-21  Daiki Ueno  <ueno@gnu.org>
16784         libunistring: change the maintainer to 'all'
16785         * modules/gen-uni-tables, modules/libunistring:
16786         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
16787         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
16788         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
16789         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
16790         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
16791         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
16792         * modules/uniwidth/*: Change the maintainer to 'all'.
16794 2016-10-16  Bruno Haible  <bruno@clisp.org>
16796         Simplify "configure: checking ..." messages.
16797         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
16798         AC_MSG_NOTICE.
16799         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
16801 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
16803         quotearg-tests: pacify gcc -Wall
16804         Problem reported by Bruno Haible in:
16805         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
16806         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
16807         * tests/test-quotearg.h: ... from here.
16809 2016-10-20  Pádraig Brady  <P@draigBrady.com>
16811         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
16812         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
16813         Needed on Centos <= 4.
16815 2016-10-20  Jim Meyering  <meyering@fb.com>
16817         printf.m4: fix a bug in detecting printf %j support
16818         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
16819         uintmax_t is defined in neither stdint.h nor inttypes.h.
16820         Before, this macro might have mistakenly set
16821         gl_cv_func_printf_sizes_c99=yes on such a system.
16822         Spotted by Zev Weiss.
16824 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
16826         sched: substitute HAVE_SYS_CDEFS_H too
16827         Problem reported by Tom G. Christensen in:
16828         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
16829         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
16830         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
16832 2016-10-19  Pádraig Brady  <P@draigBrady.com>
16834         quotearg: never write beyond the returned length
16835         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
16836         scan of the string when we initially encounter a single quote when
16837         shell quoting, so that if we then switch to a more concise quoting method
16838         we will not have written beyond that returned length.
16839         This is significant for sh-quote, which has separate routines
16840         to determine the length and do the actual quoting.
16841         * tests/test-quotearg.h: Reinstate the buffer bounds checking
16842         now that we never write more than the returned length.
16844 2016-10-18  Bruno Haible  <bruno@clisp.org>
16846         getprogname tests: Avoid failure in packages that use libtool.
16847         * tests/test-getprogname.c (main): Strip "lt-" prefix.
16848         Based on a patch by Jim Meyering.
16850 2016-10-16  Bruno Haible  <bruno@clisp.org>
16852         getprogname: Fix test failure on Cygwin. Comments.
16853         * lib/getprogname.h: Add comments.
16854         * lib/getprogname.c: Add comments. Fix #elif indentation.
16855         * tests/test-getprogname.c (main): On Cygwin, expect a result without
16856         ".exe" suffix.
16858 2016-10-16  Bruno Haible  <bruno@clisp.org>
16860         Make sure the libunistring detection rejects older versions with a
16861         known bug.
16862         * modules/unistr/u8-strtok (configure.ac): Bump required version.
16863         * modules/unistr/u16-strtok (configure.ac): Likewise.
16864         * modules/unistr/u32-strtok (configure.ac): Likewise.
16866 2016-10-18  Bruno Haible  <bruno@clisp.org>
16868         sh-quote, system-quote: revert regression of unit test.
16869         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
16870         * tests/test-system-quote-main.c (check_one): Likewise.
16872 2016-10-16  Pádraig Brady  <P@draigBrady.com>
16874         quotearg: fix stale tests
16875         * tests/test-quotearg.c [locale_results]: Add the missing str7
16876         entries to the expected results.
16877         * tests/test-system-quote-main.c (check_one): Don't enforce that we
16878         don't write beyond the returned length, since that's no longer the
16879         case if we switch to a more concise quoting style.
16880         * tests/test-sh-quote.c (check_one): Likewise.
16881         (main): Adjust for the new more concise quoting style.
16882         Reported by Bruno Haible.
16884 2016-10-16  Jim Meyering  <meyering@fb.com>
16886         non-recursive-gnulib-prefix-hack: fix inconsequential typo
16887         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
16888         to "$1".  This macro is always invoked with $1 == lib.
16889         Spotted by Bruno Haible
16891 2016-10-16  Bruno Haible  <bruno@clisp.org>
16893         Fix a test crash.
16894         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
16895         fails.
16897 2016-10-16  Pádraig Brady  <P@draigBrady.com>
16899         test-limits-h: suppress -Woverlength-strings
16900         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
16902 2016-10-15  Bruno Haible  <bruno@clisp.org>
16904         gettime, timespec, utimens: Relicense under LGPL.
16905         * modules/gettime (License): Change to LGPL.
16906         * modules/timespec (License): Likewise.
16907         * modules/utimens (License): Likewise.
16909 2016-10-14  Bruno Haible  <bruno@clisp.org>
16910             Pádraig Brady  <P@draigBrady.com>
16912         canonicalize-lgpl: Support the case path_max > INT_MAX.
16913         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
16914         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
16916 2016-10-13  Jim Meyering  <meyering@fb.com>
16918         getprogname: IBM z/OS: avoid NULL-dereference
16919         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
16920         upon strdup failure.
16922 2016-10-12  Jim Meyering  <meyering@fb.com>
16924         test-stdint: use _GL_VERIFY rather than "verify" for some tests
16925         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
16926         and an abbreviated diagnostic rather than verify with the full one,
16927         because the full-length strings would evoke warnings from gcc with
16928         -Woverlength-strings.
16930 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16932         stdint: port SIZE_MAX to glibc s390
16933         Problem reported by Eric Blake in:
16934         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
16935         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
16936         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
16937         correct type, if possible.
16939 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
16941         getprogname: port to IBM z/OS
16942         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
16944 2016-10-11  Jim Meyering  <meyering@fb.com>
16946         maint: remove stray space after "." in AC_DEFINE comment.
16947         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
16948         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16950 2016-10-05  Jim Meyering  <meyering@fb.com>
16952         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
16953         * lib/long-options.c (parse_long_options): Add a break statement
16954         to avoid this new warning/failure:
16955         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
16956           --create-testdir --dir=/t/x --with-tests --test long-options
16957         ../../gllib/long-options.c: In function 'parse_long_options':
16958         ../../gllib/long-options.c:66:12: error: this statement may \
16959           fall through [-Werror=implicit-fallthrough]
16960                    (*usage_func) (EXIT_SUCCESS);
16961                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
16963 2016-10-05  Jim Meyering  <meyering@fb.com>
16965         utimecmp: avoid new GCC 7 warning from -Wbool-operation
16966         Testing this module would fail when using GCC 7 like this:
16967         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
16968           --dir=/tmp/x --with-tests --test utimecmp
16969         ../../gllib/utimecmp.c: In function ‘utimecmp’:
16970         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
16971           [-Werror=bool-operation]
16972                          time_t s = src_s & ~ (res == 2 * BILLION);
16973                                             ^
16974         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
16975           [-Werror=bool-operation]
16976                src_s &= ~ (res == 2 * BILLION);
16977                         ^
16978         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
16979         Instead, make it explicit that we intend to apply it to 0 or 1.
16981 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16983         dfa: save memory for states
16984         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
16985         states if dfa has a lot of caches.
16987 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
16989         wchar, wctype-h: fix for MinGW 3.22.2
16990         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
16991         special invocation, to fix issues with MinGW 3.22.2 wchar.h
16992         when included from <string.h>.
16993         * lib/wctype.in.h [__MINGW32__]: Add special invocation
16994         convention for MinGW 3.22.2, to solve issues with their
16995         wctype.h when included from <ctype.h>.
16997 2016-10-05  Jim Meyering  <meyering@fb.com>
16999         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
17000         * lib/long-options.c (parse_long_options): Add a break statement
17001         to avoid this new warning/failure:
17002         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
17003           --create-testdir --dir=/t/x --with-tests --test long-options
17004         ../../gllib/long-options.c: In function ‘parse_long_options’:
17005         ../../gllib/long-options.c:66:12: error: this statement may \
17006           fall through [-Werror=implicit-fallthrough]
17007                    (*usage_func) (EXIT_SUCCESS);
17008                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
17010         utimecmp: avoid new GCC 7 warning from -Wbool-operation
17011         Testing this module would fail when using GCC 7 like this:
17012         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
17013           --dir=/tmp/x --with-tests --test utimecmp
17014         ../../gllib/utimecmp.c: In function ‘utimecmp’:
17015         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
17016           [-Werror=bool-operation]
17017                          time_t s = src_s & ~ (res == 2 * BILLION);
17018                                             ^
17019         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
17020           [-Werror=bool-operation]
17021                src_s &= ~ (res == 2 * BILLION);
17022                         ^
17023         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
17024         Instead, make it explicit that we intend to apply it to 0 or 1.
17026 2016-10-03  Pádraig Brady  <P@draigBrady.com>
17028         quotearg: minimize shell quoting using double quotes
17029         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
17030         quote in encountered then use double quotes (c style quoting)
17031         when possible, as it simplifies the quoting.
17032         * tests/test-quotearg-simple.c: Add test cases.
17033         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
17034         for the fact we now may write beyond the returned length.
17036 2016-10-02  Jim Meyering  <meyering@fb.com>
17038         vasnprintf.c: avoid spurious warning from GCC 7
17039         The presence of cpp directives renders this "FALLTHROUGH" comment
17040         ineffective, so does not suppress the -Wimplicit-fallthrough warning
17041         from GCC 7 built from git on 2016-10-02.
17042         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
17043         directives, so that it takes effect once again.  This is clearly
17044         not a proper change, and I will revert it once this bug is fixed:
17045         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
17047 2016-10-01  Jim Meyering  <meyering@fb.com>
17049         getprogname: correct the test for a __progname variable
17050         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
17051         and AC_LINK_IFELSE to check for a global __progname.  If found,
17052         define HAVE_VAR___PROGNAME.
17053         * lib/getprogname.c (getprogname): Reflect the new name of the
17054         feature- checked preprocessor symbol:
17055         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
17057 2016-09-28  Jim Meyering  <meyering@fb.com>
17059         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
17060         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
17061         fall-through case with a /* fallthrough */ comment.
17063         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
17064         * lib/dfa.c (dfassbuild): Mark the end of this case with a
17065         /* fallthrough */ comment.
17067         getprogname: avoid __progname vs program_invocation_short_name pitfall
17068         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
17069         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
17070         not with Fedora 24's glibc-2.23.1-10.
17071         * lib/getprogname.c (__progname): Move this declaration down...
17072         (getprogname): ... into the #elif block where used, and make it
17073         explicitly "extern".
17075         getprogname: port to OpenBSD 5.1
17076         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
17077         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
17078         * modules/getprogname (configure.ac): Move most of this code...
17079         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
17080         increment serial number, and add a test for __progname.
17081         https://bugs.gnu.org/24562
17082         Reported by Nelson H. F. Beebe.
17084 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
17086         sched: port to GCC 6.2.1 on macOS Sierra
17087         Problem reported by Denis Davydov in:
17088         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
17089         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
17090         Include <sys/cdefs.h> before <sched.h>.
17091         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
17092         so that we needn’t worry about the sched.h include bug here.
17093         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
17094         and include it before <sched.h> if it exists, when
17095         checking for <sched.h>.
17097         tests/init.sh: port Alpine fix to AIX 7.1
17098         * tests/init.sh (compare_): When attempting to use diff -U3,
17099         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
17100         diff -u not outputting a space after leading '+', as the users
17101         of 'compare' should not be that picky about its output format.
17102         In the AIX 7.1 case, return with diff exit status (or with 2 if
17103         trouble), instead of some random nonzero exit status.
17104         * tests/test-init.sh (test_compare): Remove space after leading
17105         '+', so that AIX 7.1 'diff' passes the test.
17107 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17109         nl_langinfo: pacify GCC
17110         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
17111         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
17113         stdint: also set GL_GENERATE_LIMITS_H
17114         Problem reported by Jim Meyering in:
17115         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
17116         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
17118         limits-h, stdint: Don't assume extensions, fix typo
17119         * m4/limits-h.m4 (gl_LIMITS_H):
17120         * m4/stdint.m4 (gl_STDINT_H):
17121         Don't assume AC_USE_SYSTEM_EXTENSIONS.
17122         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
17123         reported by Jim Meyering in:
17124         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
17126 2016-09-21  Jim Meyering  <meyering@fb.com>
17128         getprogname: port to AIX
17129         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
17130         and strdup to obtain a short program name string.  Using code from
17131         Bruno Haible and an idea from Bastien ROUCARIÈS, in
17132         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
17133         Assaf Gordon reported that this new file would fail to compile on
17134         AIX-7.1 32bit.
17136 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17138         extensions: fix typo in comment
17139         * m4/extensions.m4: Sync from Autoconf master.
17141         stdint: support new _WIDTH macros
17142         * doc/posix-headers/stdint.texi: Document this.
17143         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
17144         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
17145         support for INTMAX_WIDTH, etc. as well as for support for just C99.
17146         * modules/stdint (Depends-on): Add limits-h.
17147         (Makefile.am): Substitute HAVE_C99_STDINT_H.
17148         * modules/stdint-tests (Depends-on): Add extensions, so that
17149         INTMAX_MAX etc. are defined.
17150         * tests/test-stdint.c: Verify the new macros.
17152         limits-h: new module
17153         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
17154         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
17155         * doc/posix-headers/limits.texi: Document new module.
17156         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
17157         * modules/limit-h-tests, tests/test-limits-h.c: New files.
17159         stdio: don't redefine __USE_MINGW_ANSI_STDIO
17160         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
17161         if it is already defined.  Apparently GNU Emacs relies on this.  See:
17162         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
17164 2016-09-15  Eric Blake  <eblake@redhat.com>
17166         sys_types: avoid glibc 2.25 warnings about major()
17167         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
17168         older autoconf.
17169         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
17170         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
17171         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
17172         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
17174         mountlist: include sysmacros.h for glibc
17175         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
17176         AC_HEADER_MAJOR.
17177         * lib/mountlist.c (includes): Use correct headers.
17179 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17181         extensions: port to more ISO C TSes
17182         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
17183         master, to add support for more recent ISO C TRs and TSes.
17185 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17187         intprops: new macro TYPE_WIDTH
17188         * lib/intprops.h (TYPE_WIDTH): New macro.
17189         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
17190         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
17191         * lib/parse-datetime.y (parse_datetime2):
17192         Use it.
17194         extensions: port to recent ISO C TRs
17195         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
17196         Sync from Autoconf master, to add support for recent ISO C TRs.
17197         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
17198         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
17199         the MinGW option is not an extension.
17201 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
17203         dfa: port to Solaris 9
17204         Problems reported by Tom G. Christensen in:
17205         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
17206         * modules/dfa (Depends-on): Add isblank.
17207         * modules/dfa-tests (dfa_match_aux_LDADD):
17208         Rename from test_stat_LDADD, to fix typo.
17209         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
17211 2016-09-10  Jim Meyering  <meyering@fb.com>
17213         strverscmp: avoid link failure on OS X
17214         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
17215         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
17217 2016-08-16  Jim Meyering  <meyering@fb.com>
17219         dfa: new module, importing grep's DFA matcher
17220         Since grep's DFA matcher is now being used by two gnulib-enabled
17221         projects, grep and sed, it makes sense to version-control its
17222         sources and unit tests in one place: here.
17223         * modules/dfa: New module.
17224         * modules/dfa-tests: New file.
17225         * lib/dfa.c: New file, from grep.
17226         * lib/dfa.h: Likewise.
17227         * lib/localeinfo.c: Likewise.
17228         * lib/localeinfo.h: Likewise.
17229         * tests/dfa-match-aux.c: Likewise.
17230         * tests/dfa-invalid-char-class.sh: Likewise.
17231         * tests/dfa-match.sh: Likewise, with minor changes.
17232         * MODULES.html.sh (Misc): Add "dfa" to this list.
17234 2016-09-09  Jim Meyering  <meyering@fb.com>
17236         getprogname-tests: don't depend on assert-h
17237         * modules/getprogname-tests (Depends-on): Remove assert-h.
17238         It was not needed, and in fact would cause build failure for
17239         coreutils on some systems.  Reported by Assaf Gordon in https:
17240         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
17242 2016-09-07  Jim Meyering  <meyering@fb.com>
17244         getprogname-tests: work also when EXEEXT is nonempty
17245         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
17246         * tests/test-getprogname.c (main): Use it.
17247         Suggested by Gisle Vanem.
17249 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
17251         getprogname: fix errors in previous change
17252         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
17253         s/program_invocation_name/base/
17254         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
17256 2016-09-08  Pádraig Brady  <P@draigBrady.com>
17258         parse-datetime: restrict debug output to input string
17259         * lib/parse-datetime.y (parse_datetime2): If we parse
17260         all of the input but determine it's invalid, ensure
17261         we don't output the now invalid input pointer.
17262         This issue was seen with `date -d 'now +1'`.
17264 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
17266         flexmember: new macro FLEXALIGNOF
17267         * lib/flexmember.h: Include <stddef.h>, for offsetof.
17268         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
17269         this macro.  Update comments.
17271 2016-09-07  Jim Meyering  <meyering@fb.com>
17273         getprogname: port to systems with __argv (mingw, msvc)
17274         * lib/getprogname.c (getprogname): Include "dirname.h" and use
17275         last_component: more general than open coding it with hard-coded "/".
17276         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
17277         * modules/getprogname (Depends-on): Add dirname-lgpl.
17278         (configure.ac): Check for __argv in <stdlib.h>.
17279         * modules/getprogname-tests: New file.
17280         * tests/test-getprogname.c: New file.
17281         Suggested by Gisle Vanem in
17282         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
17284 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
17286         flexmember: port better to GCC + valgrind
17287         With a char[] flexible array member in a struct with nontrivial
17288         alignment, GCC-generated code can access past the end of the
17289         array, because GCC assumes there are padding bytes to get the
17290         struct aligned.  So the common idiom of malloc (offsetof (struct
17291         s, m), n) does not properly allocate an n-byte trailing member, as
17292         malloc’s argument should be the next multiple of alignof (struct s).
17293         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
17294         Although C11 apparently permits this GCC optimization (i.e., there
17295         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
17296         See the thread containing:
17297         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
17298         * lib/flexmember.h: New file.
17299         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
17300         * lib/localename.c, lib/time_rz.c:
17301         Include flexmember.h.
17302         * lib/fnmatch_loop.c (struct patternlist):
17303         * lib/localename.c (struct hash_node):
17304         Use FLEXIBLE_ARRAY_MEMBER.
17305         * lib/fnmatch_loop.c (EXT):
17306         * lib/fts.c (fts_alloc):
17307         * lib/glob.c (glob_in_dir):
17308         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
17309         * lib/localename.c (gl_lock_define_initialized):
17310         * lib/time_rz.c (tzalloc):
17311         Use FLEXSIZEOF instead of offsetof.
17312         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
17313         Check that the size of the struct can be taken.
17314         * modules/flexmember (Files): Add lib/flexmember.h.
17315         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
17316         Add flexmember.
17318 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
17320         getprogname: port to Solaris 10
17321         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
17322         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
17323         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
17325         stdalign: correct mistake in alignof doc
17326         Problem reported by Joseph Myers in:
17327         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
17328         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
17329         alignof(S) where S is a structure containing a flexible array
17330         member.  The Gnulib substitute does not support this, but C11 does.
17332 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
17334         main.mk: remove sc_program_name, since there is no more need to
17335         use set_program_name in tools (getprogname is enough for most
17336         of the cases).
17337         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
17338         * top/maint.mk (sc_program_name): Remove.
17340 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
17342         Port tests away from progname, since modules that need the
17343         program name already depend on getprogname.
17344         * modules/acl-tests (Depends-on): Remove progname.
17345         * modules/argmatch (Depends-on): Likewise.
17346         * modules/argmatch-tests (Depends-on): Likewise.
17347         * modules/argp-tests (Depends-on): Likewise.
17348         * modules/argp-version-etc-tests (Depends-on): Likewise.
17349         * modules/array-list-tests (Depends-on): Likewise.
17350         * modules/array-oset-tests (Depends-on): Likewise.
17351         * modules/avltree-list-tests (Depends-on): Likewise.
17352         * modules/avltree-oset-tests (Depends-on): Likewise.
17353         * modules/avltreehash-list-tests (Depends-on): Likewise.
17354         * modules/carray-list-tests (Depends-on): Likewise.
17355         * modules/copy-file-tests (Depends-on): Likewise.
17356         * modules/exclude-tests (Depends-on): Likewise.
17357         * modules/fchownat-tests (Depends-on): Likewise.
17358         * modules/fdopendir-tests (Depends-on): Likewise.
17359         * modules/filenamecat-tests (Depends-on): Likewise.
17360         * modules/fstatat-tests (Depends-on): Likewise.
17361         * modules/fstrcmp-tests (Depends-on): Likewise.
17362         * modules/linked-list-tests (Depends-on): Likewise.
17363         * modules/linkedhash-list-tests (Depends-on): Likewise.
17364         * modules/mkdirat-tests (Depends-on): Likewise.
17365         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
17366         * modules/nonblocking-socket-tests (Depends-on): Likewise.
17367         * modules/obstack-printf-tests (Depends-on): Likewise.
17368         * modules/openat-tests (Depends-on): Likewise.
17369         * modules/parse-datetime-tests (Depends-on): Likewise.
17370         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
17371         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
17372         * modules/quotearg-simple-tests (Depends-on): Likewise.
17373         * modules/quotearg-tests (Depends-on): Likewise.
17374         * modules/rbtree-list-tests (Depends-on): Likewise.
17375         * modules/rbtree-oset-tests (Depends-on): Likewise.
17376         * modules/rbtreehash-list-tests (Depends-on): Likewise.
17377         * modules/spawn-pipe-tests (Depends-on): Likewise.
17378         * modules/system-quote-tests (Depends-on): Likewise.
17379         * modules/uniname/uniname-tests (Depends-on): Likewise.
17380         * modules/uninorm/nfc-tests (Depends-on): Likewise.
17381         * modules/uninorm/nfd-tests (Depends-on): Likewise.
17382         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
17383         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
17384         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
17385         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
17386         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
17387         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
17388         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
17389         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
17390         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
17391         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
17392         * modules/unlinkat-tests (Depends-on): Likewise.
17393         * modules/version-etc-tests (Depends-on): Likewise.
17394         * modules/xalloc-die-tests (Depends-on): Likewise.
17395         * modules/xmemdup0-tests (Depends-on): Likewise.
17396         * modules/xprintf-posix-tests (Depends-on): Likewise.
17397         * modules/xvasprintf-tests (Depends-on): Likewise.
17398         * tests/test-argmatch.c: Do not include progname.h.
17399         (main) Stop calling set_program_name.
17400         * tests/test-argp-version-etc.c: Likewise.
17401         * tests/test-argp.c: Likewise.
17402         * tests/test-argv-iter.c: Likewise.
17403         * tests/test-array_list.c: Likewise.
17404         * tests/test-array_oset.c: Likewise.
17405         * tests/test-avltree_list.c: Likewise.
17406         * tests/test-avltree_oset.c: Likewise.
17407         * tests/test-avltreehash_list.c: Likewise.
17408         * tests/test-carray_list.c: Likewise.
17409         * tests/test-copy-acl.c: Likewise.
17410         * tests/test-copy-file.c: Likewise.
17411         * tests/test-exclude.c: Likewise.
17412         * tests/test-fchownat.c: Likewise.
17413         * tests/test-fdopendir.c: Likewise.
17414         * tests/test-filenamecat.c: Likewise.
17415         * tests/test-fstatat.c: Likewise.
17416         * tests/test-fstrcmp.c: Likewise.
17417         * tests/test-linked_list.c: Likewise.
17418         * tests/test-linkedhash_list.c: Likewise.
17419         * tests/test-mkdirat.c: Likewise.
17420         * tests/test-nonblocking-pipe-main.c: Likewise.
17421         * tests/test-nonblocking-socket-main.c: Likewise.
17422         * tests/test-obstack-printf.c: Likewise.
17423         * tests/test-openat.c: Likewise.
17424         * tests/test-parse-datetime.c: Likewise.
17425         * tests/test-pipe-filter-gi1.c: Likewise.
17426         * tests/test-pipe-filter-gi2-main.c: Likewise.
17427         * tests/test-pipe-filter-ii1.c: Likewise.
17428         * tests/test-pipe-filter-ii2-main.c: Likewise.
17429         * tests/test-quotearg-simple.c: Likewise.
17430         * tests/test-quotearg.c: Likewise.
17431         * tests/test-rbtree_list.c: Likewise.
17432         * tests/test-rbtree_oset.c: Likewise.
17433         * tests/test-rbtreehash_list.c: Likewise.
17434         * tests/test-sameacls.c: Likewise.
17435         * tests/test-set-mode-acl.c: Likewise.
17436         * tests/test-spawn-pipe-main.c: Likewise.
17437         * tests/test-system-quote-main.c: Likewise.
17438         * tests/test-unlinkat.c: Likewise.
17439         * tests/test-version-etc.c: Likewise.
17440         * tests/test-xalloc-die.c: Likewise.
17441         * tests/test-xfprintf-posix.c: Likewise.
17442         * tests/test-xmemdup0.c: Likewise.
17443         * tests/test-xprintf-posix.c: Likewise.
17444         * tests/test-xvasprintf.c: Likewise.
17445         * tests/uniname/test-uninames.c: Likewise.
17446         * tests/uninorm/test-u32-nfc-big.c: Likewise.
17447         * tests/uninorm/test-u32-nfd-big.c: Likewise.
17448         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
17449         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
17450         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
17451         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
17452         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
17453         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
17454         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
17455         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
17456         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
17457         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
17458         * tests/test-c-stack.c: (program_name): Do not define.
17459         (main): Do not set program_name.
17460         * tests/test-closein.c: Likewise.
17461         * tests/test-xstrtol.c: Likewise.
17462         * tests/test-yesno.c: Likewise.
17464 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
17466         Port modules to use getprogname explicitly, instead of requiring
17467         progname to be used (or program_name to be provided).
17468         * lib/argmatch.c: Do not include progname.h.
17469         [TEST] (program_name): Do not define.
17470         [TEST] (main): Call getprogname instead of using program_name.
17471         * lib/c-stack.c: Do not include progname.h.
17472         (program_name): Do not define.
17473         (die): Call getprogname instead of using program_name.
17474         * lib/chdir-long.c: Do not include progname.h.
17475         [TEST_CHDIR] (main): Do not set program_name.
17476         * lib/error.c [!_LIBC]: Include progname.h.
17477         [!_LIBC] (program_name): Define using getprogname.
17478         * lib/euidaccess.c: Do not include progname.h.
17479         [TEST] (main): Do not set program_name.
17480         * lib/git-merge-changelog.c: Include getprogname.h instead of
17481         progname.h.
17482         (usage): Call getprogname instead of using program_name.
17483         (main): Likewise.  Stop calling set_program_name.
17484         * lib/group-member.c: Do not include progname.h.
17485         [TEST] (main): Do not set program_name.
17486         * modules/argmatch (Depends-on): Add getprogname.
17487         * modules/c-stack (Depends-on): Likewise.
17488         * modules/error (Depends-on): Likewise.
17489         * modules/git-merge-changelog (Depends-on): Likewise.
17490         Also remove progname.
17492 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
17494         * NEWS: Document the deprecation of the 'progname' module.
17496 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
17498         getprogname: new module
17499         This provides a LGPL module for getting the name of the current
17500         program, using the same API found on *BSD systems.
17501         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
17502         * modules/getprogname: New files.
17503         * MODULES.html.sh (Misc): Add getprogname.
17505 2016-09-02  Jim Meyering  <meyering@fb.com>
17507         manywarnings: add -fno-common
17508         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
17509         to the list.  Quoting the manual, "Compiling with -fno-common is
17510         useful on targets for which it provides better performance, or if
17511         you wish to verify that the program will work on other systems that
17512         always treat uninitialized variable declarations this way [putting
17513         it in the data section]."  If diffutils had been using this sooner,
17514         it would have prevented this duplicate declaration issue:
17515         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
17517 2016-08-31  Simon Josefsson  <simon@josefsson.org>
17519         parse-datetime: Fix typo.
17520         * lib/parse-datetime.y (parse_datetime2): Fix typo.
17522 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
17524         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
17525         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
17526         GCC 5 and 6 that have __builtin_sub_overflow but not
17527         __builtin_sub_overflow_p.  With the recent changes, these
17528         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
17529         implementation than with INT_SUBTRACT_OVERFLOW implementation,
17530         since the former needs just one runtime comparison whereas the
17531         latter needs two.
17533         strverscmp: sync with glibc
17534         Although this doesn't exactly synchronize with glibc
17535         byte-for-byte, it makes the code behave the same as glibc.
17536         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
17537         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
17538         difference shouldn't matter in practical use.  All uses changed
17539         back to isdigit.
17540         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
17541         (next_state): Now unsigned char array; redo elements.
17542         (result_type): Now signed char array; redo elements.
17543         (__strverscmp): Fix glibc bug 9913 by using new states.
17544         * tests/test-strverscmp.c (main): Test glibc bug 9913.
17546 2016-08-29  Jim Meyering  <meyering@fb.com>
17548         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
17549         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
17550         similarly to how it was done to intprops.h.
17552 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
17554         intprops.h: port recent changes to GCC 6.2.0
17555         * lib/intprops.h (__has_builtin): Move earlier.
17556         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
17557         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
17558         the last argument can be null.  All uses changed.
17559         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
17560         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
17561         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
17562         and it's not clear which GCC versions it works for.
17563         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
17564         its definiens.
17566         intprops.h: use __typeof__ with GCC 7
17567         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
17568         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
17569         This avoids computing the expression's value (which might overflow!).
17571 2016-08-29  Jim Meyering  <meyering@fb.com>
17573         intprops.h, xalloc-oversized.h: work with gcc 7
17574         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
17575         __builtin_mul_overflow each accept a NULL pointer as the third
17576         argument.  However in gcc 7, that is no longer accepted.
17577         Instead, one must use the "_p"-suffixed names, with which, the
17578         third parameter is no longer a pointer.
17579         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
17580         the definition: not true for gcc 7 and subsequent.
17581         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
17582         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
17583         Provide new definitions for gcc 7 and subsequent.
17584         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
17585         that works with gcc-7.
17587         intprops.h: fix missing-backslash problems
17588         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
17589         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
17591 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17593         intprops: fix paren typo on old platforms
17594         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
17595         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
17596         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
17597         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
17598         && !defined LLONG_MAX]:
17599         Remove stray paren.
17601         intprops: port to OpenVMS
17602         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
17603         * doc/posix-headers/limits.texi: Document the problem.
17604         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
17605         Define if not already defined.
17607 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
17609         parse-datetime: improve debug implementation
17610         Follow-up to commit 12ad79069 ("add optional debug printing").
17611         Improve parse-datetime's debug implementation: remove macros,
17612         replace global debug flag variable with a function parameter,
17613         use nstrftime for formatting.
17614         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
17615         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
17616         (parse_datetime2): New function, accepts 'flags' parameter, supporting
17617         debug flag. Existing interface 'parse_datetime' left unmodified.
17618         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
17619         (struct parser_control): add 'parse_datetime_debug' member variable.
17620         (parse_datetime): Call new function 'parse_datetime2' without debug.
17621         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
17622         pc.parse_datetime_debug variable as needed.
17623         (to_year): Accept new flags parameter, instead of using global variable.
17624         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
17625         use struct 'debug' variable instead of global variable.
17626         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
17627         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
17628         correspnding functions directly instead of using macros.
17629         * modules/parse-datetime: Add gnulib's strftime module.
17631 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
17633         c-strcase-tests: port to EBCDIC
17634         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
17635         which assume ASCII encoding semantics to run only in ASCII
17636         mode, as they fail in EBCDIC.
17638         sigpipe-tests: fix typo
17639         * tests/test-sigpipe.sh: C, not B.
17641 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
17643         canonicalize-lgpl: fix errno after malloca fails
17644         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
17645         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
17646         * lib/canonicalize-lgpl.c (__realpath):
17647         Don't assume malloca sets errno on failure.
17649 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17651         strtod: port errno handling to z/OS
17652         * lib/strtod.c (strtod): Save and restore errno more reliably.
17654 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
17656         strtod: port to z/OS
17657         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
17658         implementation.
17660 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17662         strtod: port to z/OS
17663         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
17664         implementation.
17666         regex, string: rename to avoid '__string'
17667         * lib/regex.h, lib/string.in.h: Do not use the identifier
17668         '__string', as it is effectively reserved by string.h on z/OS.
17670         c-strcase-tests, wcwidth-tests: depend on c-ctype
17671         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
17672         Add c-ctype.
17674 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
17676         thread: port to z/OS
17677         * lib/glthread/thread.c, lib/glthread/thread.h:
17678         Rudimentary gl_thread support for z/OS.
17680         maint: port tests to z/OS errno behavior
17681         * tests/test-nonblocking-reader.h:
17682         * tests/test-nonblocking-writer.h:
17683         Accommodate z/OS errno code preferences. (I believe this should
17684         still be within spec; IBM is good at following the letter if not
17685         the spirit of such things.)
17687         maint: preprocessor changes to support z/OS
17688         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
17689         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
17690         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
17691         * tests/test-nonblocking-pipe.h:
17693         fclose, strstr-simple, wchar: port to z/OS
17694         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
17695         Changes to the Autoconf M4 code to support z/OS.  Note that
17696         fclose() is broken in a different way on z/OS than it is on other
17697         systems, thus the special-case in fclose.m4.
17699         iconv_open-utf-tests, iconv-tests: port to EBCDIC
17700         * tests/test-iconv-utf.c, tests/test-iconv.c:
17701         Added appropriately conditional #pragmas so that the test strings
17702         in test-iconv-utf.c are correctly interpreted in ASCII instead of
17703         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
17704         addressed in a more portable way by simply rewriting all the ASCII
17705         literal characters as octal escapes, but then you would lose the
17706         partial readability that the strings have now. Also, iconv_open()
17707         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
17709         c-strcase-tests, wcwidth-tests: port to EBCDIC
17710         * tests/test-c-strcasecmp.c: Include c-ctype.h.
17711         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
17712         * tests/test-wcwidth.c: Likewise.
17714 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17716         stdbool: don't require _Bool for C++
17717         Problem reported by David Seifert in:
17718         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
17719         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
17720         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
17721         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
17722         stricter about checking that bool and _Bool are compatible in C.
17724 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
17726         getdelim: remove dependency on realloc-posix
17727         * lib/canonicalize-lgpl.c (alloc_failed)
17728         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
17729         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
17730         Use __set_errno where needed, for consistency.
17731         * lib/getdelim.c (alloc_failed): New function.
17732         (getdelim): Use it.
17734 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
17736         parse-datetime: add optional debug printing
17737         Print parsing information, warnings, and errors to stderr.
17738         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
17739         * lib/parse-datetime.y:
17740         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
17741         (PROGRESS*): Same as DEBUG, for progress reporting.
17742         (dbg_printf): Print message to stderr, with 'date' prefix.
17743         (struct parser_control): Add 'debug_*_seen' variables.
17744         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
17745         (debug_print_current_time, debug_print_relateive_time): Prints the
17746         current/relative date/time value of parser_control.
17747         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
17748         (to_year): Warn about 2-digit year parsing.
17749         (yylex):   Warn about unrecognized words.
17750         (get_effective_timezone): Returns current timezone in minutes.
17751         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
17752         clearly and unambigiously as possible.
17753         (debug_mktime_not_ok): Print detailed information about failed
17754         date/time values.
17755         (parse_datetime): Add DEBUG messages for failures, warnings. Add
17756         PROGRESS messages for status messages.
17757         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
17759 2016-08-06  Jim Meyering  <meyering@fb.com>
17761         tests/init.sh: exclude dash with bad "local" semantics
17762         * tests/init.sh (gl_shell_test_script_): Add a function to
17763         eliminate a shell like "dash" (unlike bash, zsh) that has
17764         surprising/risky "local var='...'" semantics.  Inspired by
17765         the problem and discussion in https://bugs.gnu.org/24116#11.
17767 2016-08-02  Ján Tomko  <jtomko@redhat.com>
17769         maint.mk: expand the prohibit_doubled_word regex
17770         This check has a static list of words that are checked for
17771         repetitions.  Expand it before running the perl script to
17772         avoid using expensive captures.  This decreases the cost
17773         for libvirt from 1.66s to 0.66s.
17774         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
17775         (sc_prohibit_doubled_word): Use it.
17777 2016-07-26  Ján Tomko  <jtomko@redhat.com>
17779         useless-if-before-free: skip non-matching lines early
17780         * build-aux/useless-if-before-free: First match each line with the
17781         simple/quick /\bif\b/ and reject if there is no match. This often
17782         saves the cost of the much more involved regular expression.
17783         For libvirt, this decreases the cost from 1.44s to 1.02s.
17785 2016-07-26  Ján Tomko  <jtomko@redhat.com>
17787         maint.mk: speed up sc_po_check
17788         sc_po_check would skip files based on their names, or on the
17789         existence of files with derived names. Rewrite it to use perl
17790         instead of shell to make the check faster.
17791         * top/maint.mk (perl_translatable_files_list_): Define.
17792         (sc_po_check): Use it.
17794 2016-07-30  Ján Tomko  <jtomko@redhat.com>
17796         maint.mk: speed up require_config_h_first
17797         Instead of spawning three processes per file,
17798         rewrite the check in perl and run it once for all the files.
17799         * top/maint.mk (perl_config_h_first_): Define.
17800         (sc_require_config_h_first): Use it in place of shell code.
17802 2016-07-26  Ján Tomko  <jtomko@redhat.com>
17804         maint.mk: speed up sc_po_check
17805         sc_po_check would skip files based on their names, or on the
17806         existence of files with derived names. Rewrite it to use perl
17807         instead of shell to make the check faster.
17808         * top/maint.mk (perl_translatable_files_list_): Define.
17809         (sc_po_check): Use it.
17811 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
17813         obstack: pacify GCC 6 with -Wnull-dereference
17814         Problem reported by Assaf Gordon in:
17815         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
17816         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
17817         Declare with __attribute_noreturn__.
17818         * lib/obstack.h (__attribute_noreturn__): New macro.
17820 2016-07-13  Eric Blake  <eblake@redhat.com>
17822         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
17823         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
17824         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
17826 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
17828         doc: mention glibc SSIZE_MAX buglet
17829         * doc/posix-headers/limits.texi (limits.h): Document the bug.
17831 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
17833         printf-posix: Fix mingw build
17834         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
17835         expression for detecting C symbol prefixes but forgot to qoute square
17836         brackets in the command line arguments for grep.  That way when
17837         building with mingw the condition was false although it ought to be
17838         true instead.  In particular scenarios this led to the following
17839         compile error:
17841             Cannot export rpl_printf: symbol not found
17842             Cannot export rpl_scanf: symbol not found
17843             collect2: error: ld returned 1 exit status
17845         Fix this by properly quoting square brackets.
17847 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
17849         mktime: call tzset as per POSIX
17850         Problem reported by Ludovic Courtès in:
17851         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
17852         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
17853         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
17855 2016-06-26  Pádraig Brady  <P@draigBrady.com>
17857         fts: handle readdir() errors
17858         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
17859         but also upon error when it will also set errno.  Therefore
17860         flag the error case from readdir().  We treat the case where
17861         no items are read the same as if the dir can't be accessed,
17862         i.e. by setting fts_errno to FTS_DNR.
17864 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
17866         intprops: port better to GCC 7
17867         GCC 7 __builtin_add_overflow supports a new usage form, where the
17868         last argument is a null pointer, and which merely returns 1 if an
17869         overflow would occur.  This is a constant expression if all
17870         arguments are constants, and should generate faster code when code
17871         needs to be generated.
17872         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
17873         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
17874         Use builtin operations if available.
17875         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
17876         operations are available, as it's almost surely faster.
17878 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
17880         intprops-test: port to GCC 6
17881         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
17882         since the bug is not fixed in GCC 6.1.
17884 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17886         xalloc-oversized: port to GCC 7; fewer warnings
17887         GCC 7 will have a better way to deal with integer overflow.
17888         Plus, fix a warnings problem reported by Tim Ruehsen in:
17889         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
17890         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
17891         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
17892         For GCC 5, use __xalloc_oversized if both args are constants,
17893         or if pedantic.
17895 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
17897         regex: port to Sun C
17898         Reported by Daiki Ueno.
17899         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
17900         __restrict, in prototype.  This fixes a problem I introduced in
17901         the 2016-02-19 merge from glibc.
17903 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
17905         stdbool: Restore __bool_true_false_are_defined check
17906         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
17907         __bool_true_false_are_defined is still defined, even with C++11.
17909 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
17911         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
17912         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
17914 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
17916         Use GCC_LINT, not lint
17917         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
17918         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
17919         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
17920         Document problem with lint and _Noreturn.
17921         * lib/diffseq.h (IF_LINT, IF_LINT2):
17922         * lib/fts.c (sccsid):
17923         * lib/getndelim2.c (IF_LINT):
17924         * lib/gl_anylinked_list2.h (gl_linked_iterator)
17925         (gl_linked_iterator_from_to):
17926         * lib/gl_anytree_list2.h (gl_tree_iterator)
17927         (gl_tree_iterator_from_to):
17928         * lib/gl_anytree_oset.h (gl_tree_iterator):
17929         * lib/gl_array_list.c (gl_array_iterator)
17930         (gl_array_iterator_from_to):
17931         * lib/gl_array_oset.c (gl_array_iterator):
17932         * lib/gl_carray_list.c (gl_carray_iterator)
17933         (gl_carray_iterator_from_to):
17934         * lib/idcache.c:
17935         * lib/inet_ntop.c (IF_LINT):
17936         * lib/regcomp.c (build_charclass_op, create_tree):
17937         * lib/regex_internal.c (re_acquire_state)
17938         (re_acquire_state_context):
17939         * lib/trigl.c (rcsid):
17940         * lib/trim.c (IF_LINT):
17941         * lib/vasnprintf.c (IF_LINT):
17942         * lib/verify.h (assume):
17943         Treat GCC_LINT like lint.
17945 2016-05-29  Bruno Haible  <bruno@clisp.org>
17947         secure_getenv: Port to many more platforms.
17948         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
17949         functions.
17950         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
17951         for non-BSD Unix platforms and for native Windows.
17952         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
17953         Prompted by a request from Nikos Mavrogiannopoulos.
17955 2016-05-27  Eric Blake  <eblake@redhat.com>
17957         canonicalize: Fix broken probe for realpath.
17958         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
17959         in logic introduced in 54615b95.
17961 2016-05-26  Eric Blake  <eblake@redhat.com>
17963         unsetenv: relax to LGPLv2+
17964         * modules/unsetenv (License): Match setenv license.
17966 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
17968         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
17969         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
17970         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
17971         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
17972         (commonarg, dirargs, dirs, infoarg, generate_ascii)
17973         (generate_html, generate_info, generate_tex, outdir)
17974         (source_extra, split, srcfile, texarg): Move above 'version'.
17975         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
17977 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17979         manywarnings: update for GCC 6.1
17980         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17981         Add GCC 6.1 options that apply to C.
17982         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
17983         do not apply to C, are obsolescent, etc.
17985 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
17987         glob: size_t overflow checks
17988         * lib/glob.c (__has_builtin): New macro.
17989         (size_add_wrapv, glob_use_alloca): New static functions.
17990         (glob, glob_in_dir): Check for size_t overflow in several places,
17991         and fix some size_t checks that were not quite right.
17993         glob: don't assume INT_MAX < SIZE_MAX
17994         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
17995         latter is not portable to (probably theoretical) hosts where
17996         SIZE_MAX <= INT_MAX.
17998 2016-05-09  Bruno Haible  <bruno@clisp.org>
18000         Fix undefined behaviour in gettext.h.
18001         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
18002         pointer's value after the storage it points to has been freed.
18003         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
18004         Spotted by Coverity.
18006 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
18008         git-version-gen: avoid undefined shift
18009         Problem reported by Mosè Giordano in:
18010         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
18011         * build-aux/git-version-gen: Avoid undefined behavior if invoked
18012         with --prefix or --fallback but without a later argument.  While
18013         we're at it, omit unnecessary quotes.
18015 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
18017         glob: merge glibc changes into lib/glob.c
18018         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
18019         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
18020         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
18021           struct dirent [BZ #19779]
18022         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
18023           callback gl_readdir
18024         2015-10-20 Convert miscellaneous function definitions to prototype style
18025         2015-10-20 Convert 113 more function definitions to prototype style
18026           (files with assertions)
18027         2015-06-12 Fix getlogin_r namespace (bug 18527).
18028         2014-02-10 Use glibc_likely instead __builtin_expect.
18029         2013-10-20 When glob pattern contains a trailing slash match only
18030           directories. Fixes bug 10278.
18031         2013-09-04 glob: silence -Wattribute warnings
18032         2013-06-07 Avoid use of "register" as optimization hint.
18033         2012-09-25 Use size_t instead of int for internal variables in glob
18034           (bug 14621)
18035         2011-07-20 Check for overflows in expressions
18036         2011-05-28 Remove unused variable
18037         2011-05-22 Add a few more alloca size checks
18038         2010-03-27 Whitespace fixes
18039         2010-03-27 Fix one more issue with the glob patch
18040         2010-03-24 Fix glob with empty pattern
18041         2008-05-27 Remove useless more "if" tests before "free"
18042         * modules/glob (Depends-on): Add stdint.
18044 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
18046         mktime: port to stricter signed overflow checking
18047         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
18048         (long_int): Require width for INT_MAX * 3 * (seconds per year),
18049         instead of merely for INT_MAX * 2.  In practice platforms that
18050         do the latter also do the former.
18051         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
18052         (shr): New static function, replacing SHR.  All uses changed.
18053         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
18054         and TIME_T_MAX.  All uses changed.
18055         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
18056         Use long_int, not time_t.
18057         (long_int_avg): New static function, replacing time_t_avg.
18058         All uses changed.  Round toward positive infinity, as that
18059         generates slightly better code.
18060         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
18061         by INT_ADD_WRAPV.
18062         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
18063         (convert_time): New static function.
18064         (ranged_convert): Use it
18065         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
18066         Use simpler test for loop exit.
18067         (__mktime_internal): Store negative of guessed offset, to simplify
18068         overflow checking.  Remove no-longer-needed test for small time_t
18069         overflows.
18071         mktime: speed up DEBUG_MKTIME benchmarks
18072         Call tzset just once, at the start, rather than for every test
18073         case.  This lets us measure the CPU cost of mktime as opposed to
18074         that of tzset.  This is relevant when TZ is not set and glibc is
18075         being used.  This speeds up tests by a factor of 40 on my Fedora
18076         23 x86-64 platform.
18077         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
18078         to call tzset and as a sanity check.  Later on, use localtime_r
18079         instead of localtime.
18081         mktime: resurrect DEBUG_MKTIME testing
18082         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
18083         Include <string.h>, for strcmp.
18085         mktime: simplify DEBUG_MKTIME
18086         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
18087         Simplify later usage accordingly.
18089         Port mktime_internal offset to unsigned time_t
18090         This avoids some assumptions about wraparound arithmetic on
18091         signed integer overflow.
18092         * lib/mktime-internal.h (mktime_offset_t): New type.
18093         (mktime_internal): Use it in decl.
18094         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
18096         * lib/mktime.c (__mktime_internal, localtime_offset):
18097         * lib/timegm.c (timegm): Use it.
18098         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
18099         (gl_FUNC_MKTIME): Require it.
18101 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
18103         xstrtol: prohibit monstrosities like "1bB"
18104         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
18105         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
18106         "B" only if the first suffix needs a base.
18107         * tests/test-xstrtol.sh: Test this.
18109 2016-04-21  Pádraig Brady  <P@draigBrady.com>
18111         xstrtod: reinstate setting of *result upon ERANGE
18112         * lib/xstrtod.c (XSTRTOD): The user may decide to use
18113         the returned limits upon ERANGE, so allow and document that.
18115 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
18117         xstrtod: modify *result only if no errors
18118         * lib/xstrtod.c (XSTRTOD).
18120 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
18122         btowc: document problems in C locale
18123         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
18124         with mbrtowc.  See: http://bugs.gnu.org/23269#32
18126 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
18128         mktime: improve integer overflow checking
18129         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
18130         (WRAPV): Remove; no longer needed.
18131         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
18132         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
18133         Remove.  Use intprops.h defns instead.
18134         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
18135         Use bool for Boolean, for clarity.
18136         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
18137         detect integer overflow.
18138         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
18140         intprops: check two's complement assumption
18141         Suggested by Eric Blake in:
18142         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
18143         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
18144         short, int, long, and (if available) long long are two's complement.
18145         * modules/intprops (Depends-on): Add 'verify'.
18147         intprops, mktime, strtol: assume two's complement
18148         These macros were not portable to every conforming C11 ones'
18149         complement platform.  It's not worth the hassle of porting to some
18150         platforms that use ones' complement or signed magnitude, as such
18151         platforms are almost purely theoretical nowadays and porting even
18152         to some of them makes the code harder to review for little
18153         practical benefit.  Problem reported by Florian Weimer in:
18154         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
18155         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
18156         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
18157         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
18158         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
18159         (TYPE_SIGNED_MAGNITUDE):
18160         Remove.  All uses rewritten to assume two's complement, which is
18161         all we can reasonably test nowadays anyway.
18162         * top/maint.mk (_intprops_names): Remove the removed macros.
18164 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
18166         stdint: port to strict C11 left shift
18167         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
18168         Pacify clang -Wshift-negative-value, which should be an issue only
18169         on clang setups where stdint.h does not conform to C11 or to C++11.
18170         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
18172 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
18174         mbrtowc: work around glibc bug#19932
18175         Fix mbrtowc so that it never returns -1 in the C locale,
18176         as this conflicts with a future version of POSIX
18177         http://austingroupbugs.net/view.php?id=663#c2738
18178         and causes problems with GNU grep: http://bugs.gnu.org/23234
18179         See glibc bug 19932:
18180         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
18181         * doc/posix-functions/mbrlen.texi (mbrlen):
18182         * doc/posix-functions/mbrtowc.texi (mbrtowc):
18183         Document the glibc bug.
18184         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
18185         Include hard-locale.h, locale.h.
18186         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
18187         if the bug is possible.
18188         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
18189         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
18190         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
18191         * modules/mbrtowc (Depends-on): Add hard-locale.
18192         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
18193         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
18194         * tests/test-mbrtowc5.sh: New file.
18196 2016-04-03  Pedro Alves  <palves@redhat.com>
18198         stdint: detect good enough pre-C++11 stdint.h in C++ mode
18199         When gnulib is configured in C++ mode for a system with a working C99
18200         implementation of stdint.h that predates C++11, gnulib ends up
18201         substituting stdint.h anyway.  This works on most targets, but on e.g.,
18202         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
18203         MinGW is LLP64.  Instead of trying to detect the right types, detect
18204         good-enough-pre-C++11 stdint.h and in such case define
18205         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
18206         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
18207         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
18208         conforms to C99.  If it does, check whether it hides symbols
18209         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
18210         does, define those macros in config.h.
18212 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
18214         argp: merge changes from glibc
18215         Among other things, this should fix problems found by a Coverity
18216         scan and reported by Andrei Borzenkov:
18217         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
18218         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
18219         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
18220         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
18221         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
18222         * lib/argp.h:
18223         Merge changes from glibc.
18224         * tests/test-argp-2.sh: Adjust to match new behavior.
18226 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
18228         stddef: support configuring with g++
18229         Problem reported by Ángel González in:
18230         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
18231         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
18232         Do not define if _GCC_MAX_ALIGN_T is defined.
18234 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
18236         test-framework-sh: minor cleanups
18237         * tests/init.sh (testdir_prefix_): Output a trailing newline,
18238         since strictly speaking POSIX requires this.
18239         (setup_): Do not use the variable 'fail', as that makes the
18240         trace output harder to read ('fail' is typically used by
18241         tests to mean the test failed).  Treat // portably.
18242         Check that new directory is not merely a sibling of the tmp dir.
18243         Avoid unnecessary invocation of tr.
18245         test-framework-sh: revert port to NetBSD 7.0
18246         It was a false alarm; I misinterpreted Assaf Gordon's report.
18247         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
18248         Restore.
18249         (test_dir_): Adjust to mktempd_ change.
18250         (mktempd_): Restore 2nd arg.  Use -t again.
18251         (base_template_, template_, nx_): Resurrect old code.
18253         Port better to Alpine Linux
18254         Its diff implementation does not support -c, but does support -U3.
18255         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
18256         * tests/init.sh (diff_opt_): New var.
18257         (compare_): Prefer diff -U3 to diff -c to plain diff.
18259 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18261         test-framework-sh: port to NetBSD 7.0
18262         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
18263         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
18264         Remove.  All uses removed.
18265         (test_dir_): Adjust to mktempd_ change.
18266         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
18267         (base_template_, template_, nx_): Simplify by hardcoding.
18269 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
18271         gitlog-to-changelog: suppress ignored chatter
18272         * build-aux/gitlog-to-changelog: Do not warn about skipping
18273         an SHA if it would have been ignored anyway.
18275 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
18277         setlocale: add "sv" to Windows language table
18278         * lib/setlocale.c (language_table) [W32]: Add "sv".
18279         Reported in <https://savannah.gnu.org/bugs/?44588>.
18281 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
18283         sys_select: port to new Cygwin
18284         Problem reported by Ken Brown in:
18285         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
18286         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
18287         diagnostics.
18289 2016-03-17  Jim Meyering  <meyering@fb.com>
18291         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
18292         * tests/test-userspec.c (main): Remove unnecessary braces and fix
18293         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
18294           test-userspec.c:176:9: error: statement is indented as if it were \
18295             guarded by... [-Werror=misleading-indentation]
18296                    {
18297                    ^
18298           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
18299                  if (!diag && !T[i].result)
18300                  ^~
18302 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
18304         time_rz: port to clang -Wunused-const-variable
18305         * lib/time_rz.c (TZ): Remove.  All uses removed.
18307         std-gnu11: improve clang support
18308         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
18309         2016-03-15 Also try clang
18310         2016-03-15 Port C11 and C++11 testing to clang
18312         select: port more to Intel 2016.1.150 compiler
18313         Problem reported by Balázs Hajgató in:
18314         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
18315         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
18317 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
18319         select: try to port to 2016.1.150 compiler
18320         Problem reported by Balázs Hajgató in:
18321         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
18322         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
18323         POSIX specifies 'restrict'.
18325 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
18327         localename-tests: memory allocation fixes
18328         * tests/test-localename.c (test_locale_name)
18329         (test_locale_name_thread): Don't call freelocale on a locale
18330         that was the base of a successful newlocale, as that
18331         results in a double free.  Problem reported by Assaf Gordon.
18332         (test_locale_name_thread): Free saved names after use, to pacify
18333         gcc -fsanitize=address.
18335 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
18337         intprops: make .h file license match module
18338         * lib/intprops.h: Change the license wording to match glibc format.
18339         This is what is in modules/intprops anyway.  See:
18340         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
18342 2016-03-08  Eric Blake  <eblake@redhat.com>
18344         acl: fix missing return on Cygwin
18345         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
18346         fall off end of function. Fixes http://bugs.gnu.org/22949
18348 2016-03-05  Bruno Haible  <bruno@clisp.org>
18350         extern-inline: port to PGI CC
18351         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
18352         keyword 'inline'.
18353         Reported by Adam James Stewart in:
18354         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
18356 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
18358         signbit: port back to pre-C++11 GCC
18359         * lib/math.in.h (signbit): Do previous change only if
18360         __cplusplus < 201103.  See Jonathan Wakely in:
18361         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
18363 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
18365         mountlist: recognize autofs-mounted remote file systems, too
18366         Originally reported at: https://bugzilla.redhat.com/1309247
18367         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
18368         "-hosts" because it is used by autofs to mount remote file systems.
18370 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
18372         signbit: port to C++ with GCC 6
18373         * lib/math.in.h (signbit) [__cplusplus]:
18374         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
18375         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
18377         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
18379         regex: make it closer to libc
18380         Make Idx a signed type, rather than possibly unsigned.
18381         The unsignedness was not really buying us anything, since the code
18382         overflows for other reasons before getting to PTRDIFF_MAX.  Making
18383         it signed allows us to use -1 and -2 with abandon, like libc does,
18384         thus lessening the number of differences between gnulib and libc.
18385         Also, it should help avoid gratuitous warnings like the one
18386         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
18387         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
18390         regex: merge patches from libc
18392         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
18393         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
18394         Convert miscellaneous function definitions to prototype style.
18395         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
18396         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
18397         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
18398         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
18399         (re_search_internal):
18400         Convert to prototype-style function definition.
18401         Use internal_function for internal functions.
18403 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
18405         stdalign: port to older HP and IBM cc
18406         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
18407         C compilers, by checking their version numbers.  These version
18408         numbers appear in MariaDB and in Qt code that dates way back and
18409         that conditiionally uses the 'aligned' attribute.
18411 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18413         stdalign: port to clang 3.7.0
18414         Problem reported by Herbert J. Skuhra in:
18415         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
18416         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
18417         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
18418         https://llvm.org/bugs/show_bug.cgi?id=26547
18420 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18422         readdir_r: now obsolescent
18423         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
18424         * lib/mountlist.c (read_file_system_list): Add a FIXME.
18426 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
18428         misc: port better to gcc -fsanitize=address
18429         Without these patches, ./configure CFLAGS='-fsanitize=address'
18430         would compute incorrect values.  This patch fixes some (but not all)
18431         test failures with recent glibc, with this configuration.
18432         * m4/acl.m4 (gl_ACL_GET_FILE):
18433         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
18434         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
18435         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
18436         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
18437         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
18438         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
18439         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
18440         * m4/getline.m4 (gl_FUNC_GETLINE):
18441         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
18442         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
18443         * m4/regex.m4 (gl_REGEX):
18444         * m4/strndup.m4 (gl_FUNC_STRNDUP):
18445         * tests/test-calloc-gnu.c (main):
18446         * tests/test-duplocale.c (main):
18447         * tests/test-getgroups.c (main):
18448         * tests/test-getline.c (main):
18449         * tests/test-inttostr.c (main):
18450         * tests/test-localename.c (test_locale_name)
18451         (test_locale_name_thread, test_locale_name_environ)
18452         (test_locale_name_default):
18453         * tests/test-regex.c (main):
18454         * tests/test-setlocale1.c (main):
18455         * tests/test-stat.h (test_stat_func):
18456         Free heap-allocated storage before exiting.
18457         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
18458         Don't match *_foo symbols inserted by AddressSanitizer.
18459         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
18461 2016-02-02  Jim Meyering  <meyering@fb.com>
18463         verify-tests: also remove stray test-verify.Tpo
18464         * modules/verify-tests (Makefile.am): Arrange for "make clean"
18465         to remove the test-verify.Tpo file that is left behind by
18466         the automake-generated rule upon compilation failure.
18467         Otherwise, that .Tpo file would cause a failed "make distcheck"
18468         at least for grep.
18470 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
18472         std-gnu11: new module
18473         This makes it easier for applications to prefer C11 and C++11
18474         to older variants, when compiling C and C++ code.
18475         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
18476         a nontrivial chunk of GPLed Autoconf source code.
18477         * COPYING: Mention the m4/*.m4 copyright situation.
18478         * MODULES.html.sh (std-gnu11): New module.
18479         * m4/std-gnu11.m4, modules/std-gnu11: New files.
18481 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
18483         get-permissions, strftime: fix grammar in comments
18484         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
18485         some grammar fixes Alan Mackenzie made to GNU Emacs.
18487 2016-01-25  Daiki Ueno  <ueno@gnu.org>
18489         gettext: mark as obsolete
18490         Suggested by Paul Eggert in:
18491         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
18492         * modules/gettext (Status): Mark as obsolete.
18493         (Notice): Suggest to use 'gettext-h' instead.
18494         * modules/gettext-h (Description): Suggest GNU gettext, instead of
18495         the 'gettext' module.
18497 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
18499         gnulib-tool: don't give up on ln -s so easily
18500         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
18501         because an earlier one failed.  The targets could be on different
18502         file systems.  Problem reported by KO Myung-Hun in:
18503         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
18505         closedir: fix OS/2-related typos
18506         Problem reported by KO Myung-Hun in:
18507         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
18508         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
18509         in the last couple of changes.
18511 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
18513         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
18514         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
18515         copying a directory.
18517 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
18519         regex: treat [x] as x if x is a unibyte encoding error
18520         Problem reported by Aharon Robbins in:
18521         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
18522         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
18523         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
18525         closedir, dirfd, opendir: port to OpenSolaris 5.10
18526         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
18527         * m4/dirfd.m4 (gl_FUNC_DIRFD):
18528         * m4/opendir.m4 (gl_FUNC_OPENDIR):
18529         Don't use ${word##pat} substitution, as it doesn't work in
18530         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
18531         http://bugs.gnu.org/22443#11
18533 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18535         bootstrap: use American spelling
18536         * build-aux/bootstrap: Honor American spelling.
18538 2016-01-22  Karl Berry  <karl@freefriends.org>
18540         * doc/posix-functions/localtime.texi,
18541         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
18543 2016-01-21  Bruno Haible  <bruno@clisp.org>
18545         hash-pjw-bare: fix comment
18546         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
18548         wcwidth: Replace also on OpenBSD 5.8
18549         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
18550         * doc/posix-functions/wcwidth.texi: Update.
18552 2016-01-20  Pádraig Brady  <P@draigBrady.com>
18554         gnu-web-doc-update: fix addition of new files
18555         If there were already added (emnpty) dirs,
18556         then cvs aborts the add with the message:
18557           cvs [add aborted]: there is a version in <./dirname> already
18558         * build-aux/gnu-web-doc-update: Add directories separately
18559         to the addition of files, to avoid the above issue
18560         impacting the addition of files.
18562 2016-01-19  Daiki Ueno  <ueno@gnu.org>
18564         utimens-tests: avoid pulling gettext .m4 files
18565         Although this is not the right fix to the original problem:
18566         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
18567         it makes it possible again for consumer projects to use arbitrary
18568         version of gettext, through the steps described at:
18569         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
18570         See here for details:
18571         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
18572         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
18573         'gettext'.
18574         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
18575         'gettext'.
18577 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18579         regex: pacify static checkers
18580         Problem and draft fix reported by Aharon Robbins in:
18581         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
18582         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
18583         Clear memory to pacify static checkers.
18585         regex: fix [ diagnostic
18586         Problem and fix reported by Aharon Robbins in:
18587         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
18588         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
18590         regex: fix memory leaks
18591         Problem and draft fix reported by Aharon Robbins in:
18592         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
18593         * lib/regcomp.c (build_range_exp, build_charclass_op)
18594         * lib/regex_internal.c (re_dfa_add_node):
18595         Fix memory leak on failure.
18597 2016-01-18  Pádraig Brady  <P@draigBrady.com>
18599         fts: don't unconditionally use leaf optimization for NFS
18600         NFS st_nlink are not accurate on all implementations,
18601         leading to aborts() if that assumption is made.
18602         See <https://bugzilla.redhat.com/1299169>
18603         * lib/fts.c (leaf_optimization_applies): Remove NFS from
18604         the white list, and document the issue.
18606 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
18607             KO Myung-Hun  <komh@chollian.net>
18609         gnulib-tool: don't assume ln -s works
18610         * gnulib-tool (func_ln_s): New function.
18611         (func_ln): Use it.
18613 2016-01-15  KO Myung-Hun  <komh@chollian.net>
18615         utimes: detect utimes() correctly on OS/2 kLIBC
18616         utimes() of OS/2 kLIBC has some limitations.
18617         1. OS/2 itself supports a file date since 1980 year in local time.
18618         2. OS/2 itself supports only even seconds for a file time.
18619         3. utimes() of OS/2 kLIBC does not work on an opened file.
18620         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
18621         * doc/posix-functions/utimes.texi: Document the above limitations of
18622         utimes() on OS/2 kLIBC.
18624 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
18625             KO Myung-Hun  <komh@chollian.net>
18627         openat_proc_name: port to OS/2 kLIBC
18628         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
18629         instead of /proc/self/fd.
18630         * lib/openat-proc.c (openat_proc_name):
18631         Don't assume file name length is less than INT_MAX.
18632         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
18634 2016-01-14  KO Myung-Hun  <komh@chollian.net>
18636         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
18637         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
18638         definitions of intptr_t and uintptr_t (which use int and unsigned)
18639         to avoid clashes with declarations of system functions like sbrk.
18640         * lib/stdint.in.h (intptr_t, uintptr_t): Check
18641         _INTPTR_T_DECLARED before defining them.
18643         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
18644         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
18645         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
18646         Declare on kLIBC.
18647         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
18648         fd associated with dirp.
18649         (_gl_register_dirp_fd): New. Register fd associated with dirp to
18650         dirp_fd_list.
18651         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
18652         (dirfd): Implemented for kLIBC.
18653         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
18654         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
18655         succeeds.
18656         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
18657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18658         (REPLACE_DIRFD): Define to 1 if replaced.
18659         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
18660         * modules/closedir (Depends-on): Add dirfd.
18661         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
18662         condition.
18663         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
18664         * modules/opendir (Depends-on): Add dirfd.
18666         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
18667         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
18668         * lib/dup.c (dup_nothrow): New.
18669         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
18670         (klibc_dup2): New.
18671         * lib/fcntl.c (klibc_fcntl): New.
18672         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
18673         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
18674         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
18675         fd.
18677         pipe_filter_ii_execute: port to OS/2 kLIBC
18678         Pipes on kLIBC do not support O_NONBLOCK like Win32.
18679         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
18680         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
18681         Reuse Win32 code on OS/2 kLIBC.
18682         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
18683         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
18685         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
18686         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
18687         static inline function.  The implementation of wcwidth in wcwidth.c
18688         causes a "conflicting types" error.
18689         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
18691         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
18692         spawn() on OS/2 kLIBC is not silly like one on Windows
18693         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
18694         empty string on OS/2 kLIBC.
18696         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
18697         On OS/2 kLIBC, select() works only on sockets.
18698         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
18700         binary-io: don't put fd in binary mode if it is a console on EMX
18701         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
18702         a console on EMX.
18704 2016-01-15  Pádraig Brady  <P@draigBrady.com>
18706         doc: mention unfixed issues with unsupported localtime() values
18707         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
18708         returns nonsense for localtime(2^56).
18709         * doc/posix-functions/localtime_r.texi: Likewise.
18711 2016-01-14  Pádraig Brady  <P@draigBrady.com>
18713         doc: mention setlocale() issues on OpenBSD
18714         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
18715         never fails, and the need to check categories individually.
18717 2016-01-14  Pádraig Brady  <P@draigBrady.com>
18719         sig2str: list all signals on FreeBSD >= 7
18720         FreeBSD >= 7 is contravening POSIX by not defining NSIG
18721         to the maximal statically defined signal value.
18722         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
18723         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
18724         where available, even when NSIG is defined.
18726 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
18728         acl-permissions: port to USE_ACL==0 platforms
18729         I ran into this problem when building bleeding-edge GNU Emacs
18730         with gcc -fsanitize=address on Fedora 23.  On this platform
18731         the ACL library does not pass the 'configure' test and Emacs
18732         then does not build due in part to what appear to be typos in the
18733         ACL part of Gnulib.
18734         * lib/acl-internal.c (free_permission_context):
18735         * lib/acl-internal.h (struct permission_context):
18736         Test whether USE_ACL is nonzero, not whether it is defined.
18738 2016-01-12  Martin Sebor  <msebor@redhat.com>
18740         mktime: rename macro to avoid glibc clash
18741         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
18742         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
18744 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
18746         Port "$@" to OpenIndiana ksh93
18747         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
18748         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
18749         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
18750         bug long-dead shells, so remove the workaround.
18751         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
18752         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
18753         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
18754         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
18755         Use "$@" instead of ${1+"$@"}.
18757         Port Universal Time settings to strict POSIX
18758         * build-aux/announce-gen, build-aux/bootstrap:
18759         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
18760         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
18761         * build-aux/gnupload, build-aux/mkinstalldirs:
18762         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
18763         * build-aux/update-copyright, build-aux/useless-if-before-free:
18764         * build-aux/vc-list-files, tests/test-strftime.c:
18765         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
18766         but POSIX says the behavior of TZ="UTC" is undefined.
18768 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
18770         msvc-inval: fix problem with unset shell var
18771         Problem reported by Karl Berry in:
18772         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
18773         * modules/msvc-inval (Depends-on):
18774         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
18775         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
18777 2016-01-01  Pádraig Brady  <P@draigBrady.com>
18779         tests: for compare_(), use cmp -s where available
18780         * tests/init.sh (compare_): Only fall back to cmp without
18781         the POSIX defined -s option, where this is not available.
18783 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
18785         version-etc: new year
18786         * build-aux/gendocs.sh (version):
18787         * doc/gendocs_template:
18788         * doc/gendocs_template_min:
18789         * doc/gnulib.texi:
18790         * lib/version-etc.c (COPYRIGHT_YEAR):
18791         Update copyright dates by hand in templates and the like.
18792         * all files: Run 'make update-copyright'.
18794 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
18796         human: fix output buffer overrun by 1
18797         * lib/human.c (human_readable): Fix off-by-one typo in buffer
18798         calculation that could lead to a one-byte buffer overrun.
18800 2015-12-28  Daiki Ueno  <ueno@gnu.org>
18802         maint: fix operator precedence in mbrtowc test
18803         This is a fix for test breakage introduced by commit 45228d96; the
18804         equality expression must be parenthesized when negated with '!',
18805         otherwise we always get:
18807           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
18809         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
18810         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
18812 2015-12-23  James Youngman  <jay@gnu.org>
18814         regexprops-generic: update from regex.h
18815         * doc/regexprops-generic.texi: update by running the regexprops binary
18816         from findutils (the command line is 'regexprops "Regular Expressions"
18817         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
18818         gnulib with GNU grep had made this document out-of-date.
18820 2015-12-23  Pádraig Brady  <P@draigBrady.com>
18822         strftime-tests: avoid false failure on OS X
18823         * tests/test-strftime.c (struct localtime_rz_test): Add an
18824         ahistorical member which is used to warn rather than fail
18825         when tm_isdst isn't set for such entries.  This is the case for
18826         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
18828 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
18830         fts: ensure leaf optimization is used for NFS
18831         NFS provides usable dirent.d_type but not necessarily for all entries
18832         of large directories.  See <https://bugzilla.redhat.com/1252549>
18833         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
18835 2015-12-20  Pádraig Brady  <P@draigBrady.com>
18837         fts: enable leaf optimization for XFS
18838         XFS provides usable dirent.d_type only for DT_DIR,
18839         but the noleaf optimization still applies.
18840         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
18842 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
18844         intprops: comment fix
18845         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
18846         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
18848         intprops-test: work around GCC bug 68971
18849         Problem reported by Pádraig Brady in:
18850         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
18851         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
18852         (main): Add a case that better tests 64-bit long in this area.
18854 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
18856         gnulib-tool: allow multiple --local-dir usage
18857         * gnulib-tool: Use --local-dir to construct compound
18858         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
18859         PATH_SEPARATOR early.
18860         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
18861         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
18862         func_determine_path_separator because that needs to be detected
18863         earlier now.
18864         (func_determine_path_separator): New function.
18865         (func_path_foreach, func_path_foreach_inner): New functions.
18866         (func_path_prepend, func_path_append): Likewise.
18867         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
18868         (func_lookup_file, func_all_modules): Use new functions to work
18869         with local_gnulib_path.
18870         (func_modules_in_dir, func_exists_module): New callbacks for
18871         func_path_foreach.
18872         (func_exists_module, func_get_tests_module): Likewise.
18873         (func_is_local_file, func_should_symlink): New helper methods.
18874         (func_add_file, func_update_file): Use new func_should_symlink
18875         instead, DRY.
18876         (func_reconstruct_cached_local_gnulib_path): New helper.
18877         (func_reconstruct_cached_dir): New callback.
18878         (func_import): The cached_local_gnulib_dir renamed to
18879         cached_local_gnulib_path similarly to local_gnulib_dir.
18880         Use new func_reconstruct_cached_local_gnulib_path.
18881         (func_count_relative_local_gnulib_path): New sub-method.
18882         (func_create_testdir): Use func_should_symlink, DRY.
18883         (func_create_megatestdir): Use new functions to work with
18884         local_gnulib_path correctly.
18885         (func_append_local_dir): New helper.
18887 2015-12-08  Pádraig Brady  <P@draigBrady.com>
18889         fix freadptr to work with ungetc on all uClibc configs
18890         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
18891         where GNU coreutils cut(1) generates invalid output on uClibc
18892         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
18893         * lib/freadptr.c (freadptr): Return NULL if there are
18894         ungotten chars.  In this case freadseek() will iterate
18895         again to process the ungotten character.
18897 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
18899         xalloc-oversized: improve performance with GCC 5
18900         * lib/xalloc-oversized.h (xalloc_oversized):
18901         Improve performance with GCC 5 by using __builtin_mul_overflow.
18903 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
18905         intprops: new public macro EXPR_SIGNED
18906         Emacs can use this macro, so make it public.
18907         * doc/intprops.texi (Arithmetic Type Properties): Rename from
18908         'Integer Type Determination', since some of these macros apply
18909         to non-integer types.  Clarify what kinds of constant expressions
18910         these macros return.  Say when the arguments can be non-integers.
18911         Mention newly published macro EXPR_SIGNED.
18912         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
18913         make it public.  All uses changed.
18915         intprops: fix typo in clang port
18916         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
18917         '__builtin_add_overflow' that is not caught by compiler.
18919 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18921         test-timespec: fix typo in previous change
18922         * tests/test-timespec.c (main): Fix typo that reduced test quality.
18924         timespec-sub: fix overflow bug; add tests
18925         * lib/timespec-add.c (timespec_add):
18926         * lib/timespec-sub.c (timespec_sub):
18927         Work even if time_t is narrower than int (a theoretical
18928         possibility).  Redo code for a bit more clarity.
18929         * lib/timespec-sub.c (timespec_sub):
18930         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
18931         * modules/timespec-tests, tests/test-timespec.c: New files.
18933         intprops-test: suppress -Woverlength-strings
18934         Problem reported by Pádraig Brady in:
18935         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
18936         It is not worth the hassle to port this test to compilers that
18937         cannot handle long strings in diagnostics.
18938         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
18940 2015-11-03  Pádraig Brady  <P@draigBrady.com>
18942         quotearg: add quotearg_n_style_colon()
18943         This quotes with default options of the specified style,
18944         but with quoting enabled for instances of ':'.
18945         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
18946         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
18948 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
18950         intprops: revise _WRAPV macros, revert _OVERFLOW
18951         The incompatible changes to the _OVERFLOW macros were too much of
18952         a hassle in practice, so revert them.  Instead, change the new
18953         _WRAPV macros to make them closer in behavior to GCC 5's new
18954         builtin_add_overflow etc. functions.  No other software was using
18955         these newly-added macros yet, so this should be OK.
18956         * NEWS: Revert previous change, since the incompatible change
18957         has been reverted, and nobody used the incompatible version.
18958         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
18959         Document revised behavior.
18960         (Integer Range Overflow): Adjust example to match above revisions.
18961         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
18962         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
18963         these can be used in integer constant expressions again.
18964         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
18965         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
18966         needed.
18967         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
18968         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
18969         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
18970         Remove, as they did not seem that useful.
18971         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
18972         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
18973         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
18974         Support new semantics.
18975         (__has_builtin): New macro, if not alreay defined.
18976         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
18977         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
18978         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
18979         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
18980         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
18981         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
18982         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
18983         New macros.
18984         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
18986 2015-11-03  Jim Meyering  <meyering@fb.com>
18988         intprops: add parentheses for when OP has precedence lower than "-"
18989         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
18990         "a OP b" must be parenthesized for when OP is like "<<", which has
18991         lower precedence than the following "-". Reported by Pádraig Brady.
18993 2015-11-03  Pádraig Brady  <P@draigBrady.com>
18995         quotearg: constify get_quoting_style parameters
18996         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
18997         * lib/quotearg.c (get_quoting_style): Likewise.
18999 2015-11-02  Pádraig Brady  <P@draigBrady.com>
19001         quotearg: add support for $'' shell escaping
19002         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
19003         items and descriptions.
19004         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
19005         above types by quoting like "shell", but using $'...' syntax
19006         for non printable characters, which should provide unambiguous
19007         printable output for any input.
19008         * tests/test-quotearg-simple.c: Update accordingly.
19010 2015-11-02  Pádraig Brady  <P@draigBrady.com>
19012         maint: use a more standard return from mbrtowc test
19013         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
19014         from the test program as this is non standard and often
19015         indicates an unhandled case in the test program.
19016         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
19018 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
19020         intprops: add WRAPV and const flavors for GCC 5
19021         If available, use GCC 5's builtin functions for efficient integer
19022         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
19023         and safely compute the low-order bits of the correct answer.
19024         A downside of these efficient functions is that they cannot be
19025         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
19026         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
19027         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
19028         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
19029         Document the changes.
19030         (Wraparound Arithmetic): New section.
19031         (Integer Range Overflow):
19032         Put this subsection last, since it's least useful.
19033         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
19034         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
19035         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
19036         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
19037         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
19038         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
19039         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
19040         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
19041         New macros.
19042         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19043         Generate calls to GCC builtins if available, for speed.
19044         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
19045         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
19046         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
19047         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
19048         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
19049         (CHECK_QUOTIENT, CHECK_REMAINDER):
19050         Test WRAPV and CONST flavors (when available) too.
19052 2015-10-30  Pádraig Brady  <P@draigBrady.com>
19054         doc: use extended timezone format in iso-8601 example
19055         * doc/parse-datetime.texi: The standard states that extended format
19056         is to be used consistently throughout.
19057         Note that lib/parse-datetime.y can handle either tz format.
19059 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
19061         stdalign: port to Sun C 5.9
19062         * doc/posix-headers/stdalign.texi: Document this.
19063         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
19064         __attribute__ ((__aligned__ (...))).
19066 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
19068         time_rz: fix comment about tzalloc
19069         * lib/time_rz.c (tzalloc): Fix comment.
19071 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
19073         stdalign: work around pre-4.9 GCC x86 bug
19074         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
19075         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
19076         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
19078 2015-10-18  Pádraig Brady  <P@draigBrady.com>
19080         maint.mk: sc_tight_scope: remove extraneous expressions
19081         * top/maint.mk (tight_scope): This is not really required since
19082         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
19083         that matches all nm entries.  But it does remove extraneous entries
19084         that may be confusing or cause issue in future maintenance.
19086 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
19088         time_rz: return NULL if localtime_r fails
19089         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
19090         while still attempting to pacify bleeding-edge GCC.
19092         fts: port to C11 alignof
19093         * doc/posix-headers/stdalign.texi (stdalign.h):
19094         Document the C11 restriction.
19095         * lib/fts.c: Include stddef.h, for max_align_t.
19096         (fts_alloc): Align using max_align_t, not FTSENT.
19097         * modules/fts (Depends-on): Add stddef.
19099 2015-10-18  Jim Meyering  <meyering@fb.com>
19101         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
19102         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
19103         would see this:
19105         lib/time_rz.c: In function 'localtime_rz':
19106         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
19107           [-Werror=nonnull]
19108                    if (tm && !save_abbr (tz, tm))
19109                        ^
19111         That was complaining about "tm" because it is a parameter that was
19112         declared with the __nonnull__ attribute.
19113         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
19114         result of localtime_r.
19116 2015-10-17  Jim Meyering  <meyering@fb.com>
19118         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
19119         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
19120         name-extraction regexp mistakenly used \S+, and would mistakenly
19121         extract "*F" from "extern int *F()" rather than the desired "F".
19122         Use \w+ instead.
19124 2015-10-17  Jim Meyering  <meyering@fb.com>
19126         maint.mk: sc_tight_scope: factor and support OS X
19127         * top/maint.mk (_gl_tight_scope): Address three issues:
19128         - factor out four instances of code that wraps a string in "^...$"
19129         - allow nm-reported symbol names to have an optional leading "_"
19130         - add "main" to the list of ignored variable names, because on os x,
19131         "main" has nm-reported type "S" in the variable-checking section.
19133 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
19135         safe-alloc-tests: fix typo in license header
19136         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
19138 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
19140         copy-file: fix mem leak in error case
19141         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
19142         upon error opening or performing I/O to the src and dest files.
19144 2015-10-15  Mike Frysinger  <vapier@chromium.org>
19146         localename: control langinfo.h inclusion
19147         This header is only used to work around buggy behavior in old
19148         versions of glibc, so do not include it all the time.  Otherwise
19149         we get build failures on systems that do not provide langinfo.h.
19150         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
19151         in the source later on.
19152         The patch was originally submitted to gettext as:
19153         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
19155 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19157         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
19158         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
19159         * lib/u64.c, lib/unistd.c:
19160         Append 'typedef int dummy;', to pacify compilers that are picky
19161         about empty translation units.
19163 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
19165         accept4-tests: fix to avoid non portable flags
19166         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
19167         as they are the only documented ones, and passing others may trigger
19168         EINVAL (seen on FreeBSD 10.1-RELEASE).
19169         * doc/glibc-functions/accept4.texi: Mention that we don't provide
19170         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
19172 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
19174         gnulib-tool: fix tests of 'extensions' module
19175         This complements f8fe25fab60e3c687a124 commit.
19176         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
19177         emitting of initial gl_EARLY macros.
19178         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
19179         replaced with func_emit_pre_early_macros call.
19181 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
19183         unicase/locale-language: fix typo in utf-8 cookie
19184         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
19185         Problem reported by Zbigniew Jędrzejewski-Szmek.
19187 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
19189         xalloc: do not worry about GCC 5 warning on 32 bit
19190         * lib/xalloc.h: Revert previous change.
19191         I found a better way to fix this in coreutils.
19193 2015-10-02  Pádraig Brady  <P@draigBrady.com>
19195         xalloc: avoid GCC 5.1 warning on 32 bit
19196         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
19197         xalloc_oversized(), which was seen to give this warning
19198         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
19199         when simplifying conditional".
19201 2015-10-02  Daiki Ueno  <ueno@gnu.org>
19203         uniname/uniname-tests: avoid compiler warnings
19204         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
19205         unused local variables.
19206         (test_alias_lookup): Fix alias name display in failure cases.
19208 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
19210         c-ctype: do not worry about EBCDIC + char signed
19211         Drop support for EBCDIC with char being signed, as this breaks too
19212         many programs.  Problem reported by Ben Pfaff in:
19213         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
19214         * lib/c-ctype.h: Verify that we are not using EBCDIC with
19215         char being signed.
19216         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
19217         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
19218         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
19219         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
19220         * tests/test-c-ctype.c (test_all):
19221         Simplify by assuming standard char values cannot be negative.
19222         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
19224 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
19226         c-ctype: port better to z/OS EBCDIC
19227         Problems reported by Daniel Richard G. in:
19228         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
19229         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
19230         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
19231         (_C_CTYPE_OTHER_CNTRL): New macro.
19232         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
19233         from SCHAR_MIN, as the functions are defined only from values
19234         promoted from char or from unsigned char, not necessarily from
19235         signed char.
19237 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
19239         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
19241         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
19242         and ARFLAGS variables.  Doing this unconditionally could break
19243         later Automake's AM_PROG_AR invocation (at least it's
19244         AC_CHECK_TOOLS call to detect correct 'ar' binary).
19246         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
19247         Amsterdam Compiler Kit, so make the previous code to have effects
19248         only on ACK, and rather automatically call the Automake's
19249         AM_PROG_AR as soon as possible to decide other cases.
19251         References:
19252         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
19254         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
19255         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
19256         is possible, keep setting AR/ARFLAGS to reasonable defaults.
19257         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
19258         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
19259         'extensions' module is used.
19260         * modules/extensions (configure.ac-early): Remove as this snippet
19261         is added to gnulib-comp.m4 earlier anyway.
19263 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
19265         sockets: MS Windows initalization fixes
19266         Problem reported by Test User in:
19267         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
19268         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
19269         Correct the endianness.
19270         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
19271         number mismatch, not just on <.  Cleanup before any such failure.
19273 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
19275         gc: fix detection of installed libgcrypt version
19276         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
19277         at least as recent as 1.4.4.  The previously used macro is not
19278         available now, since modules were removed in version 1.6.0.
19280 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
19282         c-ctype: rewrite to use inline functions
19283         This simplifies maintenance, since it makes for just one
19284         implementation of each function, letting the compiler have the fun
19285         of optimization.  In practice this works well nowadays with GCC.
19286         E.g., c_isascii might need only three instructions even though the
19287         source code lists every ASCII character individually in a large
19288         switch statement.
19289         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
19290         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
19291         * NEWS: Document the API change.
19292         * lib/c-ctype.c: Drastically simplify, since this now just expands
19293         inline functions.
19294         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19295         (C_CTYPE_INLINE): New macro.
19296         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
19297         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
19298         Verify that either ASCII or EBCDIC is being used.
19299         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
19300         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
19301         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
19302         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
19303         New private macros.
19304         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
19305         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
19306         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
19307         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
19308         (c_tolower, c_toupper): When converting, return the unsigned char,
19309         as that is what z/OS does.
19310         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
19311         of some c-ctype.h macros.
19312         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
19313         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
19314         c_tolower promotion to be compatible with z/OS.
19316 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
19318         gitlog-to-changelog: trim only trailing whitespaces
19319         This is fix for --format regression introduced by commit
19320         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
19321         doubled %n string) had no effect anymore.  This format
19322         specification has been used e.g. by GNU paxuitils (commit
19323         edfd8bcc3).
19325         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
19326         newlines in commmit messages.
19328 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
19330         Test that c_iscntrl agrees with iscntrl, etc.
19331         Suggested by Daniel Richard G. in:
19332         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
19333         * modules/c-ctype-tests (Depends-on): Add ctype.
19334         * tests/test-c-ctype.c: Include <ctype.h>.
19335         (NCHARS): New constant.
19336         (test_agree_with_C_locale): New function.
19337         (main): Use it.
19338         (test_all): Use named constants.
19340         c-ctype: improve c_isascii testing
19341         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
19342         Add a test to count the number of ASCII characters.
19344 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19346         savewd: remove SAVEWD_CHDIR_READABLE
19347         It was problematic in the light of file systems that ignore umask.
19348         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
19349         * NEWS: Document this.
19350         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
19351         successful, -1 (setting errno) on failure, rather than something
19352         more complicated than that.
19353         * lib/mkdir-p.c (make_dir_parents):
19354         Do not use SAVEWD_CHDIR_READABLE.
19355         * lib/savewd.c (savewd_chdir):
19356         Remove support for SAVEWD_CHDIR_READABLE.
19357         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
19359         c-ctype: port better to EBCDIC
19360         Problems reported by Daniel Richard G. in
19361         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
19362         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
19363         Include "verify.h".
19364         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
19365         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
19366         Define as enum constants with value false, if not defined, so that
19367         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
19368         code more portable, as both branches of the 'if' are compiled on
19369         all platforms.
19370         (C_CTYPE_EBCDIC): New constant.
19371         Verify that the character set is either ASCII or EBCDIC.
19372         (to_char): New static function.
19373         (c_isascii, c_iscntrl):
19374         Assume standard control-character assignments for EBCDIC.
19375         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
19376         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
19377         Rewrite to use 'if' instead of 'ifdef'.
19378         Use to_char if non-ASCII.  Prefer <= to >=.
19379         Prefer true and false to 1 and 0, for booleans.
19380         (c_iscntrl): Use 'if', not 'ifdef'.
19381         * modules/c-ctype (Depends-on): Add verify.
19382         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
19383         (to_char): New function.
19384         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
19386 2015-09-21  Pádraig Brady  <P@draigBrady.com>
19388         nanosleep: fix return code for interrupted replacement
19389         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
19390         that we return -1 in the case the call is interrupted by a signal,
19391         rather than the current value of 1.
19392         Diagnosed and tested by Daniel Richard G.
19394 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
19396         Diagnose ERE '()|\1'
19397         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
19398         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
19399         track of the set of previously-completed subexpressions available
19400         before the first alternative, and restore this set just before
19401         parsing each subsequent alternative.  This lets us diagnose the
19402         invalid back-reference in the ERE '()|\1'.
19404         regex: merge patches from libc
19406         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
19407         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
19408         * lib/regex_internal.h:
19409         Include <libc-lock.h> instead of <bits/libc-lock.h>.
19411         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
19412         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
19413         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
19414         wcscoll.
19415         * lib/regexec.c (check_node_accept_bytes): Likewise.
19417         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
19418         Fix regex wcrtomb namespace (bug 18496).
19419         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
19420         instead of wcrtomb.
19422         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
19423         Fix regex wctype namespace (bug 18495).
19424         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
19425         instead of towlower.
19426         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
19427         instead of iswlower.  Call __towupper instead of towupper.
19428         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
19429         instead of iswalnum.
19431         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
19432         * lib/regcomp.c (parse_bracket_exp): Initialize type to
19433         COLL_SYM in a couple of places to avoid uninitialized variable
19434         wanings on tilegx gcc 4.8.2.
19436         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19437         * lib/regex_internal.h: Remove NOT_IN_libc.
19439         2014-11-17  Andreas Schwab  <schwab@suse.de>
19440         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
19442         2014-09-11  Roland McGrath  <roland@hack.frob.com>
19443         Move findidx nested functions to top-level.
19444         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
19445         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
19446         Pass new arguments to findidx.
19447         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
19448         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
19449         Don't #include it inside the function.  Pass new arguments to findidx.
19450         * lib/regex_internal.h:
19451         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
19452         (re_string_elem_size_at): Don't #include it inside the function.
19453         Pass new arguments to findidx.
19455         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
19456         Check if DEBUG is defined in regex_internal.c
19457         * lib/regex_internal.c: Check if DEBUG is defined and is set.
19459 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
19461         ceill: detect buggy OpenBSD implementation
19462         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
19463         which returns zero for small values.  Discussed here:
19464         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
19466 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
19468         mountlist: add me_mntroot field on Linux machines
19469         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
19470         mount_entry so Linux machines based on /proc/self/mountinfo can
19471         distinguish between bind mounts and original mounts.  In reality bind
19472         mounts aren't treated differently than mountroot=/ mounts by the
19473         kernel, but the user often wants these bind mounts distinguished.
19474         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
19475         More details at https://pad.lv/1432871
19477 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
19479         doc: Describe to use multiple instances of gnulib
19480         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
19481         instances of gnulib with different modules can be used, for example one
19482         for a lib and another one for associated tools.
19484 2015-09-01  Pádraig Brady  <P@draigBrady.com>
19486         base32: mark function as __attribute__ const
19487         * lib/base32.h (isbase32): Mark __attribute__ const as
19488         suggested by GCC, and consistent with the base64 module.
19490 2015-08-20  Daiki Ueno  <ueno@gnu.org>
19492         gnulib-tool: don't transform binary files with sed
19493         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
19494         .mo and .class files.
19495         Reported by Denis Denisov.
19497 2015-08-10  Daiki Ueno  <ueno@gnu.org>
19499         gperf: respect silent rules
19500         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
19501         V_GPERF_0 for silent rules.
19502         * modules/iconv_open (Makefile.am): Use V_GPERF.
19503         * modules/unicase/locale-language (Makefile.am): Likewise.
19504         * modules/unicase/special-casing (Makefile.am): Likewise.
19505         * modules/unictype/category-byname (Makefile.am): Likewise.
19506         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
19507         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
19508         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
19509         * modules/unictype/property-byname (Makefile.am): Likewise.
19510         * modules/unictype/scripts (Makefile.am): Likewise.
19511         * modules/uninorm/composition (Makefile.am): Likewise.
19513 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
19515         Improve port of stdalign to C++11
19516         Problem reported by Sundaram in:
19517         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
19518         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
19519         (__alignas_is_defined): Define if C++11 or newer.
19521 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
19523         pmccabe2html: fix gawk regex escaping
19524         * build-aux/pmccabe2html: Add one more backslash to properly
19525         escape the gsub replacement value.  Fixes this error:
19526         gawk: ./build-aux/pmccabe2html:425: \
19527         warning: escape sequence `\&' treated as plain `&'
19529 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
19531         time_rz: port to pedantic memcpy
19532         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
19533         that reject memcpy (..., NULL, 0).
19535 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
19537         time_rz: port better to MinGW
19538         Don't change tzname, as this makes MinGW dump core (Bug#21020).
19539         Instead, store the tzname copy in the struct tm_zone object.
19540         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
19541         * lib/strftime.c [!_LIBC]:
19542         * lib/time_rz.c: Include time-internal.h.
19543         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
19544         name from *TZ rather than from TZNAME, doable because *TZ now has
19545         a tzname_copy member.
19546         * lib/time-internal.h: New file, with contents taken from
19547         lib/time_rz.c.  It's separate because strftime.c now accesses
19548         struct tm_zone members.
19549         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
19550         New member tzname_copy.
19551         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
19552         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
19553         Initialize tzname_copy member.
19554         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
19555         in tzname_copy member.
19556         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
19557         (restore_tzname): Remove; no longer needed.  All calls removed.
19558         * modules/time_rz (Files): Add lib/time-internal.h.
19560         time: port __need_time_t to MinGW
19561         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
19562         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
19564 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
19566         strftime: fix newly-introduced bug on Solaris
19567         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
19568         consistently at the start, rather than doing some of the setup at
19569         the start and some in the %Z format spec.  This is cleaner, and
19570         works better with time_rz on platforms like Solaris where struct
19571         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
19572         mktime_z and localtime_rz can mess up the tzname cache.
19574         test-strftime: test for Solaris bug
19575         * modules/strftime-tests (Depends-on): Add strerror.
19576         * tests/test-strftime.c: Include <errno.h>.
19577         (posixtm_test): New function, containing the old 'main'.
19578         (struct tzalloc_test, struct localtime_rz_test): New types.
19579         (TZ, LT): New static vars.
19580         (tzalloc_test): New function.
19581         (main): Rewrite in terms of posixtm_test and tzalloc_test.
19583         time_rz: port to Solaris etc.
19584         Works around a tzname problem on platforms like Solaris that have
19585         tzname but not tm_zone, by setting tzname at the appropriate time
19586         and restoring it later.
19587         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
19588         New static vars.
19589         (save_abbr) [HAVE_TZNAME]: Set them.
19590         (revert_tz) [HAVE_TZNAME]: Clear or use them.
19591         (restore_tzname): New function.
19592         (localtime_rz, mktime_z): Use it.
19594         time_rz: now LGPL
19595         * modules/time_rz (License): Now LGPL, because strftime depends on it.
19597         time_rz: make a constant 'const'
19598         * lib/time_rz.c (local_tz): Now const.
19600         time_rz: fix off-by-one typo
19601         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
19603 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
19605         fprintftime, strftime: use timezone_t args
19606         * NEWS: Document the change.
19607         * lib/fprintftime.h (fprintftime):
19608         * lib/strftime.c (extra_args) [my_strftime]:
19609         * lib/strftime.h (nstrftime):
19610         Time zone arg is now of type timezone_t, not int.
19611         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
19612         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
19613         (my_strftime) [emacs && !my_strftime]:
19614         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
19615         Remove; Emacs doesn't need this any more.
19616         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
19617         fprintftime and nstrftime to call tzset.
19618         (ut) [!my_strftime]: Remove, replacing with ...
19619         (tz) [!my_stftime]: ... this new macro.  All uses changed.
19620         (strftime_case_): Use localtime_rz and mktime_z instead
19621         of localtime_r and mktime.
19622         * modules/fprintftime (Depends-on): Add time_rz.
19623         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
19624         * tests/test-strftime.c (main): Adjust to new nstrftime API.
19626         time_rz: new module
19627         * MODULES.html.sh: Add time_rz.
19628         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
19629         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
19630         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
19631         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
19632         New var HAVE_TIMEZONE_T (default 0).
19633         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
19634         New var GNULIB_TIME_RZ (default 0).
19635         * modules/time (time.h): Substitute the new vars.
19637         flexmember: license is now unlimited
19638         * modules/flexmember (License): Change to unlimited,
19639         since its only source file gives an unlimited license.
19641 2015-07-15  Eric Blake  <eblake@redhat.com>
19643         maint: update copyright paper procedures
19644         * config/srclist.txt: Drop outdated files.
19645         * doc/Copyright/conditions.txt: Update to latest.
19646         * doc/Copyright/assign.changes.manual: Delete.
19647         * doc/Copyright/assign.future.manual: Likewise.
19648         * doc/Copyright/assign.manual: Likewise.
19649         * doc/Copyright/assign.translation.manual: Likewise.
19650         * doc/Copyright/disclaim.changes.manual: Likewise.
19651         * doc/Copyright/disclaim.manual: Likewise.
19652         * doc/Copyright/disclaim.program: Likewise.
19654 2015-07-07  Daiki Ueno  <ueno@gnu.org>
19656         localename: fix link error on Illumos
19657         Illumos defines __sun, but does not have getlocalename_l nor the
19658         equivalent.  This partially reverts commit 387c214.
19659         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
19660         available, as well as uselocale.
19661         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
19662         use getlocalename_l if it is not available.
19664 2015-07-07  Daiki Ueno  <ueno@gnu.org>
19666         unistr/uN-strtok-tests: avoid a trivial leak
19667         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
19668         input and delim after the multibyte delimiter tests.
19670 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
19672         file-has-acl, acl-permissions: fix HP-UX typos
19673         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
19674         * lib/file-has-acl.c (file_has_acl):
19675         * lib/set-permissions.c (context_acl_from_mode)
19676         (context_aclv_from_mode, set_acls):
19677         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
19678         They were introduced by the recent ACL changes.
19680         regex: match current GNU grep behavior
19681         These symbols have not matched GNU grep behavior for quite some time.
19682         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
19683         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
19684         Change to match current GNU behavior.
19685         Simplify by expressing it as differences from POSIX BREs and EREs.
19686         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
19688 2015-07-03  Jim Meyering  <meyering@fb.com>
19690         set-permissions.c: adjust acl_from_mode's cpp guard
19691         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
19692         directives identical to those guarding the sole use.
19693         Otherwise, on some systems, we'd get a warning about
19694         the function being defined but not used.
19695         Also, filter through cppi to correct misleading indentation
19696         of cpp directives.
19698 2015-07-03  Pádraig Brady  <P@draigBrady.com>
19700         tests: restrict shells to those that support 'local'
19701         The local keyword is very widely supported and used
19702         in tests in coreutils and grep at least.  Therefore
19703         restrict to testing with shells that support it.
19704         This mainly excludes /bin/sh on Solaris.
19705         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
19707 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
19708         and Daiki Ueno  <ueno@gnu.org>
19710         unistr/uN-strtok: handle multibyte delimiters
19711         Previously, uN_strtok moved PTR to the next unit to the token end.
19712         When DELIM contained a multibyte character, the new position could
19713         be a middle of a multibyte character.
19714         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
19715         after the token.
19716         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
19717         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
19718         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
19719         * modules/unistr/u8-strtok (Depends-on): Depend on
19720         unistr/u8-strmblen.
19721         * modules/unistr/u16-strtok (Depends-on): Depend on
19722         unistr/u16-strmblen.
19723         * modules/unistr/u32-strtok (Depends-on): Depend on
19724         unistr/u32-strmblen.
19725         * tests/unistr/test-u-strtok.h: New file.
19726         * tests/unistr/test-u8-strtok.c: New file.
19727         * tests/unistr/test-u16-strtok.c: New file.
19728         * tests/unistr/test-u32-strtok.c: New file.
19729         * modules/unistr/u8-strtok-tests: New file.
19730         * modules/unistr/u32-strtok-tests: New file.
19731         * modules/unistr/u16-strtok-tests: New file.
19733 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
19735         update-copyright: fix test failure with perl >= 5.22 (trivial)
19736         * build-aux/update-copyright: Escape a literal left curly bracket,
19737         required with perl >= 5.22
19739 2015-07-02  Daiki Ueno  <ueno@gnu.org>
19741         u{16,32}-strstr-tests: relax timeout condition
19742         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
19743         tests can take longer than 5 seconds to complete.
19744         Reported by Dagobert Michelsen in:
19745         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
19746         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
19747         seconds to 10 seconds.
19748         * tests/unistr/test-u32-strstr.c (main): Likewise.
19750 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
19752         gnulib-common.m4: change the ARFLAGS default to 'cr'
19753         In some GNU/Linux distributions people started to compile 'ar'
19754         binary with --enable-deterministic-archives (binutils project).
19755         That, however, in combination with previous autotools long time
19756         working default AR{_,}FLAGS=cru causes warnings on such
19757         installations:
19758         ar: `u' modifier ignored since `D' is the default (see `U')
19759         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
19760         set already.
19762 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
19764         selinux-h: avoid double free after *getfilecon()
19765         Originally reported by Ben Shelton on bug-tar:
19766         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
19767         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
19768         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
19769         param should be freed by freecon(3) (regardless the return value).
19771 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
19773         fix pty related tests issues on Windows (trivial)
19774         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
19775         however it's still present in tests/ subdirectory of the final project.
19776         Therefore avoid it to pass `make check`.
19777         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
19778         will just return -ENOSYS, so avoid this non applicable test allowing
19779         the build to proceed.
19781 2015-07-01  Pádraig Brady  <P@draigBrady.com>
19783         acl: fix definition of acl_from_mode on FreeBSD
19784         This was causing basic coreutils copy operations to fail
19785         with ENOTSUP or ENOENT error messages.
19786         * lib/acl-internal.h (acl_from_mode): Only define when
19787         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
19788         of acl_from_mode() defined in lib/set-permissions.c to
19789         be used on FreeBSD at least.
19790         * lib/set-permissions.c: Fix up comment spelling,
19791         and a redundant variable assignment; noticed in passing.
19793 2015-06-30  Pádraig Brady  <P@draigBrady.com>
19795         readutmp: port to FreeBSD >= 9
19796         * lib/readutmp.h: Map utmpxname() to setutxdb().
19797         With that coreutils who(1) and pinky(1) tests pass.
19799 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
19801         mgetgroups: port to strict OS X
19802         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
19803         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
19804         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
19805         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
19807 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
19809         mgetgroups: port to strict OS X
19810         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
19811         Document the getgrouplist problem.
19812         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
19813         New macro.
19814         (mgetgroups): Use it.
19815         * m4/mgetgroups.m4 (gl_MGETGROUPS):
19816         Check for OS X signature for getgrouplist.
19818 2015-06-29  Jim Meyering  <meyering@fb.com>
19820         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
19821         It started like this when building coreutils' latest on OS X,
19822         invoking ./configure with a nonempty --cache=.cache:
19824           lib/linkat.c:46:42: error: operator '||' has no right operand
19825           lib/linkat.c: In function 'rpl_linkat':
19826           lib/linkat.c:330:27: error: #if with no expression
19828         Here's linkat.c's line 46:
19830           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
19832         Here's some context:
19834           $ grep linkat_nofoll .cache
19835           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
19836           $ grep LINKAT_SYM lib/config.h
19837           #define LINKAT_SYMLINK_NOTSUP
19839         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
19840         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
19841         but that violates a tenet of AC_CACHE_CHECK: it must
19842         have no side effect other than setting its cache variable.
19844         What happens is that when the cache is set, we'd skip the
19845         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
19846         defined to whatever value it happened to have in configure's
19847         environment.  In my case, it was not defined, so this later code:
19849           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
19850             [Define to 1 if linkat can create hardlinks to symlinks])
19852         would emit code with an empty RHS.
19854         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
19855         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
19857 2015-06-28  Jim Meyering  <meyering@fb.com>
19859         mountlist: avoid an unused-label warning on OS X
19860         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
19861         Building on OS X, I saw a warning about the "free_then_fail" label
19862         being unused.  Give it the _GL_UNUSED_LABEL attribute.
19864         error.c: correct printf-style format: %d -> %u
19865         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
19866         rather than %d, to match the type of "line_number", unsigned int.
19868 2015-06-25  Pádraig Brady  <P@draigBrady.com>
19870         fts: avoid reading beyond the heap allocation
19871         GCC 5.1.1 with -O2 and -fsanitize=address reports
19872         a read of size 4 from a heap object of size 3 is indeed invalid,
19873         though this may be due to incorrect padding assumptions by GCC, see:
19874         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
19875         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
19876         * modules/fts: Depend on stdalign.
19878 2015-06-24  Pádraig Brady  <P@draigBrady.com>
19880         savedir: avoid undefined behavior in qsort call
19881         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
19882         "runtime error: null pointer passed as argument 1,
19883          which is declared to never be null"
19884         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
19886 2015-06-24  Pádraig Brady  <P@draigBrady.com>
19888         userspec: avoid undefined behavior in gettext call
19889         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
19890         "runtime error: null pointer passed as argument 2,
19891          which is declared to never be null"
19892         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
19894 2015-06-20  Glenn Morris  <rgm@gnu.org>
19896         gitlog-to-changelog: improve gitmerge.el commits
19897         Let the Emacs ChangeLog generation process exclude "skipped"
19898         messages from merge commits (Bug#20717).
19899         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
19901 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19903         wchar: fix MinGW compilation warnings
19904         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
19905         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
19906         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
19908 2015-06-20  Daiki Ueno  <ueno@gnu.org>
19910         uniname/uniname-tests: use pristine data files
19911         For copyright and maintenance reasons, use the data files from UCD
19912         without modification.
19913         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
19914         (getfield): Remove.
19915         (aliases_count): New global variable.
19916         (fill_names): Skip comments and empty lines in the input.  Don't
19917         use getfield.
19918         (fill_aliases): Likewise.
19919         (main): Change the expected command line arguments to:
19920         NAMES... ["--" ALIASES...].
19921         * tests/uniname/test-uninames.sh: Adjust to the change in
19922         test-uninames.c.
19923         * tests/uniname/UnicodeDataNames.txt: Remove.
19924         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
19925         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
19926         file from Unicode 8.0.0.
19928 2015-06-19  Pádraig Brady  <P@draigBrady.com>
19930         linked-list, linkedhash-list: avoid compiler warnings
19931         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
19932         -Werror=suggest-attribute=pure (from GCC 5.1.1).
19934 2015-06-19  Daiki Ueno  <ueno@gnu.org>
19936         libunistring: bump minimum version to 0.9.6
19937         * all modules depending on updated Unicode data: Regenerate.
19938         The modules are listed by a script that does:
19939         - for each file listed by: git show --oneline --name-only 705f4efc
19940           - deduce the containing modules, based on "Files:"
19941         - deduce the modules which depend on the containing modules, based
19942           on "Depends-on:"
19944 2015-06-18  Daiki Ueno  <ueno@gnu.org>
19946         uniname/uniname: update to Unicode 8.0.0
19947         * lib/uniname/uninames.h: Regenerate.
19948         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
19949         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
19951 2015-06-18  Daiki Ueno  <ueno@gnu.org>
19953         libunistring: update to Unicode 8.0.0
19954         * lib/gen-uni-tables.c (SIZEOF): New macro.
19955         (output_numeric): Increase the maximum number of fractions from
19956         128 to 160.  Increase the level3 value width from 7 bits to 8
19957         bits.  Use SIZEOF instead of a hard-coded integer.
19958         (output_blocks): Decrease the cut-off threshold from 0x30000 to
19959         0x28000.
19960         (fill_blocks): Increase the maximum number of blocks from 256 to
19961         384.  Use SIZEOF instead of a hard-coded integer.
19962         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
19963         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
19964         value width.
19965         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
19966         a new case added to LBP22.
19967         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
19968         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
19969         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
19970         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
19971         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
19972         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19973         lib/uniwidth/width.c.
19974         * all generated files under lib/uni* and tests/uni*: Regenerate.
19976 2015-06-16  Pádraig Brady  <P@draigBrady.com>
19978         gnu-web-doc-update: add --mirror to remove stale files
19979         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
19980         out of date files from the CVS server.  Since this is usually
19981         appropriate, a prompt is given when the option is not specified,
19982         along with the `cvs remove` command that would be run.
19984 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
19986         acl-permissions: pacify -Wsuggest-attribute=const
19987         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
19988         * lib/acl-internal.h (free_permission_context):
19989         Declare with attribute const if ! (defined USE_ACL &&
19990         (HAVE_ACL_GET_FILE || defined GETACL)).
19992         fsync: document AIX misbehavior
19993         * doc/posix-functions/fsync.texi (fsync):
19994         Document failure on AIX with read-only file descriptor.
19996 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
19998         stdio: Don't redefine gets when using C++
19999         * lib/stdio.in.h (gets): Disable warning on C++.
20001 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
20003         acl-permissions: port to AIX, C89 HP-UX
20004         Problems reported by Michael Felt.
20005         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
20006         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
20007         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
20008         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
20009         Add cast for AIX, whose system calls are declared to accept
20010         char * even though the arguments are really char const *.
20011         * lib/get-permissions.c (get_permissions):
20012         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
20013         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
20014         that broke a build.
20015         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
20016         Rework types to pacify xlc.
20018 2015-06-03  Pádraig Brady  <P@draigBrady.com>
20020         vasprintf-posix: avoid compiling vasnprintf where possible
20021         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
20022         module where not required.  For example on a GNU/Linux system
20023         when gnulib-tool is run with the --conditional-dependencies option.
20025 2015-06-02  Pádraig Brady  <P@draigBrady.com>
20027         file-has-acl: fix build on Mac OS X 10
20028         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
20029         which has an incompatible 6 parameter getxattr() call.
20030         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
20031         call on Mac OS X >= 10.4.
20032         * doc/glibc-functions/fgetxattr.texi: Likewise.
20033         * lib/file-has-acl.c: Revert to more complete combined check.
20034         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
20035         Reported by Jack Howarth.
20037 2015-06-02  Pádraig Brady  <P@draigBrady.com>
20039         prefix-gnulib-mk: remove no longer needed special case
20040         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
20041         continued lib_SOURCES lines are no longer present,
20042         so special case handling of such entries is not required.
20044 2015-06-01  Pádraig Brady  <P@draigBrady.com>
20046         acl: don't depend on the deprecated qacl module
20047         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
20049 2015-06-01  Pádraig Brady  <P@draigBrady.com>
20051         gnulib-tool: concatenate lib_SOURCES to a single line
20052         * gnulib-tool: Refactor the line merging sed logic,
20053         and use that to output a single lib_SOURCES line for each module.
20054         gnulib using projects often postprocess this output to prepend
20055         subdir paths to each item, and having a single line simplifies this
20056         processing allowing better decoupling from the gnulib-tool output.
20058 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
20060         pthread_sigmask: discount system version if a simple macro (trivial)
20061         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
20062         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
20063         function to ensure it's available.
20065 2015-05-31  Pádraig Brady  <P@draigBrady.com>
20067         readlinkat: avoid OS X 10.10 trailing slash bug
20068         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
20069         has this bug.
20070         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
20071         that OS X 10.10 has this function.
20072         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
20073         as done for readlink().
20074         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
20075         trailing slash bug, and assume readlinkat() has the same issue.
20076         Also fix a typo where $gl_cv_decl_readlink_works was tested,
20077         rather than the correct $gl_cv_decl_readlinkat_works.
20079 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
20081         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
20082         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
20083         module rewrite.
20085         acl-permissions: Fix build on Solaris and Cygwin
20086         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
20087         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
20088         ace_entries variables have moved into struct permission_context but
20089         they were still accessed as local variables here.
20091 2015-05-29  Pádraig Brady  <P@draigBrady.com>
20093         linkat: avoid OS X 10.10 trailing slash with symlink bug
20094         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
20095         causes the symlink to be dereferenced, and if it points
20096         to a non existent file, that file will be created as
20097         a hard link to "path1".
20098         This fixes a test failure in test-linkat.c.
20099         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
20100         this case.  The existing workaround in linkat.c for
20101         trailing slash issues, suffices for this case.
20102         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
20103         the list of platforms with trailing slash issues.
20105 2015-05-28  Pádraig Brady  <P@draigBrady.com>
20107         unlinkat: handle ignoring of ".." on Darwin 14
20108         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
20109         on Mac OS X 10.10, where it ignores paths with a trailing "..",
20110         so handle in the same manner.
20111         * m4/unlinkat.m4: Comment on this Darwin issue.
20112         * doc/posix-functions/unlink.texi: Update the latest version
20113         where the issue was seen.
20114         * doc/posix-functions/unlinkat.texi: Mention this issue.
20115         Fixes a test failure in test-unlinkat.c.
20117 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20119         qacl: split into qcopy-acl and qset-acl
20120         Emacs needs the former, but not the latter.
20121         * modules/acl-permissions: New file, containing most of the old qacl.
20122         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
20123         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
20124         * modules/qcopy-acl, modules/qset-acl: New files.
20125         * MODULES.html.sh (File system functions):
20126         Mention the new modules, and mention qacl while we're at it.
20128 2015-05-27  Glenn Morris  <rgm@gnu.org>
20130         gitlog-to-changelog: new option --ignore-line
20131         (This patch is imported from the GNU Emacs master.)
20132         This option ignores individual commit lines matching a pattern.
20133         * build-aux/gitlog-to-changelog: Add --ignore-line option.
20135 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
20137         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
20138         Implement get_permissions and set_permissions primitives for getting all
20139         the permissions of a file, storing them, and later setting them. (In the
20140         minimal case, the permissions consist only of a file mode.) Reimplement
20141         qset_acl and qcopy_acl based on these new primitives: this avoids code
20142         duplication and makes error handling more consistent.
20143         The Solaris and Cygwin code still uses duplicate code paths for setting
20144         a file mode while making sure that no acls exist and setting an explicit
20145         acl; this is no worse than before, but could be cleaned up.  The AIX
20146         code still doesn't read ACLs, it only makes sure that acls don't get in
20147         the way when setting a file mode.
20148         * lib/acl-internal.h (struct permission_context): New data structure.
20149         (get_permissions, set_permissions, free_permission_context): Declare.
20150         * lib/acl-internal.c (free_permission_context): New helper function.
20151         * lib/get-permissions.c (get_permissions): New helper function split off
20152         from qcopy_acl.
20153         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
20154         AIX, set a file's permissions based only on a file mode.
20155         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
20156         other platforms construct a temporary acl from the file mode and set
20157         that acl in the same way as setting an acl read from the source file.
20158         This should help avoid code duplication and inconsistent / buggy
20159         behavior.
20160         (set_acls): New helper function Split off from qcopy_acl.
20161         (chmod_or_fchmod): Moved here from qset-acl.c.
20162         (set_permissions): New helper function.
20163         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
20164         set_permissions.
20165         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
20166         * modules/qacl: Add get-permissions.c and set-permissions.c.
20168         file-has-acl: Split feature tests again (Bug#20667)
20169         * lib/file-has-acl.c: Instead of testing for
20170         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
20171         define them when needed.
20172         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
20173         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
20175 2015-05-27  Pádraig Brady  <P@draigBrady.com>
20177         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
20178         This avoids a conflict with "FORTIFY_SOURCE" variants
20179         of the string functions when they're replaced on NetBSD-6.0.1
20180         and Darwin-14.3.0 at least.
20181         * lib/string.in.h: Avoid including our "lib/string.h" while
20182         including the system <string.h>.
20184 2015-05-26  Eric Blake  <eblake@redhat.com>
20186         stdio: limit __gnu_printf__ witness to gcc 4.4+
20187         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
20188         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
20190         error: use correct printf attributes on mingw
20191         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
20193         inttypes: force correct mingw PRIdMAX even without <stdio.h>
20194         * modules/inttypes (Depends-on): Require extensions, so that mingw
20195         always uses GNU style inttypes.
20196         * lib/inttypes.in.h: On mingw, include <stdio.h>.
20198         stdio: fix probe on mingw under gcc 5.1
20199         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
20200         around new gcc preprocessor rules.
20202 2015-05-07  Glenn Morris  <rgm@gnu.org>
20204         gitlog-to-changelog: parse "Tiny-change"
20205         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
20206         "Copyright-paperwork-exempt".  (Bug#20324)
20208 2015-05-06  Pádraig Brady  <P@draigBrady.com>
20210         doc: document glibc posix_fallocate() issues
20211         * doc/posix-functions/posix_fallocate.texi: Mention the
20212         glibc efficiency problems and issues with NFS.
20214 2015-05-05  Karl Berry  <karl@freefriends.org>
20216         * build-aux/gendocs.sh (usage): document new css default
20217         for HTML (--htmlarg).
20219 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
20221         extern-inline: no need for workaround in GCC 5.1
20222         * doc/extern-inline.texi (extern inline):
20223         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
20224         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
20225         around these bugs in GCC 5.1 and later.  Maybe in a decade or
20226         two we can remove these workarounds.
20228 2015-04-28  Pádraig Brady  <P@draigBrady.com>
20230         eealloc, pagealign_alloc, xalloc: avoid clang warnings
20231         Avoid [-Wunknown-attributes] warnings like:
20232         warning: unknown attribute '__alloc_size__' ignored
20233         * lib/xalloc.h: Don't use the __alloc_size__  attribute
20234         with clang, as support has been fully removed as of clang 3.5:
20235         https://github.com/llvm-mirror/clang/commit/c047507a
20236         * lib/eealloc.h: Likewise.
20237         * lib/pagealign_alloc.h: Likewise.
20239 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
20241         tests: pacify GCC 5.1's stricter printf checking
20242         * tests/test-dirname.c (main):
20243         * tests/test-getaddrinfo.c (simple):
20244         * tests/test-getlogin.c (main):
20245         * tests/test-getndelim2.c (main):
20246         * tests/test-inttostr.c (CK):
20247         * tests/test-md5.c (main):
20248         * tests/test-read-file.c (main):
20249         * tests/test-sha1.c (main):
20250         Fix mismatches between printf format and value signedness.
20251         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
20252         Remove, as CAST_VAL always returned a value of type uintmax_t.
20254         fts: port to GCC 5.1 with --enable-gcc-warnings
20255         Without this fix, GCC 5.1 (correctly) warns about a subscript
20256         error on the fts_name component of FTSENT.  It's actually a
20257         flexible member, so define it that way on C99 or later hosts.
20258         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
20259         structure that now has a flexible array member.
20260         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
20261         (FTSENT): fts_name is now flexible on C99-or-later platforms.
20262         * modules/fts (Depends-on): Add flexmember.
20264 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20266         file-has-acl: port to CentOS 6
20267         Problem reported by Tom G. Christensen in:
20268         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
20269         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
20270         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
20271         HAVE_GETXATTR.
20272         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
20273         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
20274         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
20275         file-has-acl.c actually needs.
20277 2015-04-26  Pádraig Brady  <P@draigBrady.com>
20279         file-has-acl: always return false when ACLs aren't supported
20280         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
20281         change the GNU/Linux getxattr path, to transform "not supported"
20282         errors to a false return rather than an error.  This is handled
20283         within file_has_acl() due to the platform specific tests to
20284         determine if ACLs are not supported.
20286 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20288         gettext: propagate po/Makefile.in.in too
20289         * build-aux/po/Makefile.in.in: Copy from latest gettext.
20290         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
20291         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
20292         between Makefile.in.in and the gettext-runtime m4 files.
20294 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20296         file-has-acl: new module, split from acl
20297         And add a new module file-has-acl-tests to match.
20298         I ran into a problem with the recent changes to the acl module,
20299         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
20300         When using the fixed version with Emacs, I discovered that
20301         file-has-acl wasn't separated out well enough for Emacs (e.g., it
20302         had multiple libraries, but needed only one), so I fixed that too.
20303         * NEWS: Document this incompatible change.
20304         * modules/file-has-acl, modules/file-has-acl-tests: New files.
20305         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
20306         Initialize gl_need_lib_has_acl.
20307         (gl_FUNC_ACL): Require it.
20308         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
20309         Move the file-has-acl.c-relevant stuff to ...
20310         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
20311         use_xattrs = 0' typo, and omit some needless work.  Set
20312         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
20313         when gl_FUNC_ACL is called.
20314         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
20315         (Link): Remove $(LIB_HAS_ACL).
20316         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
20317         (check_PROGRAMS): Move stuff relevant to file-has-acl to
20318         modules/file-has-acl-tests.
20319         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
20321         manywarnings: add GCC 5.1 warnings
20322         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
20323         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
20324         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
20325         -Wsuggest-override, -Wuse-without-only.  Change
20326         -Wnormalized=... operands to match 5.1.
20327         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
20328         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
20329         -Wdiscarded-qualifiers, -Wformat-signedness,
20330         -Wincompatible-pointer-types, -Wint-conversion,
20331         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
20332         -Wshift-count-negative, -Wshift-count-overflow,
20333         -Wsizeof-array-argument, -Wsuggest-final-methods,
20334         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
20335         and add -Warray-bounds=2 as a special case.
20337 2015-04-21  Simon Josefsson  <simon@josefsson.org>
20339         doc: update FDL template to match FDL examples.
20340         * doc/alloca-opt.texi:
20341         * doc/alloca.texi:
20342         * doc/c-ctype.texi:
20343         * doc/c-strcase.texi:
20344         * doc/c-strcaseeq.texi:
20345         * doc/c-strcasestr.texi:
20346         * doc/c-strstr.texi:
20347         * doc/c-strtod.texi:
20348         * doc/c-strtold.texi:
20349         * doc/ctime.texi:
20350         * doc/error.texi:
20351         * doc/gcd.texi:
20352         * doc/gnulib-tool.texi:
20353         * doc/inet_ntoa.texi:
20354         * doc/intprops.texi:
20355         * doc/lib-symbol-visibility.texi:
20356         * doc/maintain.texi:
20357         * doc/parse-datetime.texi:
20358         * doc/quote.texi:
20359         * doc/regexprops-generic.texi:
20360         * doc/standards.texi: Remove spurious 'with' in FDL license
20361         template.
20363 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
20365         lstat: fix cross-compilation 'ln -s' problem
20366         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
20367         Have the test program call 'symlink' rather than a separate
20368         script run 'ln -s'; this is more likely to work in
20369         cross-compilation environments.  Reported by Pavel Fedin in:
20370         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
20372 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
20374         gendocs.sh: default to a common CSS style sheet for HTML output
20375         * build-aux/gendocs.sh (htmlarg): Change default value.
20377 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
20379         gnulib-tool: output bold attribute more portably
20380         * gnulib-tool (func_show_module_list): Change hexadecimal
20381         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
20382         encoded numbers as arguments to `printf' is not portable,
20383         and is not claimed by POSIX.  This is the case with FreeBSD.
20385 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
20387         qacl: Simplify HP-UX acl_nontrivial check
20388         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
20389         acl_nontrivial. Check if the acl has at most three entries instead (it must
20390         have exactly three entries according to the HP-UX documentation). Ignore
20391         uids and gids as long as an entry is either for a user (i.e., the owner),
20392         a group (i.e., the owning group), or others.
20393         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
20394         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
20396 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
20398         acl: On Linux, check for acls without libacl
20399         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
20400         library function to check for the presence of acls, avoiding a library.
20401         * lib/file-has-acl.c: Include xattr headers if we have them.
20402         (file_has_acl): On Linux, use getxattr().
20403         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
20404         file_has_acl(). Check for xattr headers and getxattr().
20406 2015-04-14  Ángel González  <keisial@gmail.com>
20408         tempname: avoid unused parameter warnings (trivial)
20409         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
20410         (try_nocreate): Likewise.
20412 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
20414         fseeko: fix build failure on NetBSD >= 6 (trivial)
20415         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
20416         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
20418 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20420         gitlog-to-changelog: port to MS-Windows
20421         * build-aux/gitlog-to-changelog (git_dir_option):
20422         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
20423         MS-Windows Perl.  Reported by Eli Zaretskii in:
20424         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
20426 2015-04-07  Karl Berry  <karl@gnu.org>
20428         gendocs: new option --tex for passing args to texi2dvi.
20429         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
20430         (TEXI2DVI): cut to just command name.
20431         (usage): mention new option, and update copyright.
20432         <generate_tex>: use it.
20434 2015-04-07  Karl Berry  <karl@gnu.org>
20436         * config/srclistvars.sh (GETTEXT): new definition.
20437         * config/srclist.txt: use it for gettext .m4 files.
20438         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
20439         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
20440         and continuing into April.
20442 2015-04-07  Daiki Ueno  <ueno@gnu.org>
20444         uniname/uniname-tests: fix failure due to alias
20445         Reported by Jack Howarth in:
20446         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
20447         * tests/uniname/test-uninames.c (name_has_alias): New function.
20448         (test_inverse_lookup): Exclude character name with valid alias,
20449         from randomly generated character names.
20450         (main): Fill unicode_aliases before calling test functions.
20452 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
20454         hash: remove deprecated hash_insert0 function
20455         * lib/hash.h (hash_insert0): Remove deprecated function.
20456         * lib/hash.c (hash_insert0): Likewise.
20458 2015-04-02  Pádraig Brady  <P@draigBrady.com>
20460         mountlist: remove dependency on libmount
20461         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
20462         directly, rather than depending on libmount, which has many
20463         dependencies due to its dependence on libselinux, as detailed at:
20464         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
20465         Note we restrict this to __linux__ as that's probably where this
20466         interface will remain.  If ever porting, it would be best
20467         to first pull the makedev() wrapper from coreutils to a gnulib module.
20468         Note also we don't add a getline dependency to the mountlist module,
20469         as all Linux versions are sufficient.
20471 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
20473         stddef: port to pre-C11 GCC on x86
20474         On this platform, max_align_t should have an alignment of 8 even
20475         though the storage alignments of double, long, etc. max out at 4.
20476         Inspired by a comment of Andreas Schwab's here:
20477         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
20478         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
20479         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
20480         * tests/test-stddef.c: Test __alignof__ too, if available.
20482 2015-03-24  Pádraig Brady  <P@draigBrady.com>
20484         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
20485         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
20487 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
20489         yesno: make EOL optional in ENABLE_NLS case also (trival)
20490         * lib/yesno.c (yesno): Check for EOL before replacing.
20491         * tests/test-yesno.sh: Add a test case (test along with gettext).
20493 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
20495         fdopendir-tests: test it does not close its arg
20496         * tests/test-fdopendir.c (main): Test that fdopendir does not
20497         close its argument.  From a suggestion by David Grayson in:
20498         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
20500 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20502         gitlog-to-changelog: trim trailing white space
20503         * build-aux/gitlog-to-changelog (main):
20504         Trim trailing white space from commit message lines.
20505         This is helpful for processing the GNU Emacs repository,
20506         which dates back to 1985 and contains a lot of such lines.
20508         gitlog-to-changelog: new option --ignore-matching
20509         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
20510         Support new option --ignore-matching=PAT, which ignores all
20511         commit messages whose first line matches PAT.
20513 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20515         fdopendir: port better to MinGW
20516         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
20517         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
20518         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
20519         * modules/fdopendir (Depends-on): Add dirfd.
20521 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
20523         fdopendir: fix typo in comment
20524         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
20526 2015-03-09  Eric Blake  <eblake@redhat.com>
20528         error: document all entry points provided
20529         * doc/glibc-functions/error_print_progname.texi
20530         (error_print_progname): Mention the error module.
20531         * doc/glibc-functions/error_at_line.texi (error_at_line):
20532         Likewise.
20533         * doc/glibc-functions/error_message_count.texi
20534         (error_message_count): Likewise.
20535         * doc/glibc-functions/error_one_per_line.texi
20536         (error_one_per_line): Likewise.
20538 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
20540         vasnprintf: pacify clang 3.5.0
20541         Problem reported by Werner Lemberg in:
20542         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
20543         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
20544         The casts aren't needed, since the characters in question are ASCII.
20546 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20548         glob, etc.: port to MSVC v18 on MS-Windows 8.1
20549         * lib/dirent--.h (GNULIB_defined_opendir):
20550         * lib/dirent.in.h (GNULIB_defined_opendir)
20551         (GNULIB_defined_closedir):
20552         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
20553         #undef only if Gnulib defined it.
20555         poll: port to MSVC v18 on MS-Windows 8.1
20556         Problem reported by Gisle Vanem in:
20557         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
20558         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
20559         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
20560         Add sys_socket.
20562 2015-02-24  Pádraig Brady  <P@draigBrady.com>
20564         tests: support stderr verification with returns_()
20565         * tests/init.sh (returns_): Disable tracing for this wrapper
20566         function, so that stderr of the wrapped command is unchanged,
20567         allowing for verification of the contents.
20569 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
20571         passfd: avoid valgrind uninitalised data warning
20572         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
20573         to include just the fd we've initialized, rather than including
20574         the extra space used for alignment.
20576 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
20578         uniwbrk/u32-wordbreaks-tests: fix copyright
20579         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
20581         dup2: doc and test for Android bug
20582         Reported by Kevin Cernekee in:
20583         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
20584         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20585         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
20587 2015-02-23  Kevin Cernekee  <cernekee@google.com>
20589         Replace dup2() on Android
20590         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
20591         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
20592         fails.  Using rpl_dup2() fixes this because it has an explicit test
20593         for this condition.
20595 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
20597         Android doesn't define RLIM_SAVED_*
20598         Portability problem reported by Kevin Cernekee in:
20599         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
20600         * doc/posix-headers/sys_resource.texi (sys/resource.h):
20601         Mention the portability problem.
20602         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
20603         Define if not defined.
20604         * m4/dup2.m4 (gl_FUNC_DUP2):
20605         * m4/fcntl.m4 (gl_FUNC_FCNTL):
20606         Likewise.
20608 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
20610         vasnprintf-posix-tests: use consistent test
20611         * tests/test-vasnprintf-posix.c (test_function):
20612         Use "<" in assert instead of "<=", for consistency with other tests.
20614 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20616         printf, isinf, etc.: noncanonical != NaN
20617         Do not require that isinf, printf, etc. treat noncanonical
20618         values as NaNs.  Instead, require only that they do not crash.
20619         Problem reported by Joseph Myers in:
20620         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
20621         * doc/posix-functions/dprintf.texi (dprintf):
20622         * doc/posix-functions/fprintf.texi (fprintf):
20623         * doc/posix-functions/isfinite.texi (isfinite):
20624         * doc/posix-functions/isinf.texi (isinf):
20625         * doc/posix-functions/isnan.texi (isnan):
20626         * doc/posix-functions/printf.texi (printf):
20627         * doc/posix-functions/snprintf.texi (snprintf):
20628         * doc/posix-functions/sprintf.texi (sprintf):
20629         * doc/posix-functions/vdprintf.texi (vdprintf):
20630         * doc/posix-functions/vfprintf.texi (vfprintf):
20631         * doc/posix-functions/vprintf.texi (vprintf):
20632         * doc/posix-functions/vsnprintf.texi (vsnprintf):
20633         * doc/posix-functions/vsprintf.texi (vsprintf):
20634         Document this.
20635         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
20636         * m4/isinf.m4 (gl_ISINFL_WORKS):
20637         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
20638         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
20639         * tests/test-isfinite.c (test_isfinitel):
20640         * tests/test-isinf.c (test_isinfl):
20641         * tests/test-isnan.c (test_long_double):
20642         * tests/test-isnanl.h (main):
20643         * tests/test-snprintf-posix.h (test_function):
20644         * tests/test-sprintf-posix.h (test_function):
20645         * tests/test-vasnprintf-posix.c (test_function):
20646         * tests/test-vasprintf-posix.c (test_function):
20647         Test only that noncanonical values do not cause crashes, not that
20648         they are treated as NaNs.  In some cases this means a larger
20649         output buffer is needed.
20651 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
20653         fts: remove redundant close() (trivial)
20654         * lib/fts.c (fts_read): Remove redundant call to close().
20655         Spotted by coverity.
20657 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20659         getdtablesize: port better for Android
20660         Problem reported by Kevin Cernekee in:
20661         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
20662         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
20663         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
20664         Instead, just use getrlimit, taking care to avoid Cygwin bug.
20666         poll: fixes for large fds
20667         * lib/poll.c (poll): Don't check directly for NFD too large.
20668         Don't rely on undefined behavior in FD_SET when an arg exceeds
20669         FD_SETSIZE.  Always set revents afterwards, even if to zero.
20670         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
20671         as that makes the test a bit stricter.
20673 2015-02-19  Kevin Cernekee  <cernekee@google.com>
20675         fcntl: Fix cross compiling
20676         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
20677         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
20679 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20681         dup2, fcntl: cross-compile better for Android
20682         Problem reported by Kevin Cernekee in:
20683         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
20684         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
20685         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
20686         there's little need to cross-compile for older kernels nowadays.
20687         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
20688         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
20690 2015-02-18  Pádraig Brady  <P@draigBrady.com>
20692         getopt: don't crash on memory exhaustion
20693         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
20694         memory exhaustion.  In the _LIBC case we use alloca() as is
20695         already done in glibc, so we don't need to consider the separate
20696         error path in that awkward case.  Also fix a memory leak when
20697         ambiguous options are present.
20698         Reported by Tobias Stoeckmann
20700 2015-02-17  Mike Miller  <mtmiller@ieee.org>
20702         tempname: allow compilation with C++ (trivial)
20703         * lib/tempname.h [C++]: Specify extern "C" linkage.
20704         * lib/tempname.h (try_tempname):
20705         * lib/tempname.c (__try_tempname, __gen_tempname):
20706         Rename 'try' to 'tryfunc'.
20708 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20710         dup2, fcntl: port to AIX
20711         * m4/dup2.m4 (gl_FUNC_DUP2):
20712         * m4/fcntl.m4 (gl_FUNC_FCNTL):
20713         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
20714         The former works on AIX 7.1 but the latter does not.
20715         Also, this may work better with Android; see:
20716         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
20718 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20720         getdtablesize, dup2, fcntl: port to Android
20721         Problem reported by Kevin Cernekee in:
20722         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
20723         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
20724         Mention that getdtablesize doesn't work on Android.
20725         * lib/getdtablesize.c: Use getrlimit substitute only if
20726         getdtablesize is declared.  This should suffice for Cygwin
20727         while not breaking Android.
20728         * m4/dup2.m4 (gl_FUNC_DUP2):
20729         * m4/fcntl.m4 (gl_FUNC_FCNTL):
20730         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
20731         standardized but the latter is not, and sysconf works on Android.
20732         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
20733         Also check that getdtablesize is declared.
20734         This removes the need for a special case for Android.
20736 2015-02-16  Kevin Cernekee  <cernekee@google.com>
20738         localename: Implement gl_locale_name_thread_unsafe for Android
20739         * lib/localename.c: Android API level >= 21 supports two hardcoded
20740         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
20741         the internal __locale_t struct.
20743 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
20745         fts: avoid crash when a cycle is added while traversing
20746         This could be triggered by auto-mounting a recursive bind mount.
20747         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
20748         * lib/fts.c (fts_read): Avoid removing the original hash table item
20749         when leaving a directory that caused a cycle, and preserve the FTS_DC
20750         flag.
20752 2015-02-16  Daiki Ueno  <ueno@gnu.org>
20754         uniname/uniname: support character alias
20755         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
20756         Generate one-way mapping from aliases to codepoints in the
20757         generated tables.  Special case variation selectors to reduce
20758         table size.
20759         * lib/uniname/uniname.c (unicode_character_name): Special case
20760         variation selectors.
20761         (unicode_name_character): Special case variation selectors and
20762         their aliases.
20763         * lib/uniname/uninames.h: Regenerate.
20764         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
20765         * modules/uniname/uniname-tests (Files): Add
20766         tests/uniname/NameAliases.txt.
20767         * tests/uniname/test-uninames.c: Mark as static.
20768         (ALIASLEN): Define.
20769         (struct unicode_alias): New struct.
20770         (unicode_aliases): New variable.
20771         (fill_aliases): New function.
20772         (test_alias_lookup): New test function.
20773         (main): Run the 'test_alias_lookup' test if the second argument is
20774         given.
20775         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
20776         second argument.
20778 2015-02-11  Kevin Cernekee  <cernekee@google.com>
20780         Fix FILE struct compatibility with Android API level >= 21
20781         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
20782         __sferror.  Recent versions of Bionic's stdio.h no longer define
20783         __sferror.
20784         * lib/fbufmode.c: Likewise.
20785         * lib/fflush.c: Likewise.
20786         * lib/fpurge.c: Likewise.
20787         * lib/freadable.c: Likewise.
20788         * lib/freadahead.c: Likewise.
20789         * lib/freading.c: Likewise.
20790         * lib/freadptr.c: Likewise.
20791         * lib/freadseek.c: Likewise.
20792         * lib/fseeko.c: Likewise.
20793         * lib/fseterr.c: Likewise.
20794         * lib/fwritable.c: Likewise.
20796         Assume unbroken ungetc() on Android
20797         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
20798         test case passed when running on an Android host, and the code
20799         hasn't really changed since 2009.
20801         getdtablesize: Fix Android build
20802         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
20803         versions have this symbol in the .so library (at least 32-bit
20804         platforms) but are missing the declaration in the header file,
20805         causing the m4 logic to guess incorrectly.
20807         localename: Fix Android build
20808         * modules/localename (Depends-on): Add langinfo.
20810         getugroups: Fix Android build
20811         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
20812         functions.
20814         euidaccess: Fix Android build
20815         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
20816         AT_EACCESS gets declared.
20818         linkat_nofollow: Add fallback case for cross compiling
20819         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
20821         net_if: Handle content-free <net/if.h> system headers
20822         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
20823         struct if_nameindex.  If not, enable the replacement header.
20825         signal_h: Fix Android build
20826         * lib/signal.in.h: Add Android to the list of platforms that declare
20827         pthread_sigmask() in <pthread.h> instead of <signal.h>.
20829         duplocale: Fix Android build of duplocale-tests
20830         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
20831         is included by test-duplocale.c (but not by duplocale.c).
20832         * modules/duplocale-tests (configure.ac): Check for monetary.h.
20833         * tests/test-duplocale.c: Skip test if monetary.h is absent.
20834         * doc/posix-headers/monetary.texi: Add Android to the list of
20835         platforms missing monetary.h.
20837 2015-02-11  Pádraig Brady  <P@draigBrady.com>
20839         tests: avoid recent -Werror=unused-variable regression in test-locale
20840         * tests/test-locale.c (main): Reference the variable to avoid the
20841         "unused variable" warning.
20843 2015-02-11  Pádraig Brady  <P@draigBrady.com>
20845         maint: various whitespace cleanups in tempname
20846         * lib/tempname.c: Normalize spacing and line length.
20847         * lib/tempname.h: Likewise.
20848         * modules/tempname: Likewise.
20850 2015-02-11  Pádraig Brady  <P@draigBrady.com>
20852         tests: provide returns_() to simplify exit status checking
20853         * tests/init.sh (returns_): A new function for use in tests,
20854         to allow for easier checking of return values, where you expect
20855         a command to exit with failure status.  By checking for a particular
20856         exit code, you don't hide any crashes for example.
20858 2015-02-11  Pádraig Brady  <P@draigBrady.com>
20860         mountlist: only use libmount when specified
20861         There are currently many shared libs dependencies introduced by
20862         libmount with associated runtime and virt mem overhead.
20863         Therefore don't enable by default.
20864         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
20866 2015-02-08  Daiki Ueno  <ueno@gnu.org>
20868         uniname/unimame-tests: don't link with -lunistring
20869         * modules/uniname/uniname-tests (Makefile.am): Don't link against
20870         $(LIBUNISTRING).  Document the rationale why we need to
20871         conditionalize the test.
20873 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20875         fstrcmp: don't assume strlen < INT_MAX
20876         * lib/fstrcmp.c: Include stddef.h and stdint.h.
20877         (uintptr_t): Remove, as we're now assuming stdint.
20878         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
20879         Prefer ptrdiff_t to int when the value could exceed INT_MAX
20880         if the input string is long.
20881         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
20882         uintptr_t to size_t when the underlying value is a pointer casted
20883         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
20884         * modules/fstrcmp (Depends-on): Add stdint.
20886         diffseq: prefer ptrdiff_t to ssize_t
20887         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
20888         ptrdiff_t is the natural type for signed indexes.
20889         On a few older platforms, ssize_t is narrower than size_t.
20891         xalloc: fix typo that suppressed warnings
20892         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
20893         This typo, introduced a couple of years ago, mistakenly suppressed
20894         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
20895         -Wmissing-declarations warnings.
20897         full-read: fix license notice typo
20898         * lib/full-read.h: Remove a stray line in the license notice.
20899         Reported by Sam Ellis in: http://bugs.gnu.org/19808
20901         crypto/gc: fix a -Wswitch warning
20902         Reported by Bruce Korb in:
20903         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
20904         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
20906 2015-02-03  Pádraig Brady  <P@draigBrady.com>
20908         gnulib-tool: fix handling of patch(1) diagnostics
20909         * gnulib-tool: Send diagnostics from patch(1) to stderr,
20910         as otherwise gnulib-tool will reparse that output and attempt
20911         to lookup modules.
20913 2015-02-03  Pádraig Brady  <P@draigBrady.com>
20915         bootstrap: exit immediately upon gnulib-tool failure
20916         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
20917         This was noticed when gnulib-tool exited early due to failure
20918         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
20919         but various confusing errors were then given as the build proceeded.
20921 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
20923         symlinkat: include all required header files
20924         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
20925         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
20926         Reported at https://savannah.gnu.org/bugs/index.php?44151
20927         and by Jack Howarth.
20929 2015-01-29  Pádraig Brady  <P@draigBrady.com>
20931         localename: support Solaris 12 and illumos
20932         * lib/localename.c (gl_locale_name_thread_unsafe): call
20933         getlocalename_l() on newer __sun platforms.
20934         Reported by Alexander Pyhalov.
20935         Fix suggested by Rich Burridge.
20937 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
20939         locale: fix tests on illumos (trivial)
20940         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
20941         so move from global scope to main().
20943 2015-01-24  Daiki Ueno  <ueno@gnu.org>
20945         unictype: avoid undefined left-shift behavior
20946         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
20947         gcc's -fsanitize=shift and running its tests triggered:
20948           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
20949             places cannot be represented in type 'int'
20950         Cast LHS to 'unsigned int' after integer promotion.
20951         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
20952         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
20954 2015-01-20  Daiki Ueno  <ueno@gnu.org>
20956         libunistring: bump version of unitypes dependants
20957         Due to the header file search order, all the headers which depend
20958         on unitypes.h need to be generated, when the preinstalled
20959         libunistring is older.
20960         * modules/unicase/base (configure.ac): Bump minimum version to
20961         0.9.4.
20962         * modules/uniconv/base (configure.ac): Likewise.
20963         * modules/unilbrk/base (configure.ac): Likewise.
20964         * modules/uninorm/base (configure.ac): Likewise.
20965         * modules/unistdio/base (configure.ac): Likewise.
20966         * modules/unistr/base (configure.ac): Likewise.
20967         * modules/uniwbrk/base (configure.ac): Likewise.
20968         * modules/uniwidth/base (configure.ac): Likewise.
20970 2015-01-20  Daiki Ueno  <ueno@gnu.org>
20972         unictype/category-none: fix link with libunistring
20973         Since _UC_CATEGORY_NONE is not a public symbol, it will be
20974         prefixed with "libstring_" when compiled as part of libunistring.
20975         To avoid undefined symbol at link time, increase the minimum
20976         version when the dependant modules are updated.
20977         * modules/unictype/category-none (configure.ac): Bump minimum
20978         version to 0.9.5.
20980 2015-01-20  Daiki Ueno  <ueno@gnu.org>
20982         unitypes: fix build with installed libunistring
20983         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
20984         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
20985         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
20987 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20989         time: port to MinGW32 3.21
20990         Problem reported by Eli Zaretskii in:
20991         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
20992         * lib/time.in.h:
20993         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
20994         * modules/time (Depends-on):
20995         Fall back on unistd.h if the other include files don't define
20996         struct timespec.
20998         update-copyright: apply to self
20999         * build-aux/update-copyright: Fix copyright date.  How ironic!
21001 2015-01-15  Daiki Ueno  <ueno@gnu.org>
21003         libunistring: update to Unicode 7.0.0
21004         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
21005         Manichaean names.
21006         * lib/unictype/joininggroup_name.h: Likewise.
21007         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
21008         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
21009         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
21010         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
21011         (fill_arabicshaping, joining_group_as_c_identifier): Support those
21012         enum values.
21013         (is_property_alphabetic): Accept newly added characters to
21014         cuneiform numeric signs.
21015         (is_property_default_ignorable_code_point): Reject U+0605.
21016         (FIELDLEN): Increase from 120 to 160.
21017         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
21018         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
21019         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
21020         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
21021         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
21022         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
21023         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
21024         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
21025         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
21026         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
21027         U+1E8D0..U+1E8D6.
21028         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
21029         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21030         lib/uniwidth/width.c.
21031         * all generated files under lib/uni* and tests/uni*: Regenerate.
21033 2015-01-14  Daiki Ueno  <ueno@gnu.org>
21035         libunistring: update to Unicode 6.3.0
21036         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
21037         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
21038         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
21039         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
21040         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
21041         Update WB5, WB9, WB10, WB13a, and WB13b.
21042         * tests/uniwbrk/test-uc-wordbreaks.c
21043         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
21044         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
21045         (UC_BIDI_PDI): New enumeration values.
21046         (bidi_category_byname): Support those enum values.
21047         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
21048         dedicated property assigned.
21049         (is_property_case_ignorable): Check 0x0027.
21050         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
21051         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
21052         (output_wbp): Support those enum values.
21053         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
21054         (UC_BIDI_PDI): New enumeration values.
21055         * lib/unictype/bidi_byname.gperf: Add those property names.
21056         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
21057         U+180E, U+1A1B, and U+2066..U+2069.
21058         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21059         lib/uniwidth/width.c.
21060         * all generated files under lib/uni* and tests/uni*: Regenerate.
21062 2015-01-14  Daiki Ueno  <ueno@gnu.org>
21064         libunistring: update to Unicode 6.2.0
21065         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
21066         (unilbrk_table): Adjust table size.
21067         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
21068         for LBP_RI.
21069         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
21070         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
21071         Normalize table index skipping ignored properties.
21072         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
21073         WBP_EXTEND and WBP_FORMAT, which are now computed without using
21074         the table.
21075         * lib/uniwbrk/wbrktable.h: Adjust table size.
21076         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
21077         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
21078         Support rule GB8a.
21079         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
21080         * tests/unigbrk/test-uc-is-grapheme-break.c
21081         (graphemebreakproperty_to_string): Support GBP_RI.
21082         * tests/uniwbrk/test-uc-wordbreaks.c
21083         (wordbreakproperty_to_string): Support WBP_RI.
21084         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
21085         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
21086         (output_lbp): Support LBP_RI.  Adjust some characters changed from
21087         LBP_AL to LBP_ID.
21088         (output_lbp): Support LBP_RI.
21089         (WBP_RI): New enumeration value.
21090         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
21091         (output_wbp): Support WBP_RI.
21092         (GBP_RI): New enumeration value.
21093         (output_gbp_test, fill_org_gbp): Support GBP_RI.
21094         * all generated files under lib/uni* and tests/uni*: Regenerate.
21096 2015-01-14  Daiki Ueno  <ueno@gnu.org>
21098         libunistring: update to Unicode 6.1.0
21099         * lib/gen-uni-tables.c (output_joining_group): Switch to
21100         3-level table to accommodate joining groups defined with higher
21101         codepoint value.  Since there are only 88 groups defined in
21102         Unicode 7.0.0, use 7-bit packed format for level3 entries.
21103         (get_lbp): Update for Unicode 6.1.0.
21104         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
21105         3-level table.
21106         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
21107         joining group name.
21108         * lib/unictype/joininggroup_name.h: Likewise.
21109         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
21110         (unilbrk_table): Adjust table size.
21111         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
21112         for LBP_HL.
21113         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
21114         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
21115         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
21116         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
21117         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
21118         U+302E..U+302F.
21119         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21120         lib/uniwidth/width.c.
21121         * all generated files under lib/uni* and tests/uni*: Regenerate.
21122         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
21124 2015-01-15  Daiki Ueno  <ueno@gnu.org>
21126         uniwbrk/u32-wordbreaks-tests: add conformance test
21127         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
21128         tests/uniwbrk/test-uc-wordbreaks.c,
21129         tests/uniwbrk/test-uc-wordbreaks.sh, and
21130         tests/uniwbrk/WordBreakTest.txt.
21131         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
21132         test-uc-wordbreaks to $(check_PROGRAMS), and define
21133         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
21134         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
21135         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
21137 2015-01-15  Daiki Ueno  <ueno@gnu.org>
21139         uniwbrk: ignore Extended/Format characters at BOL not BOS
21140         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
21141         characters if the previous character property is one of
21142         WBP_NEWLINE, WBP_CR, and WBP_LF.
21144 2015-01-11  Jim Meyering  <meyering@fb.com>
21146         test-strstr.c: avoid a trivial leak
21147         * tests/test-strstr.c (main): Free haystack.
21149         update-copyright: recognize groff's \(co marker
21150         * build-aux/update-copyright (circle_c_re): Also accept
21151         uses of \(co, as found in gzip.1.
21153 2015-01-08  Pádraig Brady  <P@draigBrady.com>
21155         maint.mk: fix compatibility with OS X nm
21156         * top/maint.mk (_gl_tight_scope): Use the -g option to
21157         show exported items rather than the -e option which is
21158         ignored on all platforms except OS X where it gives an error.
21159         Reported by Assaf Gordon.
21161 2015-01-07  KO Myung-Hun  <komh@chollian.net>
21163         localcharset: improve charset detection on OS/2
21164         Use system codepage when appropriate.  Map OS/2 codepages to
21165         GNU canonical charset names if possible.
21166         * lib/config.charset: Don't output aliases if "$os" is os2*.
21167         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
21168         result for OS/2.
21169         (locale_charset) [OS2]: Use system codepage if codeset is omitted
21170         from the locale name which is neither "C" nor "POSIX".
21172 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
21174         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
21175         This reverts the last patch but one, as it shouldn't be needed now
21176         that the typo is fixed.
21177         * lib/count-leading-zeros.h (count_leading_zeros_ll):
21178         * lib/count-trailing-zeros.h:
21179         * lib/count-one-bits.h:
21180         Go back to using 64-bit intrinsics.
21182         count-leading-zeros: fix pragma typos
21183         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
21184         Fix typos in declaration of intrinsics when _MSC_VER.
21186 2015-01-06  Pádraig Brady  <P@draigBrady.com>
21188         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
21189         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
21190         intrinsics in this case.
21191         * lib/count-trailing-zeros.h: Likewise.
21192         * lib/count-one-bits.h: Likewise.
21194 2015-01-06  Daiki Ueno  <ueno@gnu.org>
21196         uniname/uniname: update to Unicode 7.0.0
21197         To accommodate new characters added since Unicode 5.1.0, this
21198         changes the internal representation of codepoint ranges.
21199         Previously, we grouped codepoint ranges by manually assigned 4-bit
21200         tag, which only allowed 16 groups.  This removes the limitation by
21201         switching to binary search on a table.  For the detail rationale
21202         and the benchmark results, see:
21203         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
21204         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
21205         to INDEX, as it no longer represents a codepoint.
21206         (range): New struct.
21207         (main): Switch to intervals list from a bit-pattern based
21208         classification.
21209         * lib/uniname/uninames.h: Regenerate.
21210         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
21211         * modules/uniname/base (configure.ac): Bump minimum version to
21212         0.9.5.
21213         * modules/uniname/uniname (configure.ac): Bump minimum version to
21214         0.9.5.
21216 2015-01-05  Eric Blake  <eblake@redhat.com>
21218         doc: update INSTALL from autoconf
21219         * doc/install.texi: Resync from autoconf.
21220         * doc/INSTALL: Reflect recent autoconf update.
21221         * doc/INSTALL.ISO: Likewise.
21222         * doc/INSTALL.UTF-8: Likewise.
21224         stdio: fix use of PRIdMAX on modern mingw
21225         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
21226         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
21227         to work with modern mingw.
21229 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
21231         pthread: detect git mingw builds with only partial pollution
21232         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
21233         pollution, as seen temporarily in Fedora 21.
21235 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21237         lib-symbol-versions: cache script check
21238         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
21239         Cache the check for linker version scripts.
21240         From a suggestion by Christophe Curis in:
21241         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
21243 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
21245         maint: fix grammar nits in propername (trivial change)
21246         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
21247         and use an adequate verb and tense.
21249 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
21251         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
21252         * module/gendocs: Add 'doc/gendocs_template_min'.
21254         * build-aux/gendocs.sh: Change email addresses and upstream URLs
21255         from to Gnulib's.
21256         (scripturl, templateurl): Adjust accordingly.
21258 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21260         gendocs: copyright date and version fix
21261         Reported by Karl Berry in:
21262         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
21263         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
21264         Fix copyright date.
21265         * build-aux/gendocs.sh (scriptversion): Update.
21267 2015-01-01  Karl Berry  <karl@gnu.org>
21269         * doc/install.texi,
21270         * build-aux/mdate-sh,
21271         * build-aux/depcomp,
21272         * build-aux/config.guess,
21273         * build-aux/config.sub,
21274         * build-aux/ar-lib,
21275         * build-aux/compile: revert copyright updates (some from last
21276         year) in slaved files.
21278 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21280         version-etc: new year
21281         * doc/gnulib.texi:
21282         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
21283         * all files: Run 'make update-copyright'.
21285 2014-12-30  Pádraig Brady  <P@draigBrady.com>
21287         xstrtol: ensure errno is reset
21288         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
21289         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
21291         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
21293 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21295         utimens: fix dependency typo
21296         * modules/utimens (Depends-on): Remove 'assure'.
21297         This bug was introduced in the recent 'assure' patch.
21299 2014-12-22  Eric Blake  <eblake@redhat.com>
21301         docs: mention why libgen.h is bad
21302         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
21304 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
21306         assure: new module
21307         This works better than 'assert' when compiling with -DNDEBUG,
21308         as it avoids some compiler diagnostics in that case.
21309         Reported by Norihiro Tanaka in:
21310         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
21311         * MODULES.html.sh (func_all_modules): Add 'assure'.
21312         * lib/assure.h, modules/assure: New files.
21313         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
21314         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
21315         Prefer 'assure' to 'assert'.
21316         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
21317         * modules/chdir-long, modules/cycle-check, modules/fchdir:
21318         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
21319         Depend on 'assure'.
21321 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
21323         stdalign: port better to HP compilers
21324         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
21325         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
21327         stdalign: work around Apple GCC 4.0 bug
21328         Reported by David Fang in:
21329         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
21330         * lib/stdalign.in.h (_Alignas):
21331         * m4/stdalign.m4 (gl_STDALIGN_H):
21332         Do not use aligned attribute with GCC 4.0 on Apple.
21334 2014-12-16  Pádraig Brady  <P@draigBrady.com>
21336         getcwd: fix test failure on OS X 10.9
21337         * m4/getcwd-path-max.m4: Avoid the replacement if it
21338         won't be effective due to the PATH_MAX limitation of lstat().
21339         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
21340         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
21341         for this case for use in tests, and also exclude this
21342         case when setting REPLACE_GETCWD.
21343         * tests/test-getcwd.c (test_long_name): Restrict the
21344         tested path length so that lstat() will not be passed
21345         a path greater than PATH_MAX.
21346         Also key a test condition on HAVE_OPENAT_SUPPORT rather
21347         than AT_FDCWD, since the latter is set unconditionally
21348         since Sep 2009 in commit 52c658e9.
21350 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
21352         parse-datetime: avoid a compiler warning with byacc (trivial)
21353         * lib/parse-datetime.y (yylex): Use the same prototype in the
21354         function definition as the declaration, to avoid a -Wstrict-prototypes
21355         warning seen when using byacc.
21357 2014-12-12  Daiki Ueno  <ueno@gnu.org>
21359         unicase/locale-language-tests: fix LOCALE_FR test
21360         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
21361         a French locale with traditional encoding.
21362         Reported by umerqayam in:
21363         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
21365 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
21367         stddef: support C11's max_align_t
21368         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
21369         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
21370         Do not undef, as that might cause max_align_t to be defined twice.
21371         Instead, change use to check for _GL_STDDEF_WINT_T too.
21372         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
21373         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
21374         Check for max_align_t.
21375         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
21376         * modules/stddef-tests (Depends-on): Add stdalign.
21377         * tests/test-stddef.c: Test max_align_t.
21379 2014-12-11  Daiki Ueno  <ueno@gnu.org>
21381         unistd: fix iOS check conditional
21382         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
21383         as 0 or 1 in <TargetConditionals.h>, and the previous check always
21384         yielded true on non-iOS environment.
21385         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
21386         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
21387         they are defined.
21389 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
21391         posixtm: avoid compiler warning in a better way
21392         * lib/posixtm.c (IF_LINT): Remove.
21393         (year, posix_time_parse):
21394         Return true (not 0) if successful.  All callers changed.
21395         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
21397 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
21399         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
21400         started with '/' on EMX.
21402 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
21404         freopen: workaround freopen() on OS/2 kLIBC
21405         * lib/freopen.c (rpl_freopen): Workaround.
21406         * m4/freopen.m4: Add os2* case.
21408         get_shared_library_fullname: port to EMX
21409         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
21410         on EMX, respectively.
21411         (_DLL_InitTerm): New on EMX.
21412         (get_shared_library_fullname): Implement on EMX.
21414         find_executable: port to EMX
21415         * lib/progreloc.c (find_executable): Implement on EMX.
21417         sched: check struct sched_param in spawn.h as well
21418         * lib/sched.in.h: Include spawn.h on kLIBC.
21419         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
21421 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
21423         bootstrap: Allow perl modules in $buildreq
21424         * build-aux/bootstrap: Add case for perl modules.
21426 2014-12-08  Pádraig Brady  <P@draigBrady.com>
21428         apply _GL_ATTRIBUTE_PURE to some inline functions
21429         clang 3.4.2 flagged these inline functions as pure
21430         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
21431         * lib/sig-handler.h (get_handler): Likewise.
21432         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
21433         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
21435 2014-12-06  Pádraig Brady  <P@draigBrady.com>
21437         vasnprintf: fix potential use after free
21438         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
21439         flagged by clang-analyzer 3.4.2.
21441 2014-12-05  Pádraig Brady  <P@draigBrady.com>
21443         filevercmp, posixtm: avoid compiler warnings with -O3
21444         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
21445         * lib/posixtm.c: (IF_LINT): Define.
21446         (posix_time_parse): Use it to void a "may be used uninitialized"
21447         warning, seen only with -O3.
21449 2014-12-05  Bruno Haible  <bruno@clisp.org>
21451         Fix LDBL80_WORDS macro on big endian platforms.
21452         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
21453         LDBL80_WORDS macro.
21454         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21455         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21456         * tests/test-isfinite.c (test_isfinitel): Likewise.
21457         * tests/test-isinf.c (test_isinfl): Likewise.
21458         * tests/test-isnan.c (test_long_double): Likewise.
21459         * tests/test-isnanl.h (main): Likewise.
21460         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
21461         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
21462         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
21463         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
21464         Reported by Pádraig Brady.
21466 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
21468         git-version-gen: do not print new line characters
21469         * build-aux/git-version-gen: Use printf instead of echo and tr.
21471         gnulib-tool: recognize x:* as an absolute path
21472         * gnulib-tool (func_gnulib_dir): Add ?:* case.
21473         (func_relconcat): Likewise.
21475 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
21477         argp: avoid extraneous translation and mem leak with empty pre doc
21478         * lib/argp-help.c (argp_doc): Never translate the empty string,
21479         when "\v" is the first or last character of the string, as that
21480         has a reserved meaning to return the header info from a po file.
21481         This also fixes a small memory leak in the !post case.
21482         The issue can be seen with this command for example:
21483         LC_MESSAGES=en_US grub2-mknetdir --help
21485 2014-11-27  Daiki Ueno  <ueno@gnu.org>
21487         uniname/uniname-tests: skip if system's libunistring is used
21488         * modules/uniname/uniname-tests (Makefile.am): Skip test if
21489         uniname/uniname module is not compiled.
21491 2014-11-27  Pádraig Brady  <P@draigBrady.com>
21493         printf: fix configure check on big endian systems
21494         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
21496 2014-11-22  Daiki Ueno  <ueno@gnu.org>
21498         pipe-filter-gi, pipe-filter-ii: port to AIX
21499         On AIX 7.1, 'select' is defined as static and cannot be referred
21500         to from inline function.
21501         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
21502         the definition...
21503         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
21504         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
21506 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21508         gitlog-to-changelog: add --until
21509         * build-aux/gitlog-to-changelog: Support new --until option.
21510         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
21512 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
21514         extern-inline: update commentary about GCC bugs
21515         * m4/extern-inline.m4: Add another GCC bug number to comments.
21517 2014-11-13  Daiki Ueno  <ueno@gnu.org>
21519         gen-uni-tables: untabify
21520         * lib/gen-uni-tables.c: Untabify.
21522 2014-11-13  Daiki Ueno  <ueno@gnu.org>
21524         gen-uni-tables: check out-of-range values added to 3-level tables
21525         * lib/gen-uni-tables.c (output_category, output_bidi_category)
21526         (output_joining_type, output_ident_category): Check out-of-range
21527         values added to 3-level tables.
21529 2014-11-13  Daiki Ueno  <ueno@gnu.org>
21531         gen-uni-tables: utilize 'assert'
21532         * lib/gen-uni-tables.c: Include <assert.h>.
21533         (output_category, output_combclass, output_decimal_digit_test)
21534         (output_decimal_digit, output_digit_test, output_digit)
21535         (output_numeric, get_mirror_value, fill_properties)
21536         (fill_property30, is_property_alphabetic)
21537         (is_property_default_ignorable_code_point)
21538         (is_property_uppercase, is_property_lowercase)
21539         (is_property_cased, is_property_case_ignorable)
21540         (is_property_changes_when_lowercased, is_property_iso_control)
21541         (is_property_math, fill_arabicshaping, output_joining_group)
21542         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
21543         (output_wbp, fill_org_gbp, get_decomposition)
21544         (output_decomposition, fill_composition_exclusions)
21545         (debug_output_composition_tables, output_composition_tables)
21546         (redistribute_casefolding_rules, output_casing_rules): Use
21547         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
21548         reporting.
21550 2014-11-13  Daiki Ueno  <ueno@gnu.org>
21552         gen-uni-tables: cosmetic improvements
21553         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
21554         variables specification.
21555         (is_outdigit): Remove unused function.
21557 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
21559         fcntl-h-tests: port to PA-RISC GNU/Linux
21560         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
21562 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21564         fts: port to C89
21565         Problem reported for MSVC 16 by Gisle Vanem in:
21566         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
21567         * lib/fts.c (fts_build): Avoid declaration before statement.
21569 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21571         unistd: port to iOS
21572         Problem reported by André Klitzing in:
21573         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
21574         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
21576 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21578         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
21579         Problem reported by Alan Modra in:
21580         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
21581         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
21582         Always cast the function arg, reverting this part of the previous
21583         change.
21585 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
21587         obstack: avoid potentially-nonportable function casts
21588         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
21589         Remove, replacing with ...
21590         (call_chunkfun, call_freefun): New static functions.
21591         All uses changed.  Avoid potentially-nonportable casts.
21592         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
21593         (_obstack_begin_worker): Omit last two args, since they
21594         rely on potentially-nonportable casts.  All callers changed.
21595         * lib/obstack.h (_OBSTACK_CAST): New macro.
21596         Use it everywhere the old API used a potentially-nonportable cast.
21597         The new API doesn't cast.
21598         (struct obstack): Use unions rather than requiring
21599         potentially-nonportable casts.
21600         (obstack_chunkfun, obstack_freefun): Return void.
21602 2014-11-03  Alan Modra  <amodra@gmail.com>
21604         obstack: fix macro return values
21605         * lib/obstack.h (obstack_next_free): Return void *.
21606         (obstack_1grow_fast, obstack_blank_fast): Return void.
21607         For __GNUC__ macros:
21608         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
21609         For !__GNUC__ macros:
21610         (obstack_make_room, obstack_grow, obstack_grow0)
21611         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
21613 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
21615         obstack: do not assume system-supplied obstack is size_t safe
21616         * m4/obstack.m4: New file.
21617         * modules/obstack (Files): Add it.
21619         obstack: port to platforms that #define __alignof__
21620         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
21621         not if !_LIBC.  We don't know of any platforms that #define
21622         __alignof__, but it might be useful in tests.  Conversely,
21623         glibc assumes GCC.
21625 2014-11-03  Pádraig Brady  <P@draigBrady.com>
21627         linkat: don't unconditionally replace on GNU/Linux
21628         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
21629         was redundant for a few reasons.  It was present to support compiling
21630         on new systems but running on the old narrow window of Linux 2.6.1[67].
21631         It setup and cleaned up test files which weren't actually used.
21632         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
21633         implicit in the following check.
21635 2014-11-03  Pádraig Brady  <P@draigBrady.com>
21637         linkat: wrap to handle symlinks on OS X 10.10
21638         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
21639         but not usable because it doesn't support creating hardlinks
21640         to symlinks.  Therefore add a generic test for this capability
21641         and fallback to our emulation if linkat() fails with ENOTSUP.
21643 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21645         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
21646         * doc/posix-functions/open.texi (open):
21647         * doc/posix-functions/openat.texi (openat):
21648         Document that these functions do not set errno to ELOOP when
21649         a symlink is opened with O_NOFOLLOW.
21651 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
21653         obstack: add NEWS entry for recent incompatible changes
21654         * NEWS: Describe recent changes.
21656 2014-10-30  Pádraig Brady  <P@draigBrady.com>
21658         mountlist: don't use libmount to decide on dummy/remote
21659         * lib/mountlist.c (read_file_system_list): Don't use the libmount
21660         routines to determine whether a file system is dummy or remote,
21661         as they're not currently compatible.  For example the remoteness
21662         is determined on file system type (for which the list seems incomplete),
21663         rather than simply checking for a ':' in the device name.
21664         Also libmount currently determines that 'tmpfs' is a dummy file system
21665         even though it has associated storage.
21667 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21669         obstack: prefer __alignof__ to alignof
21670         This is for portability to pre-4.7 GCC when compiling glibc.
21671         See Joseph S. Myers in:
21672         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
21673         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
21674         New macro, defined by including and using <alignof.h>.
21675         (MAX): New macro.
21676         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
21677         Do not use enums as they are not portable to some broken compilers.
21678         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
21680         obstack: prefer alignof to calculating alignments by hand
21681         * lib/obstack.c: Include <stdalign.h>.
21682         (struct fooalign): Remove.
21683         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
21684         * modules/obstack (Depends-on): Add stdalign.
21686 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
21688         obstack: use size_t alignments and check for overflow
21689         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
21690         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
21691         * lib/obstack.h (struct obstack.alignment_mask):
21692         Use _OBSTACK_SIZE_T, not int, for alignments.
21693         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
21694         overflows, e.g., when adding the alignment.
21696 2014-10-29  Alan Modra  <amodra@gmail.com>
21698         obstack: 64-bit obstack support, part 3
21699         This finally enables full 64-bit obstack support.  The glibc
21700         shared library specific code is removed from obstack.c too, and
21701         the error handling code conditionally compiled under control of
21702         another macro, _OBSTACK_NO_ERROR_HANDLER.
21703         * lib/obstack.h: Include string.h earlier.
21704         (_OBSTACK_INTERFACE_VERSION): Define.
21705         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
21706         * lib/obstack.c: Don't include shlib-compat.h.
21707         (OBSTACK_INTERFACE_VERSION): Delete.
21708         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
21709         glibc code is compatible with version 2.  Don't include stdio.h for
21710         __GNU_LIBRARY.
21711         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
21712         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
21713         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
21714         glibc shared library specific source.
21716         obstack: 64-bit obstack support, part 2
21717         This gets us 4G obstack support, without changing ABI
21718         compatibility, apart from possibly introducing some
21719         signed/unsigned comparison warnings in code that uses obstack.h.
21720         a) Replace "int" size parameters, return values, and macro local vars
21721            with _OBSTACK_SIZE_T, an "unsigned int" for now.
21722         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
21723         c) Make all obstack macros checking available room use obstack_room.
21724            "next_free + desired > chunk_limit" may wrap the lhs for chunks
21725            allocated near the top of memory.
21726         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
21727         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
21728         in place of "int" size parameters, return values and local vars.
21729         (_CHUNK_SIZE_T): Define.
21730         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
21731         union use an _OBSTACK_SIZE_T integer type.
21732         For __GNUC__ versions of the following macros...
21733         (obstack_room): Rename local var.
21734         (obstack_make_room): Use obstack_room.
21735         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
21736         obstack_int_grow, obstack_blank): Likewise.
21737         (obstack_finish): Use unsigned comparison when comparing aligned
21738         next_free against chunk_limit.
21739         (obstack_free): Cast OBJ to remove possible const qualifier.
21740         For !__GNUC__ versions of the following macros...
21741         (obstack_make_room): Use obstack_room.
21742         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
21743         obstack_int_grow, obstack_blank): Likewise.
21744         (obstack_finish): Use unsigned comparision when comparing aligned
21745         next_free against chunk_limit.
21746         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
21747         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
21748         _OBSTACK_SIZE_T.
21749         (_obstack_begin, _obstack_begin_1): Likewise.
21750         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
21751         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
21753         obstack: 64-bit obstack support, part 1
21754         a) Correct calls to alloc function, to use a size_t arg.  "long" is
21755            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
21756            and "size_t" 64 bits.
21757         b) Consolidate _obstack_begin and _obstack_begin1 code.
21758         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
21759         use "size_t" rather than "long".
21760         (_obstack_begin, _obstack_begin1): Likewise.
21761         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
21762         obstack_chunkfun): Update alloc function casts.
21763         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
21764         (chunkfun_type, freefun_type): New typdefs.
21765         (_obstack_begin_worker): Split out from ..
21766         (_obstack_begin, _obstack_begin_1): ..here.
21768         obstack: tidy part 2
21769         a) Don't be concerned about "not polluting the namespace with stddef.h
21770            symbols" in obstack.h, since gnulib string.h includes stddef.h
21771            anyway, and it seems unlikely that anyone would care.
21772         b) Don't roll our own slow memcpy in _obstack_newchunk.
21773         c) Rename obstack_free to _obstack_free.  This makes the naming
21774            consistent with other obstack functions and obviates the need for
21775            __obstack_free.  Ancient obstack.c defined both obstack_free and
21776            _obstack_free.  We continue to do that for _LIBC via an alias.
21777         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
21778            is clever, but nowadays gcc warns on undefined macros.  You'll get
21779            an undefined macro warning if simulating an old gcc with -U__GNUC__
21780            -U__GNUC_MINOR__ -D__GNUC__=1.
21781         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
21782         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
21783         (__obstack_free): Delete, update refs.
21784         (_obstack_free): Rename from obstack_free.
21785         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
21786         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
21787         * lib/obstack.c: Don't include stddef.h.
21788         (COPYING_UNIT): Delete.
21789         (_obstack_begin): Formatting fix.
21790         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
21791         (_obstack_free): Rename from __obstack_free, update alias.  Move
21792         undef of obstack_free to where it is needed.
21794         obstack: tidy part 1
21795         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
21796            to me, and result in overlong lines after later patches.
21797         b) Move error handling code, to avoid a forward declaration and to
21798            simplify later patches in this series.
21799         * lib/obstack.h (struct obstack <temp>): Rename fields of union
21800         and update all uses.
21801         * lib/obstack.c: Include stdlib.h earlier.
21802         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
21803         in file.
21804         (print_and_abort): Remove now redundant forward declaration.
21806 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21808         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
21809         Without this change, in bleeding-edge fileutils Autoconf complains
21810         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
21811         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
21812         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
21813         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
21815 2014-10-24  Daiki Ueno  <ueno@gnu.org>
21817         iconv: avoid false detection of non-working iconv
21818         The INBUF arguments of iconv can be either 'const char **'
21819         or 'char **'.  If CC is g++, the difference causes a compile error
21820         and thus leads to a false detection of non-working iconv.
21821         Reported by Eli Zaretskii and Werner LEMBERG in:
21822         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
21823         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
21824         iconv.  Bump serial number.
21826 2014-10-23  Pádraig Brady  <P@draigBrady.com>
21828         bootstrap: print more diagnostics for missing programs
21829         * build-aux/bootstrap: only suppress stderr when checking for
21830         alternative program names.  This supports programs issuing non
21831         standard error messages.
21833 2014-10-23  Pádraig Brady  <P@draigBrady.com>
21835         bootstrap: only update the gnulib submodule
21836         * build-aux/bootstrap: Restrict the "submodule update" command
21837         to the gnulib path.
21839 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21841         symlinkat: port to AIX 7.1
21842         * doc/posix-functions/symlinkat.texi (symlinkat):
21843         Mention AIX porting problem.
21844         * lib/symlinkat.c: Always include errno.h.
21845         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
21846         * lib/unistd.in.h (symlinkat): Add replacement machinery.
21847         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
21848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
21849         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
21850         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
21851         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
21853         readlinkat: port to AIX 7.1
21854         * doc/posix-functions/readlink.texi (readlink):
21855         * doc/posix-functions/readlinkat.texi (readlinkat):
21856         Mention AIX porting problem.
21857         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
21858         New function.
21859         * lib/unistd.in.h (readlinkat): Add replacement machinery.
21860         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
21861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
21862         * modules/readlinkat (configure.ac): Also compile replacement
21863         if REPLACE_READLINKAT.
21864         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
21866 2014-10-12  Karl Berry  <karl@gnu.org>
21868         * doc/posix-functions/dirname.texi: remove spurious {.
21870 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
21872         basename, dirname: Improve documentation.
21873         * doc/posix-functions/basename.texi: Mention dirname module and
21874         base_name() function.
21875         * doc/posix-functions/dirname.texi: Mention dir_name() and
21876         mdir_name() functions.
21877         Suggested by Werner LEMBERG <wl@gnu.org>.
21879 2014-09-24  Jim Meyering  <meyering@fb.com>
21881         exclude: declare exclude_patopts static
21882         * lib/exclude.c (exclude_patopts): Declare static,
21883         to avoid triggering a -Wmissing-prototypes warning.
21884         The alternative (declaring it in the .h file) would
21885         require publicizing the private "struct patopts".
21887 2014-09-21  Werner Lemberg  <wl@gnu.org>
21889         dirname: support compilation with C++
21890         * lib/dirname.h: Add necessary C linkage declarations.
21892 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21894         qsort_r: include <config.h>
21895         Problem reported by Tom G. Christensen in:
21896         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
21897         * lib/qsort.c [!_LIBC]: Include <config.h> first.
21899 2014-09-16  Dylan Cali  <calid1984@gmail.com>
21901         avltree-list: avoid compiler warnings (trivial)
21902         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
21903         -Werror=suggest-attribute=pure.
21904         * lib/gl_array_list.c: Likewise.
21905         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
21906         declaration to avoid -Werror=missing-prototypes.  This is not added
21907         to a header as only exported for tests.  Add (void) to the
21908         check_invariants() call to indicate we're discarding the result
21909         in this context which avoids -Werror=unused-value.  Note we don't
21910         use ignore_value here to avoid a dependency as we know we'll not
21911         be adding __attribute__((warn_unused_result)) to check_invariants().
21912         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
21914 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21916         qsort_r: new module, for GNU-style qsort_r
21917         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
21919 2014-09-15  Werner LEMBERG  <wl@gnu.org>
21921         strerror_r-posix: support compilation with C++
21922         * lib/strerror_r.c: Add necessary C linkage declarations.
21924 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
21926         fcntl-h: fix compilation with Intel C++ compiler (trivial)
21927         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
21929 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
21931         mountlist: use /proc/self/mountinfo when available
21932         Use libmount to propagate device IDs provided by Linux in
21933         /proc/self/mountinfo.  This will give more accurate output when
21934         using df in chroot'ed environments as the device IDs are not
21935         determined by stat() which may be inaccurate within the chroot.
21936         * lib/mountlist.c (read_file_system_list): Use the libmount routines
21937         from util-linux to parse "/proc/self/mountinfo" or fall back to
21938         standard getmntent() processing.
21939         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
21940         getmntent() is used, as is the case on GNU/Linux.
21942 2014-09-07  Eric Wong  <normalperson@yhbt.net>
21944         users.txt: add cmogstored
21945         cmogstored has used gnulib since the beginning in 2012 to support
21946         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
21948 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
21950         Trivial change.
21951         * gnulib-tool: Use same options as build-aux/bootstrap to download
21952         PO files.
21954 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
21956         Trivial change.
21957         * gnulib-tool: Fallback to wget when rsync of PO files fails.
21959 2014-09-04  Eric Blake  <eblake@redhat.com>
21961         maintainer-makefile: add syntax check for useless ';;'
21962         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
21964 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
21966         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
21967         Problem reported by Assaf Gordon in:
21968         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
21969         Apparently Ubuntu is doing some fancy link-time optimization
21970         that doesn't work with -lpthread but does work with -pthread.
21971         Work around the bug by preferring -pthread to -lpthread.
21972         * m4/pthread.m4 (gl_PTHREAD_CHECK):
21973         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
21974         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
21975         Treat -pthread like -lpthread.
21977 2014-09-04  Eric Blake  <eblake@redhat.com>
21979         error: drop spurious semicolon
21980         * lib/error.c (__error_at_line): Fix ';;'.
21982 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21984         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
21985         * m4/gnulib-common.m4 (AC_C_RESTRICT):
21986         Override AC_C_RESTRICT unconditionally.
21987         Update from autoconf, incorporating:
21988         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
21989         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
21991 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21993         manywarnings: add GCC 4.9 warnings
21994         Also, make it easier to maintain this in the future.
21995         * build-aux/gcc-warning.spec: Add -Wabi-tag,
21996         -Wconditionally-supported, -Wdelete-incomplete,
21997         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
21998         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
21999         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
22000         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
22001         only for older GCC versions that need them.  Handle
22002         -Wnormalized=nfc specially, so that the 'comm' command used
22003         for maintenance doesn't get confused.
22005 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22007         vasnprintf: fix bugs in width computation
22008         * lib/vasnprintf.c (VASNPRINTF):
22009         Rework previous change, which introduced a bug,
22010         to avoid the warning in a different way.
22011         Avoid undefined behavior if the width arg is less than -INT_MAX.
22012         Avoid unnecessary use of HAS_WIDTH local.
22014 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
22016         vasnprintf: Avoid signed/unsigned comparison warning.
22017         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
22018         compare end addr of generated string w/ maximum end addr.
22020 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
22022         parse-datetime: Avoid pointer difference.
22023         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
22024         instead of calculating difference of pointers.  This removes an
22025         annoying warning, devoid of any use.
22027 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22029         qsort_r: new module, for GNU-style qsort_r
22030         This works even on FreeBSD, which has an incompatible qsort_r API.
22031         * MODULES.html.sh: Add it.
22032         * doc/glibc-functions/qsort_r.texi: It's now supported.
22033         * lib/qsort.c: New file, taken from glibc with minor changes
22034         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
22035         removed.
22036         * lib/qsort_r.c: New file, compiled only on FreeBSD.
22037         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
22038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
22039         * modules/qsort_r, modules/qsort_r-tests: New files.
22040         * modules/stdlib (Makefile): Set up its defaults.
22041         * tests/test-qsort_r.c: New file.
22043 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
22045         vla: new module
22046         GNU RCS can use this, mostly for documentation I expect.  See:
22047         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
22048         * MODULES.html.sh: Add vla.
22049         * lib/vla.h, modules/vla: New files.
22051 2014-08-07  Daiki Ueno  <ueno@gnu.org>
22053         localename: make gl_locale_name_thread really thread-safe on Windows
22054         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
22055         "glthread/lock.h".
22056         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
22057         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
22059 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
22061         getpass: don't assume struct termios
22062         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
22063         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
22064         * lib/getpass.c (getpass): Port to systems lacking struct termios.
22066         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
22067         Problem reported by Jonas 'Sortie' Termansen in:
22068         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
22069         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
22070         Implement via sysconf for platforms that lack getdtablesize.
22072         vararrays: modernize AC_C_VARARRAYS for C11
22073         This backports a change I recently made to Autoconf.
22074         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
22075         VLAs are not supported, as this is what C11 does.  The old macro
22076         HAVE_C_VARARRAYS is still defined if they are supported, but is
22077         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
22079 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
22081         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
22082         * build-aux/install-reloc (func_create_wrapper): Also wrap
22083         strerror-override, stat, stat.
22085 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
22087         sys_select: fix FD_ZERO problem on Solaris 10
22088         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
22089         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
22090         to expand to an expression that invoked memset without necessarily
22091         including <string.h>.  The problem was that the first include
22092         defined _SYS_TIME_H, causing the second include to short-circuit.
22093         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
22094         Also, fix what appears to be a cut-and-paste typo, by replacing
22095         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
22096         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
22098         accept: document Solaris 10 type glitch
22099         * doc/posix-functions/accept.texi (accept): Mention that
22100         Solaris 10 'accept' takes void * last arg, not socklen_t *.
22102 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
22104         extern-inline: port to FreeBSD, DragonFly
22105         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
22106         is present if either __DragonFly__ or __FreeBSD__ is defined.
22107         FreeBSD problem reported by Andrey Borzenkov in:
22108         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
22109         Also, worry about __APPLE__ only if __MACH__ is also defined,
22110         as this is more consistent with the rest of gnulib.
22111         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
22112         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
22114 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
22116         regex: Make #if/#ifdef usage consistent for DEBUG
22117         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
22118         of the inconsistent usage of #if and #ifdef as that works with
22119         both Glibc and Gnulib's style.
22121 2014-07-31  Eric Blake  <eblake@redhat.com>
22123         openat-die: use _Noreturn markup
22124         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
22125         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
22126         _Noreturn.
22128 2014-07-30  Eric Blake  <eblake@redhat.com>
22130         test-open: port to cygwin, which lacks Fortify
22131         * tests/test-open.h (ALWAYS_INLINE): New macro.
22132         (__always_inline): Don't abuse internal symbol on non-glibc.
22134 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
22136         localename: Enforce declarations before statements.
22137         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
22138         first statement.
22140 2014-07-18  Jim Meyering  <meyering@fb.com>
22142         test-userspec: don't look up numeric user names
22143         * tests/test-userspec.c: I found a system for which getpwnam("0")
22144         returned a pointer to a non-root user's entry, and that made the
22145         test fail.
22146         (T): Prefix each numeric input with "+", to inhibit lookup.
22148 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
22150         localcharset, localename: MS-Windows support for non-default locales
22151         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
22152         falling back on the default system codepage, try extracting
22153         the codepage from what 'setlocale' returns.  This allows to
22154         take into account changes of the codeset due to non-default
22155         locale set by a previous call to 'setlocale'.
22156         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
22157         Define if not already defined.
22158         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
22159         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
22160         current locale by calling 'setlocale', then converting the
22161         locale name into LCID by calling 'get_lcid'.  This allows to
22162         take into account changes in the current locale from the
22163         default one, in contrast to GetThreadLocale.
22165 2014-07-14  Daiki Ueno  <ueno@gnu.org>
22167         announce-gen: avoid failure when Digest::SHA is installed
22168         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
22169         Digest::SHA1->new in print_checksums fails.
22170         * build-aux/announce-gen (digest_classes): New associative array
22171         for available message digest implementations.
22172         (print_locations): Use it.
22174 2014-07-13  Pádraig Brady  <P@draigBrady.com>
22176         gettext: revert "update macros to version 0.19"
22177         This reverts commit 9b9370ca, as it currently requires that
22178         developers of any project that explicitly uses the gettext module
22179         or implicitly uses it through the utimens-tests or
22180         futimens-tests modules, use gettext >= 0.19.
22181         However there are some stability and availablity issues with
22182         that version at present.  We can reinstate this soon, when stability
22183         is addressed and packages are more readily available.
22185 2014-07-12  Jim Meyering  <meyering@fb.com>
22187         regex: don't deref NULL upon heap allocation failure
22188         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
22189         failure in one more place.
22190         To trigger the segfault, configure grep -with-included-regex,
22191         build it, and run these commands:
22192         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
22193         I discovered this while replying to a private report from
22194         Jens Schleusener about excessive memory consumption by grep
22195         when using a regular expression like the one above.
22197 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
22199         regex: fix memory leak in compiler
22200         Fix by Andreas Schwab in:
22201         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
22202         * lib/regcomp.c (parse_reg_exp): Deallocate partially
22203         constructed tree before returning error.
22205 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
22207         announce-gen: avoid perl warnings
22208         * build-aux/announce-gen: add two minor checks to avoid
22209         "use of uninitialized value" warnings when command-line parameters are
22210         missing.
22212 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
22214         localename: avoid -Wsuggest-attribute={const,pure} warnings
22215         * lib/localename.c (string_has): Tag internal function as pure.
22216         * lib/localename.h (gl_locale_name_default): Tag extern declaration
22217         as const when appropriate.
22219 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
22221         nl_langinfo: Fix last change.
22222         * lib/nl_langinfo.c (includes): Drop redundant include.
22224 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
22226         error: Fix -Wundef warnings in glibc
22227         * lib/error.c [_LIBC]: Define default macros for
22228         glibc.
22229         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
22230         Check _LIBC before STRERROR_R_CHAR_P.
22232         error: Sync from glibc master
22233         * lib/error.c [_LIBC]: Remove INTUSE usage.
22234         (error_tail): Remove unused macro ALLOCA_LIMIT.
22235         Fix potential buffer overflow.  Fix potential NULL dereference
22236         in strcmp.
22238 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
22240         nl_langinfo: fix build under mingw
22241         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
22243 2014-07-09  Andrew D Warshall  <warshall@99main.com>
22245         mountlist: do not classify a bind-mounted dir entry as "dummy"
22246         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
22247         1-argument getmntent() (instead of assuming absence).
22249 2014-07-08  Eric Blake  <eblake@redhat.com>
22251         maint.mk: less syntax-check noise when SIGPIPE is ignored
22252         * top/maint.mk (_sc_header_without_use)
22253         (sc_require_config_h_first): Parse full list.
22255 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
22256             Paul Eggert  <eggert@cs.ucla.edu>
22258         nl_langinfo: CODESET on MS-Windows and more items from localeconv
22259         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
22260         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
22261         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
22262         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
22263         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
22264         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
22265         Include <stdio.h> if Microsoft Windows.
22266         Include <time.h> if !REPLACE_NL_LANGINFO.
22267         (ctype_codeset): New function, taken from rpl_nl_langinfo,
22268         and with improvements for Microsoft Windows.
22269         (rpl_nl_langinfo): Use it.
22270         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
22271         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
22272         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
22273         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
22274         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
22275         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
22276         corresponding values returned by 'localeconv'.  Compute the values
22277         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
22278         'strftime' with a suitable struct tm value.
22280 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22282         Bruno Haible has stepped down as maintainer.
22283         See Karl Berry in:
22284         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
22285         Daiki Ueno has volunteered to maintain libunistring; see:
22286         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
22287         * modules/gen-uni-tables, modules/libunistring:
22288         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
22289         * modules/unicase/base, modules/unicase/cased:
22290         * modules/unicase/empty-prefix-context:
22291         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
22292         * modules/unicase/locale-language, modules/unicase/special-casing:
22293         * modules/unicase/tocasefold, modules/unicase/tolower:
22294         * modules/unicase/totitle, modules/unicase/toupper:
22295         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
22296         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
22297         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
22298         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
22299         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
22300         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
22301         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
22302         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
22303         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
22304         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
22305         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
22306         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
22307         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
22308         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
22309         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
22310         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
22311         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
22312         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
22313         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
22314         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
22315         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
22316         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
22317         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
22318         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
22319         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
22320         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
22321         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
22322         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
22323         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
22324         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
22325         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
22326         * modules/unicase/ulc-casexfrm, modules/unicodeio:
22327         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
22328         * modules/uniconv/u16-conv-to-enc:
22329         * modules/uniconv/u16-strconv-from-enc:
22330         * modules/uniconv/u16-strconv-from-locale:
22331         * modules/uniconv/u16-strconv-to-enc:
22332         * modules/uniconv/u16-strconv-to-locale:
22333         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
22334         * modules/uniconv/u32-strconv-from-enc:
22335         * modules/uniconv/u32-strconv-from-locale:
22336         * modules/uniconv/u32-strconv-to-enc:
22337         * modules/uniconv/u32-strconv-to-locale:
22338         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
22339         * modules/uniconv/u8-strconv-from-enc:
22340         * modules/uniconv/u8-strconv-from-locale:
22341         * modules/uniconv/u8-strconv-to-enc:
22342         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
22343         * modules/unictype/bidicategory-all:
22344         * modules/unictype/bidicategory-byname:
22345         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
22346         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
22347         * modules/unictype/bidiclass-byname:
22348         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
22349         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
22350         * modules/unictype/block-all, modules/unictype/block-list:
22351         * modules/unictype/block-of, modules/unictype/block-test:
22352         * modules/unictype/category-C, modules/unictype/category-Cc:
22353         * modules/unictype/category-Cf, modules/unictype/category-Cn:
22354         * modules/unictype/category-Co, modules/unictype/category-Cs:
22355         * modules/unictype/category-L, modules/unictype/category-LC:
22356         * modules/unictype/category-Ll, modules/unictype/category-Lm:
22357         * modules/unictype/category-Lo, modules/unictype/category-Lt:
22358         * modules/unictype/category-Lu, modules/unictype/category-M:
22359         * modules/unictype/category-Mc, modules/unictype/category-Me:
22360         * modules/unictype/category-Mn, modules/unictype/category-N:
22361         * modules/unictype/category-Nd, modules/unictype/category-Nl:
22362         * modules/unictype/category-No, modules/unictype/category-P:
22363         * modules/unictype/category-Pc, modules/unictype/category-Pd:
22364         * modules/unictype/category-Pe, modules/unictype/category-Pf:
22365         * modules/unictype/category-Pi, modules/unictype/category-Po:
22366         * modules/unictype/category-Ps, modules/unictype/category-S:
22367         * modules/unictype/category-Sc, modules/unictype/category-Sk:
22368         * modules/unictype/category-Sm, modules/unictype/category-So:
22369         * modules/unictype/category-Z, modules/unictype/category-Zl:
22370         * modules/unictype/category-Zp, modules/unictype/category-Zs:
22371         * modules/unictype/category-all, modules/unictype/category-and:
22372         * modules/unictype/category-and-not, modules/unictype/category-byname:
22373         * modules/unictype/category-longname, modules/unictype/category-name:
22374         * modules/unictype/category-none, modules/unictype/category-of:
22375         * modules/unictype/category-or, modules/unictype/category-test:
22376         * modules/unictype/category-test-withtable:
22377         * modules/unictype/combining-class:
22378         * modules/unictype/combining-class-all:
22379         * modules/unictype/combining-class-byname:
22380         * modules/unictype/combining-class-longname:
22381         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
22382         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
22383         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
22384         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
22385         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
22386         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
22387         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
22388         * modules/unictype/digit, modules/unictype/joininggroup-all:
22389         * modules/unictype/joininggroup-byname:
22390         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
22391         * modules/unictype/joiningtype-all:
22392         * modules/unictype/joiningtype-byname:
22393         * modules/unictype/joiningtype-longname:
22394         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
22395         * modules/unictype/mirror, modules/unictype/numeric:
22396         * modules/unictype/property-all, modules/unictype/property-alphabetic:
22397         * modules/unictype/property-ascii-hex-digit:
22398         * modules/unictype/property-bidi-arabic-digit:
22399         * modules/unictype/property-bidi-arabic-right-to-left:
22400         * modules/unictype/property-bidi-block-separator:
22401         * modules/unictype/property-bidi-boundary-neutral:
22402         * modules/unictype/property-bidi-common-separator:
22403         * modules/unictype/property-bidi-control:
22404         * modules/unictype/property-bidi-embedding-or-override:
22405         * modules/unictype/property-bidi-eur-num-separator:
22406         * modules/unictype/property-bidi-eur-num-terminator:
22407         * modules/unictype/property-bidi-european-digit:
22408         * modules/unictype/property-bidi-hebrew-right-to-left:
22409         * modules/unictype/property-bidi-left-to-right:
22410         * modules/unictype/property-bidi-non-spacing-mark:
22411         * modules/unictype/property-bidi-other-neutral:
22412         * modules/unictype/property-bidi-pdf:
22413         * modules/unictype/property-bidi-segment-separator:
22414         * modules/unictype/property-bidi-whitespace:
22415         * modules/unictype/property-byname:
22416         * modules/unictype/property-case-ignorable:
22417         * modules/unictype/property-cased:
22418         * modules/unictype/property-changes-when-casefolded:
22419         * modules/unictype/property-changes-when-casemapped:
22420         * modules/unictype/property-changes-when-lowercased:
22421         * modules/unictype/property-changes-when-titlecased:
22422         * modules/unictype/property-changes-when-uppercased:
22423         * modules/unictype/property-combining:
22424         * modules/unictype/property-composite:
22425         * modules/unictype/property-currency-symbol:
22426         * modules/unictype/property-dash:
22427         * modules/unictype/property-decimal-digit:
22428         * modules/unictype/property-default-ignorable-code-point:
22429         * modules/unictype/property-deprecated:
22430         * modules/unictype/property-diacritic:
22431         * modules/unictype/property-extender:
22432         * modules/unictype/property-format-control:
22433         * modules/unictype/property-grapheme-base:
22434         * modules/unictype/property-grapheme-extend:
22435         * modules/unictype/property-grapheme-link:
22436         * modules/unictype/property-hex-digit:
22437         * modules/unictype/property-hyphen:
22438         * modules/unictype/property-id-continue:
22439         * modules/unictype/property-id-start:
22440         * modules/unictype/property-ideographic:
22441         * modules/unictype/property-ids-binary-operator:
22442         * modules/unictype/property-ids-trinary-operator:
22443         * modules/unictype/property-ignorable-control:
22444         * modules/unictype/property-iso-control:
22445         * modules/unictype/property-join-control:
22446         * modules/unictype/property-left-of-pair:
22447         * modules/unictype/property-line-separator:
22448         * modules/unictype/property-logical-order-exception:
22449         * modules/unictype/property-lowercase, modules/unictype/property-math:
22450         * modules/unictype/property-non-break:
22451         * modules/unictype/property-not-a-character:
22452         * modules/unictype/property-numeric:
22453         * modules/unictype/property-other-alphabetic:
22454         * modules/unictype/property-other-default-ignorable-code-point:
22455         * modules/unictype/property-other-grapheme-extend:
22456         * modules/unictype/property-other-id-continue:
22457         * modules/unictype/property-other-id-start:
22458         * modules/unictype/property-other-lowercase:
22459         * modules/unictype/property-other-math:
22460         * modules/unictype/property-other-uppercase:
22461         * modules/unictype/property-paired-punctuation:
22462         * modules/unictype/property-paragraph-separator:
22463         * modules/unictype/property-pattern-syntax:
22464         * modules/unictype/property-pattern-white-space:
22465         * modules/unictype/property-private-use:
22466         * modules/unictype/property-punctuation:
22467         * modules/unictype/property-quotation-mark:
22468         * modules/unictype/property-radical:
22469         * modules/unictype/property-sentence-terminal:
22470         * modules/unictype/property-soft-dotted:
22471         * modules/unictype/property-space:
22472         * modules/unictype/property-terminal-punctuation:
22473         * modules/unictype/property-test, modules/unictype/property-titlecase:
22474         * modules/unictype/property-unassigned-code-value:
22475         * modules/unictype/property-unified-ideograph:
22476         * modules/unictype/property-uppercase:
22477         * modules/unictype/property-variation-selector:
22478         * modules/unictype/property-white-space:
22479         * modules/unictype/property-xid-continue:
22480         * modules/unictype/property-xid-start:
22481         * modules/unictype/property-zero-width, modules/unictype/scripts:
22482         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
22483         * modules/unictype/syntax-c-whitespace:
22484         * modules/unictype/syntax-java-ident:
22485         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
22486         * modules/unigbrk/u16-grapheme-breaks:
22487         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
22488         * modules/unigbrk/u32-grapheme-breaks:
22489         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
22490         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
22491         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
22492         * modules/unigbrk/uc-is-grapheme-break:
22493         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
22494         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
22495         * modules/unilbrk/u16-width-linebreaks:
22496         * modules/unilbrk/u32-possible-linebreaks:
22497         * modules/unilbrk/u32-width-linebreaks:
22498         * modules/unilbrk/u8-possible-linebreaks:
22499         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
22500         * modules/unilbrk/ulc-possible-linebreaks:
22501         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
22502         * modules/uniname/uniname, modules/uninorm/base:
22503         * modules/uninorm/canonical-decomposition:
22504         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
22505         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
22506         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
22507         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
22508         * modules/uninorm/nfkc, modules/uninorm/nfkd:
22509         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
22510         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
22511         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
22512         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
22513         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
22514         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
22515         * modules/unistdio/base, modules/unistdio/u-printf-args:
22516         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
22517         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
22518         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
22519         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
22520         * modules/unistdio/u16-u16-sprintf:
22521         * modules/unistdio/u16-u16-vasnprintf:
22522         * modules/unistdio/u16-u16-vasprintf:
22523         * modules/unistdio/u16-u16-vsnprintf:
22524         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
22525         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
22526         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
22527         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
22528         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
22529         * modules/unistdio/u32-u32-asnprintf:
22530         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
22531         * modules/unistdio/u32-u32-sprintf:
22532         * modules/unistdio/u32-u32-vasnprintf:
22533         * modules/unistdio/u32-u32-vasprintf:
22534         * modules/unistdio/u32-u32-vsnprintf:
22535         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
22536         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
22537         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
22538         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
22539         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
22540         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
22541         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
22542         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
22543         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
22544         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
22545         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
22546         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
22547         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
22548         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
22549         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
22550         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
22551         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
22552         * modules/unistr/u16-check, modules/unistr/u16-chr:
22553         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
22554         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
22555         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
22556         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
22557         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
22558         * modules/unistr/u16-move, modules/unistr/u16-next:
22559         * modules/unistr/u16-prev, modules/unistr/u16-set:
22560         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
22561         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
22562         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
22563         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
22564         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
22565         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
22566         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
22567         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
22568         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
22569         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
22570         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
22571         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
22572         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
22573         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
22574         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
22575         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
22576         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
22577         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
22578         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
22579         * modules/unistr/u32-next, modules/unistr/u32-prev:
22580         * modules/unistr/u32-set, modules/unistr/u32-startswith:
22581         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
22582         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
22583         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
22584         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
22585         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
22586         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
22587         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
22588         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
22589         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
22590         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
22591         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
22592         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
22593         * modules/unistr/u8-check, modules/unistr/u8-chr:
22594         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
22595         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
22596         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
22597         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
22598         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
22599         * modules/unistr/u8-next, modules/unistr/u8-prev:
22600         * modules/unistr/u8-set, modules/unistr/u8-startswith:
22601         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
22602         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
22603         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
22604         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
22605         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
22606         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
22607         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
22608         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
22609         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
22610         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
22611         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
22612         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
22613         * modules/uniwbrk/base, modules/uniwbrk/table:
22614         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
22615         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
22616         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
22617         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
22618         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
22619         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
22620         * modules/uniwidth/width, modules/utf16-ucs4:
22621         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
22622         * modules/utf8-ucs4-unsafe:
22623         Change maintainer from Bruno Haible to Daiki Ueno.
22624         This is my guess at the libunistring modules; please feel free
22625         to fix if I guessed incorrectly.
22626         * modules/accept4, modules/acl, modules/acos, modules/acosf:
22627         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
22628         * modules/areadlink, modules/array-list, modules/array-mergesort:
22629         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
22630         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
22631         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
22632         * modules/binary-io, modules/bison-i18n, modules/btowc:
22633         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
22634         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
22635         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
22636         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
22637         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
22638         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
22639         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
22640         * modules/closedir, modules/concat-filename, modules/copy-file:
22641         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
22642         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
22643         * modules/csharpcomp-script, modules/csharpexec:
22644         * modules/csharpexec-script, modules/ctype, modules/diffseq:
22645         * modules/dprintf, modules/dprintf-posix, modules/dup:
22646         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
22647         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
22648         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
22649         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
22650         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
22651         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
22652         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
22653         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
22654         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
22655         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
22656         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
22657         * modules/findprog, modules/findprog-lgpl, modules/floor:
22658         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
22659         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
22660         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
22661         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
22662         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
22663         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
22664         * modules/freadable, modules/freadahead, modules/freadptr:
22665         * modules/freadseek, modules/freopen, modules/frexp:
22666         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
22667         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
22668         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
22669         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
22670         * modules/ftello, modules/full-read, modules/full-write:
22671         * modules/fwritable, modules/fwriteerror, modules/gcd:
22672         * modules/get-rusage-as, modules/get-rusage-data:
22673         * modules/getdtablesize, modules/getrusage, modules/gettext:
22674         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
22675         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
22676         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
22677         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
22678         * modules/iconv, modules/iconv-h, modules/iconv_open:
22679         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
22680         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
22681         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
22682         * modules/integer_length_ll, modules/ioctl, modules/isatty:
22683         * modules/isblank, modules/isnand, modules/isnand-nolibm:
22684         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
22685         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
22686         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
22687         * modules/javaexec, modules/javaexec-script, modules/javaversion:
22688         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
22689         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
22690         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
22691         * modules/lib-symbol-visibility, modules/libsigsegv:
22692         * modules/linked-list, modules/linkedhash-list, modules/list:
22693         * modules/localcharset, modules/locale, modules/localeconv:
22694         * modules/localename, modules/lock, modules/log, modules/log-ieee:
22695         * modules/log10, modules/log10-ieee, modules/log10f:
22696         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
22697         * modules/log1p, modules/log1p-ieee, modules/log1pf:
22698         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
22699         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
22700         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
22701         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
22702         * modules/logf, modules/logf-ieee, modules/login_tty:
22703         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
22704         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
22705         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
22706         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
22707         * modules/mbscspn, modules/mbsinit, modules/mbslen:
22708         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
22709         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
22710         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
22711         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
22712         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
22713         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
22714         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
22715         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
22716         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
22717         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
22718         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
22719         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
22720         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
22721         * modules/posix_spawn, modules/posix_spawn-internal:
22722         * modules/posix_spawn_file_actions_addclose:
22723         * modules/posix_spawn_file_actions_adddup2:
22724         * modules/posix_spawn_file_actions_addopen:
22725         * modules/posix_spawn_file_actions_destroy:
22726         * modules/posix_spawn_file_actions_init:
22727         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
22728         * modules/posix_spawnattr_getpgroup:
22729         * modules/posix_spawnattr_getschedparam:
22730         * modules/posix_spawnattr_getschedpolicy:
22731         * modules/posix_spawnattr_getsigdefault:
22732         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
22733         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
22734         * modules/posix_spawnattr_setschedparam:
22735         * modules/posix_spawnattr_setschedpolicy:
22736         * modules/posix_spawnattr_setsigdefault:
22737         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
22738         * modules/pow, modules/powf, modules/printf-frexp:
22739         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
22740         * modules/progname, modules/propername, modules/pselect:
22741         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
22742         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
22743         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
22744         * modules/read, modules/readdir, modules/readlink:
22745         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
22746         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
22747         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
22748         * modules/relocatable-script, modules/remainder:
22749         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
22750         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
22751         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
22752         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
22753         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
22754         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
22755         * modules/setlocale, modules/sh-quote, modules/shutdown:
22756         * modules/signal, modules/signbit, modules/sigpipe:
22757         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
22758         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
22759         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
22760         * modules/snippet/link-warning, modules/snippet/unused-parameter:
22761         * modules/snprintf, modules/snprintf-posix, modules/spawn:
22762         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
22763         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
22764         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
22765         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
22766         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
22767         * modules/streq, modules/strerror_r-posix, modules/striconv:
22768         * modules/striconveh, modules/striconveha, modules/strncat:
22769         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
22770         * modules/sublist, modules/sys_resource, modules/sys_utsname:
22771         * modules/sys_wait, modules/system-posix, modules/system-quote:
22772         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
22773         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
22774         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
22775         * modules/truncf, modules/truncf-ieee, modules/truncl:
22776         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
22777         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
22778         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
22779         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
22780         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
22781         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
22782         * modules/wait-process, modules/waitpid, modules/wcpcpy:
22783         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
22784         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
22785         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
22786         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
22787         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
22788         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
22789         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
22790         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
22791         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
22792         * modules/write, modules/xconcat-filename, modules/xlist:
22793         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
22794         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
22795         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
22796         * modules/y0, modules/y1, modules/yn:
22797         Remove Bruno Haible as maintainer; if he's the sole maintainer,
22798         change the maintainer to 'all'.  Let's hope someone volunteers.
22800 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
22802         mktime: merge #if/#ifdef usage from glibc
22803         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
22804         as that works with both Glibc's and Gnulib's style.
22805         See thread starting at Siddhesh Poyarekar's bug report at:
22806         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
22808 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
22810         git-version-gen: improve option descriptions
22811         * build-aux/git-version-gen: Mention that --prefix and --fallback
22812         have a mandatory argument.
22814 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
22816         regex: fix memory leak in compiler
22817         Fix by Andreas Schwab in:
22818         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
22819         * lib/regcomp.c (parse_expression): Deallocate partially
22820         constructed tree before returning error.
22822         regex: merge patch from libc
22823         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
22824         Combine __USE_BSD and __USE_SVID into __USE_MISC.
22825         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
22827 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22829         acl: port to gcc -Wredundant-decls
22830         From a request by Dmitry Antipov in:
22831         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
22832         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
22833         "#ifndef _GL_ACL_H".
22835 2014-06-11  Bruce Korb  <bkorb@gnu.org>
22836         Jim Meyering  <meyering@fb.com>
22838         parse-duration: eliminate 68-year duration limit
22839         * lib/parse-duration.c: Include "intprops.h".
22840         (TIME_MAX): Rename to MAX_DURATION and define to
22841         TYPE_MAXIMUM(time_t).
22842         * modules/parse-duration (Depends-on): Add intprops.
22843         Reported by Jonas 'Sortie' Termansen.
22845 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22847         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
22848         * modules/pthread (Depends-on): Add 'extensions', as it defines
22849         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
22850         (configure.ac-early): New section.
22851         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
22852         it is no longer needed.
22854 2014-06-14  Pádraig Brady  <P@draigBrady.com>
22856         pthread: define thread-safe macros on some platforms
22857         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
22858         for thread-safe operation on some platforms.
22860 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
22862         regex: don't be multithreaded if USE_UNLOCKED_IO.
22863         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
22864         * lib/regex_internal.h: Do not use multithreaded version if
22865         USE_UNLOCKED_IO is defined.  This is a hack, but it works
22866         around a porting bug with coreutils 8.22 on AIX 7.1.
22868 2014-06-11  Daiki Ueno  <ueno@gnu.org>
22870         gettext: update macros to version 0.19
22871         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
22872         depend on gl_EXTERN_INLINE and drop support for older Bison
22873         versions.
22875 2014-06-10  Pádraig Brady  <P@draigBrady.com>
22877         select,poll: fix console handle check on windows 8
22878         lib/poll.c (IsConsoleHandle): Change from testing the lower
22879         2 bits of the handle to the more expensive but accurate syscall.
22880         lib/select.c: Likewise.
22882 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
22884         select: fix waiting on anonymous pipes on MS-Windows
22885         * lib/select.c (rpl_select): Fall back to polling when select()
22886         indicates there is nothing to check, while due to the timeout not
22887         expiring, activity is indicated on one of the handles.
22888         Also clear the TIMEOUT argument if the timer does expire.
22890 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
22892         times: fix to return non constant value on MS-Windows
22893         * lib/times.c (times): Don't use the process creation time,
22894         rather clock() which on windows returns the number of
22895         clock ticks since the process started.
22897 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
22899         isatty: fix to work on windows 8
22900         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
22901         2 bits of the handle to the more expensive but accurate syscall.
22903 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
22905         maint: fix typo in fdl.texi
22906         * doc/fdl.texi: Fix typo (missing '@').
22907         Somehow this was in fdl.texi but not fdl-1.3.texi.
22909 2014-06-06  Ben Walton  <bdwalton@gmail.com>
22911         mountlist: avoid hasmntopt const type warning on solaris
22912         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
22913         with char * instead of const char *.  Passing the constant string
22914         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
22915         to avoid the warning.
22917 2014-06-04  Eric Blake  <eblake@redhat.com>
22919         maintainer-makefile: delete obsolete code
22920         * top/maint.mk (build_aux): Drop old code, as threatened.
22922         maintainer-makefile: avoid spurious error messages
22923         * top/maint.mk (syntax-check): Guard definition and use of
22924         $(shell) by whether Makefile is present.
22926 2014-06-03  Ben Walton  <bdwalton@gmail.com>
22928         rename: avoid unused-but-set-variable compiler warning
22929         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
22930         it is possible that dst_exists may be set but not used.  Mark it with
22931         the unused attribute to avoid compiler warnings.
22933 2014-06-02  Ben Walton  <bdwalton@gmail.com>
22935         rename: mark a label as potentially unused
22936         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
22937         by marking the out label as potentially unused.
22938         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
22940 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22942         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
22943         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
22945 2014-06-02  Ben Walton  <bdwalton@gmail.com>
22947         acl: apply pure attribute to two functions
22948         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
22949         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
22951 2014-06-01  Pádraig Brady  <P@draigBrady.com>
22953         gnulib-common.m4: add _GL_UNUSED_LABEL
22954         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
22955         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
22957 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
22959         dup2, fcntl, fcntl-h: port to AIX 7.1
22960         This fixes some porting problems discovered when testing the latest
22961         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
22962         in grep but it could be important for other applications.
22963         * doc/posix-functions/dup2.texi:
22964         * doc/posix-functions/fcntl.texi:
22965         * doc/posix-headers/fcntl.texi:
22966         Document AIX bugs.
22967         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
22968         Define to 0 if outside 'int' range.
22969         * m4/dup2.m4 (gl_FUNC_DUP2):
22970         * m4/fcntl.m4 (gl_FUNC_FCNTL):
22971         Check for getdtablesize.  If it's available, test a value just
22972         outside its range instead of testing 1000000.  When cross-compiling,
22973         guess that AIX will fail this improved test.
22975 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
22977         printf, config.rpath: Port to FreeBSD 10.
22978         Problem reported by Tijl Coosemans in:
22979         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
22980         * build-aux/config.rpath (hardcode_libdir_flag_spec)
22981         (hardcode_direct): Simplify FreeBSD configuration.
22982         (library_names_spec): Don't mishandle FreeBSD 10+.
22983         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
22984         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
22985         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
22986         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
22987         Don't mishandle FreeBSD 10+ when cross-compiling.
22989         ftoastr: work around compiler bug in IBM xlc 12.1
22990         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
22991         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
22992         around a compiler bug in IBM xlc 12.1.0.0: it complains
22993         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
22994         _GL_FLT_PREC_BOUND.'
22996 2014-05-30  Kieran Colford  <colfordk@gmail.com>
22998         valgrind-tests: fixed misleading help message
22999         * m4/valgrind-tests.m4: The help message generated by configure
23000         implied that valgrind was disabled by default, which it wasn't.
23001         Adjusted the help message using s/enable/disable/ to clarify.
23003 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
23005         isfinite, isinf, isnan tests: fix for little-endian PowerPC
23006         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
23007         first double of a PowerPC "double double" pair.
23008         * tests/test-isinf.c (test_isinfl): Likewise.
23009         * tests/test-isnan.c (test_long_double): Likewise.
23010         * tests/test-isnanl.h (main): Likewise.
23011         * tests/test-signbit.c (test_signbitl): Likewise.
23013 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
23015         exclude-tests: port to AIX 7.1
23016         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
23017         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
23018         the regex code uses locks.
23020 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
23022         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
23023         Without this fix, Emacs would sometimes call sigprocmask instead
23024         of pthread_sigmask, which is a no-no in multithreaded applications.
23025         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
23026         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
23027         Suppress check for pthread_sigmask working without -lpthread if
23028         the application always links with -lpthread.  Do not link with
23029         $LIBMULTITHREAD if gl_THREADLIB is not defined.
23030         * m4/timer_time.m4 (gl_TIMER_TIME):
23031         Require gl_THREADLIB only if it is defined.  Do not append
23032         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
23034 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
23036         gnulib-tool: wget translations using --no-verbose rather than --quiet
23037         This allows the user to see error messages if any (--quiet hides them)
23038         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
23040 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
23042         gnulib-tool: adjust translation wget to avoid a https redirection
23043         Context: http://translationproject.org/latest/gnulib redirects to
23044            https://translationproject.org/latest/gnulib/
23045         Rationale: if the user falls back to wget, she doesn't have rsync and
23046         is probably in a minimal build environment, where packages such as
23047         'ca-certificates' are missing as well, resulting in a failed (and
23048         difficult to detect since ignored) translation initial fetch.
23049         Consequently let's avoid https if possible, and add the missing
23050         trailing slash.  This also avoids an unnecessary 302 redirection.
23051         * gnulib-tool: Add trailing slash to gnulib URL.
23053 2014-05-22  Pádraig Brady  <P@draigBrady.com>
23055         getlogin_r-tests: check return value rather than errno
23056         * tests/test-getlogin_r.c (main): As per POSIX we should be
23057         verifying the return value from getlogin_r() rather than errno.
23059 2014-05-22  Pádraig Brady  <P@draigBrady.com>
23061         getlogin_r-tests: fix various issues in recent change
23062         * tests/test-getlogin_r.c: Include required headers that were
23063         missed in recent commit eec20b4e.
23064         Also consistently check the errno rather than the return value from
23065         getlogin_r as POSIX only specifies that non zero is returned on error.
23066         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
23068 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
23070         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
23071         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
23072         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
23073         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
23074         * lib/spawn-pipe.c:
23075         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
23076         and then 'int open64(const char *, int, ...);', which means the
23077         declaration for 'open' gets lost if we later '#undef open'.
23078         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
23079         where the compilation reported the non-fatal error "In function
23080         'openat_proc_name' ... warning: implicit declaration of function
23081         'open'".  In this case the error is relatively harmless, but in
23082         other cases it might not be so minor.
23084 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
23086         xalloc: don't potentially generate invalid code for xmemdup calls
23087         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
23088         this function can initialize the newly-allocated storage with new
23089         pointers, which means this function is not malloc-like.  See:
23090         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
23092 2014-05-19  Pádraig Brady  <P@draigBrady.com>
23094         getlogin_r-tests: avoid false failure under sudo/ssh etc.
23095         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
23096         changes from commit 97249cf29 to not depend on environment variables.
23098 2014-05-18  Pádraig Brady  <P@draigBrady.com>
23100         getlogin-tests: avoid false failure under cron
23101         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
23102         since that's not what's under test.  Centos 6 was seen to return
23103         EINVAL for ttyname() when run from cron.
23105 2014-05-16  Jim Meyering  <meyering@fb.com>
23107         mbrtowc.m4: fix a comment typo
23108         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
23109         emitted documentation string.
23111 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23113         mbrlen, mbrtowc: fix bug with empty input
23114         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
23115         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
23116         so this is mainly for documentation.
23117         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
23118         (gl_FUNC_MBRTOWC): Use it.
23119         * tests/test-mbrtowc.c (main): Test for the bug.
23121 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
23123         doc: document mbrtowc and mbrlen problem with empty input
23124         * doc/posix-functions/mbrlen.texi (mbrlen):
23125         * doc/posix-functions/mbrtowc.texi (mbrtowc):
23126         Document portability problem when the input string is empty.  See:
23127         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
23129         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
23130         Problem reported by Eli Zaretskii in:
23131         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
23132         * doc/posix-functions/execl.texi (execl):
23133         * doc/posix-functions/execle.texi (execle):
23134         * doc/posix-functions/execlp.texi (execlp):
23135         * doc/posix-functions/execv.texi (execv):
23136         * doc/posix-functions/execve.texi (execve):
23137         * doc/posix-functions/execvp.texi (execvp):
23138         Mention spawn+exit problem on non-Cygwin Windows platforms.
23140 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
23142         getlogin-tests: avoid false failure under sudo/ssh etc.
23143         * modules/getlogin-tests (configure.ac): Check for ttyname().
23144         * tests/test-getlogin.c (main): Don't depend on environment variables
23145         to correlate with getlogin(), since sudo and ssh etc. can tamper
23146         with the LOGNAME and USER env vars.  Instead lookup the name from
23147         the uid associated with the stdin tty.
23149 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23151         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
23152         These were found when building the latest grep snapshot on IRIX 6.5.
23153         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
23154         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
23155         never used later.
23156         * lib/quotearg.c (quoting_options_from_style):
23157         * lib/xstrtol.c (__xstrtol):
23158         Use enum instead of 0, to pacify IRIX 6.5 cc.
23160 2014-04-18  Pádraig Brady  <P@draigBrady.com>
23162         gitlog-to-changelog: revert inclusion of git-log-fix file
23163         * build-aux/git-log-fix: Delete dummy file.
23164         * modules/gitlog-to-changelog: Don't reference (overwrite)
23165         the project specific git-log-fix file.
23167 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
23169         maint.mk: Relax the copyright check to cater for non FSF projects
23170         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
23171         to not require the "Free" suffix after the copyright years.
23173 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
23175         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
23176         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
23177         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
23178         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
23179         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
23181 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
23183         exclude: port to strict C99
23184         Strict C does not allow converting a function pointer to void *
23185         and vice versa.  Pass a pointer to a function pointer instead.
23186         * lib/exclude.c (add_exclude_file):
23187         Pass the address of the function pointer.
23188         (call_addfn): And deference the address here, to match.
23190 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
23192         regex: do not depend on malloc-gnu
23193         * modules/regex (Depends-on): Remove malloc-gnu.
23194         It's no longer needed, because of the 2012-12-29 patch
23195         "regex: port to hosts where malloc (0) == NULL".
23196         Reported by Nathan Kennedy in:
23197         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
23199 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
23201         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
23202         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
23203         * doc/posix-functions/expl.texi: Mention the workaround.
23205 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
23207         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
23208         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
23209         size to be zero even when the pointer is nonnull.  This
23210         accommodates the use case where P is malloc (0) and *PN is 0 on a
23211         host where malloc (0) yields nonnull.
23213 2014-04-09  Eric Blake  <eblake@redhat.com>
23215         fts: avoid unnecessary strlen calls
23216         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
23218 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23220         fts: avoid unnecessary strlen calls
23221         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
23222         when that can be faster than strlen.
23224 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
23226         fts: avoid unnecessary strlen calls
23227         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
23228         (fts_build): Store the length of the dp->d_name entry in a local variable
23229         instead of calling strlen() several times via the above, removed macro.
23230         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
23231         run by ~4%, yet this reduces the execution time by about a third if run
23232         via "ltrace -c rm -rf some-dir".
23234 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
23236         obstack: Remove ancient NeXTSTEP gcc support conditional
23237         This change will ease merging with glibc.  The "#if ... __NEXT__"
23238         causes a warning with -Wundef which glibc now enables by default.
23239         Problem reported by Will Newton in
23240         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
23241         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
23242         so go with that.
23243         * lib/obstack.h (__extension__):
23245 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
23247         obstack: merge with glibc changes
23248         * lib/obstack.c, lib/obstack.h: Merge from glibc.
23249         This is mostly indenting and commentary changes.
23250         Instances of 'register' have been removed.
23252 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
23254         strftime: wrap macros in "do {...} while(0)"
23255         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
23256         this macro in "do {...} while(0)" to prevent false use as a
23257         single statement, e.g., in an un-braced "{}" else-block.
23258         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
23259         (strftime_case_): Remove 'else' after 'goto' - which was the
23260         only non-fatal, un-braced use of one of the above macros.
23261         Spotted by coverity (NESTING_INDENT_MISMATCH).
23263 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
23265         modechange: avoid memory leaks for invalid octal modes
23266         * lib/modechange.c (mode_compile): During the parsing of
23267         notations like +40, free the 'mc' buffer for invalid mode
23268         strings like +17777 (greater than the maximum octal mode),
23269         =18 (bad octal mode characters) or u=1 ('affected' with
23270         octal modes).
23271         Reproducer, e.g.:
23272             $ valgrind --leak-check=full chmod +17777 file
23273         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
23274         add notations +40, 00440, etc.".
23275         Spotted by coverity (RESOURCE_LEAK).
23277 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23279         gitlog-to-changelog: include a dummy git-log-fix file
23280         Problem reported by Nathan Stratton Treadway in:
23281         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
23282         * build-aux/git-log-fix: New file.
23284 2014-03-13  Jim Meyering  <meyering@fb.com>
23286         gitlog-to-changelog: also include the file, git-log-fix
23287         * modules/gitlog-to-changelog (Files): Add git-log-fix.
23288         Reported by Assaf Gordon.
23290 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
23292         regex: port to OS X 10.8.5 en_US.UTF-8 locale
23293         This fixes a bug when ignoring case and when comparing the
23294         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
23295         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
23296         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
23297         titlecase letter is neither lowercase nor uppercase, but
23298         uppercasing the titlecase letter (via towupper) yields the
23299         uppercase letter, so the two letters should match when ignoring case.
23300         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
23301         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
23302         Don't test whether a character is lowercase before uppercasing it.
23304 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
23306         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
23307         This is basically one of the options Bruno Haible proposed in:
23308         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
23309         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
23310         * lib/stdint.in.h: Use it.
23311         * modules/stdint (Depends-on): Add sys_types.
23313 2014-02-26  Pádraig Brady  <P@draigBrady.com>
23315         parse-datetime: fix crash or infloop in TZ="" parsing
23316         * lib/parse-datetime.y (parse_datetime): Break out of the
23317         TZ="" parsing loop once the second significant " is found.
23318         Also skip over any subsequent whitespace to be consistent
23319         with the non TZ= case.
23320         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
23322 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
23324         savedir: new symbol for fast-read version
23325         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
23326         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
23327         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
23328         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
23330 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
23332         unistd: port readlink to Mac OS X 10.3.9
23333         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
23334         around self-include problem in Mac OS X 10.3.9 when combined with
23335         readlink module.  Problem reported by Klaus Zietler in
23336         <http://bugs.gnu.org/16825>.
23338 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
23340         diffseq: remove TOO_EXPENSIVE heuristic
23341         Problem with diffutils reported by Vincent Lefevre in
23342         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
23343         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
23344         Although appropriate for circa-1993 hardware, these days the heuristic
23345         seems to be more trouble than it's worth.
23346         * lib/diffseq.h: Modernize citations.
23347         (struct context): Remove member too_expensive.
23348         All uses changed.
23349         (struct partition): Remove members lo_minimal, hi_minimal.
23350         All uses changed.
23351         (diag, compareseq): Remove arg find_minimal.  All uses changed.
23352         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
23353         1993 to make 'diff' run faster (but not as well) on large inputs.
23354         These days, computers are fast enough that it's typically better
23355         to run slower but more accurately.
23356         * lib/fstrcmp.c: Remove duplicate comment.
23357         * lib/fstrcmp.c (strcmp_bounded):
23358         * lib/git-merge-changelog.c (compute_differences):
23359         Adjust to diffseq.h changes.
23360         * NEWS: Document the change.
23362         savedir: simplify by using stpcpy
23363         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
23364         (streamsavedir): Use stpcpy instead.
23365         * modules/savedir (Depends-on): Add stpcpy.
23367 2014-02-21  Pádraig Brady  <P@draigBrady.com>
23369         spawn: fix link error on uclibc
23370         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
23371         to incorporate -lrt if needed (on uclibc for example).
23372         * modules/posix_spawn: Reference the substituted LIB.
23374 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
23375         timer: fix uClibc detection of threading
23376         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
23377         enabled in uClibc.
23379 2014-02-21  Eric Blake  <eblake@redhat.com>
23381         maintainer-makefiles: provide AC_PROG_SED for older autoconf
23382         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
23384 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
23386         exclude: add support for posix regexps
23388         This commit adds support for POSIX extended regular expressions
23389         and fixes a long-standing memory leak (pattern buffer was never
23390         freed).  It also implements a new interface function to read
23391         exclude patterns from a FILE, which passes an additional parameter
23392         to its callback function, thereby allowing to preserve its state
23393         between invocations.
23395         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
23396         (pattern_buffer): New struct.
23397         (exclude): New member patbuf.
23398         (exclude_add_pattern_buffer): New function.
23399         (free_exclude_segment): Free regexps.
23400         (free_exclude): Free allocated pattern buffers.
23401         (exclude_patopts): New function.
23402         (file_pattern_matches): Use exclude_patopts.
23403         (add_exclude): support regexps.
23404         (add_exclude_fp): New function.
23405         (add_exclude_file): Rewrite using add_exclude_fp.
23406         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
23407         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
23408         (add_exclude_fp)
23409         (add_exclude_file): Rewrite using add_exclude_fp.
23410         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
23411         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
23412         (add_exclude_fp)
23413         (exclude_add_pattern_buffer): New prototypes.
23414         * modules/exclude: Depends on regex and filename.
23416 2014-02-20  Eric Blake  <eblake@redhat.com>
23418         maintainer-makefiles: use $(SED) for syntax check
23419         * modules/maintainer-makefile (configure.ac): Check for sane sed.
23420         * top/maint.mk: Change sed to $(SED).
23422 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
23423             Paul Eggert  <eggert@cs.ucla.edu>
23425         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
23426         Patch based on an idea by Dick Streefland in
23427         <https://savannah.gnu.org/patch/?7892>.
23428         * NEWS: Document this.
23429         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
23430         (direntry_t, comparison_function): New types.
23431         (direntry_cmp_name): New function.
23432         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
23433         (streamsavedir, savedir): New arg OPTION.
23434         (streamsavedir): Simplify memory allocation.
23435         (fdsavedir): Remove.
23436         * lib/savedir.h (enum savedir_option): New type.
23437         (streamsavedir, savedir): New arg OPTION.
23438         (fdsavedir): Remove.
23440 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
23442         file-type: add support for doors and other less-common file types
23443         Problem with S_ISDOOR reported by Rich Burridge.
23444         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
23445         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
23446         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
23448 2014-01-23  Eric Blake  <eblake@redhat.com>
23450         pthread: work around winpthread header pollution on mingw
23451         * lib/time.in.h: Move pthread workarounds...
23452         * lib/pthread.in.h: ...here.
23453         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
23454         detect macro pollution on mingw.
23455         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
23457 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
23459         qacl: check for fchmod
23460         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
23461         and qset-acl.c both use HAVE_FCHMOD.
23463 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
23465         fdopen-tests: port to Tru64
23466         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
23467         descriptor that is not open, as POSIX doesn't specify the
23468         resulting behavior and the test does not work on Tru64.
23469         Problem reported by Steven M. Schweda in:
23470         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
23472         stdalign: port to HP-UX compilers
23473         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
23474         if __HP_cc or __HP_aCC are nonzero.
23476 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
23478         strtoimax: port to platforms lacking 'long long'
23479         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
23480         check whether strtoll is declared, which causes the C file to
23481         wrongly report an error.  Problem reported by Steven M. Schweda in:
23482         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
23483         * lib/strtoimax.c (strtoull):
23484         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
23485         (strtoll): Declare only if HAVE_LONG_LONG_INT.
23487 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
23489         relocatable-perl: fix texi syntax
23490         * doc/relocatable-maint.texi: Escape braces.
23492 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
23494         relocatable-perl: like relocatable-script, but for Perl scripts
23495         * build-aux/relocatable.pl.in: Add.
23496         * doc/relocatable-maint.texi: Add documentation.
23497         * modules/relocatable-perl: Add.
23499 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
23501         tests: fix export bug in previous patch
23502         Problem reported by Jim Meyering.
23503         * tests/init.sh (re_shell): New var, which is exported instead of
23504         re_shell_.
23506         tests: simplify porting to Solaris 10 /bin/sh
23507         Some test cases in 'grep' need a shell that groks '$(';
23508         export re_shell_ for their benefit.  Problem reported for 'grep'
23509         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
23510         * tests/init.sh (re_shell_): Export if it's used.
23512 2014-01-06  Eric Blake  <eblake@redhat.com>
23514         md5, sha1, sha256, sha512: support older autoconf
23515         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
23516         for autoconf < 2.63b.
23518         include_next: port to autoconf 2.63
23519         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
23521 2014-01-04  Jim Meyering  <meyering@fb.com>
23523         maint: add a gnulib-local rule to keep non-ascii out of .texi files
23524         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
23525         so that "make sc_maint" will ding anyone who puts non-ascii
23526         in any of gnulib's .texi files.
23528 2014-01-03  Jim Meyering  <meyering@fb.com>
23530         freadable, fwritable, fwriting: declare with the "pure" attribute
23531         * lib/freadable.h (freadable): Declare with the "pure" attribute.
23532         * lib/fwritable.h (fwritable): Likewise.
23533         * lib/fwriting.h (fwriting): Likewise.
23534         Suggested by Bruno Haible.
23536         maint.mk: adapt openat.h-include-without-use test
23537         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
23538         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
23539         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
23540         With this change, running "make sc_maint" in gnulib's top-level
23541         directory now passes for me.
23543 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
23545         doc: use ASCII in .texi files where UTF-8 isn't needed
23546         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
23547         * doc/posix-functions/setkey.texi, doc/regex.texi:
23548         Use ASCII input, not UTF-8.
23550 2014-01-02  Jim Meyering  <meyering@fb.com>
23552         freading: declare with the "pure" attribute
23553         * lib/freading.h (freading): Declare with the "pure" attribute.
23555         manywarnings: remove -Wmudflap
23556         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
23557         it is no longer supported in gcc-4.9-to-be.
23559 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
23561         relocatable-script: remove unused code
23562         Problem reported by Reuben Thomas in:
23563         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
23564         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
23566 2014-01-01  Jim Meyering  <meyering@fb.com>
23568         maint: fix public-submodule-commit to work with newer git
23569         * top/maint.mk (public-submodule-commit): Remove excess quoting.
23570         We were over-quoting the test arguments, and somewhere prior to
23571         version 1.8.5.2.229, git stopped removing those excess quotes,
23572         which made the test fail, since the unexpanded strings would
23573         always differ; using GIT_TRACE=1 confirmed that the git merge-base
23574         command wasn't even being run.
23576 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
23578         doc: update main copyright year
23579         * doc/gnulib.texi: Update copyright date.
23581 2014-01-01  Eric Blake  <eblake@redhat.com>
23583         version-etc: new year
23584         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
23585         * all files: run 'make update-copyright'
23587 2013-12-24  Eric Blake  <eblake@redhat.com>
23589         passfd: give nicer error for recvfd at eof
23590         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
23591         * tests/test-passfd.c (main): Enhance test to cover this.
23593 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
23595         gettimeofday: port recent C++ fix to Emacs
23596         Without this further patch, Emacs won't build due to
23597         the portcheck failing.  Also, this simplifies the patch a bit.
23598         * lib/time.in.h (localtime, gmtime): Don't replace unless
23599         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
23600         * lib/time.in.h (localtime, gmtime):
23601         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
23602         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
23603         * modules/time (time.h):
23604         Don't worry about the possibility of localtime and gmtime
23605         being absent; they're present in all C libraries we know about.
23606         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
23607         Don't assume sys_time is present and has been initialized.
23608         Instead, use a hack that should work even if it hasn't been.
23609         Don't use a portcheck for gmtime or localtime; this supports
23610         the hack.
23611         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
23613 2013-12-17  John W. Eaton  <jwe@gnu.org>
23615         gettimeofday: fix C++ crosscompilation
23617         Never replace gmtime and localtime by macros when compiling with
23618         C++, this prevents <ctime> from being included.
23620         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
23621         define gmtime and localtime as preprocessor macros.  Instead
23622         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
23623         REPLACE_LOCALTIME substitutions.
23624         * lib/time.in.h: Declare gmtime and localtime when needed.
23625         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
23626         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
23627         * modules/time: Depend on gettimeofday, and substitute the above
23628         variables in time.h.
23630 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
23632         qacl: port to Windows better
23633         See Eli Zaretskii in
23634         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
23635         * lib/file-has-acl.c (acl_access_nontrivial):
23636         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
23637         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
23639 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
23641         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
23642         * lib/gl_openssl.h: Cast void pointers to a specific type.
23644 2013-12-07  Pádraig Brady  <P@draigBrady.com>
23646         open-tests: fix build failure with -Werror=old-style-declaration
23647         * tests/test-open.h: Reorder the inline to avoid the issue.
23649 2013-12-07  Pádraig Brady  <P@draigBrady.com>
23651         md5, sha1, sha256, sha512: fix link error with partial libcrypto
23652         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
23653         init time, so that if early checks find crypto routines,
23654         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
23655         avoiding link failures.
23657 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
23659         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
23660         This provides a new way to specify the default for
23661         gl_CRYPTO_CHECK, one that is reflected in the --help message.
23662         Emacs uses this, as well as the old way.
23663         This attempts to implement a suggestion by Pádraig Brady in
23664         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
23665         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
23666         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
23668         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
23669         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
23670         Add support for a new option, --with-openssl=auto, which causes
23671         the library to be used if available and silently ignored if not.
23672         Add support to allow configure.ac to specify its own
23673         default, by setting with_openssl_default before invoking gl_INIT.
23675 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
23677         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
23678         Problem reported by Daiki Ueno in:
23679         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
23680         * tests/test-open.h (__always_inline):
23681         New macro, if not already defined.
23682         (test_open): Use it.
23684 2013-12-04  Eric Blake  <eblake@redhat.com>
23686         include_next: minimize code duplication
23687         * modules/include_next (Depends-on): Add absolute-header.
23688         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
23689         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
23691 2013-12-04  Pádraig Brady  <P@draigBrady.com>
23693         getcwd: fix compile error in configure check
23694         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
23696 2013-12-04  Pádraig Brady  <P@draigBrady.com>
23698         regex: suppress core dumps from detection code
23699         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
23700         to suppress core dumps that may well occur on glibc systems.
23701         These core dumps might not be cleaned up automatically, or could
23702         trigger some system core dump handling logic.
23704 2013-12-03  Pádraig Brady  <P@draigBrady.com>
23706         md5, sha1, sha256, sha512: support mandating use of openssl
23707         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
23708         description, to list the now 3 separate options.  also don't
23709         mention the default=no, since this is implicit given the option
23710         is described as --with-openssl rather than --without-openssl.
23711         If projects change the default they're free to document that.
23712         with --with-openssl[=yes] we now error out when the specified
23713         hash algorithm is not available in libcrypto.
23715 2013-12-03  Ivailo  <xakepa10@gmail.com>
23717         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
23718         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
23719         -Wformat-nonliteral checks, as these edge cases are part of the test.
23721 2013-12-03  Eric Blake  <eblake@redhat.com>
23723         regex: avoid glibc deadlock during configure
23724         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
23725         glibc bug 15078 in turn triggers bug 16159.
23726         Reported by Michal Privoznik.
23728 2013-12-02  Pádraig Brady  <P@draigBrady.com>
23730         md5, sha1, sha256, sha512: use openssl routines if available.
23731         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
23732         routines will be used if available, requiring apps to link @LIB_CRYPTO@
23733         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
23734         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
23735         in the standard system location.
23736         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
23737         * m4/sha256.m4: Likewise with SHA256.
23738         * m4/sha512.m4: Likewise with SHA512.
23739         * m4/md5.m4: Likewise with MD5.
23740         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
23741         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
23742         * lib/sha256.h: Likewise with SHA256.
23743         * lib/sha512.h: Likewise with SHA512.
23744         * lib/md5.h: Likewise with MD5.
23745         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
23746         * lib/sha256.c: Likewise with SHA256.
23747         * lib/sha512.c: Likewise with SHA512.
23748         * lib/md5.c: Likewise with MD5.
23749         * modules/crypto/sha1 (Link:): Add the new optional lib.
23750         (Depends-on:): Add dependency on extern-inline.
23751         * modules/crypto/sha256: Likewise.
23752         * modules/crypto/sha512: Likewise.
23753         * modules/crypto/md5: Likewise.
23754         * modules/crypto/sha1-tests: Reference the lib here too.
23755         * modules/crypto/md5-tests: Likewise.
23756         * modules/crypto/gc-des-tests: Likewise.
23757         * modules/crypto/gc-hmac-md5-tests: Likewise.
23758         * modules/crypto/gc-hmac-sha1-tests: Likewise.
23759         * modules/crypto/gc-hmac-sha256-tests: Likewise.
23760         * modules/crypto/gc-hmac-sha512-tests: Likewise.
23761         * modules/crypto/gc-md5-tests: Likewise.
23762         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
23763         * modules/crypto/gc-sha1-tests: Likewise.
23764         * modules/crypto/gc-tests: Likewise.
23765         * modules/crypto/hmac-md5-tests: Likewise.
23766         * modules/crypto/hmac-sha1-tests: Likewise.
23767         * modules/crypto/hmac-sha256-tests: Likewise.
23768         * modules/crypto/hmac-sha512-tests: Likewise.
23770 2013-11-29  RV1971  <rv1971@web.de>
23772         base64: (trivial) fix compilation regression on some compilers
23773         * lib/base64.c: Don't return the void function,
23774         instead split to a separate return statement.
23776 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
23778         ignore-value: revert previous code change
23779         * lib/ignore-value.h (ignore_value): Use __extension__ and
23780         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
23781         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
23782         Change the comment to try to explain this better.
23784 2013-11-27  Pádraig Brady  <P@draigBrady.com>
23786         selinux-h: improve stub types and add more stub functions
23788         * lib/se-selinux.in.h: Change security_context_t to a typedef
23789         rather than a define, as it's a pointer type and so is better
23790         as a typedef to avoid issues declaring multiple variables
23791         with the comma operator.  Also add stub for string_to_security_class().
23792         * lib/se-context.in.h: Add stub functions for
23793         context_{type,range,role,user}_get().
23795 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
23797         ignore-value: prefer GCC version back through 2.0
23798         The code didn't match the comments, so I did a bit of software
23799         archaeology.  GCC 2.0 seems to support __extension__ and
23800         __typeof__, so fix both code and comments to use 2.0.
23801         * lib/ignore-value.h (ignore_value): Use __extension__ and
23802         __typeof__ for GCC 2.0 through 3.3, too.
23804 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
23806         pty: Activate the signature wrapper of forkpty.
23807         The intended preprocessor macro HAVE_FORKPTY is
23808         never defined, yet `lib/forkpty.c' depends on it.
23810         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
23811         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
23812         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
23814 2013-11-18  Jim Meyering  <meyering@fb.com>
23815         and Paul Eggert  <eggert@cs.ucla.edu>
23817         quotearg: don't attempt to store 1 << 31 into an "int"
23818         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
23819         gcc's new -fsanitize=undefined and running its tests triggered some
23820         new test failures due to undefined behavior, all with this diagnostic:
23821           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
23822             cannot be represented in type int
23823         Rather than shifting "1" left to form a mask, shift the bits right and
23824         simply use "1" as the mask.
23826 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
23828         error: depend on stdio
23829         Problem reported by Nikos Mavrogiannopoulos in
23830         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
23831         * modules/error (Depends-on): Add stdio.
23833 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
23835         * doc/relocatable-maint.texi (Supporting Relocation): Improve
23836         wording.
23837         Reported by Reuben Thomas <rrt@sc3d.org>.
23839 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
23841         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
23842         New function and macro, to work around _DARWIN_C_SOURCE problem.
23843         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
23845 2013-11-11  Pádraig Brady  <P@draigBrady.com>
23847         base64: provide a fast path for encoding well sized buffers
23848         Avoid conditionals in the base64 encoding loop,
23849         which was seen to give 60% better throughput.
23850         * lib/base64.c (base64_encode_fast): A new function to be called
23851         when we don't want to NUL terminate, and we have enough space
23852         in the output to encode the given input.
23853         (base64_encode): Call the _fast() version when appropriate.
23854         Also remove a redundant mask with 0x3F on the first encoded byte.
23856 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
23858         extern-inline: port better to OS X 10.9
23859         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
23860         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
23861         OS X 10.9, except for g++ where the bug is still present.
23862         See <http://trac.macports.org/ticket/41033>.
23864 2013-11-08  Eric Blake  <eblake@redhat.com>
23866         fpending: fix regression on DragonFly BSD
23867         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
23868         * lib/fpending.h (__fpending): Don't declare twice.
23869         Reported by GW in
23870         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
23872 2013-11-05  Jim Meyering  <meyering@fb.com>
23874         hash: relax license to LGPLv2+, for libguestfs
23875         * modules/hash (License): Change from GPL to LGPLv2+.
23877 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23879         intprops: port to Oracle Studio c99
23880         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
23881         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
23883 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
23885         obstack: pacify HP C
23886         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
23887         warning "conversion from pointer to smaller integer" from HP
23888         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
23889         C89 or later nowadays, so cast to void instead of int.  Privately
23890         reported by H.Merijn Brand.  Also, change header to match glibc's,
23891         to make checking against glibc easier.
23893 2013-10-29  Jim Meyering  <meyering@fb.com>
23895         maint.mk: prefer gpgv2 over gpgv
23896         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
23897         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
23898         Reported by Gary Vaughan.
23900 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23902         isnan: port to VAX
23903         Reported by John Klos for NetBSD-5/VAX in
23904         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
23905         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
23906         (FUNC): Use it.
23908 2013-10-28  Jim Meyering  <meyering@fb.com>
23910         gnulib-tool: protect against CDPATH
23911         * gnulib-tool: Many "cd" built-in functions print a directory name
23912         to stdout when CDPATH is set, e.g.,
23913           $ bash -c 'CDPATH=/; cd tmp'
23914           /tmp
23915         Unset it, when possible.  Prompted by a comment from Bruce Korb.
23917         maint.mk: restore functionality removed by recent change...
23918         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
23919         the context of a shallow-cloned gnulib repository: "git describe"
23920         would fail in such a directory.  However, that change made it so
23921         the reported gnulib revision no longer includes the version number
23922         or a commit count, even when run from a full clone.
23923         * top/maint.mk (gnulib-version): Use the full "git describe"
23924         output when possible, e.g., the form above, rather than the
23925         abbreviated, no-tag, no-commit-count string, and fall back to
23926         using a 10-byte hash, rather than the default minimal-length
23927         hash prefix, since while the minimal-length one may be fine today,
23928         it is likely not to be unique for very long.
23930 2013-10-26  Jim Meyering  <meyering@fb.com>
23932         maint.mk: fix "release" target to build _version
23933         This fixes a bug in README-release whereby following the outlined
23934         steps, one would publish a tarball whose programs would report
23935         --version output not consistent with the package version number.
23936         This bug caused grep-2.15 to produce a grep program whose
23937         --version option made it print 2.14.56-1e3d rather than 2.15.
23938         * top/maint.mk (release): Making this target build "_version"
23939         ensures that the new version number is reflected in configure.
23941 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
23943         install-reloc: Support multi-binary installation.
23944         * build-aux/install-reloc: Support installing multiple programs in
23945         one invocation, as done by Automake starting with commit
23946         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
23947         Haible <bruno@clisp.org>, archived at
23948         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
23949         Reported by Sylvain <beuc@gnu.org>.
23951 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23953         selinux-h: Really build without selinux when library is missing.
23954         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
23955         continue without selinux, as already told in the warning message.
23957 2013-10-21  Jim Meyering  <meyering@fb.com>
23959         regex: also remove dependency on HAVE_WCSCOLL
23960         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
23962 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
23964         xfreopen: Fix typo. s/frepoen/freopen/
23965         * lib/xfreopen.c: Fix description.
23966         * modules/xfreopen: Likewise.
23968 2013-10-21  Jim Meyering  <meyering@fb.com>
23970         regex: don't depend on wcscoll
23971         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
23972         It is no longer used.
23974 2013-10-20  Jim Meyering  <meyering@fb.com>
23976         error: add the printf attribute to a static function
23977         * lib/error.c (error_tail): Add the printf attribute, to placate
23978         gcc's -Werror=suggest-attribute=format option.
23980 2013-09-30  Jim Meyering  <meyering@fb.com>
23982         fpending, obstack, strerror-override: use pure+const function attrs
23983         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
23984         * lib/obstack.c (_obstack_allocated_p): Likewise.
23985         * lib/obstack.h (_obstack_memory_used): Likewise.
23986         (_obstack_memory_used): Likewise.
23987         * lib/strerror-override.h (strerror_override): Declare with
23988         the "const" attribute.
23990 2013-10-18  Eric Blake  <eblake@redhat.com>
23992         extern-inline: make safe for -Wundef usage
23993         Reported by Vladimir 'phcoder' Serbinenko in
23994         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
23995         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
23997 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
23999         mkfifo-tests, etc.: allow HP-UX 11.11 bug
24000         Problem reported by Daniel Richard G. in
24001         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
24002         * doc/posix-functions/mkfifo.texi (mkfifo):
24003         * doc/posix-functions/mkfifoat.texi (mkfifoat):
24004         * doc/posix-functions/mknod.texi (mknod):
24005         * doc/posix-functions/mknodat.texi (mknodat):
24006         Document the HP-UX 11.11 bug.
24007         * tests/test-mkfifo.h (test_mkfifo):
24008         Allow the HP-UX 11.11 bug.
24010 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
24012         acl: allow cross-compilation to Gentoo
24013         Problem reported by Gabriel Marcano in
24014         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
24015         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
24016         test only whether it links.
24018 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24020         mgetgroups: remove dependency on realloc-gnu
24021         The dependency violates the comment in realloc-gnu, which
24022         says that tests can't depend on realloc-gnu; some tests depend
24023         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
24024         Problem reported by Daniel Richard G. in
24025         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
24026         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
24027         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
24028         not realloc-gnu.
24030 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
24032         regex-tests: port to HP-UX 11.11
24033         Problem reported by Daniel Richard G. in
24034         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
24035         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
24037 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24039         verify: document some 'assume' pitfalls
24040         * doc/verify.texi (Compile-time Assertions):
24041         Mention that 'assume (E)' can sometimes slow things down.
24042         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
24044 2013-10-10  Eric Blake  <eblake@redhat.com>
24046         strtoumax: fix typo in previous commit.
24047         * modules/strtoumax (Depends-on): Fix typo.
24048         * modules/strtoimax (Depends-on): Likewise.
24050 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24052         strtoumax: port to Solaris 8
24053         This problem was introduced in the recent HP-UX patch.
24054         Reported by Tom G. Christensen in
24055         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
24056         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
24057         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
24059 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
24061         strtoimax, strtoumax: port to HP-UX 11.11
24062         Problem reported by Daniel Richard G. in
24063         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
24064         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
24065         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
24066         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
24067         REPLACE_STRTOUMAX.
24068         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
24069         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
24070         Replace the function if defined as a macro but not as a function.
24071         * modules/inttypes-incomplete (inttypes.h): Substitute
24072         REPLACE_STRTOUMAX.
24073         * modules/strtoumax (configure.ac): Replace strtoumax if
24074         REPLACE_STRTOUMAX.
24076 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24078         strtoimax: port to HP-UX 11.11
24079         Problem reported by Daniel Richard G.
24080         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
24081         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
24082         they might clash with inttypes.h.
24084 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
24086         New module 'count-trailing-zeros'.
24087         * MODULES.html.sh: Mention it.
24088         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
24089         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
24090         * modules/count-trailing-zeros-tests:
24091         * tests/test-count-trailing-zeros.c:
24092         New files.
24094         count-leading-zeros: port to MSC; support types wider than 64 bits
24095         The ideas behind the MSC port are stolen from Emacs.
24096         * lib/count-leading-zeros.h:
24097         Don't include verify.h: it's no longer needed, as types wider than
24098         64 bits are now supported.
24099         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
24100         performance with MSC.  All uses changed.  Do not assume that TYPE
24101         has at most 64 bits.
24102         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
24103         All uses changed.  Fold the subtraction from 31 into the table.
24105         count-one-bits: port to MSC; support types wider than 64 bits
24106         The ideas behind the MSC port are stolen from Emacs.
24107         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
24108         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
24109         Don't include verify.h: it's no longer needed, as types wider than
24110         64 bits are now supported.
24111         (COUNT_ONE_BITS_GENERIC): New macro.
24112         (popcount_supported) [_MSC_VER]: New inline function.
24113         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
24114         performance with MSC.  All uses changed.  Do not assume that TYPE
24115         has at most 64 bits.
24116         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
24118 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
24120         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
24121         * lib/mountlist.c (read_file_system_list): fix leak of directory
24122         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
24124 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
24126         tests: improve diagnostic when an assertion fails
24127         * tests/macros.h (ASSERT): Report the assertion that failed.
24129 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
24131         verify: new macro 'assume'
24132         This is taken from Emacs, and should be generally useful.
24133         * doc/verify.texi (assume): Document it.
24134         * lib/verify.h (assume): New macro.
24135         (__has_builtin): Expand to 0 if not defined.
24137 2013-09-26  Eric Blake  <eblake@redhat.com>
24139         dup2, dup3: work around another cygwin crasher
24140         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
24141         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
24142         * tests/test-dup2.c (main): Likewise.
24143         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
24144         * lib/dup3.c (dup3): Likewise.
24145         * doc/posix-functions/dup2.texi (dup2): Document it.
24146         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24148         getdtablesize: work around cygwin issue
24149         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
24150         * modules/getdtablesize (configure.ac): Build replacement.
24151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
24152         * modules/unistd (Makefile.am): Expose the witness.
24153         * lib/unistd.in.h (getdtablesize): Declare replacement.
24154         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
24155         * tests/test-getdtablesize.c (main): Test it.
24156         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
24158 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
24160         pmccabe2html: escaping of special characters
24161         Escape all '<', '>', and '&' in HTML output.
24162         * build-aux/pmccabe2html (html_fnc): Call gsub()
24163         instead of sub() to capture all '<', '>', and '&'.
24164         Neither of '<' and '>' is special in a regexp,
24165         so first arguments to gsub() are corrected. Also,
24166         in replacement strings, ampersand must be escaped.
24167         Finally, '&' must be handled first, then '<' and '>'.
24169 2013-09-24  Eric Blake  <eblake@redhat.com>
24171         manywarnings: enable nicer gcc warning messages
24172         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
24173         some -f options for optimal warnings.
24175 2013-09-21  Jim Meyering  <meyering@fb.com>
24177         timespec: use the new TIMESPEC_RESOLUTION in a few more places
24178         * lib/timespec-add.c (timespec_add): Also replace 999999999
24179         with TIMESPEC_RESOLUTION - 1.
24180         * lib/timespec-sub.c (timespec_sub): Likewise.
24182 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
24184         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
24185         Problem reported by Dagobert Michelsen via Eric Blake in
24186         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
24187         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
24188         not AC_COMPILE_IFELSE.
24190 2013-09-23  Eric Blake  <eblake@redhat.com>
24192         configmake: support new --runstatedir option
24193         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
24194         even if autoconf was too old to provide the command line option.
24195         * modules/configmake (Makefile.am): Propagate it to .h file.
24197 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24199         ctype, string: depend on extern-inline
24200         This is needed to complete the recent OS X fixes.
24201         Also, fix related documentation as suggested by Eric Blake.
24202         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
24203         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
24204         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
24205         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
24206         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
24207         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
24208         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
24209         * doc/posix-functions/toupper.texi:
24210         List the 'ctype' gnulib module.
24211         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
24212         * doc/posix-functions/strncpy.texi:
24213         List the 'string' gnulib module.
24214         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
24215         Add string.
24216         * modules/ctype, modules/string (Depends-on): Add extern-inline.
24218 2013-09-19  Pádraig Brady  <P@draigBrady.com>
24220         userspec: support optional parameters to parse_user_spec()
24221         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
24222         then avoid group processing and treat the full spec as a user.
24223         (parse_with_separator): Allow the USERNAME and GROUPNAME to
24224         be optional params (NULL), in which case they're ignored.
24226 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
24228         timespec: new function make_timespec, and new constants
24229         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
24230         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
24231         (make_timespec): New function.
24232         * lib/dtotimespec.c (dtotimespec):
24233         * lib/timespec-add.c (timespec_add):
24234         * lib/timespec-sub.c (timespec_sub):
24235         * lib/utimens.c (validate_timespec):
24236         * lib/utimensat.c (rpl_utimensat):
24237         Use these new constants and functions.
24239         stdio: OS X port of putc_unlocked + extern inline
24240         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
24241         * doc/posix-functions/putc_unlocked.texi:
24242         * doc/posix-functions/putchar_unlocked.texi:
24243         Document this portability problem.
24245         signal: OS X port of sigaddset etc. + extern inline
24246         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
24247         (sigismember): #undef on problematic Apple platforms.
24248         * doc/posix-functions/sigaddset.texi:
24249         * doc/posix-functions/sigdelset.texi:
24250         * doc/posix-functions/sigemptyset.texi:
24251         * doc/posix-functions/sigfillset.texi:
24252         * doc/posix-functions/sigismember.texi:
24253         Document this portability problem.
24255         extern-inline: do not always suppress extern inline on OS X
24256         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
24257         extern inline on Apple only if the particular compile-time
24258         configuration is known to have the problem.
24259         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
24260         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
24261         other Gnulib modules.
24263         extern-inline: document fixes for ctype and wctype macros
24264         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
24265         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
24266         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
24267         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
24268         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
24269         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
24270         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
24271         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
24272         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
24273         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
24274         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
24275         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
24276         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
24277         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
24278         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
24279         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
24280         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
24281         * doc/posix-functions/strncpy.texi:
24282         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
24283         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
24284         Document that Gnulib fixes portability problems with these
24285         functions on OS X 10.8 and earlier when called from plain inline
24286         or extern inline functions.
24288 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
24290         fflush, freadahead, fseeko: Fix for Android
24291         Suggested by Bruno Haible in:
24292         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
24293         * lib/stdio-impl.h: Use local __sfileext definition.
24295 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
24297         pmccabe2html: Portability to other awk versions.
24298         The functions systime() and strftime() are available
24299         in Gawk only.  Properly close two HTML-tags 'style'
24300         and 'span'.
24301         * build-aux/pmccabe2html (BEGIN): Store timing
24302         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
24303         systime() in HTML_COMMENT.
24304         (html_header): Correctly close tag 'style'.
24305         (END): Replace strftime() by CHRONOS_TIME.  Close
24306         tag 'span' correctly, not as 'div'.
24308 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
24310         getgroups: statement without effect
24311         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
24312         Change equality conditional to expected assignment.
24314 2013-09-09  Eric Blake  <eblake@redhat.com>
24316         glob: fix compilation
24317         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
24319 2013-09-07  Eric Blake  <eblake@redhat.com>
24321         glob: fix build for platforms without __THROW
24322         * lib/glob.in.h (__THROW): Add definition again.
24324 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
24326         regex-quote: fix buffer access out of bounds
24327         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
24328         * lib/regex-quote.c (regex_quote_spec_pcre):
24329         Fix typo that resulted in an out-of-bounds read.
24331 2013-09-04  Eric Blake  <eblake@redhat.com>
24333         glob: avoid -Wattribute warnings on glibc
24334         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
24335         __THROWNL, not __THROW, on static functions.
24336         * lib/glob.in.h (__THROW): Adjust...
24337         (__THROWNL): ...accordingly.
24339 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24341         headers: check that _GL_INLINE_HEADER_BEGIN is defined
24342         Suggested by Bruce Korb in:
24343         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
24344         * doc/extern-inline.texi (extern inline):
24345         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
24346         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
24347         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
24348         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
24349         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
24350         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
24351         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
24352         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
24353         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
24354         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
24355         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
24356         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
24357         * lib/xtime.h:
24358         Check that _GL_INLINE_HEADER_BEGIN is defined.
24360 2013-08-29  Pádraig Brady  <P@draigBrady.com>
24362         bootstrap: remove the --version requirement from ancillary tools
24363         * build-aux/bootstrap (check_exists): A new refactored function to
24364         determine if a command exists.
24365         (find_tool): Use the new function which does not require the
24366         --version option to be supported.
24367         (check_versions): Use the new function.
24369 2013-08-26  Simon Josefsson  <simon@josefsson.org>
24371         gc: support HMAC-SHA256 and HMAC-SHA512.
24372         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
24373         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
24374         functions.
24375         (gc_hmac_md5): Use symbolic constant.
24376         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
24377         (gc_hmac_sha256, gc_hmac_sha512): New functions.
24378         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
24379         * m4/sha256.m4: Protect against empty expansion.
24380         * m4/sha512.m4: Likewise.
24381         * lib/hmac-sha256.c: New file.
24382         * lib/hmac-sha512.c: Likewise.
24383         * m4/gc-hmac-sha256.m4: Likewise.
24384         * m4/gc-hmac-sha512.m4: Likewise.
24385         * m4/gc-sha256.m4: Likewise.
24386         * m4/gc-sha512.m4: Likewise.
24387         * modules/crypto/gc-hmac-sha256: Likewise.
24388         * modules/crypto/gc-hmac-sha256-tests: Likewise.
24389         * modules/crypto/gc-hmac-sha512: Likewise.
24390         * modules/crypto/gc-hmac-sha512-tests: Likewise.
24391         * modules/crypto/hmac-sha256: Likewise.
24392         * modules/crypto/hmac-sha256-tests: Likewise.
24393         * modules/crypto/hmac-sha512: Likewise.
24394         * modules/crypto/hmac-sha512-tests: Likewise.
24395         * tests/test-gc-hmac-sha256.c: Likewise.
24396         * tests/test-gc-hmac-sha512.c: Likewise
24397         * tests/test-hmac-sha256.c: Likewise.
24398         * tests/test-hmac-sha512.c: Likewise
24400 2013-08-24  Daiki Ueno  <ueno@gnu.org>
24402         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
24403         of AC_CHECK_DECLS.
24405 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24407         selinux-at: omit unnecessary include
24408         * lib/selinux-at.c: Don't include dosname.h; not needed, since
24409         this source file doesn't use its macros, and subsidiary files that
24410         use the macros already include it.
24412 2013-08-21  Eric Blake  <eblake@redhat.com>
24414         d-ino: avoid false negative on symlink
24415         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
24416         Reported by Stephane Chazelas.
24418 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
24420         bootstrap: port to OpenBSD sed
24421         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
24422         does not interpret `-' as a file argument to mean stdin.
24424 2013-08-15  Eric Blake  <eblake@redhat.com>
24426         warnings: minor optimization
24427         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
24429         warnings: check -Wfoo rather than -Wno-foo
24430         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
24431         -Wno-, test if the compiler recognizes the positive form instead.
24433 2013-08-15  Karl Berry  <karl@gnu.org>
24435         * config/srclist-update: add option "doclicense" to placate
24436         pulling *.texi files from Emacs.  Write terse usage
24437         documentation at the top.
24439 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
24441         xvasprintf-tests: port to GCC with hardening flags
24442         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
24443         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
24444         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
24446 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24448         fpending: port to recent Cygwin change to stdio_ext.h
24449         Reported by LRN in
24450         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
24451         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
24452         just declare __fpending unless it's a macro.
24453         A duplicate decl shouldn't hurt.
24454         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
24455         call compiles and links, instead of separately checking for
24456         decl and lib function.
24457         * modules/fpending (configure-ac):
24458         Adjust to fpending.m4's renaming of shell variable.
24460 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24462         sys_time: port to OpenBSD
24463         * lib/sys_time.in.h: Simply delegate to the system's header
24464         in the BSDish cases as well.  Problem reported by Mike Miller in
24465         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
24466         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
24467         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
24468         wider than time_t.
24470 2013-08-09  Pádraig Brady  <P@draigBrady.com>
24472         bootstrap: support checksum utils having -c but not --status
24473         * build-aux/bootstrap: Only look for sha1sum if updating po files.
24474         Add sha1 to the list of supported checksum utils since it's now
24475         supported through adjustments below.
24476         (update_po_files): Remove the use of --status
24477         in a way that will suppress all error messages, but since this is
24478         only used to minimize updates, it shouldn't cause an issue.
24479         Exit early if there is a problem updating the po file checksums.
24480         (find_tool): Remove the check for --version support as this
24481         is optional as per commit 86186b17.  Don't even check for the
24482         presence of the command as if that is needed, it's supported
24483         through configuring prerequisites in bootstrap.conf.
24484         Prompt that when a tool isn't found, one can define an environment
24485         variable to add to the hardcoded search list.
24487 2013-08-05  Jim Meyering  <meyering@fb.com>
24489         regex: port to non-glibc/lock-using systems
24490         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
24491         system with GNULIB_LOCK would fail due to absence of the
24492         included "glthread/lock.h".  This would affect any package
24493         for which the "lock" module is used only by the regex module,
24494         and not explicitly used.
24495         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
24496         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
24497         Add a dependency on the "lock" module.
24499 2013-07-20  Daiki Ueno  <ueno@gnu.org>
24501         localecharset: make locale_charset thread-safe on Mac OS X
24502         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
24503         instead of MB_CUR_MAX.
24505 2013-07-20  Daiki Ueno  <ueno@gnu.org>
24507         gettext: update to version 0.18.3
24508         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
24509         require AC_PROG_SED to allow user to specify custom sed command when
24510         generating en@quot PO file.
24512 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
24514         bootstrap: use correct source when copying build-aux files
24515         * build-aux/bootstrap (gnulib_extra_files): This variable is
24516         relative to upstream gnulib layout, not downstream.
24518 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
24520         tmpdir: fix bug in VMS port
24521         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
24522         See Steven M. Schweda in
24523         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
24525 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
24527         tmpdir: port to VMS, to // != /, and to long dirs
24528         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
24529         __secure_getenv, so that we're more like the glibc version.
24530         All uses changed.
24531         (path_search): Don't put slash after directory if __VMS.
24532         Problem reported by Steven M. Schweda in
24533         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
24534         Simplify code to add slash; no need for a loop.
24535         Do not remove trailing slash from "//".
24536         Do not assume dlen <= INT_MAX.
24538 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24540         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
24541         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
24542         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
24543         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
24545         accept4, dup3, pipe2: port to Cygwin
24546         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
24547         * lib/accept4.c (accept4) [O_BINARY]:
24548         * lib/dup3.c (dup3) [O_BINARY]:
24549         * lib/pipe2.c (pipe2) [O_BINARY]:
24550         Use set_binary_mode, not setmode.
24551         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
24552         * modules/binary-io (Depends-on): Remove module indicator.
24553         These last two bits undo the previous change to pipe2 and binary-io.
24555 2013-07-09  Pádraig Brady  <P@draigBrady.com>
24557         mountlist: add support for deallocating returned list entries
24558         * lib/mountlist.c (free_mount_entry): A new exported function
24559         to deallocate a mount list entry.
24560         (read_file_system_list): Refactor to use the new deallocation function.
24561         Suggested by Anton Ovchinnikov.
24563 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
24565         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
24566         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
24567         * lib/stdalign.in.h (_Alignas, _Alignof):
24568         Port to FreeBSD 9.1, and to C11 and C++11.
24569         (_Alignas): Also support ICC.
24570         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
24571         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
24573 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24575         fnmatch: don't goto over declaration
24576         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
24577         undefined behavior for goto over a declaration.
24578         Problem reported by Charlie Brown in
24579         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
24581         pipe2: decouple from binary-io a bit
24582         This is for Emacs, which needs pipe2 but not binary-io.
24583         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
24584         * modules/binary-io (Depends-on): Add module indicator.
24586 2013-07-03  Eric Blake  <eblake@redhat.com>
24588         mgetgroups: relax license to LGPLv2+
24589         * modules/getugroups (License): Change from GPLv3+.
24590         * modules/mgetgroups (License): Likewise.
24591         * modules/getgroups (License): Change from LGPLv3+.
24593         xalloc-oversized: relax license to LGPLv2+
24594         * modules/xalloc-oversized (License): Change from GPLv3+.
24596         nproc: relax license to LGPLv2+
24597         * modules/nproc (License): Change from LGPLv3+.
24599         bootstrap: honor --no-git
24600         * build-aux/bootstrap: Don't even try to use git when user is
24601         pointing to a static checkout.
24603 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24605         ignore-value: port to gcc -pedantic
24606         * lib/ignore-value.h (ignore_value):
24607         Port to gcc -pedantic, by using __extension__.
24608         Reindent as per usual gnulib style nowadays.
24609         Simplify GCC version check.
24611 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
24613         extern-inline: port to gcc -std=c89
24614         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
24615         Do not use __gnu_inline__ if pedantic and pre-C99.
24617 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
24619         doc: document extern-inline
24620         * doc/extern-inline.texi: New file.
24621         * doc/gnulib.texi (alloca-opt): Include it.
24622         * m4/extern-inline.m4: Move some comments to documentation,
24623         and others closer to what they describe.
24625         doc: chatter less
24626         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
24627         (updated-stamp): Use it.  This causes 'make' to output just
24628         one file name rather than zillions.
24630         fflush, fseeko: port to musl cross-compiles
24631         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
24632         on some implementation that (1) is not known to be buggy,
24633         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
24634         cross-compiled to so we can't easily check for lack of
24635         conformance.  This is for cross-compiling to musl.
24636         Reported by Rich Felker in
24637         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
24638         * m4/fclose.m4 (gl_FUNC_FCLOSE):
24639         * m4/fflush.m4 (gl_FUNC_FFLUSH):
24640         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
24641         Adjust to above change.
24642         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
24643         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
24644         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
24645         known not to work, or unknown.
24647 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
24649         msvc-inval: port to mingw-w64
24650         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
24651         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
24652         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
24654 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
24656         getcwd-lgpl: port to Tru64
24657         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
24658         Problem reported by Steven M. Schweda in
24659         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
24661         tests: port large-fd POSIX spawn tests to OS X
24662         Problem reported by Daiki Ueno in
24663         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
24664         * tests/test-posix_spawn_file_actions_addclose.c:
24665         * tests/test-posix_spawn_file_actions_adddup2.c:
24666         * tests/test-posix_spawn_file_actions_addopen.c:
24667         Include <limits.h>, for OPEN_MAX, if available.
24668         (big_fd): New static function.
24669         (main): Use it.
24671 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
24673         tests/nap.h: use an adaptive delay to avoid ctime update issues
24674         The recent change in nap.h (5191133e) decreased the probability of lost
24675         races to about a third, however such problems could still be observed
24676         in virtual machines and openSUSE's OBS.
24677         Before, nap() detected the needed time once empirically and then used
24678         that delay (together with a small correction multiplier) in further
24679         calls.  This problem has been reported and discussed several times,
24680         including guesses about possible kernel issues:
24681         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
24682         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
24683         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
24684         http://bugs.gnu.org/12820
24685         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
24686         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
24687         Now, nap() avoids the race alltogether by verifying on a reference
24688         file whether a timestamp difference has happened.
24689         * tests/nap.h (nap_fd): Define file descriptor variable for the
24690         witness file.
24691         (nap_works): Change return value to bool.  Change passing
24692         the old file's status by value instead of by reference as this function
24693         does no longer update that timestamp; rename the function argument from
24694         st to old_st.  Remove the local variables cdiff and mdiff because that
24695         function now returns true/false instead of the precise delay.
24696         (guess_delay): Remove function.
24697         (clear_tmp_file): Add new function to close and unlink the witness file.
24698         (nap): Instead of re-using the delay which has been calculated during
24699         the first call, avoid the race by actually verifying that a timestamp
24700         difference can be observed on the current file system.  Use an adaptive
24701         approach for the delay to minimize execution time.  Assert that the
24702         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
24703         = 2^31 - 1 = 2.1s.
24704         Use atexit to call clear_tmp_file when the process terminates.
24706 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
24708         sig2str: port to C++
24709         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
24710         Reported by Daniel J Sebald in
24711         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
24713 2013-05-30  Eric Blake  <eblake@redhat.com>
24715         docs: mention cygwin shortcoming in <sys/un.h>
24716         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
24718         vasnprintf: silence mingw compiler warning
24719         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
24721 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
24723         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
24724         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
24725         This fixes a porting bug I recently reintroduced in regex, and
24726         some other instances that I discovered while testing the fix.
24727         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
24728         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
24729         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
24730         with an empty argument if this is a pedantic pre-C99 GCC.
24731         * lib/verify.h: Do not use _Static_assert if this is a pedantic
24732         pre-C11 GCC.
24734         regex: adapt to locking regime instead of depending on pthread
24735         Instead of depending on pthread, adapt to whatever thread
24736         modules are in use.  Problem reported by Ludovic Courtès in
24737         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
24738         and by Mats Erik Andersson in
24739         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
24740         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
24741         Support either the 'lock' module, or the 'pthread' module, or
24742         no module.
24743         (lock_lock, lock_unlock): New macros.
24744         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
24745         * modules/lock, modules/pthread (configure.ac): Add module indicator.
24746         * modules/regex (Depends-on): Remove pthread.
24748 2013-05-22  Eric Blake  <eblake@redhat.com>
24750         getgroups: document portability issues
24751         * doc/glibc-functions/initgroups.texi (initgroups): Mention
24752         multithread safety.
24753         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
24754         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
24755         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
24756         getugroups.
24757         * doc/posix-functions/getgroups.texi (getgroups): Mention
24758         multithread safety and mgetgroups.
24760 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
24762         test-lchown, test-chown: also skip test if chown fails with EPERM
24763         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
24764         skip this test, to handle FAT file systems.
24765         * tests/test-chown.h (test_chown): Likewise.
24767 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24769         regex: fix dfa race in multithreaded uses
24770         Problem reported by Ludovic Courtès in
24771         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
24772         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
24773         New macros.  All uses of __libc_lock_define, __libc_lock_init
24774         changed to use the first two of these.
24775         (__libc_lock_lock, __libc_lock_unlock): New macros, for
24776         non-glibc platforms.
24777         (struct re_dfa_t): Define the lock unconditionally.
24778         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
24779         '#ifdef _LIBC"s.
24780         * modules/regex (Depends-on): Add pthread, if we use the
24781         included regex.
24783         * lib/regcomp.c: Do actions that are not needed for glibc,
24784         but may be needed elsewhere.
24785         (regfree, re_compile_internal): Destroy the lock.
24786         (re_compile_internal): Check for lock-initialization failure.
24788         malloca: port to compilers that reject size-zero arrays
24789         This fixes a bug introduced in my previous patch.
24790         * lib/malloca.c (struct preliminary_header): Use an int
24791         rather than a character array of size int; that's simpler.
24792         (struct header): Remove, replacing with ...
24793         (union header): New type.  This avoids the need for declaring a
24794         character array of size zero, which is not allowed on some platforms.
24795         All uses changed.
24797 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
24799         parse-datetime, tests: don't use "string" + int
24800         Recent versions of 'clang' complain about C source code that
24801         uses expressions of the form '"string literal" + integer',
24802         I guess on the theory that it's confusing for readers who are
24803         used to C++.  On those grounds I suppose it's OK to make this
24804         minor style change.
24805         * lib/parse-datetime.y (parse_datetime):
24806         * tests/test-fchdir.c (main):
24807         * tests/test-snprintf-posix.h (test_function):
24808         * tests/test-snprintf.c (main):
24809         * tests/test-vasnprintf-posix.c (test_function):
24810         * tests/test-vasnprintf.c (test_function):
24811         * tests/test-vsnprintf.c (main):
24812         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
24813         Rewrite '"str" + E' to '&"str"[E]'.
24815 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24817         argmatch: port to C++
24818         * lib/argmatch.h [__cplusplus]: Add extern "C".
24820         argp: typo fix
24821         * lib/argp-help.c: Typo in comment.
24823 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
24825         manywarnings: update for GCC 4.8.0
24826         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
24827         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
24828         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
24829         -Wmissing-noreturn, as they are duplicates of other warnings.
24830         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
24831         was documented to be flaky in earlier versions of GCC.
24833         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
24834         * tests/test-spawn.c (main):
24835         * tests/test-sys_socket.c (main):
24836         * tests/test-sys_wait.c (main):
24837         Don't have a switch value that isn't covered by a case.
24839         getaddrinfo-tests: port --enable-gcc-warnings to clang
24840         * tests/test-getaddrinfo.c (simple):
24841         Avoid casts from looser to stricter-aligned pointers.
24843         thread: port --enable-gcc-warnings to clang
24844         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
24845         Include <signal.h>, to pacify a warning about pthread_sigmask.
24847         stdio: use __REDIRECT for fwrite, fwrite_unlocked
24848         * lib/stdio.in.h (fwrite):
24849         When working around bug 11959, use __REDIRECT rather than '#define
24850         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
24851         fix the -Wunused-value issue with clang, and it works with GCC too.
24852         Problem with targeting reported by Eric Blake in
24853         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
24854         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
24855         debugging the fwrite issue.
24857         stdio: port --enable-gcc-warnings to clang
24858         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
24859         since the GCC workaround for fwrite does not pacify clang.
24861         sig2str: port --enable-gcc-warnings to clang
24862         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
24864         obstack: port --enable-gcc-warnings to clang
24865         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
24866         Avoid casts from looser to stricter-aligned pointers.
24868         memchr2: port --enable-gcc-warnings to clang
24869         * lib/memchr2.c (memchr2):
24870         Avoid casts from looser to stricter-aligned pointers.
24872         mbsstr: port --enable-gcc-warnings to clang
24873         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
24874         Avoid casts from looser to stricter-aligned pointers.
24876         malloca: port --enable-gcc-warnings to clang
24877         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
24878         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
24880         inttostr: port --enable-gcc-warnings to clang
24881         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
24883         warnings: port to clang
24884         Problem reported by Daniel P. Berrange via Eric Blake in
24885         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
24886         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
24887         (gl_WARN_ADD): Use it.
24889 2013-05-11  Jim Meyering  <meyering@fb.com>
24891         quotearg: do not read beyond end of buffer
24892         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
24893         end of an ARG for which no length was specified.  With an N-byte
24894         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
24895         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
24896         via coreutils' misc/sort-debug-keys.sh test and detected by running
24897         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
24898         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
24899         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
24900         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
24901         characters correctly."
24903 2013-05-11  Daiki Ueno  <ueno@gnu.org>
24905         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
24906         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
24907         compilation target is Mac OS X 10.6.
24908         Problem reported by parafin and Andoni Morales in
24909         <http://savannah.gnu.org/bugs/?37844> and
24910         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
24912 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
24914         mkdir-p: remove assumptions about umask and mode
24915         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
24916         umask is 0, or that MODE is a subset of MODE_BITS.
24918 2013-05-10  Eric Blake  <eblake@redhat.com>
24920         maint.mk: catch more abuse of HAVE_DECL in syntax-check
24921         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
24923 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
24925         deps: require Automake >= 1.9.6 in generated Makefile fragments
24927         That is the same minimal version required in the DEPENDENCIES file.
24928         Moreover, the old code generated a requirement of Automake >= 1.5,
24929         and that is an insanely outdated version.
24931         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
24932         * tests/havelib/rpathlx/Makefile.am: Likewise.
24933         * tests/havelib/rpathly/Makefile.am: Likewise.
24934         * tests/havelib/rpathlyx/Makefile.am: Likewise.
24935         * tests/havelib/rpathlz/Makefile.am: Likewise.
24936         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
24937         * tests/havelib/rpathx/Makefile.am: Likewise.
24938         * tests/havelib/rpathy/Makefile.am: Likewise.
24939         * tests/havelib/rpathz/Makefile.am: Likewise.
24941 2013-05-08  Eric Blake  <eblake@redhat.com>
24943         bootstrap: AC_INIT may have more than four parameters
24944         * build-aux/bootstrap (extract_package_name): Correctly extract
24945         non-empty tarname field.  Avoid range in regex.
24946         Based on a report by Sami Kerola <kerolasa@iki.fi>.
24948 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
24950         qacl: port to MS-Windows port of GNU Emacs
24951         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
24952         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
24953         port of GNU Emacs.  Problem reported by Eli Zaretskii in
24954         <http://bugs.gnu.org/14295#14>.
24956 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
24958         acl: include quote.h
24959         * lib/copy-acl.c: Include quote.h.
24960         * lib/set-acl.c: Likewise.
24962 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
24964         fchownat, renameat, unlinkat: update statat dependencies
24965         These modules use statat and lstatat, not fstatat; so depend on
24966         the statat module, which was split out recently from fstatat.
24967         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
24968         * modules/renameat: Likewise.  Also delete fstat.
24969         URL: http://bugs.gentoo.org/468790
24971 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
24973         Assume gnulib is checked out from Git, not CVS
24975         In fact, access to the gnulib repository through CVS has been
24976         disabled, or more precisely, got broken and was never restored; see:
24977         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
24979         Note that support for CVS is not removed completely and unthinkingly
24980         by this change: only support for CVS checkouts of gnulib itself is
24981         removed.  For example, the 'bootstrap' script still cater to .cvsingore
24982         files and CVS directories, for the benefit of those poor gnulib clients
24983         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
24985         * gnulib-tool: Simplify accordingly.
24986         * posix-modules: Likewise.
24987         * MODULES.html.sh: Likewise.
24988         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
24989         repository.
24990         * doc/gnulib-intro.texi: Likewise.
24991         * doc/gnulib-readme.texi: Likewise.
24992         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
24993         sample '.gitignore' file rather than a sample '.cvsignore'.
24994         * NEWS: Update.
24995         * m4/extensions.m4: While at it, remove a comment mistakenly referring
24996         to "CVS Autoconf" rather than "git Autoconf".
24998 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
25000         utimensat-tests, etc.: try to fix some races
25001         Problem reported by Bernhard Voelker in
25002         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
25003         I don't know whether this patch fixes that race condition, but it
25004         fixes *some* race conditions, so it should be a win.
25005         * modules/chown-tests (Depends-on):
25006         * modules/fchownat-tests (Depends-on):
25007         * modules/fdutimensat-tests (Depends-on):
25008         * modules/futimens-tests (Depends-on):
25009         * modules/lchown-tests (Depends-on):
25010         * modules/stat-time-tests (Depends-on):
25011         * modules/utimens-tests (Depends-on):
25012         * modules/utimensat-tests (Depends-on):
25013         Depend on nanosleep, not usleep.
25014         * modules/chown-tests (test_chown_LDADD):
25015         * modules/lchown-tests (test_lchown_LDADD):
25016         * modules/stat-time-tests (test_stat_time_LDADD):
25017         New macro.
25018         * modules/fchownat-tests (test_fchownat_LDADD):
25019         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
25020         * modules/futimens-tests (test_futimens_LDADD):
25021         * modules/utimens-tests (test_utimens_LDADD):
25022         * modules/utimensat-tests (test_utimensat_LDADD):
25023         Add $(LIB_NANOSLEEP).
25024         * modules/stat-time-tests (Files): Add tests/nap.h.
25025         * tests/nap.h: Include <limits.h>, for INT_MAX.
25026         (lt_mtime): Remove.
25027         (diff_timespec): New function.
25028         (get_stat): Rename from get_mtime.  All callers changed.
25029         (nap_works): Determine the needed delay by inspecting the
25030         file system's timestamp jumps; this should be more reliable.
25031         Look at both mtime and ctime, and take the maximum of the two jumps.
25032         (nap_works, guess_delay):
25033         Return a nanosecond count, not a microsecond count.
25034         All callers changed.
25035         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
25036         failure.
25037         (nap): Multiply the guess by 1.125, to accommodate the case where
25038         the file system's clock is a bit slower than nanosleep's clock.
25039         * tests/test-stat-time.c (BASE): New macro.
25040         Include nap.h.
25041         (nap): Remove; nap.h now defines this.  This removes a duplicate
25042         implementation of 'nap'.
25044         utimens, utimensat: work around Solaris UTIME_OMIT bug
25045         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
25046         Linux kernel 2.6.32 does.  Work around it in the same way.
25047         * doc/posix-functions/futimens.texi (futimens):
25048         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
25049         * lib/utimens.c (fdutimens, lutimens):
25050         * lib/utimensat.c (rpl_utimensat): Work around the bug.
25052         gettext: now it's your responsibility to add -I$(top_builddir)/intl
25053         Formerly, it was your responsibility to do this for all Makefile.ams
25054         other than Gnulib's.  Now it's your responsibility to do it for
25055         Gnulib's Makefile.am, too.
25056         * NEWS: Document this.
25057         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
25059         acl: include errno.h to get errno
25060         Reported by Daiki Ueno in
25061         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
25062         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
25064 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
25066         tests: don't assume getdtablesize () <= 10000000
25067         * modules/cloexec-tests:
25068         * modules/dup2-tests:
25069         * modules/dup3-tests:
25070         * modules/nonblocking-tests:
25071         * modules/posix_spawn_file_actions_addclose-tests:
25072         * modules/posix_spawn_file_actions_adddup2-tests:
25073         * modules/posix_spawn_file_actions_addopen-tests:
25074         * modules/unistd-safer-tests:
25075         Depend on the getdtablesize module.
25076         * tests/test-cloexec.c:
25077         * tests/test-dup-safer.c:
25078         * tests/test-dup2.c:
25079         * tests/test-dup3.c:
25080         * tests/test-fcntl.c:
25081         * tests/test-nonblocking.c:
25082         * tests/test-posix_spawn_file_actions_addclose.c:
25083         * tests/test-posix_spawn_file_actions_adddup2.c:
25084         * tests/test-posix_spawn_file_actions_addopen.c:
25085         Don't assume getdtablesize () <= 10000000.
25087 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
25089         extern-inline: work around bug in Sun c99
25090         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
25091         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
25093 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
25095         qacl: new module, broken out from the acl module
25096         This is for GNU Emacs, which wants the acl functions but does
25097         not want 'error' invoked when they fail.
25098         * lib/acl-internal.h: Do not include error.h, quote.h.
25099         (ENOSYS, ENOTSUP): Remove; no longer needed.
25100         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
25101         * lib/acl.h: Include <stdbool.h>.
25102         (acl_errno_valid): New function.
25103         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
25104         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
25105         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
25106         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
25107         (ACL_INTERNAL_INLINE): Remove; no longer needed.
25108         * lib/file-has-acl.c (file_has_acl):
25109         * lib/qcopy-acl.c (qcopy_acl):
25110         * lib/qset-acl.c (qset_acl):
25111         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
25112         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
25113         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
25114         lib/file-has-acl.c, m4/acl.m4 to qacl module.
25115         Add lib/set-acl.c.
25116         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
25117         Add qacl.
25118         (configure.ac): Move gl_FUNC_ACL to qacl module.
25119         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
25120         Rename set-mode-acl.c to set-acl.c.
25121         * lib/acl-errno-valid.c: New file.
25122         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
25123         copy_acl function remains in copy-acl.c.
25124         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
25125         (_): Remove; not needed.
25126         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
25127         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
25128         * modules/qacl: New file, moved from the old modules/acl.
25129         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
25130         Remove set-mode-acl.c, copy-acl.c.
25131         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
25133         alignof, intprops, malloca: port better to IBM's C compiler
25134         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
25135         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
25136         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
25138 2013-04-25  Daiki Ueno  <ueno@gnu.org>
25140         wctype-h: fix gettext link error on mingw
25141         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
25142         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
25143         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
25144         rpl_towupper and rpl_towupper.
25146 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
25148         regex-tests, regex: allow glibc re_search behavior
25149         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
25150         re_search input data to make the multi-character collating element
25151         in it clearly visible, and treat re_search return code 0 as valid.
25152         * m4/regex.m4 (gl_REGEX): Likewise.
25154 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25156         stdalign: doc fix
25157         * doc/posix-headers/stdalign.texi (stdalign.h):
25158         Gnulib doesn't support '_Alignof expr'.
25160 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
25162         stdalign: port to stricter ISO C11
25163         ISO C11 says that _Alignof's operand must be a parenthesized type.
25164         Problem reported by Eli Zaretskii in
25165         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
25166         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
25167         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
25169 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25171         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
25172         Problem reported by Marco Atzeri in
25173         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
25174         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
25175         Simply delegate to the system <sys/select.h> in this case too.
25176         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
25177         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
25178         be needed on Solaris either.
25179         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
25180         Simply delegate to the system <sys/time.h> in this case.
25182 2013-03-19  Karl Berry  <karl@gnu.org>
25184         * build-aux/gnupload: check for erroneous (with gnupload) use of
25185         ftp-upload.gnu.org, tweak help.
25187 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25189         copy-file, rpmatch: fix problems found by cppcheck
25190         Reported by Arno Onken in
25191         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
25192         * lib/rpmatch.c (try): Fix memory leak.
25193         * lib/copy-file.c: Include "ignore-value.h".
25194         (qcopy_file_preserving): Ignore chown value.
25195         * modules/copy-file (Depends-on): Add ignore-value.
25197 2013-01-27  Jim Meyering  <jim@meyering.net>
25199         prefix-gnulib-mk: give better diagnostics
25200         * build-aux/prefix-gnulib-mk: Don't just "die".
25201         Give better diagnostics upon failure.
25203 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25205         putenv: port to Solaris 10
25206         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
25207         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
25208         is not what is wanted here.
25209         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
25210         declaration, not for its existence.
25212 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
25214         mktime: fix configure typo
25215         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
25217 2013-03-12  Eric Blake  <eblake@redhat.com>
25219         regex-tests: skip UTF-8 test on mingw
25220         * modules/regex-tests (Depends-on): Add localcharset.
25221         * tests/test-regex.c (main): Use it to skip test on mingw.
25223 2013-03-11  Eric Blake  <eblake@redhat.com>
25225         tests: make it easier to bypass alarm time in debugger
25226         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
25227         * tests/test-memmem.c (main): Likewise.
25228         * tests/test-passfd.c (main): Likewise.
25229         * tests/test-ptsname.c (main): Likewise.
25230         * tests/test-ptsname_r.c (main): Likewise.
25231         * tests/test-strcasestr.c (main): Likewise.
25232         * tests/test-strstr.c (main): Likewise.
25234         regex: port to mingw's recent addition of undeclared alarm
25235         * doc/posix-functions/alarm.texi (alarm): Document that alarm
25236         exists but still doesn't work in newer mingw.
25237         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
25238         not existence.  Ensure SIGALRM is not trapped.
25239         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
25240         * m4/regex.m4 (gl_REGEX): Likewise.
25241         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
25242         * tests/test-regex.c (main): Use correct probe for alarm.
25244         putenv: avoid compilation warning on mingw
25245         * lib/putenv.c (_unsetenv): Protect variable declaration.
25246         (putenv): Fix indentation.
25248 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
25250         unistd: don't prevent Tru64 Unix from using gnulib strtod.
25251         * lib/unistd.in.h: be careful not to include un-needed system
25252         stdlib.h from here, because that prevents gnulib stdlib.h from
25253         defining rpl_strtod correctly.
25255 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
25257         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
25258         changesets, but for the 'precision 0' test.
25259         * tests/test-vasprintf-posix.c (test_function): Don't insist on
25260         round-to-even, since POSIX says rounding is implementation-defined
25261         and OS X 10.8.2 rounds 1.51 to 1 here.
25263         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
25264         changeset.
25265         * tests/test-vasprintf-posix.c (test_function): Don't insist on
25266         round-to-even, since POSIX says rounding is implementation-defined
25267         and OS X 10.8.2 rounds 1.5 to 1 here.
25269 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25271         vasnprintf-posix-tests: allow rounding 1.5 to 1
25272         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
25273         round-to-even, since POSIX says rounding is implementation-defined
25274         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
25275         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
25277         bootstrap: port to FreeBSD
25278         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
25279         that treat '--' differently.  Reported by Mats Erik Andersson in
25280         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
25282 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
25284         regex: rename remaining __attribute calls to __attribute__.
25285         2012-02-25 changed definition of __attribute, but left some uses
25286         unchanged, preventing compilation of regex module on most non-gcc
25287         environments.
25288         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
25289         (lookup_collation_sequence_value, build_range_exp)
25290         (build_collating_symbol): Set attributes with newly renamed
25291         __attribute__ decorator.
25292         * lib/regex_internal.c (re_string_peek_byte_case)
25293         (re_node_set_compare, re_node_set_contains): Likewise.
25294         * lib/regexec.c (acquire_init_state_context): Likewise.
25296 2013-03-06  Bruno Haible  <bruno@clisp.org>
25298         execute: Revert last change, but use a different condition.
25299         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
25300         on Windows.
25302 2013-03-05  Eric Blake  <eblake@redhat.com>
25304         execute: drop dead code
25305         * lib/execute.c (nonintr_close, nonintr_open): Delete.
25307 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
25309         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
25310         * m4/non-recursive-gnulib-prefix-hack.m4
25311         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
25312         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
25313         <http://bugs.gnu.org/10305#237>.
25315 2013-03-04  Eric Blake  <eblake@redhat.com>
25317         test-getsockopt: avoid compiler warning
25318         * tests/test-getsockopt.c (includes): Ensure close is declared.
25320 2013-03-02  Bruno Haible  <bruno@clisp.org>
25322         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
25323         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
25325 2013-03-02  Bruno Haible  <bruno@clisp.org>
25327         gettext: Update to version 0.18.2.
25328         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
25329         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
25330                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
25332 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
25334         regex: merge patches from libc
25336         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
25337         * lib/regex_internal.h (__attribute__): Rename from __attribute.
25338         All uses changed.
25339         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
25340         (re_string_wchar_at, re_string_elem_size_at):
25341         Mark function as possibly unused.
25343         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
25344         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
25345         elements compare against the byte sequence of it, not its name.
25347 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
25349         putenv: port better to native Windows
25350         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
25351         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
25352         (_unsetenv): Use _putenv if available.
25353         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
25354         a bit less likely to cause damage.
25355         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
25356         Fix the wrong value with SetEnvironmentVariable.
25357         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
25358         code better.
25360 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25362         regex: ignore old-style-definition warnings
25363         * lib/regex.c: Add pragma to ignore these warnings.
25364         Problem reported for GNU tar by Pavel Raiskup.
25366 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
25368         getcwd: support coreutils better
25369         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
25370         but this might not be correct in coreutils, which disables
25371         the raw decl checks.  Problem reported by Nagendra in
25372         <http://bugs.gnu.org/10305#192>.
25373         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
25374         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
25375         Test the getcwd function, not any macro, since getcwd.c wants the
25376         function.
25377         * m4/getcwd.m4 (gl_FUNC_GETCWD):
25378         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
25379         compile, as might happen if there's a macro but no function.
25381         strtod: support coreutils better
25382         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
25383         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
25384         disables the raw decl checks.  This assumes there is an underlying
25385         strtod, but that's a safe assumption these days.
25386         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
25388         mountlist: port to HP NonStop
25389         Reported by Joachim Schmitz in
25390         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
25391         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
25392         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
25394 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
25396         extern-inline: avoid compilation error with HP-UX cc
25397         Reported by Richard Lloyd in
25398         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
25399         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
25400         Suppress extern inline with HP-UX cc.  This should be safe,
25401         though it may hurt performance.  Perhaps someone with some HP-UX
25402         experience can come up with a higher-performance fix.
25404 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25406         putenv: fix heap corruption with mixed putenv/_putenv
25407         Problem reported by Michael Goffioul in
25408         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
25409         * lib/putenv.c (putenv) [HAVE__PUTENV]:
25410         Rely on _putenv to allocate the new environment.
25411         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
25412         * modules/putenv (configure.ac): Use it.
25414 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
25416         unsetenv etc.: port to Solaris 11 + GNU Emacs
25417         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
25418         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
25419         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
25420         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
25421         idea but is too painful to fix right now), and without this gnulib
25422         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
25423         compiling unsetenv.c on Solaris 11.  Fix the problem for
25424         unsetenv.c, and fix other similar occurrences.
25426 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25428         secure_getenv: fix C++ declaration typo
25429         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
25430         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
25431         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
25433 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25435         careadlinkat: stop exporting careadlinkatcwd
25436         Only Emacs used it directly, and Emacs no longer needs it.
25437         * NEWS: Document this simplification.
25438         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
25439         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
25440         for readlink.
25441         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
25442         Don't include stdlib.h; no longer needed.
25443         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
25444         * lib/relocwrapper.c: Adjust comment to match new dependencies.
25445         * modules/areadlink (Depends-on): Add readlink.
25446         (Maintainer): Add self.
25447         * modules/careadlinkat (Depends-on): Remove readlink.
25449         extensions: port better to HP-UX
25450         This is merged from git Autoconf.
25451         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
25452         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
25453         so that it's compatible with the value used when compiling.
25455         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
25456         Problem reported by Mats Erik Andersson in
25457         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
25458         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
25459         openpty function exists, not merely when we intend to replace it.
25460         This corrects the 2013-01-31 patch, which mistakenly defined
25461         HAVE_OPENPTY even on hosts that lacked it.
25463 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25465         secure_getenv: fix include typo
25466         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
25468         secure_getenv: port better to FreeBSD and Solaris
25469         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
25470         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
25471         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
25472         This works better on BSDish platforms.
25473         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
25474         Test for issetugid if __secure_getenv is missing.
25476 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25478         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
25479         Some of these changes are merged in from git Autoconf.
25480         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
25481         When deciding whether to define _XOPEN_SOURCE, inspect the
25482         preprocessor macro __hpux instead of the more-heavyweight
25483         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
25484         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
25485         as the key for __EXTENSIONS__.
25487         unistd: avoid namespace pollution on non-glibc systems
25488         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
25489         This avoids namespace pollution on non-glibc systems, by causing
25490         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
25491         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
25492         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
25494 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25496         tmpdir: use secure_getenv
25497         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
25498         Define to secure_getenv, not getenv.
25499         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
25500         as that's now secure_getenv's job.
25501         * modules/tmpdir (Depends-on): Add secure_getenv.
25503         tempname: use secure_getenv
25504         * lib/tempname.c (__secure_getenv) [!_LIBC]:
25505         Define to secure_getenv, not getenv.
25506         * modules/tempname (Depends-on):
25507         Add secure_getenv.
25509         secure_getenv: new module
25510         * MODULES.html.sh (Extra functions based on ANSI C 89):
25511         Add secure_getenv.
25512         * doc/glibc-functions/secure_getenv.texi: New file.
25513         * doc/gnulib.texi: Include it.
25514         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
25515         New files.
25516         * lib/stdlib.in.h (secure_getenv): New decl.
25517         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
25518         * modules/stdlib (stdlib.h):
25519         Add secure_getenv checks.
25521 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
25523         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
25524         Reported for OS X 10.8.2 by Assaf Gordon in
25525         <http://bugs.gnu.org/13516>.
25526         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
25527         !HAVE_OPENAT && !HAVE_FDOPENDIR.
25528         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
25529         so that they can be kept in sync more easily.  Avoid PATH_MAX
25530         test on the Hurd.  Sync from test-getcwd.c for errno tests after
25531         mkdir or chdir failure.
25532         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
25533         lib/getcwd.c.
25534         (test_abort_bug): Do not test for the deep directory bug unless we
25535         have openat support.  Avoid PATH_MAX test on the Hurd.
25537         regex-tests, regex: fix bug: memset undeclared
25538         * tests/test-regex.c: Don't include regex.h twice.  Include
25539         string.h, to declare memset.  Christensen's report also mentioned
25540         this issue.
25541         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
25542         test-regex.c, to avoid future problems like this.  Remove
25543         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
25544         twice.
25546         regex-tests: fix link errors on older Solaris
25547         These need to link with @LIBINTL@ to get libintl_gettext.
25548         Problem reported by Tom G. Christensen in
25549         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
25550         * modules/regex-tests (test_regex_LDADD): New macro.
25552 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
25554         regex-tests: new module
25555         * modules/regex-tests, tests/test-regex.c: New files.
25557         regex: fix off-by-one error in configure test
25558         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
25560 2013-01-31  Eric Blake  <eblake@redhat.com>
25562         regex: avoid infinite configure test
25563         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
25565 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
25567         openpty: fix bug where HAVE_OPENPTY wasn't defined
25568         See the thread starting at:
25569         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
25570         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
25571         openpty function exists, not merely when we intend to replace it.
25573 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25575         sys_time: port to Solaris 2.6
25576         There is a circularity problem on Solaris 2.6, where <time.h> includes
25577         <sys/time.h> for struct timespec.  The include nesting is gnulib
25578         <time.h>, system <time.h>, gnulib <sys/time.h>, system
25579         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
25580         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
25581         <sys/siginfo.h>; the last, innermost file needs struct
25582         timestruc_t, which is defined in <sys/time.h>, which has not been
25583         fully parsed.  Problem reported by Tom G. Christensen in
25584         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
25585         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
25586         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
25587         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
25588         uses split double-inclusion guards.
25590 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25592         regex: test for buffer overrun
25593         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
25594         for the just-fixed regex bug.
25596 2013-01-29  Andreas Schwab  <schwab@suse.de>
25598         regex: fix buffer overrun in regexp matcher [BZ #15078]
25599         * lib/regexec.c (extend_buffers): Add parameter min_len.
25600         (check_matching): Pass minimum needed length.
25601         (clean_state_log_if_needed): Likewise.
25602         (get_subexp): Likewise.
25604 2013-01-28  Pádraig Brady  <P@draigBrady.com>
25606         mountlist: don't consider "devtmpfs" as dummy
25607         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
25608         as there is storage associcated with it.
25610 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25612         futimens-tests, utimens-tests: Depend on gettext.
25613         This works around a problem introduced in my 2013-01-12 patch,
25614         which added @LIBINTL@ to these modules.
25615         * modules/futimens-tests (Depends-on):
25616         * modules/utimens-tests (Depends-on): Add gettext.
25618 2013-01-26  Eric Blake  <eblake@redhat.com>
25620         test-getpeername: fix typo
25621         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
25623 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
25625         bootstrap: remove the need for a sorted .gitignore file
25626         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
25627         rename to insert_if_absent(), so that we don't need or generate
25628         a sorted .gitignore file.  We do require a .gitignore with no
25629         existing duplicate entries and enforce that.
25630         (sort_patterns): Remove this function as we now use the simpler
25631         technigue of inserting blacklist entries at the top of the file,
25632         assuming gnulib won't be inserting !whitelist entries.
25634 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25636         readlinkat: don't depend on gl_FUNC_OPENAT
25637         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
25638         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
25639         renameat.m4, symlinkat.m4; but one thing at a time.
25641         statat: new module, split out from fstatat
25642         GNU Emacs needs the POSIX-specified fstatat, but not the
25643         gnulib-specified statat and lstat.  Split the latter two into a
25644         new module 'statat'.
25645         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
25646         * lib/openat.h, lib/statat.c (STATAT_INLINE):
25647         Rename from FSTATAT_INLINE. All uses changed.
25648         * modules/fstatat (Files): Remove lib/statat.c.
25649         (gl_MODULE_INDICATOR([fstatat])): Remove.
25650         (lib_SOURCES): Remove.
25651         (Maintainer): Add self.
25652         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
25653         * tests/test-fstatat.c (BASE): Don't define if already defined.
25654         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
25656 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25658         tests: don't assume fd 99 is closed
25659         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
25660         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
25661         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
25662         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
25663         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
25664         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
25665         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
25666         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
25667         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
25668         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
25669         * tests/test-fwrite.c, tests/test-getpeername.c:
25670         * tests/test-getsockname.c, tests/test-getsockopt.c:
25671         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
25672         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
25673         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
25674         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
25675         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
25676         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
25677         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
25678         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
25679         * tests/test-unlinkat.c, tests/test-unlockpt.c:
25680         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
25681         Close file descriptor 99, instead of assuming it's already closed.
25683 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25685         stpncpy: port to OS X 10.8
25686         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
25687         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
25689 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25691         unistd: port to recent mingw
25692         * lib/unistd.in.h: Remove special invocation convention for mingw,
25693         which breaks for the latest mingw version.  See John W. Eaton in
25694         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
25696         largefile: port better to Mac OS X 10.5
25697         This patch is backported from Autoconf git.
25698         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
25699         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
25700         with ino_t size being different for configuration time versus
25701         build/run time.  Problem reported by PHO in
25702         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
25704 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25706         doc: clarify -Werror
25707         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
25708         clarify that it's intended for developers, not for ordinary builds,
25709         and mention --enable-gcc-warnings as one possible use.
25711 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
25713         stdint: fix build with Android's Bionic fox x86
25714         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
25715         was already included as _SSIZE_T_DEFINED_ might also be defined
25716         in include/machine/_types.h, which is included by stdio.h
25718 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
25720         net_if-tests: port to Solaris 7 + GCC 3.4.6
25721         Problem reported by Tom G. Christensen in
25722         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
25723         * tests/test-net_if.c (ni): Move to next the code that uses it,
25724         so that it's declared only if needed.
25726 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25728         net_if-tests: port to older Solaris
25729         Problem reported by Tom G. Christensen in
25730         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
25731         * modules/net_if-tests (NET_IF_LIB): New substitution.
25732         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
25733         (HAVE_IF_NAMEINDEX): New C macro.
25734         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
25736         system-quote-tests: port to older Solaris
25737         Problem reported by Tom G. Christensen in
25738         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
25739         * tests/test-system-quote-child.c (fopen, fread): Undef.
25741         c-xvasprintf etc.: fix link errors on older Solaris
25742         These need to link with @LIBINTL@ to get libintl_gettext.
25743         Problem reported by Tom G. Christensen in
25744         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
25745         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
25746         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
25747         * modules/futimens-tests (test_futimens_LDADD):
25748         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
25750 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25752         locale: port to Solaris 2.6 and 7 + GNU gettext
25753         * lib/locale.in.h: Just include_next <locale.h> when
25754         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
25755         when combining the localename module with GNU gettext 0.18.2.
25756         Problem reported by Tom G. Christensen in
25757         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
25759 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25761         stdlib: port to Solaris 2.6
25762         Also, the code worked on Solaris 7 through 9 only by accident.
25763         Problem reported by Tom G. Christensen in
25764         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
25765         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
25766         simply include the system stdlib.h.
25767         * lib/getopt.in.h (__need_system_stdlib_h):
25768         * lib/pthread.in.h (__need_system_stdlib_h):
25769         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
25770         Define when including <stdlib.h>, to avoid problems at least for
25771         the pthread case on Solaris 2.6 and 7.  These .h files can get by
25772         with the system stdlib.h.
25774 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25776         doc: update main copyright year
25777         * doc/gnulib.texi: Update copyright date.
25779         doc: improve ISO 8601 discussion
25780         * doc/parse-datetime.texi (Combined date and time of day items):
25781         Specify more carefully what formats are supported and what is
25782         done with excess precision.
25784 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
25786         doc: avoid small caps
25787         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
25788         they're more trouble than they're worth.  Suggested by Karl Berry
25789         in <http://bugs.gnu.org/13360>.
25791         regex: conform to strict C
25792         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
25793         From Aharon Robbins.
25795         gnulib-tool: fix incompatibility with autopoint 0.18.2
25796         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
25797         Problem reported by Tom G. Christensen in
25798         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
25800 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25802         fprintftime: bring back and reword fwrite comment
25803         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
25805         stdio: remove now-unnecessary stdio.c
25806         Since stdio.in.h no longer uses inline functions, we no longer
25807         need to compile the extern versions.
25808         * lib/stdio.c: Remove.
25809         * modules/stdio (Files): Remove lib/stdio.c.
25810         (lib_SOURCES): Remove.
25812         unicodeio: depend on stdio, not ignore-value
25813         * lib/unicodeio.c: Do not include ignore-value.h.
25814         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
25815         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
25817         fprintftime: depend on stdio, not ignore-value
25818         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
25819         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
25820         since the stdio module arranges to silence that warning now.
25821         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
25823 2012-10-04  Simon Josefsson  <simon@josefsson.org>
25825         stdint-tests: Fix expanded-before-required-warning.
25826         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
25828 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
25830         fwrite: silence __wur only for older glibc versions
25831         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
25832         This will help us remove this workaround some time in the far future.
25834 2013-01-03  Eric Blake  <eblake@redhat.com>
25836         fwrite: silence __wur without using inline
25837         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
25838         just gcc, and in a way that avoids inline issues.
25839         * modules/stdio (Depends-on): Drop extern-inline.
25841 2013-01-03  Jim Meyering  <jim@meyering.net>
25843         update-copyright: avoid copyright notice date corruption
25844         Given a sequence of copyright year numbers in which the final
25845         one was a two-digit number that happened to be a substring of
25846         a preceding four-digit year number, we would mistakenly update
25847         the substring (from two- to four-digit) rather than the two-digit
25848         number at the end, which, combined with the addition of the current
25849         4-digit year number would yield two 5-digit year numbers, e.g.,
25850         here, it would convert the first "99" to "1999, 2013" rather than
25851         the final one:
25852           1991, 99
25853           11999, 20131, 1999
25854         * build-aux/update-copyright: Tighten a regexp.
25855         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
25856         Reported by Joseph Myers in
25857         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
25859 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25861         regex: omit needless signed-pointer casts
25862         * lib/regcomp.c (build_charclass, build_charclass_op):
25863         Use char *, not unsigned char *, for class name and extra.
25864         The char values are always nonnegative so there's no need to
25865         insist on unsigned char * here, and using char * removes the need
25866         for casts.  Reported by Aharon Robbins in
25867         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25869         regex: support Gawk, which never uses alloca
25870         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
25871         Do not include in this case.  Gawk doesn't supply a substitute
25872         alloca.h and doesn't need one.
25874         regex: port __libc_lock_define usage to C89
25875         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
25876         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
25877         does not conform to C89, as it has an empty macro argument.
25878         Reported by Aharon Robbins in
25879         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25881 2013-01-01  Eric Blake  <eblake@redhat.com>
25883         maint: update all copyright year number ranges
25884         Run "make update-copyright".
25886         version-etc: bump copyright year reported in --version
25887         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
25889 2012-12-31  Eric Blake  <eblake@redhat.com>
25891         sigprocmask-tests: skip test if pid is unexpectedly large
25892         * tests/test-sigprocmask.c (main): Add range check.
25894         git-version-gen: avoid test -z portability glitch
25895         * build-aux/git-version-gen: Prefer portable test spelling, since
25896         git-version-gen is run on more than just developer machines.
25898 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
25900         git-version-gen: add --fallback option to use if git is not present
25901         * build-aux/git-version-gen: Add support for the new option --fallback,
25902         which comes into play when there is no $tarball_version_file and
25903         git is not working.
25904         (scriptversion): Update.
25906         maint.mk: handle missing git with more grace
25907         * top/maint.mk (no-submodule-changes, public-submodule-commit):
25908         Quietly proceed if git is not present.
25910 2012-12-31  Eric Blake  <eblake@redhat.com>
25912         dup2: work around cygwin bug
25913         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
25914         * lib/dup2.c (rpl_dup2): Work around it.
25915         * doc/posix-functions/dup2.texi (dup2): Document it.
25917 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25919         regex: remove unnecessary dependency on localcharset.h
25920         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
25921         hasn't been needed for years.
25922         * modules/regex (Depends-on): Remove localcharset.
25924         regex: revert single-byte change
25925         * lib/regexec.c (check_node_accept_bytes): Revert previous change
25926         to this function.  This was alredy fixed in a different way, at
25927         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
25928         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
25929         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
25931         regex: simplify based on Gawk version
25932         * lib/regex_internal.c (re_dfa_add_node): Simplify.
25933         Reported by Aharon Robbins in
25934         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25936 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25938         regex: check that pattern char is single-byte
25939         Reported by Aharon Robbins in
25940         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25941         * lib/regexec.c (check_node_accept_bytes):
25942         Return 0 if the pattern string has a multibyte character here.
25944         regex: implement rational ranges
25945         Reported by Aharon Robbins in
25946         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25947         * lib/regcomp.c (build_range_exp) [!_LIBC]:
25948         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
25949         Implement rational ranges.
25951         regex: avoid redefining __wctype
25952         Reported by Aharon Robbins in
25953         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25954         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
25955         #undef before defining.
25957         regex: port to hosts where malloc (0) == NULL
25958         Reported by Aharon Robbins in
25959         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25960         * lib/regex_internal.c (re_node_set_alloc):
25961         Don't assume that malloc (0) yields nonnull.
25962         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
25963         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
25964         * modules/regex (Files): Add m4/eealloc.m4.
25966         regex: port to C89
25967         Reported by Aharon Robbins in
25968         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25969         * lib/regcomp.c (init_word_char): Declaration before statement.
25971         regex: merge glibc changes
25972         Also, copy the license wording from glibc.  This simplifies
25973         merging changes.  gnulib-tool will change the wording to GPL as
25974         appropriate, when importing it to other packages.  The only
25975         glibc change made since the last merge, which needs merging, is:
25976         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
25977         * lib/regex_internal.h (gettext): Remove use of INTUSE.
25979         * users.txt: Add Emacs.
25981         doc: omit mention of version when not needed
25982         * doc/gnulib-intro.texi (Portability and Application Code):
25983         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
25984         Don't mention particular dates or versions when not necessary, so
25985         that the documentation won't go out of date so quickly.
25987         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
25989 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
25991         bootstrap: pass --force to autoreconf.
25992         * build-aux/bootstrap (AUTORECONFFLAGS): New.
25993         Add "--force" so that Automake's ylwrap and other such tools
25994         be updated at each bootstrap invocation.
25995         Use it.
25997 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25999         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
26000         The earlier patch forgot to update one of the #if conditions, causing
26001         a problem on Debian testing i386 reported by Mats Erik Andersson
26002         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
26003         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
26004         (__argp_fmtstream_puts, argp_fmtstream_puts)
26005         (__argp_fmtstream_write, argp_fmtstream_write)
26006         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
26008         * doc/gnulib-readme.texi: Minor fixups.
26009         (Portability guidelines): Modernize URLs.  Remove some repetition.
26010         (Indent with spaces not TABs): Reword to avoid too-long lines.
26011         Remove some '@ifset standalone' stuff that isn't used.
26013         * doc/gnulib-readme.texi (Portability guidelines):
26014         ctype.h, not ctime.h.
26016         Correct name of POSIX.1-2001.
26017         * doc/posix-functions/fgetc.texi (fgetc):
26018         * doc/posix-functions/fgets.texi (fgets):
26019         * doc/posix-functions/fread.texi (fread):
26020         * doc/posix-functions/fscanf.texi (fscanf):
26021         * doc/posix-functions/getc.texi (getc):
26022         * doc/posix-functions/getchar.texi (getchar):
26023         * doc/posix-functions/scanf.texi (scanf):
26024         POSIX.1-2001, not POSIX-2001.
26026         doc: move README into manual
26027         * README: Move contents to new file doc/gnulib-readme.texi.
26028         Replace with a one-line summary.
26029         * doc/gnulib.texi (Brief Overview): New section,
26030         with old intro preface.  Include gnulib-readme.texi for contents.
26031         (Philosophy): Rename from "Introduction", since this
26032         section no longer introduces the rest.  Write a new preface.
26033         * doc/gnulib-readme.texi: New file, with the old contents of
26034         README texinfo-ized.  This way, the README info appears
26035         in the online and printed manual.
26037 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
26039         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
26040         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
26041         c_vasprintf() prototype.
26043 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
26045         c-vasprintf: Fix "empty declaration" warning reported by GCC.
26046         * lib/c-vasprintf.h: Remove stray semicolon.
26048 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26050         gettext: avoid obsolete macro AM_PROG_MKDIR_P
26051         It is obsolete and is planned to be removed from Automake 1.14; see
26052         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
26053         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
26054         (installdirs-data, installdirs-data-yes):
26055         Use $(MKDIR_P), not $(mkdir_p).
26056         * m4/intl.m4 (AM_INTL_SUBDIR):
26057         * m4/po.m4 (AM_PO_SUBDIRS):
26058         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
26060 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26062         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
26063         On this platform, we are not optimizing but we are using
26064         the substitute for extern inlines, so compile as if
26065         C99-style extern inline, or a substitute, is available.
26066         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
26067         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
26068         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
26069         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
26070         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
26071         Declare as ARGP_FS_EI, not as extern.
26072         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
26073         (__option_is_short, _option_is_end, __option_is_end)
26074         [!_LIBC && __USE_EXTERN_INLINES]:
26075         Declare as ARGP_EI, not as extern.
26077 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26079         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
26080         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
26081         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
26082         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
26083         ...), as the latter is fatal with older Autoconfs.
26084         Problem reported and fix suggested by Eric Blake in thread starting at
26085         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
26087 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26089         AC_PROG_MKDIR_P: don't workaround if not buggy
26090         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
26091         Define only for Autoconf versions before 2.62.
26092         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
26093         undocumented m4_PACKAGE_VERSION, for consistency with the
26094         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
26095         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
26096         was introduced in 2.62.
26098 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
26100         New 'c-*printf' modules for formatted output in C locale.
26102         New module 'c-vasnprintf'.
26103         * modules/c-vasnprintf: New file.
26104         * lib/c-vasnprintf.c: New file.
26105         * lib/c-vasnprintf.h: New file.
26107         New module 'c-snprintf'.
26108         * modules/c-snprintf: New file.
26109         * modules/c-snprintf-tests: New file.
26110         * lib/c-snprintf.c: New file.
26111         * lib/c-snprintf.h: New file.
26112         * tests/test-c-snprintf.c: New file.
26113         * tests/test-c-snprintf.sh: New file.
26115         New module 'c-vsnprintf'.
26116         * modules/c-vsnprintf: New file.
26117         * modules/c-vsnprintf-tests: New file.
26118         * lib/c-vsnprintf.c: New file.
26119         * lib/c-vsnprintf.h: New file.
26120         * tests/test-c-vsnprintf.c: New file.
26121         * tests/test-c-vsnprintf.sh: New file.
26123         New module 'c-vasprintf'.
26124         * modules/c-vasprintf: New file.
26125         * modules/c-vasprintf-tests: New file.
26126         * lib/c-asprintf.c: New file.
26127         * lib/c-vasprintf.c: New file.
26128         * lib/c-vasprintf.h: New file.
26129         * tests/test-c-vasprintf.c  +: New file.
26130         * tests/test-c-vasprintf.sh: New file.
26132         New module 'c-xvasprintf'.
26133         * modules/c-xvasprintf: New file.
26134         * modules/c-xvasprintf-tests: New file.
26135         * lib/c-xasprintf.c: New file.
26136         * lib/c-xvasprintf.c: New file.
26137         * lib/c-xvasprintf.h: New file.
26138         * tests/test-c-xvasprintf.c: New file.
26139         * tests/test-c-xvasprintf.sh: New file.
26141 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26143         argp: better 'inline'
26144         Use extern-inline module to declare extern inline functions.
26145         This avoids some bogus warning diagnostics.  Problem discovered
26146         when modifying GNU tar to use the manywarnings module.
26147         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
26148         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
26149         Define based on extern-inline.
26150         * modules/argp (Depends-on): Add extern-inline.
26152 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
26154         filemode, sys_stat: Handle MPX files a la AIX.
26155         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
26156         * lib/sys_stat.in.h (S_ISMPX): New macro.
26157         * tests/test-sys_stat.c: Add tests for MPX files.
26159 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
26161         x-to-1: honor $PERL
26162         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
26163         a chance to use his preferred version of Perl.  This is typically
26164         required by Darwin users whose default /usr/bin/perl does not have all
26165         the libraries required by help2man, and who need to use their MacPorts
26166         installation of Perl instead.
26168 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
26170         gnu-web-doc-update: add all the new files, even in new directories
26171         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
26172         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
26173         Use it.
26174         (main): Don't use cvsutils to get the list of unknown files,
26175         just add all the existing files and directories.
26177 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
26179         gnu-web-doc-update: improve --help
26180         * build-aux/gnu-web-doc-update: Move comments into --help.
26182 2012-12-07  Eric Wong  <normalperson@yhbt.net>
26184         mountlist: recognize more "dummy" file systems
26185         * lib/mountlist.c (ME_DUMMY_0):
26186         Add these dummy FS names to the list:
26187         - "debugfs" virtual filesystem for kernel debugging
26188         - "devpts" PTY slave filesystem
26189         - "devtmpfs" device filesystem on top of tmpfs/ramfs
26190         - "fusectl" control filesystem for FUSE
26191         - "mqueue" enumerates POSIX message queues
26192         - "rpc_pipefs" kernel <-> userspace bridge for NFS
26193         - "sysfs" is for exporting kernel objects
26194         - "devfs" device filesystem for Linux 2.4 and FreeBSD
26196 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
26198         extern-inline: avoid incompatibility with Darwin Libc
26199         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
26200         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
26201         Problem reported by Akim Demaille in
26202         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
26204 2012-12-11  Simon Josefsson  <simon@josefsson.org>
26206         gnupload: Work with GnuPG using gpg-agent (for smartcards).
26207         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
26208         let it handle password prompting.
26210 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
26212         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
26213         * lib/canonicalize.c (canonicalize_filename_mode):
26214         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
26215         fetching the current directory.  Don't overrun the beginning of
26216         rpath if there's no slashes after the MS-Windows drive letter.
26218 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
26220         maint.mk: avoid extra forks
26221         * top/maint.mk (_cfg_mk): The GNU make manual documents that
26222         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
26223         So use that instead of "$(shell test -f FILE && echo FILE)".
26225 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26227         vasnprintf: fix ASCII_ONLY typo
26228         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
26229         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
26230         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
26231         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
26232         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
26234 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
26236         list, oset, xlist, xoset: fix extern inline issue with C99
26237         This was introduced by my recent changes for 'inline'.
26238         Problem reported for gettext by Daiki Ueno in
26239         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
26240         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
26241         (gl_list_nx_create, gl_list_size, gl_list_node_value)
26242         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
26243         (gl_list_previous_node, gl_list_get_at)
26244         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
26245         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
26246         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
26247         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
26248         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
26249         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
26250         (gl_list_iterator_free, gl_sortedlist_search)
26251         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
26252         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
26253         (gl_sortedlist_remove):
26254         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
26255         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
26256         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
26257         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
26258         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
26259         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
26260         (gl_list_add_at, gl_sortedlist_add):
26261         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
26262         Wrap these extern decls inside "#if 0", because they are implemented
26263         as inline functions, and extern inline is not what's wanted here.
26264         It would simplify these .h files to remove the extern decls entirely,
26265         although a downside would be less-clear separation between
26266         specification and implementation.
26268 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26270         sys_stat: no 'static inline'
26271         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
26272         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
26274         extern-inline: no 'static inline'
26275         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
26276         Do not require AC_C_INLINE.
26277         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
26278         'static inline', for older compilers.
26280         snippet/warn-on-use: no 'static inline'
26281         * build-aux/snippet/warn-on-use.h:
26282         Remove unnecessary 'inline' in comment.
26284         rbtree-list, rbtreehash-list: no 'static inline'
26285         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
26286         * lib/gl_anytree_list2.h (node_at):
26287         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
26288         (gl_oset_first, add_nodes_to_buckets):
26289         Now static, not static inline.
26291         regex: no 'static inline'
26292         * lib/regex_internal.c (calc_state_hash):
26293         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
26294         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
26295         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
26296         Now static, not static inline.
26297         (inline) [__GNUC__ < 3 && _LIBC]:
26298         Remove macro; no longer needed.
26300         xvasprintf: no 'static inline'
26301         * lib/xvasprintf.c (xstrcat):
26302         Now static, not static inline.
26303         * m4/xvasprintf.m4 (gl_XVASPRINTF):
26304         Do not require AC_C_INLINE.
26306         parse-datetime, parse-duration: no 'static inline'
26307         * lib/parse-datetime.y (to_uchar):
26308         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
26309         (scale_n_add):
26310         Now static, not static inline.
26311         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
26312         * modules/parse-duration (configure.ac):
26313         Do not require AC_C_INLINE.
26315         getaddrinfo: no 'static inline'
26316         * lib/getaddrinfo.c (validate_family):
26317         Now static, not static inline.
26318         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
26319         Do not require AC_C_INLINE.
26321         ftruncate, fts, lstat, openat, raise: no 'static inline'
26322         * lib/ftruncate.c (chsize_nothrow):
26323         * lib/fts.c (opendirat, diropen):
26324         * lib/lstat.c (orig_lstat):
26325         * lib/openat.c (orig_openat):
26326         * lib/raise.c (raise_nothrow):
26327         Now static, not static inline.
26328         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
26329         * m4/fts.m4 (gl_FUNC_FTS_CORE):
26330         * m4/lstat.m4 (gl_PREREQ_LSTAT):
26331         * m4/openat.m4 (gl_PREREQ_OPENAT):
26332         * m4/raise.m4 (gl_PREREQ_RAISE):
26333         Do not require AC_C_INLINE.
26335         fflush, stat: no 'static inline'
26336         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
26337         (clear_ungetc_buffer, disable_seek_optimization)
26338         (restore_seek_optimization, update_fpos_cache):
26339         * lib/stat.c (orig_stat):
26340         Now static, not static inline.
26341         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
26342         (update_fpos_cache):
26343         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
26344         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
26345         * m4/stat.m4 (gl_PREREQ_STAT):
26346         Do not require AC_C_INLINE.
26348         error, filevercmp: no 'static inline'
26349         * lib/error.c (is_open, flush_stdout):
26350         * lib/filevercmp.c (order):
26351         Now static, not static inline.
26352         * m4/error.m4 (gl_PREREQ_ERROR):
26353         * modules/filevercmp (configure.ac):
26354         Do not require AC_C_INLINE.
26356         dup, execute, fatal-signal, etc.: no 'static inline'
26357         * lib/dup.c (dup_nothrow):
26358         * lib/execute.c (nonintr_close, nonintr_open):
26359         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
26360         * lib/fopen.c (orig_fopen):
26361         * lib/freadseek.c (freadptrinc):
26362         * lib/freopen.c (orig_freopen):
26363         * lib/fstat.c (orig_fstat, fstat_nothrow):
26364         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
26365         (get_rusage_as_via_iterator):
26366         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
26367         * lib/getdtablesize.c (_setmaxstdio_nothrow):
26368         * lib/isatty.c (_isatty_nothrow):
26369         * lib/open.c (orig_open):
26370         * lib/read.c (read_nothrow):
26371         * lib/sigprocmask.c (signal_nothrow):
26372         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
26373         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
26374         * lib/wait-process.c (unregister_slave_subprocess):
26375         * lib/write.c (write_nothrow):
26376         Now static, not static inline.
26377         * lib/spawn-pipe.c (nonintr_open): Define only if
26378         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
26379         * m4/dup.m4 (gl_PREREQ_DUP):
26380         * m4/execute.m4 (gl_EXECUTE):
26381         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
26382         * m4/fopen.m4 (gl_PREREQ_FOPEN):
26383         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
26384         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
26385         * m4/fstat.m4 (gl_PREREQ_FSTAT):
26386         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
26387         * m4/isatty.m4 (gl_PREREQ_ISATTY):
26388         * m4/open.m4 (gl_PREREQ_OPEN):
26389         * m4/read.m4 (gl_PREREQ_READ):
26390         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
26391         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
26392         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
26393         * m4/wait-process.m4 (gl_WAIT_PROCESS):
26394         * m4/write.m4 (gl_PREREQ_WRITE):
26395         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
26396         Do not require AC_C_INLINE.
26398         c-strtod, memcoll, readutmp: no 'static inline'
26399         * lib/c-strtod.c (c_locale):
26400         * lib/memcoll.c (strcoll_loop):
26401         * lib/readutmp.c (desirable_utmp_entry):
26402         Now static, not static inline.
26403         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
26404         * m4/memcoll.m4 (gl_MEMCOLL):
26405         * m4/readutmp.m4 (gl_READUTMP):
26406         Do not require AC_C_INLINE.
26408         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
26409         * lib/arctwo.c (to_uchar):
26410         * lib/md4.c (set_uint32):
26411         * lib/md5.c (set_uint32):
26412         * lib/sha1.c (set_uint32):
26413         * lib/sha256.c (set_uint32):
26414         * lib/sha512.c (set_uint64):
26415         Now static, not static inline.  This is a bit simpler, and doesn't
26416         affect performance with GCC and default optimization.
26417         * m4/arctwo.m4 (gl_ARCTWO):
26418         * m4/md4.m4 (gl_MD4):
26419         * m4/md5.m4 (gl_MD5):
26420         * m4/sha1.m4 (gl_SHA1):
26421         * m4/sha256.m4 (gl_SHA256):
26422         * m4/sha512.m4 (gl_SHA512):
26423         Do not require AC_C_INLINE.
26425         cond, lock, thread: better 'inline'
26426         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
26427         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
26428         New macros.  Use them instead of static inline, for header functions.
26429         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
26430         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
26431         * lib/glthread/lock.c (gl_waitqueue_init)
26432         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
26433         * lib/glthread/thread.c (get_current_thread_handle):
26434         Change 'static inline' to 'inline'.
26435         * lib/glthread/cond.h, lib/glthread/thread.h:
26436         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26437         * m4/cond.m4 (gl_COND):
26438         * m4/lock.m4 (gl_PREREQ_LOCK):
26439         * m4/thread.m4 (gl_THREAD):
26440         Do not require AC_C_INLINE.
26441         * modules/cond, modules/thread (Depends-on): Add extern-inline.
26443         chdir-long, cycle-check, savewd: better 'inline'
26444         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
26445         (find_non_slash):
26446         * lib/cycle-check.c (is_zero_or_power_of_two):
26447         * lib/savewd.c (savewd_delegating):
26448         Change 'static inline' to 'inline'.
26449         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
26450         Replace all remaining uses of 'static inline' with it.
26451         * lib/savewd.h:
26452         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26453         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
26454         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
26455         * m4/savewd.m4 (gl_SAVEWD):
26456         Do not require AC_C_INLINE.
26457         * modules/savewd (Depends-on): Add extern-inline.
26459         base32, base64: no need for 'inline'
26460         * lib/base32.c (to_uchar, get_8, decode_8):
26461         * lib/base64.c (to_uchar, get_4, decode_4):
26462         Change 'static inline' to 'inline'.
26463         * m4/base32.m4 (gl_PREREQ_BASE32):
26464         * m4/base64.m4 (gl_PREREQ_BASE64):
26465         Do not require AC_C_INLINE.
26467         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
26468         * lib/gl_array_oset.c (gl_array_nx_add_at):
26469         (gl_array_remove_at):
26470         * lib/gl_linkedhash_list.c (hash_resize_after_add)
26471         (add_to_bucket, remove_from_bucket):
26472         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
26473         Change 'static inline' to 'static', as it's simpler to omit
26474         'inline' unless there's a significant performance advantage.
26476         list, oset, xlist, xoset, xsublist: simplify via extern inline
26477         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
26478         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
26479         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
26480         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
26481         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
26482         New macro.  Replace all uses of 'static inline' with it.
26483         [HAVE_INLINE]: Implement functions as *_INLINE functions,
26484         instead of as macros FOO that are defined to static inline
26485         functions FOO_inline.
26486         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
26487         * lib/gl_xsublist.c:
26488         Reimplement from scratch, by defining the corresponding *_INLINE
26489         macro and including the corresponding .h file.  This is simpler.
26490         * modules/list, modules/oset, modules/xlist, modules/xoset:
26491         (Files): Remove m4/gl_list.m4.
26492         (configure.ac): Remove gl_LIST.
26493         * m4/gl_list.m4: Remove.
26494         * modules/list, modules/oset, modules/xlist, modules/xoset:
26495         * modules/xsublist:
26496         (Depends-on): Depend on extern-inline, not inline.
26498         xalloc: better 'inline'
26499         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
26500         New macro.  Replace all uses of 'static inline' with it.
26501         (static_inline): Remove.
26502         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
26503         Let 'extern inline' do the work automatically, instead of doing
26504         it by hand.
26505         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
26506         Remove.  All uses removed.
26507         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
26509         gethrxtime: better 'inline'
26510         * lib/xtime.c: New file.
26511         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
26512         * lib/xtime.h (XTIME_INCLUDE):
26513         New macros.  Replace all uses of 'static inline' with them.
26514         * lib/gethrxtime.c (gethrxtime): Define only if
26515         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
26516         this source file is now always compiled, because of the extern inline.
26517         * lib/gethrxtime.h, lib/xtime.h:
26518         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26519         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
26520         if gethrtime works, as they're not needed in that case.
26521         (gl_XTIME): Do not require AC_C_INLINE.
26522         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
26523         compiled now.  Move the check into gl_GETHRXTIME.
26524         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
26525         (Depends-on): Add extern-inline.
26526         (configure.ac): gethrxtime is always compiled now.
26527         (lib_SOURCES): Add gethrxtime.c.
26529         wctype-h: better 'inline'
26530         * lib/wctype-h.c: New file.
26531         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
26532         New macro.  Replace all uses of 'static inline' with it.
26533         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26534         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
26535         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
26536         (Depends-on): Add extern-inline.
26538         unistd: better 'inline'
26539         * lib/unistd.c: New file.
26540         * lib/unistd.in.h (_GL_UNISTD_INLINE):
26541         New macro.  Replace all uses of 'static inline' with it.
26542         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26543         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
26544         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
26545         (Depends-on): Add extern-inline.
26547         sys_socket: better 'inline'
26548         * lib/sys_socket.c: New file.
26549         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
26550         New macro.  Replace all uses of 'static inline' with it.
26551         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26552         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
26553         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
26554         (Depends-on): Add extern-inline.
26556         stdio: better 'inline'
26557         * lib/stdio.c: New file.
26558         * lib/stdio.in.h (_GL_STDIO_INLINE):
26559         New macro.  Replace all uses of 'static inline' with it.
26560         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26561         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
26562         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
26563         (Depends-on): Add extern-inline.
26565         sigaction: better 'inline'
26566         * lib/sig-handler.c: New file.
26567         * lib/sig-handler.h (SIG_HANDLER_INLINE):
26568         New macro.  Replace all uses of 'static inline' with it.
26569         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26570         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
26571         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
26572         (Depends-on): Add extern-inline.
26574         selinux-h: better 'inline'
26575         * lib/se-context.c, lib/se-selinux.c: New files.
26576         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
26577         * lib/se-context.in.h (SE_CONTEXT_INLINE):
26578         New macro.  Replace all uses of 'static inline' with it.
26579         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26580         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
26581         New macro.  Replace all uses of 'static inline' with it.
26582         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26583         * modules/selinux-h (Files, lib_SOURCES):
26584         Add lib/se-context.c, lib/se-selinux.c.
26585         (Depends-on): Add extern-inline.
26586         (configure.ac): Do not require AC_C_INLINE.
26588         pthread: better 'inline'
26589         * lib/pthread.c: New file.
26590         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
26591         New macro.  Replace all uses of 'static inline' with it.
26592         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26593         * m4/pthread.m4 (gl_PTHREAD_CHECK):
26594         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
26595         * modules/pthread (Files): Add lib/pthread.c.
26596         (Depends-on): Add extern-inline.
26598         math: better 'inline'
26599         * lib/math.c: New file.
26600         * lib/math.in.h (_GL_MATH_INLINE):
26601         New macro.  Replace all uses of 'static inline' with it.
26602         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26603         * m4/math_h.m4 (gl_MATH_H):
26604         Do not require AC_C_INLINE.
26605         * modules/math (Files, lib_SOURCES):
26606         Add lib/math.c.
26607         (Depends-on): Add extern-inline.
26609         count-one-bits: better 'inline'
26610         * lib/count-one-bits.c: New file.
26611         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
26612         New macro.  Replace all uses of 'static inline' with it.
26613         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26614         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
26615         Do not require AC_C_INLINE.
26616         * modules/count-one-bits (Files, lib_SOURCES):
26617         Add lib/count-one-bits.c.
26618         (Depends-on): Add extern-inline.
26620         count-leading-zeros: better 'inline'
26621         * lib/count-leading-zeros.c: New file.
26622         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
26623         New macro.  Replace all uses of 'static inline' with it.
26624         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26625         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
26626         Do not require AC_C_INLINE.
26627         * modules/count-leading-zeros (Files, lib_SOURCES):
26628         Add lib/count-leading-zeros.c.
26629         (Depends-on): Add extern-inline.
26631         bitrotate: better 'inline'
26632         * lib/bitrotate.c: New file.
26633         * lib/bitrotate.h (BITROTATE_INLINE):
26634         New macros.
26635         Replace all uses of 'static inline' with them.
26636         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26637         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
26638         (Depends-on): Add extern-inline.
26639         (configure.ac): Do not require AC_C_INLINE.
26641 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
26643         maint.mk: avoid gratuitous failure
26644         Reported by Stefano Lattarini in
26645         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
26646         * top/maint.mk (public-submodule-commit): Quote more safely.
26648 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
26650         canonicalize, canonicalize-lgpl: support MS-Windows file names
26651         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
26652         for test cases, which it'd be nice to add at some point.
26653         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
26654         * lib/canonicalize.c (canonicalize_filename_mode):
26655         * lib/canonicalize-lgpl.c (__realpath):
26656         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
26657         slash is at the beginning of the file name.  Use ISSLASH, instead
26658         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
26659         the first character with '/'.  Test for
26660         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
26661         with a drive letter.
26662         * lib/canonicalize.c (SLASHES): New macro.
26663         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
26665 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
26667         fts: introduce FTS_VERBATIM
26668         * lib/fts_.h (FTS_VERBATIM): New bit flag.
26669         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
26670         * lib/fts.c (fts_open): Honor it.
26672 2012-11-09  Pádraig Brady  <P@draigBrady.com>
26674         getlogin-tests: allow errno == ENXIO
26675         * tests/test-getlogin.c (main): Skip tests if getlogin fails
26676         with errno == ENXIO (No controlling tty).
26677         getlogin_r-tests: Likewise. Also allow errno == ENOENT
26678         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
26679         with errno == ENOENT.  This was reported to happen in various
26680         situations on GNU/Linux.
26682 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26684         getlogin-tests: allow errno == ENOENT
26685         * tests/test-getlogin.c (main): Skip tests if getlogin fails
26686         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
26687         when running a test in an Emacs shell buffer.
26689 2012-11-08  Jim Meyering  <jim@meyering.net>
26691         tests/nap.h: avoid warning about unused variable
26692         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
26694         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
26695         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
26696         white space before each of the special-cased file names, to avoid
26697         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
26698         in http://bugs.gnu.org/12830.
26700 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
26702         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
26703         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
26704         fails with errno == EBADF when fd is opened with O_PATH.
26705         Reported by Jim Meyering in
26706         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
26707         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
26708         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
26710 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26712         test-utimens: speed up by taking shorter naps
26713         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
26714         New functions.
26715         (nap): Use them, to do a better job of guessing the delay.
26716         On Fedora 17 with ext4 atop md atop hard disks, this made
26717         test-utimens run 10x faster, because the test napped for
26718         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
26719         <http://bugs.gnu.org/12820#11>.
26721 2012-11-07  Jim Meyering  <jim@meyering.net>
26723         mountlist.c: fix a compilation failure
26724         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
26725         I introduced while transforming commit v0.0-7683-g613bcb6
26727 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
26729         errno: port to LynxOS 178 2.2.2
26730         Problem reported by Joel Brobecker in
26731         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
26732         * doc/posix-headers/errno.texi (errno.h): Document this.
26733         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
26734         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
26735         Supply a string for EILSEQ.
26736         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
26738 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
26740         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
26741         Linux kernel 2.6.39 introduced O_PATH (see
26742         <http://lwn.net/Articles/433854/>) and this is a better fallback
26743         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
26744         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
26745         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
26746         * lib/fcntl.in.h (O_ACCMODE):
26747         * tests/test-fcntl-h.c (main):
26748         Do not reject O_ACCMODE merely because it has more than the
26749         minimal number of bits, as POSIX allows extensions here.
26751 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
26753         mountlist: do not classify a bind-mounted dir entry as "dummy"
26754         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
26755         the "none"-testing clause.
26756         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
26757         exception for bind-mounted directories.
26759 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
26761         quote: provide a means to escape strings with nul characters
26762         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
26763         (quote, quote_n): Rename formal arguments for consistency with
26764         quotearg.
26766 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26768         test-raise: don't assume 199 is an invalid signal
26769         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
26771         sh-quote-tests: port to Solaris 9
26772         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
26773         Problem reported by Dagobert Michelsen in
26774         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
26776 2012-10-28  Jim Meyering  <jim@meyering.net>
26778         maint.mk: rename a new configurable variable
26779         * top/maint.mk (_gl_translatable_string_re): Rename from
26780         translation-markers: _gl_ prefix to insulate from user Makefile code,
26781         and the _re suffix to inform that it's a regular expression.
26783 2012-10-26  Eric Blake  <eblake@redhat.com>
26785         maint.mk: let packages tweak sc_po_check pattern
26786         * top/maint.mk (sc_po_check): Add translation-markers, to allow
26787         finding files with other translation markers.
26789 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26791         euidaccess: speed up 'configure' on GNU hosts
26792         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
26793         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
26794         it's needed only in this case.  Use AC_CHECK_DECLS, not
26795         AC_CHECK_DECLS_ONCE.
26796         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
26797         or AC_REQUIRE for AC_FUNC_GETGROUPS.
26799         * lib/regexec.c (re_search_internal): Fix grammar in comment.
26801 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
26803         fchmodat, fchownat, fstatat: port to non-inlining compilers
26804         Problem reported for FreeBSD 9 by Jim Meyering in
26805         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
26806         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
26807         New files, which define FCHMODAT_INLINE etc.
26808         * lib/fchmodat.c (FCHMODAT_INLINE):
26809         * lib/fchownat.c (FCHOWNAT_INLINE):
26810         * lib/fstatat.c (FSTATAT_INLINE):
26811         Remove, as chmodat.c etc. now do this.
26812         * modules/fchmodat (Files): Add lib/chmodat.c.
26813         * modules/fchownat (Files): Add lib/chownat.c.
26814         * modules/fstatat (Files): Add lib/statat.c.
26816 2012-10-15  Jim Meyering  <jim@meyering.net>
26818         fchmodat.c, fchownat.c: compile-impeding typos
26819         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
26820         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
26821         Introduced in commit v0.0-7636-gd202279.
26823 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
26825         fcntl-h: support GNU flags like O_IGNORE_CTTY
26826         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
26827         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
26828         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
26829         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
26830         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
26831         Define to 0 if not already defined.
26832         * tests/test-fcntl-h.c: Test these new flags.
26834 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
26836         faccessat, etc.: support AT_FDCWD-only use
26837         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
26838         this function only if its first argument is AT_FDCWD.
26839         Emacs wants faccessat for AT_EACCESS but not for any first-arg
26840         values other than AT_FDCWD, so it doesn't want all the openat
26841         machinery with fchdir etc.
26842         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
26843         * modules/fstatat, modules/mkdirat, modules/openat (Files):
26844         * modules/unlinkat (Files):
26845         Remove lib/openat-priv.h, as at-internal supplies this file.
26846         Removing this file here allows us to support programs like Emacs
26847         that avoid at-internal.
26849         faccessat: speed up 'configure' on mainstream hosts
26850         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
26851         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
26852         since it's only on unusual platforms that we need to check for
26853         'access', and it's better not to slow 'configure' down on all
26854         platforms.
26856         faccessat: port to Solaris 10
26857         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
26858         Needed on Solaris 10, which doesn't have AT_EACCESS,
26859         so we need the Gnulib fcntl.h, which defines it.
26861 2012-10-14  Pádraig Brady  <P@draigBrady.com>
26862         canonicalize: fix C89 compilation
26863         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
26864         declarations so C89 is supported.  Also remove the comment
26865         referencing memorty allocation as the suggested feature could
26866         not be implemented as suggested.
26867         Reported by Michael Goffioul.
26869 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
26871         group-member: omit unnecessary dependencies
26872         This is for Emacs, which has its own allocator and where we
26873         don't want to use xalloc.
26874         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
26875         since we no longer use xmalloc.  Do not include stdbool.h, since
26876         the changes below happen to remove the only use of bool.
26877         (GROUPBUF_SIZE): New constant.
26878         (struct group_info): Remove n_groups member.  Add groupbuf member.
26879         This lets us get the groups without using malloc, usually.
26880         (free_group_info, get_group_info): Adjust to this.
26881         (get_group_info): Return the number of groups found, or -1 on error.
26882         Use plain malloc not xmalloc, and treat its failure as if there
26883         are no groups, as the user already loses in case of error.
26884         (group_member): Simplify, based on changes to get_group_info.
26885         * modules/group-member (Depends-on): Remove dependencies on
26886         xalloc and stdbool.  Add dependency on xalloc-oversized.
26888 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
26890         gethrxtime: port to C++
26891         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
26893 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26895         ptsname: fix macro-name typo
26896         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
26898 2012-10-03  Simon Josefsson  <simon@josefsson.org>
26900         inttostr: Relax license.
26901         * modules/inttostr (License): Change from LGPL to LGPLv2+.
26903 2012-10-03  Eric Blake  <eblake@redhat.com>
26905         ptsname_r: support ptys returned by FreeBSD posix_openpt
26906         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
26907         lives in /dev/pts/.
26909 2012-10-02  Eric Blake  <eblake@redhat.com>
26911         pselect: reject invalid file descriptors
26912         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
26913         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
26914         * modules/pselect (Depends-on): Add dup2.
26915         * doc/posix-functions/pselect.texi (pselect): Document this.
26917         select: reject invalid file descriptors
26918         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
26919         * lib/select.c (rpl_select) [!win32]: Work around it.
26920         * modules/select (Depends-on): Add dup2.
26921         * doc/posix-functions/select.texi (select): Document this.
26923         select: enhance test
26924         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
26925         New functions.
26926         (test_function): Enhance test.
26927         (do_select_bad_fd): Avoid any stale errno values.
26929         ptsname: reject invalid file descriptors
26930         http://www.austingroupbugs.net/view.php?id=503
26931         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
26932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
26933         * modules/stdlib (Makefile.am): Replace witness.
26934         * lib/stdlib.in.h (ptsname): Allow for replacement.
26935         * modules/ptsname (configure.ac): Trigger replacement.
26936         * doc/posix-functions/ptsname.texi (ptsname): Document this.
26938 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
26940         hash-pjw-bare: new module
26941         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
26942         * lib/hash-pjw-bare.h: Likewise.
26943         * modules/hash-pjw-bare: New file.
26944         * MODULES.html.sh (Misc): Add it.
26946 2012-10-02  Eric Blake  <eblake@redhat.com>
26948         manywarnings: cater to more gcc infelicities
26949         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
26950         -Wuninitialized without -O.
26952 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
26954         select, poll tests: Make setsockopt invocation effective.
26955         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
26956         the bind() call.
26957         * tests/test-select.h (open_server_socket): Likewise.
26959 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
26961         sockets, sys_stat: restore AC_C_INLINE
26962         This undoes the 2012-09-22 patch.
26963         * m4/sockets.m4 (gl_SOCKETS):
26964         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
26965         Restore AC_C_INLINE, since MSVC requires __inline or _inline
26966         and does not support plain 'inline'.  Reported by Bruno Haible in
26967         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
26969 2012-09-30  Bruno Haible  <bruno@clisp.org>
26971         localeconv tests: Avoid test failure on OpenIndiana.
26972         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
26973         skip the 'grouping' and 'mon_grouping' tests.
26974         Reported by Jim Meyering.
26976 2012-09-30  Bruno Haible  <bruno@clisp.org>
26978         havelib: Follow libtool developments.
26979         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
26980         Suggested by Simon Josefsson.
26982 2012-09-29  Jim Meyering  <meyering@redhat.com>
26984         fstatat.c: fix a compile-impeding typo
26985         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
26986         Introduced in commit v0.0-7636-gd202279.
26987         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
26989 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
26991         extern-inline: provide a -Wundef safe config.h
26992         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
26993         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
26994         to produce a -Wundef warning free config.h.
26996 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
26998         hash-pjw: relax license to LGPLv2+
26999         * modules/hash-pjw (License): Relax, with consent of author.
27001 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
27003         maint.mk: fix strict vs. lazy variable issues with RELEASE
27004         * top/maint.mk (_equal): New function.
27005         (member_check): Strip the result to avoid spurious spaces.
27006         (url_dir_list): Do not use ifeq, which is strict, as it will
27007         require RELEASE_TYPE to be defined.
27008         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
27009         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
27010         (announcement_Cc_alpha,announcement_mail_headers_alpha)
27011         (announcement_Cc_beta,announcement_mail_headers_beta)
27012         (announcement_Cc_stable,announcement_mail_headers_stable): these.
27013         (release): Do not depend on $(release-type), as it forces its
27014         evaluation.  Bounce to it.
27016 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
27018         maint.mk: formatting changes
27019         * top/maint.mk: Indent bodies of if's.
27021 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
27023         maint.mk: factor the validation of RELEASE_TYPE
27024         With help from Jim Meyering.
27025         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
27026         * top/maint.mk (_empty, _sp): Move their definition earlier.
27027         (member-check, release-type): New.
27028         Use the latter instead of $(RELEASE_TYPE).
27029         Remove now useless local checks.
27031 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
27033         maint.mk: provide "make upload" to ease uploading
27034         See
27035         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
27036         Do not depend simply on the current $(VERSION), as there may have been
27037         new commits since the tarball generation.  Rather, rely on $(RELEASE),
27038         as "make release-commit" already does.
27040         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
27041         "make TYPE".
27043         * top/maint.mk (upload_command, upload, release): New.
27044         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
27045         (VERSION): first word of $(RELEASE) is always right.
27046         (emit_upload_commands): Adjust.
27047         * top/README-release: Update.
27049 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
27051         maint.mk: silent rules
27052         With help from Stefano Lattarini.
27053         * top/maint.mk (writable-files): Use $(AM_V_GEN).
27054         (announcement): Use $(AM_V_at).
27056 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27058         localename: port gl_locale_name_thread_unsafe to FreeBSD
27059         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
27060         and use the simpler FreeBSD implementation on Mac OS X as well.
27061         Original idea suggested by Ed Maste in
27062         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
27064 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27066         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
27067         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
27068         * lib/mbuiter.c, lib/xsize.c: New files.
27069         * lib/binary-io.h (BINARY_IO_INLINE):
27070         * lib/eealloc.h (EEALLOC_INLINE):
27071         * lib/mbfile.h (MBFILE_INLINE):
27072         * lib/mbiter.h (MBITER_INLINE):
27073         * lib/mbuiter.h (MBUITER_INLINE):
27074         * lib/xsize.h (XSIZE_INLINE):
27075         New macros.
27076         Replace all uses of 'static inline' with them.
27077         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27078         * m4/eealloc.m4 (gl_EEALLOC):
27079         * m4/mbfile.m4 (gl_MBFILE):
27080         * m4/mbiter.m4 (gl_MBITER):
27081         * m4/xsize.m4 (gl_XSIZE):
27082         Do not require AC_C_INLINE.
27083         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
27084         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
27085         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
27086         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
27087         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
27088         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
27089         * modules/binary-io, modules/eealloc, modules/mbfile:
27090         * modules/mbiter, modules/mbuiter:
27091         (Depends-on): Add extern-inline.
27093         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
27094         * lib/pipe-filter-aux.c: New file.
27095         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
27096         Replace all uses of 'static inline' with it.
27097         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27098         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
27099         (filter_retcode): No real need for inline here.
27100         * modules/pipe-filter-gi, modules/pipe-filter-ii:
27101         (Files): Add lib/pipe-filter-aux.c.
27102         (Depends-on): Add extern-inline.
27103         (configure.ac): Do not require AC_C_INLINE.
27104         (lib_SOURCES): Add pipe-filter-aux.c.
27106         fdutimensat: omit unnecessary AC_C_INLINE
27107         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
27109         fchmodat, fchownat, fstatat: use extern-inline
27110         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
27111         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
27112         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
27113         New macros.
27114         * lib/openat.h:
27115         Replace all uses of 'static inline' with them.
27116         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27117         * modules/fchmodat, modules/fchownat, modules/fstatat:
27118         * modules/openat-h:
27119         (Depends-on):
27120         Add extern-inline.
27121         (configure.ac): Remove AC_C_INLINE.
27123         acl, mbchar, priv-set: use extern-inline
27124         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
27125         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
27126         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
27127         New macros.
27128         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
27129         Replace all uses of 'static inline' with it.
27130         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27131         * m4/acl.m4 (gl_FUNC_ACL):
27132         * m4/mbchar.m4 (gl_MBCHAR):
27133         * m4/priv-set.m4 (gl_PRIV_SET):
27134         Remove AC_C_INLINE, since 'inline' is no longer used directly.
27135         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
27136         Add extern-inline.
27138         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
27139         * m4/sockets.m4 (gl_SOCKETS):
27140         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
27141         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
27142         environments where it's already guaranteed to work, so we needn't
27143         check for it at 'configure'-time.
27145         tls-tests: omit unnecessary 'inline'
27146         * tests/test-tls.c (perhaps_yield): No longer inline.
27147         Simplicity and portability trump efficiency in test cases.
27149         utimens-tests: avoid unnecessary 'inline'
27150         * modules/fdutimensat-tests (configure.ac):
27151         * modules/futimens-tests (configure.ac):
27152         * modules/utimens-tests (configure.ac):
27153         * modules/utimensat-tests (configure.ac):
27154         Remove AC_C_INLINE.
27155         * tests/test-utimens-common.h (ctime_compare):
27156         No longer inline.  Simplicity and portability trump efficiency here.
27158         misc: don't limit commentary to inline functions
27159         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
27160         * lib/xalloc-oversized.h, lib/xsize.h:
27161         Contrast macros to functions in general, not just to inline functions,
27162         when the commentary does not apply only to inline functions.
27164 2012-09-20  Jim Meyering  <meyering@redhat.com>
27166         non-recursive-gnulib-prefix-hack: new module
27167         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
27168         the file that originated in Bison.
27169         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
27170         largely copied from a snippet that resided in bison's configure.ac.
27171         * modules/non-recursive-gnulib-prefix-hack: New file.
27172         * MODULES.html.sh (Support for maintaining and releasing projects):
27173         Add it.
27175 2012-09-18  Jim Meyering  <meyering@redhat.com>
27177         maint.mk: generalize _gl_tight_scope for non-recursive make
27178         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
27179         that *.h would describe additional .h files in the directory
27180         specified by $(_gl_TS_dir).  I.e., add this...
27181         (_gl_TS_other_headers): New variable.
27183         maint.mk: exempt trailing blanks found in "binary" files
27184         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
27185         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
27186         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
27188 2012-09-17  Jim Meyering  <meyering@redhat.com>
27190         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
27191         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
27192         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
27193         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
27195 2012-09-17  Jim Meyering  <meyering@redhat.com>
27197         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
27198         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
27199         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
27200         It is not in the same category as "exit (0)" or "exit (1)", and
27201         besides, I know of no symbolic name for that 77.  Reported by
27202         Richard W.M. Jones in
27203         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
27205 2012-09-17  Jim Meyering  <meyering@redhat.com>
27207         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
27208         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
27209         all uses of #define, not just those that start in column 1.
27210         Richard W.M. Jones reported a false positive in
27211         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
27213 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27215         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
27216         * lib/localcharset.c (locale_charset) [DARWIN7]:
27217         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
27218         as these two values are incompatible.  Problem reported by Max Horn.
27219         For more discussion, please see
27220         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
27222         doc: document sticky-EOF issue
27223         * doc/posix-functions/fgetc.texi (fgetc):
27224         * doc/posix-functions/fgets.texi (fgets):
27225         * doc/posix-functions/fread.texi (fread):
27226         * doc/posix-functions/fscanf.texi (fscanf):
27227         * doc/posix-functions/getc.texi (getc):
27228         * doc/posix-functions/getchar.texi (getchar):
27229         * doc/posix-functions/scanf.texi (scanf):
27230         Mention that glibc and default Solaris do not conform to
27231         C99 and POSIX-2001 or later, with respect to how getchar
27232         etc. behave when feof reports nonzero.
27234 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
27236         poll: fix poll(0, NULL, msec)
27237         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
27238         but nfd is 0.  In that case poll should behave like select.
27240 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
27241             Paolo Bonzini  <bonzini@gnu.org>
27243         poll: fix for systems that can't recv() on a non-socket
27244         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
27245         is readable.  In this case POLLHUP will not be supported.
27246         * doc/posix-functions/poll.texi: Document this.
27248 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
27250         poll/select: document portability problems not fixed by Gnulib.
27251         * doc/posix-functions/poll.texi: poll does not work well on
27252         pipes under Windows.  It has the same limitations as select on
27253         BeOS.
27254         * doc/posix-functions/select.texi: select does not work well
27255         on pipes under Windows.
27257 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27259         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
27260         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
27261         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
27262         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
27264 2012-09-06  Eric Blake  <eblake@redhat.com>
27266         net_if: give more details about the bug being fixed
27267         * doc/posix-headers/net_if.texi: Add clarification.
27269 2012-09-05  Eric Blake  <eblake@redhat.com>
27271         net_if: new module
27272         * modules/net_if: New module, borrowing ideas from netinet_in.
27273         * m4/net_if_h.m4: New file.
27274         * lib/net_if.in.h: Likewise.
27275         * doc/posix-headers/net_if.texi (net/if.h): Document it.
27276         * MODULES.html.sh (lacking POSIX:2008): Likewise.
27277         * tests/test-net_if.c: Make function checks conditional.
27278         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
27280 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
27282         readutmp: fix non-portable UT_PID use
27283         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
27284         Use `UT_PID (u) > 0' as absolute condition.
27286 2012-09-04  Jim Meyering  <meyering@redhat.com>
27288         fts: reduce two or more trailing spaces to just one, usually
27289         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
27290         or more slashes, trim all but the final one.  But if a name consists
27291         solely of two slashes, don't modify it.  If it consists solely of
27292         three or more slashes, strip all but one.
27294         This is part of the solution to a minor problem with rm:
27295         it would print a bogus ELOOP diagnostic when failing to remove
27296         the slash-decorated name of a symlink-to-directory:
27298             $ mkdir d && ln -s d s && env rm -r s/
27299             rm: cannot remove 's': Too many levels of symbolic links
27301         With the change below and a trivial don't-trim-trailing-slashes
27302         adjustment to remove.c, it does this:
27304             $ env rm -r s/
27305             rm: cannot remove 's/': Not a directory
27307         Improved by: Eric Blake
27309         fts: when there is no risk of overlap, use memcpy, not memmove
27310         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
27312 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27314         stdbool: be more compatible with mixed C/C++ compiles
27315         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
27316         Define to bool, true, false, respectively, as GCC's builtin
27317         stdbool.h does.  Problem reported by Michael Goffioul in
27318         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
27320 2012-08-28  Jim Meyering  <meyering@redhat.com>
27322         revert last change: it was not needed
27323         * tests/test-vc-list-files-git.sh: There's already a test for
27324         a working git, just below.
27326 2012-08-28  Jim Meyering  <meyering@redhat.com>
27328         tests: test-vc-list-files-git.sh: skip if git is not available
27329         * tests/test-vc-list-files-git.sh: Skip this test when git is
27330         not available.
27332 2012-08-26  Bruno Haible  <bruno@clisp.org>
27334         gnulib-tool: Remove no-op option --no-changelog.
27335         * gnulib-tool (func_usage): Don't mention --no-changelog.
27336         (do_changelog): Remove variable.
27337         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
27339 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27341         doc: remove fdl-1.2.texi
27342         It is no longer used or maintained, and its use of @acronym
27343         is problematic.  See the thread containing
27344         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
27345         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
27346         * doc/old-licenses/fdl-1.2.texi: Remove.
27348         execinfo: port to FreeBSD
27349         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
27350         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
27351         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
27352         * modules/execinfo (Link): Add $(LIB_EXECINFO).
27354 2012-08-23  Jim Meyering  <meyering@redhat.com>
27356         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
27357         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
27358         to placate gcc's -Wold-style-declaration.
27360 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27362         doc: do not use @acronym
27363         * doc/inet_ntoa.texi (inet_ntoa):
27364         * doc/parse-datetime.texi (Seconds since the Epoch)
27365         (Specifying time zone rules):
27366         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
27367         Don't use @acronym.  Problem reported by John Darlington in
27368         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
27370 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27372         stdnoreturn: port to newer GCCs
27373         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
27374         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
27375         Problem reported by Jim Meyering in
27376         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
27377         Also, rename the 'test' function to a void a clash with the
27378         already-supplied 'main' function; this fixes a bug that incorrectly
27379         rejected GCC 4.7.1's <stdnoreturn.h>.
27380         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
27381         Document GCC problem.
27383 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
27385         pipe-filter: fix comment typo
27386         * lib/pipe-filter.h: Mention correct function.
27388 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
27390         execinfo: new module
27391         This is for Emacs.  Currently, it provides a no-effect stub
27392         on all platforms where it does not already work.
27393         It already works on glibc-based systems, and on Solaris 11.
27394         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
27395         New files.
27396         * doc/glibc-headers/execinfo.texi (execinfo.h):
27397         * MODULES.html.sh (Misc): Document it.
27399 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27401         extern-inline: support old GCC 'inline'
27402         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
27403         if available.  This applies to GCC versions 2.7 through 4.2, or
27404         when newer GCC is using -fgnu89-inline.  The goal is to address
27405         some of the performance issues mentioned by Bruno Haible in
27406         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
27408 2012-08-20  Eric Blake  <eblake@redhat.com>
27410         maint.mk: avoid redundant file name in message
27411         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
27412         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
27413         (sc_makefile_path_separator_check): Remove bogus $(ME).
27415 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
27417         timer-time: fix link order when static linking on glibc
27418         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
27419         _after_ -lrt so that it's significant.
27421 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27423         timespec: omit unnecessary AC_C_INLINE
27424         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
27426         stat-time: omit unnecessary AC_C_INLINE
27427         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
27428         Do not require AC_C_INLINE.
27430         ignore-value: omit unnecessary AC_C_INLINE
27431         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
27433         sys_select: avoid 'static inline'
27434         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
27436         mktime: avoid 'static inline'
27437         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
27438         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
27440 2012-08-19  Bruno Haible  <bruno@clisp.org>
27442         gnulib-tool: Improve coding style.
27443         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
27444         func_emit_lib_Makefile_am.
27445         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
27447 2012-08-19  Bruno Haible  <bruno@clisp.org>
27449         gnulib-tool: Fix indentation.
27450         * gnulib-tool (func_import): Fix indentation.
27452 2012-08-19  Bruno Haible  <bruno@clisp.org>
27454         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
27455         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
27456         on the list of removed files.
27458 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27460         test-parse-datetime: avoid glibc leap-second glitch
27461         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
27462         with the 2012 rules.  Problem reported by Bruce Dubbs in
27463         <http://bugs.gnu.org/12206>.
27465 2012-08-14  Bruno Haible  <bruno@clisp.org>
27467         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
27468         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
27469         from argument.
27470         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
27472 2012-08-14  Eric Blake  <eblake@redhat.com>
27474         ldexp: relax license
27475         * modules/ldexp (License): Trivial relax, since the module only
27476         provides a permissively licensed m4 file.
27478 2012-08-13  Bruno Haible  <bruno@clisp.org>
27480         gnulib-tool: Fix persistence of --witness-c-macro option.
27481         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
27482         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
27484 2012-08-11  Eric Blake  <eblake@redhat.com>
27486         count-leading-zeros: use a lookup table on non-gcc compilers
27487         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
27488         alternate implementation, suggested by Jim Meyering.
27490 2012-08-10  Eric Blake  <eblake@redhat.com>
27492         count-leading-zeros: new module
27493         * modules/count-leading-zeros: New module.
27494         * m4/count-leading-zeros.m4: New file.
27495         * lib/count-leading-zeros.h: Likewise.
27496         * modules/count-leading-zeros-tests: New test.
27497         * tests/test-count-leading-zeros.c: New file.
27498         * MODULES.html.sh (Integer arithmetic functions): Document it.
27500 2012-08-07  Simon Josefsson  <simon@josefsson.org>
27501             Jim Meyering  <meyering@redhat.com>
27503         maintainer-makefile: Fix syntax error with dash.
27504         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
27505         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
27507 2012-08-05  Jim Meyering  <meyering@redhat.com>
27509         extern-inline: also ignore -Wmissing-declarations
27510         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
27511         required with gcc-4.8.0-to-be.
27513         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
27514         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
27515         for /error ?([^,]*)/.  This avoids false-positives for strings like
27516         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
27518 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
27520         gnumakefile: better interaction with Automake-NG
27521         * modules/gnumakefile [Makefile.am]: The makefiles generated by
27522         Automake-NG always contain a definition of VPATH, even in non-VPATH
27523         builds (its value being simply '.' in that case).  So, in the
27524         'clean-GNUmakefile' rule, to determine whether running under a
27525         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
27526         '$(VPATH)' expands to the empty string.
27528 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
27530         base64: Use extern C scope in header file, for C++.
27531         * lib/base64.h: Add C++ namespace protection.
27533 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
27535         stat-time, timespec, u64: support naive out-of-dir builds
27536         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
27537         Use '#include "foo.h"', not '#include <foo.h>', when including
27538         one's own interface.  This works better when configuring with
27539         out-of-directory builds, since packages need not add an
27540         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
27542 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
27544         utimens: use extern-inline
27545         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
27546         * lib/utimens.h: Add copyright notice, since this is now large enough
27547         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27548         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
27549         * modules/utimens (Depends-on): Add extern-inline.
27551         u64: use extern-inline
27552         * lib/u64.c: New file.
27553         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27554         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
27555         * modules/u64 (Files): Add lib/u64.c.
27556         (Depends-on): Add extern-inline.
27557         (configure.ac): No need to require AC_C_INLINE, since extern-inline
27558         does that now.
27559         (lib_SOURCES): Add u64.c.
27561         timespec: use extern-inline
27562         * lib/timespec.c: New file.
27563         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27564         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
27565         * modules/timespec (Files): Add lib/timespec.c.
27566         (Depends-on): Add extern-inline.
27567         (lib_SOURCES): Add timespec.c.
27569         stat-time: use extern-inline
27570         * lib/stat-time.c: New file.
27571         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27572         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
27573         * modules/stat-time (Files): Add lib/stat-time.c.
27574         (Depends-on): Add extern-inline.
27575         (lib_SOURCES): Add stat-time.c.
27577         extern-inline: new module
27578         * modules/extern-inline, m4/extern-inline.m4: New files.
27579         This is for better support of 'extern inline' a la ISO C99,
27580         with a portable alternative on compilers that do not support
27581         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
27582         of the Emacs executable, when compiled with debugging disabled,
27583         which is a typical way that Emacs is built while developing.
27585 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
27587         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
27588         * build-aux/do-release-commit-and-tag: Move variable definitions
27589         together.
27590         ($branch): Instead of defaulting to "master", default to the current
27591         branch (as gnu-web-doc-update does).
27592         (help): Display the current values of the option arguments.
27593         * top/maint.mk (release-commit): New.
27594         * top/README-release: Simplify the corresponding step.
27596 2012-07-30  Eric Blake  <eblake@redhat.com>
27598         passfd: fix comment on recvfd
27599         * lib/passfd.c (recvfd): Fix comment.
27600         Reported by Jann Horn <jannhorn@googlemail.com>.
27602 2012-07-30  Jim Meyering  <meyering@redhat.com>
27604         maint.mk: avoid a sub-shell
27605         * top/maint.mk (release-prep): Remove unneeded sub-shell.
27607 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
27609         maint.mk: use silent-rules support from Automake
27610         * top/maint.mk (news-check, vc-diff-check, announcement)
27611         (no-submodule-changes, alpha beta stable, release-prep)
27612         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
27614 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
27616         maint.mk: provide a web-manual-update target
27617         * top/maint.mk: here.
27618         * top/README-release: Use it to simplify the web manual update step.
27620 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
27622         README-release: shorten the circuit to post a news
27623         * top/README-release: Point directly to the news submission form.
27625 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
27627         gnu-web-doc-update: fix --help
27628         * build-aux/gnu-web-doc-update: The information "top level" was written
27629         twice.
27631 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
27633         maint.mk: absolute VPATH issue
27634         * top/maint.mk (release-prep): Help Git find .git/.
27635         From Jim Meyering.
27637 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
27639         gitlog-to-changelog: fix previous change
27640         * build-aux/gitlog-to-changelog: Fix condition.
27641         Add missing ";".
27643 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
27645         gitlog-to-changelog: don't expect .git to be in $srcdir
27646         Reported by Bruno Haible.
27647         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
27648         * build-aux/gitlog-to-changelog (&git_dir_option): New.
27649         Use it.
27651 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
27653         maint.mk: absolute VPATH build fix
27654         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
27655         $(srcdir) is not a parent of $(builddir).
27657 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
27659         clean-temp: Fix memory leak.
27660         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
27661         'files' members of tmpdir.
27663 2012-07-27  Jim Meyering  <meyering@redhat.com>
27665         maint.mk: new rule: refresh-gnulib-patches
27666         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
27667         Use this rule to refresh them.
27668         * top/maint.mk (refresh-gnulib-patches): New rule.
27670 2012-07-24  Bruno Haible  <bruno@clisp.org>
27672         gnulib-tool: Fix handling of inctests variable.
27673         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
27674         Reported by Nick Bowler <nbowler@elliptictech.com>.
27676 2012-07-22  Bruno Haible  <bruno@clisp.org>
27678         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
27679         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
27680         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
27681         Remove exemption for getpass.h.
27682         Suggested by Eric Blake.
27684 2012-07-20  Eric Blake  <eblake@redhat.com>
27686         verify: document conflict with -Wnested-externs
27687         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
27689         maint.mk: forbid exit(-1)
27690         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
27692 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
27694         fsusage: port back to Solaris
27695         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
27696         error (fsd not declared) on Solaris 10.  Reported privately by
27697         Andrew Borodin.
27699 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
27701         gnu-web-doc-update: fix error messages
27702         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
27704         gnu-web-doc-update: check the requirements.
27705         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
27706         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
27707         * build-aux/bootstrap (find_tool): Comment change.
27709 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
27711         maint.mk: minor simplication.
27712         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
27713         for default values.
27715 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
27717         gitlog-to-changelog: VPATH build issues
27718         If builddir is not a subdirectory of srcdir, running git from it will
27719         fail.
27720         * build-aux/gitlog-to-changelog (--srcdir): New option.
27722 2012-07-15  Bruno Haible  <bruno@clisp.org>
27724         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
27725         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
27726         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
27727         Remove exemption for fpending.h.
27728         Suggested by Eric Blake.
27730 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27732         pthread_sigmask: fix bug on FreeBSD 9
27733         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
27734         Include string.h.
27735         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
27736         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
27737         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
27738         but pthread_sigmask (1729, NULL, NULL) returns zero.
27739         See <http://bugs.gnu.org/11884>.
27740         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
27741         by inspecting whether the main call changed the old mask.
27743 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
27745         README-release: make it more legible
27746         * top/README-release: Improve typography slightly.
27748 2012-07-15  Jim Meyering  <meyering@redhat.com>
27750         maint: require that each sc_... command start with "@"
27751         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
27752         "make sc_maint" helps us avoid this nit.
27754 2012-07-15  Jim Meyering  <meyering@redhat.com>
27756         maint.mk: add leading "@" to quiet new "make syntax-check" rule
27757         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
27759 2012-07-13  Eric Blake  <eblake@redhat.com>
27761         maint.mk: new syntax check for HAVE_DECL checks
27762         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
27763         * cfg.mk
27764         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
27765         Exempt some false positives.
27766         Based on a report by Karel Zak.
27768         argp: make HAVE_DECL usage consistent
27769         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
27770         macros, not whether they are defined.
27771         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
27772         convention with other declaration checks.
27773         Reported by Karel Zak, with suggestions from Paul Eggert.
27775         stat-time: relax license to LGPLv2+
27776         * modules/stat-time (License): Relax, with consent of all authors.
27778         strndup: fix m4 usage error
27779         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
27780         defined, to either 0 or 1.
27781         Reported by Karel Zak.
27783 2012-07-11  Jim Meyering  <meyering@redhat.com>
27785         maint: enable the sc_avoid_if_before_free syntax-check rule
27786         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
27787         (if_before_free_offenders_): Define.
27788         (if_before_free_basename_re_): Define.
27789         Exempt current files with useless if-before-free.
27791 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
27793         gettext: do not assume '#define ... defined ...' behavior
27794         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
27795         Do not use '#define FOO ... defined BAR ...', as the C standard says
27796         it's not portable to expect that this works after macro expansion.
27797         Problem reported for gzip by Steven M. Schweda in
27798         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
27800 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
27802         getloadavg: clean out old Emacs and Autoconf cruft
27803         See Glenn Morris in <http://bugs.gnu.org/11905>.
27804         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
27805         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
27806         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
27807         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
27809 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
27811         bootstrap: let warn be like tests/init.sh's warn_
27812         Reported by Jim Meyering.
27813         * build-aux/bootstrap (warn): Remove, replaced by...
27814         (warnf_, warn_): these.
27815         Adjust callers.
27816         Shorten messages that no longer fit in 80 columns.
27818 2012-07-09  Bruno Haible  <bruno@clisp.org>
27820         getopt: Simplify after Emacs changed.
27821         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
27822         (gl_GETOPT_IFELSE): Remove macro.
27824 2012-07-09  Jim Meyering  <meyering@redhat.com>
27826         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
27827         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
27829         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
27830         Bugs in both of those conspired to make the
27831         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
27832         _sc_search_regexp's handling of non-empty $in_files would filter
27833         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
27834         choice of in_files value meant there would be no match in most
27835         projects, due to the presence of two or more Makefile.in files.
27836         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
27837         Fix a bug in how a non-empty $$in_files was processed:
27838         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
27839         in spite of the name, it's a regexp, not a list of file names.
27841 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
27843         getloadavg, getopt: fix commentary re configure.in
27844         Autoconf is deprecating the name 'configure.in', so change it to
27845         to the new name 'configure.ac' in a couple of places.
27846         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
27847         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
27848         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
27849         Emacs has renamed it to configure.ac, and it no longer refers
27850         to these macros anyway.
27852         timespec: mark functions with const attributes
27853         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
27854         Mark with _GL_ATTRIBUTE_CONST.
27856 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
27858         canonicalize[-lgpl]: handle "guessing" values when cross-building
27859         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27860         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
27861         matches "*yes" instead of just "yes".  Regression introduced in commit
27862         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
27864 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
27865             Bruno Haible  <bruno@clisp.org>
27867         canonicalize: make the right guess when cross-compiling to GNU
27868         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
27869         determine whether cross-compiling to glibc systems, so as to
27870         include GNU/Hurd.
27872 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
27874         timespec-sub: avoid duplicate include
27875         * lib/timespec-sub.c: Do not include <config.h> twice.
27876         Reported by Juanma Barranquero.
27878 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
27880         bootstrap: use a more consistent error reporting scheme
27881         * build-aux/bootstrap (warn, die): New.
27882         Use them.
27884 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
27886         sys_time: allow too-wide tv_sec
27887         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
27888         timeval even if tv_sec is wider than time_t.  This allows
27889         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
27890         as without this patch gnulib replaces struct timeval
27891         and OpenBSD futimes therefore has a type mismatch.
27892         * doc/posix-headers/sys_time.texi: Mention this.
27894         pthread: check for both pthread_create and pthread_join
27895         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
27896         alter the check so that it tests for both pthread_create and
27897         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
27898         Suggested by Bruno Haible and Richard Yao in
27899         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
27901         parse-datetime: doc tuneup
27902         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
27903         spacing issues.
27905 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
27907         do-release-commit-and-tag: fix the previous commit
27908         * build-aux/do-release-commit-and-tag: Actually the test was right,
27909         but the comment and the error message were misleading.
27910         Fix comment, and improve error message.
27911         Perform check first, so that NEWS is not modified uselessly.
27913         do-release-commit-and-tag: fix typo
27914         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
27915         _not_ start with a stub.
27917 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
27919         pthread: check for pthread_create, not pthread_join
27920         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
27921         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
27922         pthread_join in libc.  I hope this removes the need for all the
27923         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
27924         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
27926 2012-07-04  Jim Meyering  <meyering@redhat.com>
27928         parse-datetime: fix failure to diagnose invalid input
27929         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
27930         rather than diagnosing the invalid input.  Now it reports this:
27931         date: invalid date '\260'
27932         * lib/parse-datetime.y (to_uchar): Define.
27933         (yylex): Don't sign-extend "other" bytes.
27934         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
27935         Thanks to Bruno Haible for the patch to this file.
27936         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
27937         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
27939 2012-07-03  Jim Meyering  <meyering@redhat.com>
27941         bootstrap: do not require now-removed build-aux/missing
27942         Now that build-aux/missing is, er, missing, bootstrap would
27943         silently fail.
27944         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
27945         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
27946         no longer part of gnulib.
27947         Diagnose the failure.
27949 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27951         alloca: add support for HP NonStop TNS/E native
27952         * lib/alloca.in.h (alloca): Support the new host.
27953         From a suggestion by Joachim Schmitz in
27954         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
27956 2012-07-02  Pádraig Brady  <P@draigBrady.com>
27958         fsusage: remove code not needed on non GNU/Linux systems.
27960         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
27961         Don't include headers no longer needed in this case.
27962         * lib/fsusage.c [STAT_STATVFS &&
27963         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
27964         STAT_STATFS2_FRSIZE to exclude code not used in this case.
27966 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
27968         fsusage: include files needed for glibc 2.6 fallback
27969         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
27970         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
27971         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
27972         Problem reported by Ludovic Courtès in
27973         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
27975         fsusage: avoid needless check on GNU/Linux
27976         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
27977         on GNU/Linux systems, since it can't possibly work.
27979 2012-07-01  Bruno Haible  <bruno@clisp.org>
27981         log: Fix an autoconf >= 2.64 warning.
27982         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
27983         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
27985 2012-06-28  Bruno Haible  <bruno@clisp.org>
27987         log10f: Fix possible configuration problem.
27988         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
27989         $LOGF_LIBM.
27990         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
27992 2012-06-28  Bruno Haible  <bruno@clisp.org>
27994         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
27995         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
27996         not gl_cv_func_unlink_works.
27997         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
27999 2012-06-27  Eric Blake  <eblake@redhat.com>
28001         config: drop scripts that automake says are not independent
28002         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
28003         * build-aux/elisp-comp: Delete.
28004         * build-aux/missing: Likewise.
28005         * build-aux/ylwrap: Likewise.
28006         * modules/elisp-comp: Likewise.
28007         * MODULES.html.sh: Drop mention of elisp-comp.
28008         * NEWS: Mention this.
28010 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
28012         root-uid: new module
28013         This is for portability to Tandem's NonStop Kernel.
28014         * lib/root-uid.h, modules/root-uid: New files.
28015         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
28016         * lib/write-any-file.c, tests/test-sethostname2.c:
28017         Include "root-uid.h".
28018         * lib/euidaccess.c (euidaccess):
28019         * lib/pt_chown.c (main):
28020         * lib/unlinkdir.c (cannot_unlink_dir):
28021         * lib/write-any-file.c (can_write_any_file):
28022         * m4/mknod.m4 (gl_FUNC_MKNOD):
28023         * tests/test-sethostname2.c (geteuid, main):
28024         Don't assume ROOT_UID == 0.
28025         * modules/euidaccess (Depends-on):
28026         * modules/pt_chown (Depends-on):
28027         * modules/sethostname-tests (Depends-on):
28028         * modules/unlinkdir (Depends-on):
28029         * modules/write-any-file (Depends-on):
28030         Add root-uid.
28032         regex: use locale-independent comparison for codeset name
28033         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
28034         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
28035         for codeset name.
28036         * lib/regex_internal.h: Do not include <strings.h>, since we
28037         no longer use strcasecmp.
28038         * modules/regex (Depends-on): Remove strcase.
28040 2012-06-23  Bruno Haible  <bruno@clisp.org>
28042         getopt-posix: No longer guarantee that option processing is resettable.
28043         * doc/posix-functions/getopt.texi: Drop description of problem with
28044         internal state. Fix info about mingw and msvc9.
28045         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
28046         option processing by getopt(). Run three test programs instead of one.
28047         Simplify cross-compilation guess.
28048         * NEWS: Mention the change.
28049         Reported by Rich Felker <dalias@aerifal.cx>.
28051 2012-06-26  Bruno Haible  <bruno@clisp.org>
28053         argp, regex: Ensure strcasecmp gets declared.
28054         * lib/argp-help.c: Include <strings.h>.
28055         * lib/regex_internal.h: Likewise.
28056         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
28058 2012-06-24  Bruno Haible  <bruno@clisp.org>
28060         ptsname_r: Make it consistent with ptsname on AIX.
28061         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
28062         implementation as for OSF/1.
28063         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
28064         a pty master.
28066         ptsname_r: Make it consistent with ptsname on OSF/1.
28067         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
28068         OSF/1.
28070 2012-06-24  Bruno Haible  <bruno@clisp.org>
28072         ttyname_r: Fix result on OSF/1, Solaris.
28073         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
28075 2012-06-24  Bruno Haible  <bruno@clisp.org>
28077         ptsname_r: Add support for Solaris.
28078         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
28079         Solaris.
28081         ptsname_r: Fix test failure on native Windows.
28082         * modules/ptsname_r (Depends-on): Add isatty.
28084         ptsname_r: Fix test failures on IRIX, Solaris.
28085         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
28086         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
28087         accordingly.
28088         * lib/ptsname_r.c: Include <fcntl.h>.
28089         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
28090         set errno if fd is invalid.
28091         * tests/test-isatty.c (main): Update comments.
28093 2012-06-24  Bruno Haible  <bruno@clisp.org>
28095         ptsname test: Extend test.
28096         * tests/test-ptsname.c: Include <errno.h>.
28097         (main): Test behaviour with invalid file descriptor.
28099 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
28101         time: fix obsolete comment
28102         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
28103         reference to HAVE_STRUCT_TIMESPEC in comment.
28105 2012-06-23  Bruno Haible  <bruno@clisp.org>
28107         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
28108         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
28109         does not handle abbreviated long options with equivalent
28110         disambiguations, set gl_replace_getopt to yes.
28111         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
28113 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28115         time_r: fix typo that always overrode localtime_r decl
28116         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
28117         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
28118         not in a standard include.
28120 2012-06-22  Bruno Haible  <bruno@clisp.org>
28122         Write "Mac OS X" instead of "MacOS X".
28123         * README: Write "Mac OS X" instead of "MacOS X".
28124         * build-aux/bootstrap: Likewise.
28125         * build-aux/install-reloc: Likewise.
28126         * lib/acl-internal.h: Likewise.
28127         * lib/acl_entries.c: Likewise.
28128         * lib/argp-ba.c: Likewise.
28129         * lib/argp-pv.c: Likewise.
28130         * lib/config.charset: Likewise.
28131         * lib/copy-acl.c: Likewise.
28132         * lib/csharpexec.c: Likewise.
28133         * lib/euidaccess.c: Likewise.
28134         * lib/fbufmode.c: Likewise.
28135         * lib/fflush.c: Likewise.
28136         * lib/file-has-acl.c: Likewise.
28137         * lib/filemode.h: Likewise.
28138         * lib/fpurge.c: Likewise.
28139         * lib/freadable.c: Likewise.
28140         * lib/freadahead.c: Likewise.
28141         * lib/freading.c: Likewise.
28142         * lib/freadptr.c: Likewise.
28143         * lib/freadseek.c: Likewise.
28144         * lib/fseeko.c: Likewise.
28145         * lib/fseterr.c: Likewise.
28146         * lib/fsusage.c: Likewise.
28147         * lib/fwritable.c: Likewise.
28148         * lib/fwriting.c: Likewise.
28149         * lib/get-rusage-as.c: Likewise.
28150         * lib/get-rusage-data.c: Likewise.
28151         * lib/getdomainname.c: Likewise.
28152         * lib/idpriv-drop.c: Likewise.
28153         * lib/idpriv-droptemp.c: Likewise.
28154         * lib/localcharset.c: Likewise.
28155         * lib/locale.in.h: Likewise.
28156         * lib/localename.c: Likewise.
28157         * lib/mbsrtowcs-state.c: Likewise.
28158         * lib/nproc.c: Likewise.
28159         * lib/passfd.c: Likewise.
28160         * lib/posix_openpt.c: Likewise.
28161         * lib/printf-parse.c: Likewise.
28162         * lib/progreloc.c: Likewise.
28163         * lib/safe-read.h: Likewise.
28164         * lib/safe-write.h: Likewise.
28165         * lib/sched.in.h: Likewise.
28166         * lib/set-mode-acl.c: Likewise.
28167         * lib/signal.in.h: Likewise.
28168         * lib/stdint.in.h: Likewise.
28169         * lib/stdio-impl.h: Likewise.
28170         * lib/stdlib.in.h: Likewise.
28171         * lib/strtod.c: Likewise.
28172         * lib/sys_select.in.h: Likewise.
28173         * lib/tcgetsid.c: Likewise.
28174         * lib/unistd.in.h: Likewise.
28175         * lib/unlockpt.c: Likewise.
28176         * lib/vasnprintf.c: Likewise.
28177         * lib/vma-iter.c: Likewise.
28178         * lib/wcsrtombs-state.c: Likewise.
28179         * m4/acl.m4: Likewise.
28180         * m4/acosl.m4: Likewise.
28181         * m4/asinl.m4: Likewise.
28182         * m4/atanl.m4: Likewise.
28183         * m4/c-stack.m4: Likewise.
28184         * m4/cosl.m4: Likewise.
28185         * m4/expl.m4: Likewise.
28186         * m4/extensions.m4: Likewise.
28187         * m4/fdatasync.m4: Likewise.
28188         * m4/fmal.m4: Likewise.
28189         * m4/frexp.m4: Likewise.
28190         * m4/frexpf.m4: Likewise.
28191         * m4/frexpl.m4: Likewise.
28192         * m4/fsusage.m4: Likewise.
28193         * m4/getdomainname.m4: Likewise.
28194         * m4/getloadavg.m4: Likewise.
28195         * m4/getopt.m4: Likewise.
28196         * m4/gettext.m4: Likewise.
28197         * m4/gnulib-common.m4: Likewise.
28198         * m4/intdiv0.m4: Likewise.
28199         * m4/intlmacosx.m4: Likewise.
28200         * m4/largefile.m4: Likewise.
28201         * m4/ldexpl.m4: Likewise.
28202         * m4/link-follow.m4: Likewise.
28203         * m4/locale-ar.m4: Likewise.
28204         * m4/locale-fr.m4: Likewise.
28205         * m4/locale-ja.m4: Likewise.
28206         * m4/locale-tr.m4: Likewise.
28207         * m4/locale-zh.m4: Likewise.
28208         * m4/locale_h.m4: Likewise.
28209         * m4/lock.m4: Likewise.
28210         * m4/logl.m4: Likewise.
28211         * m4/mathfunc.m4: Likewise.
28212         * m4/minus-zero.m4: Likewise.
28213         * m4/mktime.m4: Likewise.
28214         * m4/mmap-anon.m4: Likewise.
28215         * m4/multiarch.m4: Likewise.
28216         * m4/nanosleep.m4: Likewise.
28217         * m4/nocrash.m4: Likewise.
28218         * m4/poll.m4: Likewise.
28219         * m4/printf-frexpl.m4: Likewise.
28220         * m4/printf.m4: Likewise.
28221         * m4/signbit.m4: Likewise.
28222         * m4/sinl.m4: Likewise.
28223         * m4/sqrtl.m4: Likewise.
28224         * m4/strerror_r.m4: Likewise.
28225         * m4/tanl.m4: Likewise.
28226         * m4/threadlib.m4: Likewise.
28227         * m4/ttyname_r.m4: Likewise.
28228         * m4/unlink.m4: Likewise.
28229         * m4/visibility.m4: Likewise.
28230         * m4/wcwidth.m4: Likewise.
28231         * tests/minus-zero.h: Likewise.
28232         * tests/test-alloca-opt.c: Likewise.
28233         * tests/test-copy-acl.sh: Likewise.
28234         * tests/test-copy-file.sh: Likewise.
28235         * tests/test-fdatasync.c: Likewise.
28236         * tests/test-file-has-acl.sh: Likewise.
28237         * tests/test-flock.c: Likewise.
28238         * tests/test-fsync.c: Likewise.
28239         * tests/test-localename.c: Likewise.
28240         * tests/test-malloca.c: Likewise.
28241         * tests/test-nonblocking-pipe.h: Likewise.
28242         * tests/test-nonblocking-socket.h: Likewise.
28243         * tests/test-openpty.c: Likewise.
28244         * tests/test-posix_openpt.c: Likewise.
28245         * tests/test-ptsname.c: Likewise.
28246         * tests/test-ptsname_r.c: Likewise.
28247         * tests/test-sameacls.c: Likewise.
28248         * tests/test-select.h: Likewise.
28249         * tests/test-set-mode-acl.sh: Likewise.
28250         * tests/test-snprintf-posix.h: Likewise.
28251         * tests/test-sprintf-posix.h: Likewise.
28252         * tests/test-strtod.c: Likewise.
28253         * tests/test-time.c: Likewise.
28254         * tests/test-vasnprintf-posix.c: Likewise.
28255         * tests/test-vasprintf-posix.c: Likewise.
28256         * doc/acl-resources.txt: Likewise.
28257         * doc/**/*.texi: Likewise.
28258         Reported by Max Horn <max@quendi.de>.
28260 2012-06-22  Bruno Haible  <bruno@clisp.org>
28262         grantpt: Relax requirement regarding invalid file descriptors.
28263         * lib/grantpt.c: Don't include <fcntl.h>.
28264         (grantpt): Don't verify the validity of the file descriptor.
28265         * modules/grantpt (Depends-on): Remove fcntl-h.
28266         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
28267         file descriptors.
28268         * doc/posix-functions/grantpt.texi: Document more platforms on which
28269         grantpt succeeds for invalid file descriptors.
28270         Reported by Rich Felker <dalias@aerifal.cx>.
28272 2012-06-22  Bruno Haible  <bruno@clisp.org>
28274         fbufmode test: Don't test unportable behaviour.
28275         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
28276         (main): Invoke it three times.
28277         Reported by Szabolcs Nagy <nsz@port70.net>
28278         and Rich Felker <dalias@aerifal.cx>.
28280 2012-06-21  Bruno Haible  <bruno@clisp.org>
28282         gnulib-tool: Refactor inctests variable.
28283         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
28284         (func_modules_transitive_closure,
28285         func_modules_transitive_closure_separately,
28286         func_import, func_create_testdir): Update.
28288         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
28289         * gnulib-tool: Accept option --without-tests.
28290         (func_usage): Document --without-tests option. Rearrange.
28291         (inctests): Normalize according to the mode.
28292         * NEWS: Mention the change.
28293         Suggested by Simon Josefsson.
28295 2012-06-21  Bruce Korb  <bkorb@gnu.org>
28297         parse-duration test: Avoid spurious output.
28298         * tests/test-parse-duration.sh: Reindent with leading tabs.
28300 2012-06-21  Jim Meyering  <meyering@redhat.com>
28302         maint: disable the strncpy prohibition
28303         * cfg.mk: Do not prohibit strncpy here.
28305 2012-06-21  Bruno Haible  <bruno@clisp.org>
28307         nonblocking: Avoid compilation error on mingw64.
28308         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
28309         fscanf.
28310         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
28311         * modules/vfscanf (configure.ac): Likewise.
28312         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
28313         definition only if stdio.h has prepared it.
28314         Reported by Daniel P. Berrange <berrange@redhat.com>.
28316 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
28318         gnulib-tool: Use readlink if it is available.
28319         * gnulib-tool (func_readlink): Choose function more appropriately.
28321 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
28323         posixtm-tests: port to buggy compiler
28324         Problem reported by Simon Josefsson in
28325         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
28326         * modules/posixtm-tests (Depends-on): Add stdint.
28327         * tests/test-posixtm.c (struct posixtm_test.t_expected):
28328         Now of type int_least64_t, not int64_t, both because that's
28329         what INT64_C returns and because int_least64_t works even
28330         on 72-bit hosts.
28331         (T): Use INT64_C on constants outside the traditional int range,
28332         to work around compiler bug noted by Simon.
28334         mktime: fix integer overflow in 'configure'-time test
28335         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
28336         after integer overflow.  Problem reported by Rich Felker in
28337         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
28338         Also, don't look for further instances of a bug if we've already
28339         found one instance; this helps 'configure' run faster.
28341 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
28343         tmpfile, clean-temp: Fix invocation of GetVersionEx.
28344         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
28345         GetVersionEx correctly.
28346         * lib/clean-temp.c (supports_delete_on_close): Likewise.
28348 2012-06-20  Bruno Haible  <bruno@clisp.org>
28350         fdopen: Allow implementations that don't reject invalid fd arguments.
28351         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
28352         succeeds.
28353         Reported by Rich Felker <dalias@aerifal.cx>.
28355 2012-06-20  Simon Josefsson  <simon@josefsson.org>
28357         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
28358         bring in LIBINTL.
28360 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
28362         init.sh: do not rely on autoupated PWD
28363         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
28364         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
28365         Although Nelson's bug was not necessarily fixed by this patch,
28366         it seems wise to make the change for safety.
28367         * tests/init.sh (path_prepend_): Do not rely on PWD updating
28368         automagically after 'cd'; this is not reliable on older shells.
28369         (setup_): Fail if we cannot cd to temporary directory.
28371 2012-06-19  Bruno Haible  <bruno@clisp.org>
28373         stat, fstat: Avoid warnings on mingw64.
28374         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
28375         redefining.
28376         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
28377         Reported by Daniel P. Berrange <berrange@redhat.com>.
28379 2012-06-19  Bruno Haible  <bruno@clisp.org>
28381         stdioext: Add support for musl libc.
28383         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
28384         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
28386         * m4/fseterr.m4: New file.
28387         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
28388         function exists.
28389         * modules/fseterr (Files): Add m4/fseterr.m4.
28390         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
28391         __fseterr does not exist.
28392         (Makefile.am): Remove fseterr.c from lib_SOURCES.
28394         * lib/freadable.h: Update comment.
28396         * lib/fwritable.h: Update comment.
28398         * lib/freading.h: Update comment.
28400         * lib/fwriting.h: Update comment.
28402         * m4/freadahead.m4: New file.
28403         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
28404         that function exists.
28405         * modules/freadahead (Files): Add m4/freadahead.m4.
28406         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
28407         __freadahead does not exist.
28408         (Makefile.am): Remove freadahead.c from lib_SOURCES.
28410         * m4/freadptr.m4: New file.
28411         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
28412         function exists.
28413         * modules/freadptr (Files): Add m4/freadptr.m4.
28414         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
28415         __freadptr does not exist.
28416         (Makefile.am): Remove freadptr.c from lib_SOURCES.
28418         * m4/freadseek.m4: New file.
28419         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
28420         exists.
28421         * modules/freadseek (Files): Add m4/freadseek.m4.
28422         (configure.ac): Invoke gl_FUNC_FREADSEEK.
28424         * lib/fpurge.c (fpurge): Update comment.
28426         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
28428 2012-06-19  Bruno Haible  <bruno@clisp.org>
28430         *printf-posix: Put more info into config.log.
28431         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
28432         exit code into config.log.
28434 2012-06-19  Bruno Haible  <bruno@clisp.org>
28436         getopt-gnu: Fix exit code overflow in autoconf test.
28437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
28438         to keep them below < 128.
28440 2012-06-17  Jim Meyering  <meyering@redhat.com>
28442         maint.mk: fix typo in code to derive GPG key at release time
28443         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
28445 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
28447         regex: avoid warning when pointers are not long
28448         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
28449         and uintptr_t, not long, for portability to hosts where pointers and
28450         long have different sizes.  Issue noted by Daniel P. Berrange in
28451         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
28452         and fix suggested by Bruno Haible in
28453         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
28455 2012-06-17  Bruno Haible  <bruno@clisp.org>
28457         dummy: Relicense into the public domain.
28458         * modules/dummy (License): Set to "public domain".
28459         Suggested by Reuben Thomas.
28461 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
28463         announce-gen: VPATH issues
28464         * build-aux/announce-gen (--srcdir): New option, used to trim the
28465         $srcdir part of the path from $builddir to NEWS.
28466         * top/maint.mk (announcement): Adjust.
28468 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
28470         gnu-web-doc-update: VPATH builds
28471         * build-aux/gnu-web-doc-update (--builddir): New option.
28472         Revamp the handling of options.
28473         Prefer $(...) to `...`.
28474         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
28475         the template, and it is GNU mktemp specific.
28476         Prefer set -e to long series of &&.
28477         Restore the initial git branch, not "master".
28478         Properly initialize submodules (don't rely only on bootstrap).
28479         Do not reconfigure blindly, use config.status.
28480         * top/README-release: Update instructions for gnu-web-doc-update.
28482 2012-06-11  Jim Meyering  <meyering@redhat.com>
28484         maint.mk: revert most of the previous change re "all these"
28485         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
28486         For rationale, see the discussion at
28487         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
28489 2012-06-10  Karl Berry  <karl@gnu.org>
28491         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
28493         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
28495 2012-06-10  Bruce Korb  <bkorb@gnu.org>
28497         parse-duration: Relicense under LGPLv2+.
28498         * modules/parse-duration (License): Change to LGPLv2+.
28500 2012-06-10  Jim Meyering  <meyering@redhat.com>
28502         maint.mk: prohibit common grammar error: "all these"
28503         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
28504         the list of prohibited word sequences.  It should be "all of these".
28505         * lib/tempname.c (__gen_tempname): Fix one of them.
28507 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
28509         do-release-commit-and-tag: support VPATH builds
28510         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
28511         (noteworthy): Defined earlier to factor its value.
28512         (noteworthy_stub): New.
28513         Use it to factor.
28514         (help_version): Split into...
28515         (help, version): these.
28516         Adjust the option processing part.
28517         Support "--option=value" in addition to "--option value".
28518         (builddir): New.
28519         (--builddir): New option.
28520         * top/README-release: Document this.
28521         Reword slightly so that the reader cannot understand that he
28522         has to do these steps before calling do-release-commit-and-tag.
28524 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
28526         readme-release: also require announce-gen and maintainer-makefile
28527         * modules/readme-release (Depends-on): here.
28528         * modules/announce-gen, modules/do-release-commit-and-tag,
28529         modules/gnu-web-doc-update, modules/maintainer-makefile
28530         (Description): Point to readme-release.
28532 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
28534         maint.mk: fix VPATH issues.
28535         * top/maint.mk (news-check): GNU Make understand $< very well.
28536         (release-prep): NEWS is in $(srcdir).
28538 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
28540         readme-release: require the promoted modules.
28541         * modules/readme-release (Depends-on): Add
28542         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
28543         in this text.
28545 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
28546             Bruno Haible  <bruno@clisp.org>
28548         error, strerror-override: Support mingw64 from Fedora 17.
28549         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
28550         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
28551         EINPROGRESS.
28552         * lib/strerror-override.h (strerror_override): Test it.
28553         * lib/strerror-override.c (strerror_override): Likewise.
28554         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
28556 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
28557             Bruno Haible  <bruno@clisp.org>
28559         error, strerror-override: Support mingw64 from Fedora 17.
28560         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
28561         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
28562         * lib/strerror-override.h (strerror_override): Test it.
28563         * lib/strerror-override.c (strerror_override): Likewise.
28565 2012-06-03  Bruno Haible  <bruno@clisp.org>
28567         error, strerror-override: Support new errno values from POSIX:2008.
28568         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
28569         ENOTRECOVERABLE.
28570         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
28571         platforms.
28572         * lib/strerror-override.c (strerror_override): Conditionalize the
28573         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
28574         * lib/strerror-override.h (strerror_override): Declare also if
28575         GNULIB_defined_EOWNERDEAD is defined.
28576         * tests/test-errno.c (e130, e131): New variables.
28577         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
28578         ENOTRECOVERABLE.
28579         Reported by Paolo Bonzini.
28581 2012-05-31  Jim Meyering  <meyering@redhat.com>
28583         savewd: add missing dependency on sys_wait module
28584         * modules/savewd (Depends-on): Add sys_wait, needed at least
28585         for MSVC.  Report and suggested change by Michael Goffioul.
28587 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
28589         system-quote-tests: port to CentOS 5
28590         Problem reported by Tom G. Christensen in
28591         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
28592         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
28594 2012-05-29  Jim Meyering  <meyering@redhat.com>
28596         maint: fix typos in comments and ChangeLog
28597         Culprits identified and fixed mostly automatically using these commands:
28598         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
28599         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
28600         using http://github.com/lyda/misspell-check
28601         * ChangeLog: Fix typos.
28602         * doc/solaris-versions: Likewise.
28603         * lib/regexec.c (re_search_stub): Likewise.
28604         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28606 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
28608         manywarnings: remove duplicate -Wmultichar entry
28609         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
28610         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
28611         so keep the entry marked as documented.
28613 2012-05-27  Karl Berry  <karl@gnu.org>
28615         * config/srclist.txt (mktime.c): remove last libc sync,
28616         perhaps just temporarily.
28618 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
28620         regex: don't assume uint64_t or uint32_t
28621         * lib/regcomp.c (init_word_char): Don't assume that the types
28622         uint64_t and uint32_t exist.  The C standard doesn't guarantee
28623         them, and on some 32-bit compilers there is no uint64_t.
28624         Problem reported by Gianluigi Tiesi in
28625         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
28627 2012-05-25  Jim Meyering  <meyering@redhat.com>
28629         maint.mk: add strncpy-prohibiting syntax-check rule
28630         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
28632 2012-05-24  Jim Meyering  <meyering@redhat.com>
28634         maint.mk: compute $(gpg_key_ID) more portably
28635         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
28636         That use of sed is not portable to some fringe systems.
28637         Reported by Paul Eggert in
28638         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
28640 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
28642         mktime: sync from glibc
28643         * config/srclist.txt: Uncomment mktime.c.
28644         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
28645         First, indent with tabs, since glibc uses tabs and doesn't want to
28646         change and we'd rather be identical to glibc.  Also, two small
28647         coding changes:
28648         (isdst_differ): Use &&, not &, as && is the usual style.
28649         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
28650         for clarity.
28652 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
28654         announce-gen: du -h is more portable than du --human
28655         * build-aux/announce-gen (sizes): Invoke du with -h instead
28656         of --human.  Accept leading white space in its output.
28658 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
28660         announce-gen: Improve diagnostics.
28661         * build-aux/announce-gen: When parsing command line options,
28662         prefer "announce-gen: option --release-type requires an argument"
28663         to "Option release-type requires an argument".
28665 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
28667         maint.mk: gpg_key_ID: use sed more portably
28668         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
28669         the closing brace.
28670         (refresh-po): Fuse two sed invocations into one.
28672 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
28674         gitlog-to-changelog: support the log message format used in Bison.
28675         * build-aux/gitlog-to-changelog: Support --strip-tab and
28676         --strip-cherry-picked.
28678 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
28680         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
28681         the rest of the current time slice to another thread in the current
28682         process. So if the thread that feeds the file decscriptor we're
28683         polling is not in the current process, we get busy-waiting.
28684         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
28685         Patch from Theodore Leblond.
28686         * lib/select.c: Split polling out of the loop that sets the output
28687         fd_sets.  Check for zero result and loop if the wait timeout is
28688         infinite.
28690 2012-05-21  Simon Josefsson  <simon@josefsson.org>
28692         select: Fix build error on IRIX 6.5.
28693         * lib/select.c: Include stddef.h for NULL.
28695 2012-05-21  Simon Josefsson  <simon@josefsson.org>
28697         gc: fix libgcrypt detection on older machines.
28698         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
28699         copyright years because the file has been distributed every year
28700         since it was created.
28702 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
28704         crypto: fix bug in large buffer handling
28705         Problem reported by Serge Belyshev for glibc in
28706         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
28707         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
28708         * lib/md4.c (md4_process_block):
28709         * lib/md5.c (md5_process_block):
28710         * lib/sha1.c (sha1_process_block):
28711         * lib/sha256.c (sha256_process_block):
28712         Don't assume the buffer length is less than 2**32.
28713         * lib/sha512.c (sha512_process_block): Likewise.
28714         Here, the bug is present only in the rare case where the host does
28715         not support uint64_t or where size_t is wider than 64 bits.
28716         Use u64size to work around the problems.
28717         * lib/u64.h (u64size): New macro.
28719 2012-05-15  Pádraig Brady  <P@draigBrady.com>
28721         fsusage: fix block size returned on older Linux 2.6
28723         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
28724         which is available since Linux 2.6.
28725         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
28726         when the member is available so it can be used as a fallback.
28727         * doc/posix-functions/statvfs.texi: Mention the hang issue
28728         on Linux < 2.6.36.
28730 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28732         bootstrap: suppress stderr chatter
28733         * build-aux/bootstrap (insert_sorted_if_absent, main program):
28734         Omit unnecessary chatter to stderr.  The main program chatter
28735         was there only inadvertantly.
28737         bootstrap: .gitignore files created by autopoint, libtool
28738         I ran into this problem when bootstrapping the latest diffutils.
28739         After './bootstrap', 'git status' reported lots of untracked files
28740         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
28741         autopoint and do not need to be version-controlled.
28742         * build-aux/bootstrap: Put into .gitignore the files that
28743         autopoint and libtool create, by keeping track of files that exist
28744         after but not before these programs are run.
28745         (version_controlled_file): Move up.  2nd arg is now full file
28746         name, not base name; this is more convenient.  Put CVS at the end,
28747         as it's now somewhat deprecated.
28749 2012-05-14  Jim Meyering  <meyering@redhat.com>
28751         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
28752         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
28753         definition.  Reported by Bruno Haible.
28755 2012-05-13  Bruno Haible  <bruno@clisp.org>
28756             Paul Eggert  <eggert@cs.ucla.edu>
28758         binary-io: Define set_binary_mode function.
28759         * lib/binary-io.h (set_binary_mode): New function.
28760         (SET_BINARY): Define in terms of set_binary_mode.
28761         * modules/binary-io (configure.ac): Require AC_C_INLINE.
28762         * tests/test-binary-io.c (main): Accept an argument, and test either
28763         set_binary_mode or SET_BINARY depending on the argument.
28764         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
28765         argument. Clean up also t-bin-out0.tmp.
28767 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
28769         bootstrap: take advantage of POSIX shell features
28771         The 'bootstrap' script offered by Gnulib script already uses POSIX
28772         shell features (like $((...)) arithmetic expansions) that are not
28773         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
28774         means that bootstrap must already be run using a proper POSIX shell,
28775         which will thus provide more features, like ${var#pattern} parameter
28776         expansion or inversion of a command exit status with '!'.  We can
28777         thus use these features to improve the clarity and the performances
28778         of the bootstrap script.
28780         Suggested by Eric Blake.
28782         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
28783         of sed/expr plus command substitutions, to save some forks.  While
28784         we are at it, prefer the POSIX $(...) form of command substitution,
28785         rather than the legacy form `...` (since the former is visually
28786         clearer and interacts better with quoting), and prefer the idiom:
28787           "if ! CMD; then ACTION ..."
28788         over the idiom:
28789           "if CMD; then :; else ACTION ..."
28790         which was required by legacy Bourne shells not supporting '!'.
28792 2012-05-12  Bruno Haible  <bruno@clisp.org>
28794         system-quote: Add more comments.
28795         * lib/system-quote.h: Add more comments about wilcards and limitations.
28796         Suggested by Eli Zaretskii <eliz@gnu.org>.
28798         sh-quote, system-quote: Add comments about wildcards.
28799         * lib/sh-quote.h: Clarify what happens with wildcard characters.
28800         * lib/system-quote.h: Likewise.
28801         Reported by Eli Zaretskii <eliz@gnu.org>.
28803 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
28805         fsusage: check for GNU/Linux statvfs problem dynamically
28806         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
28807         Define STAT_STATFS2_BSIZE too, since in this case the code now
28808         checks dynamically whether statvfs is reliable, falling back on
28809         Linux-style statfs otherwise.
28810         (statvfs_works): New function, for dynamically testing statvfs.
28811         (get_fs_usage) [STAT_STATVFS]: Use it.
28812         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
28813         statvfs on GNU/Linux hosts, since it's now done dynamically.
28815 2012-05-10  Bruno Haible  <bruno@clisp.org>
28817         system-quote, execute, spawn-pipe: Escape '?' on Windows.
28818         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
28819         '?' character.
28820         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
28821         * tests/test-system-quote-main.c (check_all): Check also strings like
28822         "??????????".
28823         Reported by Eli Zaretskii <eliz@gnu.org>.
28825 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
28827         _Noreturn: port config.h to gcc -Wundef
28828         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
28829         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
28830         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
28832 2012-05-10  Bruno Haible  <bruno@clisp.org>
28834         system-quote: Refactor.
28835         * lib/system-quote.h (system_quote_copy): Fix comment.
28836         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
28837         New functions, extracted from system_quote_copy.
28838         (system_quote_length, system_quote_copy): Use these functions.
28839         Reported by Paul Eggert.
28841 2012-05-08  Bruno Haible  <bruno@clisp.org>
28843         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
28844         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
28846 2012-05-08  Bruno Haible  <bruno@clisp.org>
28848         Tests for module 'system-quote'.
28849         * modules/system-quote-tests: New file.
28850         * tests/test-system-quote.sh: New file.
28851         * tests/test-system-quote-main.c: New file.
28852         * tests/test-system-quote-child.c: New file.
28854         New module 'system-quote'.
28855         * lib/system-quote.h: New file.
28856         * lib/system-quote.c: New file.
28857         * modules/system-quote: New file.
28859 2012-05-08  Bruno Haible  <bruno@clisp.org>
28861         sh-quote: Make C++ safe and allow multiple inclusion.
28862         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
28863         declarations in extern "C".
28865 2012-05-08  Bruno Haible  <bruno@clisp.org>
28867         sh-quote tests: Make tests stricter.
28868         * tests/test-sh-quote.c (check_one): Check the return value of
28869         shell_quote_copy.
28870         (main): Check a string with a CR character. Check a string that
28871         contains UCHAR_MAX.
28873 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
28875         warnings.m4: provide a means to specify the program to compile.
28876         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
28877         (gl_WARN_ADD): here.
28878         Use gl_AS_VAR_APPEND.
28879         Support an argument to specify the program to compile.
28880         (gl_WARN_ADD): Accept an argument to specify the program to compile.
28881         AC_SUBST the WARN_CFLAGS when they are used.
28882         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
28883         leave this to gl_WARN_ADD.
28885 2012-05-08  Eric Blake  <eblake@redhat.com>
28887         doc: recommendations on gettext version
28888         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
28889         choice between versions.
28890         * DEPENDENCIES (gettext): Cover both approaches.
28892 2012-05-08  Jim Meyering  <meyering@redhat.com>
28894         init.sh: explain why EXEEXT support uses aliases rather than functions
28895         * tests/init.sh: Add a comment.
28897         init.sh: don't let bash aliases interfere with tests
28898         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
28899         is bash.  This avoids problems for those who alias standard commands to
28900         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
28901         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
28903 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
28905         stdint: be more consistent with glibc, SunOS libc
28906         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
28907         (gl_int_fast16_t, gl_uint_fast16_t)
28908         (gl_int_fast32_t, gl_uint_fast32_t)
28909         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
28910         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
28911         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
28912         Be consistent with glibc by default, and with SunOS 5.10 and later
28913         if __sun is defined.  This lessens the likelihood of clashes if
28914         code compiled for older hosts is combined with code compiled for
28915         newer ones.  Problem reported by Niels Möller in
28916         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
28918 2012-05-07  Eric Blake  <eblake@redhat.com>
28920         isatty: relax license to LGPLv2+
28921         * modules/isatty (License): Relax license.
28923 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
28925         stat-size: comment fix
28926         * lib/stat-size.h: Remove obsolete comment about indenting.
28928 2012-05-06  Bruno Haible  <bruno@clisp.org>
28930         Tests for module 'sh-quote'.
28931         * modules/sh-quote-tests: New file.
28932         * tests/test-sh-quote.c: New file.
28934 2012-05-06  Bruno Haible  <bruno@clisp.org>
28936         sh-quote: Improve shell_quote_argv's signature.
28937         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
28938         * lib/sh-quote.c (shell_quote_argv): Likewise.
28940 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
28942         stdint: document issues with int_fast8_t etc.
28943         * doc/posix-headers/stdint.texi (stdint.h): Say that other
28944         stdint.h substitutes may define these types differently.  See
28945         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
28947 2012-05-05  Bruno Haible  <bruno@clisp.org>
28949         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
28950         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
28951         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
28952         or 'guessing no (mishandles large arguments)'.
28954 2012-05-05  Bruno Haible  <bruno@clisp.org>
28956         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
28957         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
28958         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
28959         set gl_cv_func_link_follows_symlink to "guessing no".
28961 2012-05-05  Bruno Haible  <bruno@clisp.org>
28963         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
28964         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
28965         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
28966         "guessing no".
28967         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
28969 2012-05-05  Bruno Haible  <bruno@clisp.org>
28971         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
28972         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
28973         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
28974         set gl_cv_struct_dirent_d_ino to "guessing yes".
28976 2012-05-05  Bruno Haible  <bruno@clisp.org>
28978         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
28979         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
28980         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
28981         "guessing yes".
28983 2012-05-05  Bruno Haible  <bruno@clisp.org>
28985         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
28986         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
28987         compiling to a glibc system, set gl_cv_func_signbit and
28988         gl_cv_func_signbit_gcc to "guessing yes".
28990 2012-05-05  Bruno Haible  <bruno@clisp.org>
28992         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
28993         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
28994         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
28995         to "guessing yes".
28996         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
28997         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
28999 2012-05-05  Bruno Haible  <bruno@clisp.org>
29001         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
29002         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
29003         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
29004         gl_cv_func_realpath_works to "guessing yes".
29006 2012-05-05  Bruno Haible  <bruno@clisp.org>
29008         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
29009         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
29010         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
29012 2012-05-04  Bruno Haible  <bruno@clisp.org>
29014         Tweak last commit.
29015         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
29016         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29018 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
29020         unistd_h: make it easier to avoid sys_types_h
29021         This is useful for Emacs, which has its own method of porting to
29022         Windows, and which therefore does not need the sys_types_h module.
29023         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
29024         code moved here from gl_SYS_TYPES_H.
29025         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
29026         using the code directly.
29027         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
29028         gl_SYS_TYPES_H.
29029         * modules/sys_types (Files):
29030         * modules/unistd (Files): Add m4/off_t.m4.
29032 2012-05-03  Bruno Haible  <bruno@clisp.org>
29034         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
29035         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
29036         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
29037         "guessing yes" or "guessing no".
29038         (gl_FUNC_LSTAT): Update.
29039         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
29040         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
29041         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
29043 2012-05-03  Bruno Haible  <bruno@clisp.org>
29045         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
29046         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
29047         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
29048         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
29049         cross-compiling, choose the first alternative on glibc systems.
29050         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
29052 2012-05-03  Bruno Haible  <bruno@clisp.org>
29054         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
29055         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
29056         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
29058 2012-05-03  Bruno Haible  <bruno@clisp.org>
29060         chown: Avoid "guessing no" when cross-compiling to glibc systems.
29061         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
29063 2012-05-03  Bruno Haible  <bruno@clisp.org>
29065         Avoid "guessing no" guesses when cross-compiling to glibc systems.
29066         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
29067         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
29068         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
29069         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
29070         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
29071         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
29072         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
29073         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
29074         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
29075         compiling to glibc systems, set gl_cv_func_chown_slash_works,
29076         gl_cv_func_chown_ctime_works to "guessing yes".
29077         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
29078         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
29079         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
29080         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
29081         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
29082         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
29083         compiling to glibc systems, set gl_cv_func_open_directory_works to
29084         "guessing yes".
29085         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
29086         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
29087         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
29088         "guessing yes".
29089         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
29090         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
29091         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
29092         compiling to glibc systems, set gl_cv_func_floorf_ieee to
29093         "guessing yes".
29094         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
29095         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
29096         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
29097         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
29098         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
29099         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
29100         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
29101         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
29102         "guessing yes".
29103         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
29104         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
29105         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
29106         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
29107         "guessing yes".
29108         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
29109         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
29110         "guessing yes".
29111         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
29112         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
29113         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
29114         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
29115         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
29116         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
29117         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
29118         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
29119         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
29120         compiling to glibc systems, set gl_cv_func_log10f_ieee to
29121         "guessing yes".
29122         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
29123         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
29124         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
29125         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
29126         "guessing yes".
29127         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
29128         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
29129         "guessing yes".
29130         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
29131         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
29132         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
29133         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
29134         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
29135         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
29136         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
29137         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
29138         compiling to glibc systems, set gl_cv_func_mkfifo_works to
29139         "guessing yes".
29140         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
29141         compiling to glibc systems, set gl_cv_func_mknod_works to
29142         "guessing yes".
29143         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
29144         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
29145         "guessing yes".
29146         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
29147         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
29148         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
29149         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
29150         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
29151         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
29152         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
29153         compiling to glibc systems, set gl_cv_func_svid_putenv to
29154         "guessing yes".
29155         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
29156         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
29157         "guessing yes".
29158         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
29159         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
29160         "guessing yes".
29161         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
29162         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
29163         to "guessing yes".
29164         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
29165         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
29166         to "guessing yes".
29167         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
29168         compiling to glibc systems, set gl_cv_func_rmdir_works to
29169         "guessing yes".
29170         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
29171         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
29172         gl_cv_func_unlink_parent_fails to "guessing yes".
29173         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
29174         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
29175         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
29176         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
29177         gl_cv_func_rename_dest_works to "guessing yes".
29178         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
29179         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
29180         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
29181         compiling to glibc systems, set gl_cv_func_roundf_ieee to
29182         "guessing yes".
29183         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
29184         compiling to glibc systems, set gl_cv_func_roundl_ieee to
29185         "guessing yes".
29186         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
29187         compiling to glibc systems, set gl_cv_func_setenv_works to
29188         "guessing yes".
29189         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
29190         compiling to glibc systems, set gl_cv_func_unsetenv_works to
29191         "guessing yes".
29192         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
29193         compiling to glibc systems, set gl_cv_func_sleep_works to
29194         "guessing yes".
29195         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
29196         compiling to glibc systems, set gl_cv_func_stat_file_slash to
29197         "guessing yes".
29198         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
29199         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
29200         "guessing yes".
29201         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
29202         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
29203         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
29204         compiling to glibc systems, set gl_cv_func_truncf_ieee to
29205         "guessing yes".
29206         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
29207         compiling to glibc systems, set gl_cv_func_truncl_ieee to
29208         "guessing yes".
29209         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
29210         compiling to glibc systems, set gl_cv_func_usleep_works to
29211         "guessing yes".
29212         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
29213         compiling to glibc systems, set gl_cv_func_futimesat_works to
29214         "guessing yes".
29216 2012-05-03  Bruno Haible  <bruno@clisp.org>
29218         Say "guessing yes" or "guessing no" when cross-compiling.
29219         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
29220         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
29221         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
29222         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
29223         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
29224         am_cv_func_working_getline to "guessing yes" or "guessing no".
29225         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
29226         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
29227         (gl_FUNC_MEMMEM): When cross-compiling, set
29228         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
29229         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
29230         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
29231         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
29232         set gl_cv_func_strcasestr_works_always to "guessing yes" or
29233         "guessing no".
29234         (gl_FUNC_STRCASESTR): When cross-compiling, set
29235         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
29236         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
29237         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
29238         (gl_FUNC_STRSTR): When cross-compiling, set
29239         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
29240         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
29241         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
29242         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
29243         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
29245 2012-05-01  Bruno Haible  <bruno@clisp.org>
29247         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
29248         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
29249         * build-aux/reloc-ldflags: Likewise.
29250         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
29252 2012-05-01  Bruno Haible  <bruno@clisp.org>
29254         gnulib-tool: Remove transitional code.
29255         * gnulib-tool: Don't warn about --import with 0 arguments any more.
29256         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
29258 2012-05-01  Bruno Haible  <bruno@clisp.org>
29260         getcwd: Fix misindentation.
29261         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
29263 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
29265         exclude: process exclude and include directives in order
29266         This restores the pre-2009 behavior, and is part of a fix of a
29267         grep bug reported by Quentin Arce in
29268         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
29269         * lib/exclude.c (struct exclude): Remove 'tail' member.
29270         (new_exclude_segment): Prepend the new segment instead of appending.
29271         Return void, since that's now more convenient.
29272         (file_pattern_matches): Renamed from excluded_file_pattern_p.
29273         (file_name_matches): Renamed from excluded_file_name_p.
29274         (file_pattern_matches, file_name_matches):
29275         Return true if the pattern matches, not if it excludes.
29276         All callers changed.
29277         (excluded_file_name): Process the list in reverse order;
29278         since the list is now reversed this restores the pre-2009 behavior.
29279         (add_exclude): Adjust to new reversed-order list.  Use local var
29280         rather than macro, for clarity.
29281         * tests/test-exclude7.sh: Adjust to corrected behavior.
29283         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
29284         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
29285         it's not possible here.  Handle the case of \ at end of pattern
29286         without dumping core.
29287         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
29289         _Noreturn: future-proof non-GNU and non-MSVC compilers
29290         * build-aux/snippet/_Noreturn.h (_Noreturn):
29291         * m4/gnulib-common.m4 (gl_COMMON_BODY):
29292         Do not define _Noreturn if __STDC_VERSION__ indicates this is
29293         C11 or later.  This is more likely to work with random future C
29294         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
29295         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
29297         exclude: handle wildcards with FNM_EXTMATCH
29298         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
29299         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
29300         comment that "has wildcards" really means "has or may have
29301         wildcards".  Simplify by avoiding the need to call strcspn.
29303 2012-04-29  Bruno Haible  <bruno@clisp.org>
29305         gnulib-tool: Fix list of authors.
29306         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
29308 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
29310         bootstrap: support Automake-NG in $buildreq
29311         * bootstrap (check_versions): Handle automake and aclocal from
29312         Automake-NG specially.  They can be specified as respectively
29313         the "automake-ng" and "aclocal-ng" requirements.
29315 2012-04-25  Eric Blake  <eblake@redhat.com>
29317         bootstrap: only force latest Makefile.in.in for gettext module
29318         * build-aux/bootstrap (with_gettext): Only install latest
29319         Makefile.in.in for projects requesting bleeding edge gettext.
29321 2012-04-22  Bruno Haible  <bruno@clisp.org>
29323         doc: Mention reason for replacement on glibc/Linux systems.
29324         * doc/posix-functions/dprintf.texi: Mention the problem with special
29325         'long double' values.
29326         * doc/posix-functions/fprintf.texi: Likewise.
29327         * doc/posix-functions/printf.texi: Likewise.
29328         * doc/posix-functions/snprintf.texi: Likewise.
29329         * doc/posix-functions/sprintf.texi: Likewise.
29330         * doc/posix-functions/vdprintf.texi: Likewise.
29331         * doc/posix-functions/vfprintf.texi: Likewise.
29332         * doc/posix-functions/vprintf.texi: Likewise.
29333         * doc/posix-functions/vsnprintf.texi: Likewise.
29334         * doc/posix-functions/vsprintf.texi: Likewise.
29335         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
29336         platforms with F_DUPFD_CLOEXEC problems.
29337         * doc/posix-functions/glob.texi: Mention which platforms are affected
29338         by the problem with symbolic links.
29339         * doc/posix-functions/linkat.texi: Mention the problem with
29340         AT_SYMLINK_FOLLOW on Linux.
29342 2012-04-22  Bruno Haible  <bruno@clisp.org>
29344         pwrite: Don't replace on all platforms.
29345         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
29347 2012-04-22  Bruno Haible  <bruno@clisp.org>
29349         rint* tests: Avoid gcc warnings.
29350         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
29351         * tests/test-rintf.c (INFINITY, NAN): Likewise.
29352         * tests/test-rintl.c (INFINITY, NAN): Likewise.
29354 2012-04-21  Bruno Haible  <bruno@clisp.org>
29356         users.txt: Update.
29357         * users.txt: Add freedink, wdiff. Update URLs for projects that have
29358         switched from CVS to git, bzr, or svn.
29360 2012-04-21  Bruno Haible  <bruno@clisp.org>
29362         Large File Support for native Windows platforms.
29364         * m4/largefile.m4 (gl_LARGEFILE): New macro.
29365         * modules/largefile (configure.ac): Require gl_LARGEFILE.
29367         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
29368         type.
29369         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
29370         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
29371         * doc/posix-headers/sys_types.texi: Mention the effect of the
29372         'largefile' module.
29374         * lib/fcntl.in.h: Add comments about off_t.
29375         * modules/fcntl-h (Depends-on): Add sys_types.
29377         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
29378         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
29379         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
29380         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
29381         * modules/unistd (Depends-on): Add sys_types.
29382         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
29384         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
29385         instead of lseek.
29386         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
29387         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
29388         * modules/lseek (Depends-on): Add sys_types.
29390         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
29391         msvc-nothrow.h.
29392         (SetFileSize): New function.
29393         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
29394         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
29395         if Large File Support is requested.
29396         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
29397         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
29399         * lib/stdio.in.h: Add comments about off_t.
29400         * modules/stdio (Depends-on): Add sys_types.
29402         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
29403         instead of ftello.
29404         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
29405         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
29406         (gl_PREREQ_FTELLO): New macro.
29407         * modules/ftello (Depends-on): Add sys_types.
29408         (configure.ac): Incoke gl_PREREQ_FTELLO.
29410         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
29411         instead of fseeko.
29412         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
29413         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
29414         (gl_PREREQ_FSEEKO): New macro.
29415         * modules/fseeko (Depends-on): Add sys_types.
29416         (configure.ac): Invoke gl_PREREQ_FSEEKO.
29418         * lib/sys_stat.in.h: Add comments about off_t.
29419         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
29420         64-bit integer for st_size in 'struct stat'.
29421         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
29422         Define _GL_WINDOWS_64_BIT_ST_SIZE.
29423         * modules/sys_stat (Depends-on): Add sys_types.
29424         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
29426         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
29427         instead of stat or _stat.
29429         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
29430         'struct _stati64' instead of fstat and 'struct stat'.
29431         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
29432         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
29434         Reported by Ray Satiro <raysatiro@yahoo.com>.
29436 2012-04-19  Eric Blake  <eblake@redhat.com>
29438         bootstrap: accommodate older libtool
29439         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
29440         Reported by Daniel P. Berrange.
29442 2012-04-19  Jim Meyering  <meyering@redhat.com>
29444         announce-gen: avoid failure due to lack of Digest::SHA1
29445         Even with the preferred Digest::SHA available, this script
29446         would fail when the backup module, Digest::SHA1, was not installed.
29447         * build-aux/announce-gen: Quote the conditional use of "use".
29448         Reported by Reuben Thomas in:
29449         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
29451         bootstrap: don't let a user's CDPATH setting affect this script
29452         When CDPATH is set, cd will sometimes generate output.
29453         When "cd" is run in a subshell whose output matters, that
29454         surprising-to-some output can cause malfunction.
29455         Unsetting CDPATH turns off this shell "feature."
29456         * build-aux/bootstrap (CDPATH): Unset.
29457         Reported by Reuben Thomas in:
29458         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
29459         and inspired by his patch here:
29460         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
29462 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
29463         and Jim Meyering  <meyering@redhat.com>
29465         maint.mk: catch "see @xref{}" and similar
29466         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
29467         prohibit "See also @xref{", "Also see @pxref{", and similar.
29469 2012-04-16  Jim Meyering  <meyering@redhat.com>
29471         bootstrap: really use gnulib's po/Makefile.in.in
29472         * build-aux/bootstrap: Correct the source file name in previous change.
29473         Reported by Akim Demaille.
29475         configmake: correct minor inconsistency in Makefile rule
29476         * modules/configmake (Makefile.am): All other rules like this one
29477         run the final "mv -f ..." in the same backslash-continued command
29478         as the one that does everything else.  This one put the mv -f ...
29479         command on a separate, non-backslash-continued line.
29480         Make it like the others.
29482         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
29483         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
29484         the one from gettext.  Reported by Akim Demaille.
29486 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
29488         Fix recursion of install-* into po directories.
29489         Bison's install-pdf bug reported by Hans Aberg at
29490         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
29491         * build-aux/po/Makefile.in.in (install-dvi, install-html)
29492         (install-info, install-pdf, install-ps): New targets.
29494 2012-04-16  Jim Meyering  <meyering@redhat.com>
29496         maint: avoid spurious "make sc_maint" failure
29497         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
29498         exempt all *.class file names, for lib/javaversion.class.
29500 2012-04-15  Bruno Haible  <bruno@clisp.org>
29502         lseek: Make configure test independent of environment.
29503         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
29504         Windows, we know that lseek() on pipes is broken; skip the runtime
29505         test.
29507 2012-04-14  Bruno Haible  <bruno@clisp.org>
29509         stat: Bypass buggy override in mingw64.
29510         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
29511         * lib/stat.c (stat) [mingw64]: Define to _stat.
29512         * doc/posix-functions/stat.texi: Mention mingw64 bug.
29514 2012-04-14  Bruno Haible  <bruno@clisp.org>
29516         pathmax: Fix compilation error on MSVC 9.
29517         * modules/pathmax (Depends-on): Add unistd.
29519 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
29521         README: document pointer comparison assumption
29522         * README (Portability guidelines): Document assumption about
29523         pointer comparisons, in response to a recent bug-gnulib comment by
29524         Jeffrey Kegler.
29526 2012-04-12  Bruno Haible  <bruno@clisp.org>
29528         Tests for module 'getrusage'.
29529         * modules/getrusage-tests: New file.
29530         * tests/test-getrusage.c: New file.
29532         New module 'getrusage'.
29533         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
29534         warn-on-use.h.
29535         (getrusage): New declaration.
29536         * lib/getrusage.c: New file.
29537         * m4/getrusage.m4: New file.
29538         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
29539         is declared.
29540         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
29541         HAVE_GETRUSAGE.
29542         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
29543         snippet/c++defs, snippet/warn-on-use.
29544         (Makefile.am): Update generation of sys/resource.h. Substitute
29545         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
29546         * modules/getrusage: New file.
29547         * doc/posix-functions/getrusage.texi: Mention the new module.
29549 2012-04-12  Bruno Haible  <bruno@clisp.org>
29551         Tests for module 'sys_resource'.
29552         * modules/sys_resource-tests: New file.
29553         * tests/test-sys_resource.c: New file.
29555         New module 'sys_resource'.
29556         * lib/sys_resource.in.h: New file.
29557         * m4/sys_resource_h.m4: New file.
29558         * modules/sys_resource: New file.
29559         * doc/posix-headers/sys_resource.texi: Mention the new module.
29561 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
29563         ioctl: Fix compilation error on mingw.
29564         * lib/ioctl.c: Include <windows.h>.
29565         Also reported by Ray Satiro <raysatiro@yahoo.com>.
29567 2012-04-04  Jim Meyering  <meyering@redhat.com>
29569         regex: correct #pragma guard expression
29570         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
29571         not 4.3.  Correct its cpp guard expression.
29573 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
29575         regex: remove unnecessary type punning
29576         Problem reported by Vladimir Serbinenko in
29577         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
29578         * lib/regex.h (struct re_pattern_buffer): Change the type of
29579         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
29580         Fix comment to match code.
29581         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
29582         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
29583         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
29584         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
29585         (set_regs):
29586         Omit no-longer-necessary casts.
29588 2012-04-03  Bruno Haible  <bruno@clisp.org>
29590         Tests for module 'ilogbl'.
29591         * modules/ilogbl-tests: New file.
29592         * tests/test-ilogbl.c: New file.
29594         New module 'ilogbl'.
29595         * lib/math.in.h (ilogbl): New declaration.
29596         * lib/ilogbl.c: New file.
29597         * m4/ilogbl.m4: New file.
29598         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
29599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
29600         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
29601         Split sed invocation, to avoid the limit of 100 substitutions of
29602         HP-UX 'sed'.
29603         * modules/ilogbl: New file.
29604         * tests/test-math-c++.cc: Check the declaration of ilogbl.
29605         * doc/posix-functions/ilogbl.texi: Mention the new module.
29607 2012-04-03  Bruno Haible  <bruno@clisp.org>
29609         Tests for module 'ilogbf'.
29610         * modules/ilogbf-tests: New file.
29611         * tests/test-ilogbf.c: New file.
29613         New module 'ilogbf'.
29614         * lib/math.in.h (ilogbf): New declaration.
29615         * lib/ilogbf.c: New file.
29616         * m4/ilogbf.m4: New file.
29617         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
29618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
29619         REPLACE_ILOGBF.
29620         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
29621         REPLACE_ILOGBF.
29622         * modules/ilogbf: New file.
29623         * tests/test-math-c++.cc: Check the declaration of ilogbf.
29624         * doc/posix-functions/ilogbf.texi: Mention the new module.
29626 2012-04-03  Bruno Haible  <bruno@clisp.org>
29628         Tests for module 'ilogb'.
29629         * modules/ilogb-tests: New file.
29630         * tests/test-ilogb.c: New file.
29631         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
29632         tests/test-logb-ieee.h.
29634         New module 'ilogb'.
29635         * lib/math.in.h (ilogb): New declaration.
29636         * lib/ilogb.c: New file.
29637         * m4/ilogb.m4: New file.
29638         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
29639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
29640         REPLACE_ILOGB.
29641         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
29642         REPLACE_ILOGB.
29643         * modules/ilogb: New file.
29644         * tests/test-math-c++.cc: Check the declaration of ilogb.
29645         * doc/posix-functions/ilogb.texi: Mention the new module.
29647 2012-04-03  Bruno Haible  <bruno@clisp.org>
29649         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
29650         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
29651         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
29652         (main): Check their values.
29653         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
29654         problem.
29656 2012-04-03  Bruno Haible  <bruno@clisp.org>
29658         Tests for module 'logbl-ieee'.
29659         * modules/logbl-ieee-tests: New file.
29660         * tests/test-logbl-ieee.c: New file.
29662         New module 'logbl-ieee'.
29663         * modules/logbl-ieee: New file.
29665         Tests for module 'logb-ieee'.
29666         * modules/logb-ieee-tests: New file.
29667         * tests/test-logb-ieee.c: New file.
29669         New module 'logb-ieee'.
29670         * modules/logb-ieee: New file.
29672         Tests for module 'logbf-ieee'.
29673         * modules/logbf-ieee-tests: New file.
29674         * tests/test-logbf-ieee.c: New file.
29675         * tests/test-logb-ieee.h: New file.
29677         New module 'logbf-ieee'.
29678         * modules/logbf-ieee: New file.
29680 2012-04-03  Bruno Haible  <bruno@clisp.org>
29682         Tests for module 'logbl'.
29683         * modules/logbl-tests: New file.
29684         * tests/test-logbl.c: New file.
29686         New module 'logbl'.
29687         * lib/math.in.h (logbl): New declaration.
29688         * lib/logbl.c: New file.
29689         * m4/logbl.m4: New file.
29690         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
29691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
29692         REPLACE_LOGBL.
29693         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
29694         REPLACE_LOGBL.
29695         * modules/logbl: New file.
29696         * tests/test-math-c++.cc: Check the declaration of logbl.
29697         * doc/posix-functions/logbl.texi: Mention the new module.
29699 2012-04-02  Bruno Haible  <bruno@clisp.org>
29701         Tests for module 'logbf'.
29702         * modules/logbf-tests: New file.
29703         * tests/test-logbf.c: New file.
29705         New module 'logbf'.
29706         * lib/math.in.h (logbf): New declaration.
29707         * lib/logbf.c: New file.
29708         * m4/logbf.m4: New file.
29709         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
29710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
29711         REPLACE_LOGBF.
29712         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
29713         REPLACE_LOGBF.
29714         * modules/logbf: New file.
29715         * tests/test-math-c++.cc: Check the declaration of logbf.
29716         * doc/posix-functions/logbf.texi: Mention the new module.
29718 2012-04-02  Bruno Haible  <bruno@clisp.org>
29720         logb tests: More tests.
29721         * tests/test-logb.h: New file, based on tests/test-logb.c and
29722         tests/test-frexp.h.
29723         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
29724         (main): Just invoke test_function.
29725         * modules/logb-tests (Files): Add tests/test-logb.h,
29726         tests/minus-zero.h, tests/randomd.c.
29727         (Makefile.am): Add randomd.c to test_logb_SOURCES.
29729         logb: Provide replacement and workarounds.
29730         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
29731         is 1.
29732         * lib/logb.c: New file.
29733         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
29734         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
29735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
29736         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
29737         * modules/logb (Files): Add lib/logb.c.
29738         (Depends-on): Add isfinite, frexp, isnand.
29739         (configure.ac): Compile the replacement code logb.c if needed.
29740         * tests/test-math-c++.cc: Check the declaration of logb.
29741         * doc/posix-functions/logb.texi: Mention the replacement and the bug
29742         with subnormal numbers.
29744 2012-04-02  Bruno Haible  <bruno@clisp.org>
29746         log10* tests: Speed up.
29747         * tests/test-log10.h (test_function): Reduce amount of random numbers
29748         to test.
29750 2012-04-01  Bruno Haible  <bruno@clisp.org>
29752         logf-ieee: Fix test whether logf works.
29753         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
29755 2012-04-01  Bruno Haible  <bruno@clisp.org>
29757         log10l: Work around log10l-ieee test failure on IRIX 6.5.
29758         * lib/log10l.c: Include <float.h>
29759         (log10l): On IRIX, normalize the +Infinity value.
29760         * modules/log10l (Depends-on): Add 'float'.
29761         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
29762         +Infinity.
29764         log10f-ieee: Work around test failure on NetBSD 5.1.
29765         * m4/log10f-ieee.m4: New file.
29766         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
29767         test whether log10f works with a negative argument. Replace it if not.
29768         * lib/log10f.c (log10f): For negative arguments, return NaN.
29769         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
29770         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
29771         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
29773         log10f-ieee: Work around test failure on Solaris 9.
29774         * modules/log10f-ieee (Depends-on): Add log10-ieee.
29775         (configure.ac): Require gl_FUNC_LOG10F.
29777         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
29778         * m4/log10-ieee.m4: New file.
29779         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
29780         whether log10 works with a negative argument. Replace it if not.
29781         * lib/log10.c (log10): For negative arguments, return NaN.
29782         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
29783         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
29784         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
29786         Tests for module 'log10l-ieee'.
29787         * modules/log10l-ieee-tests: New file.
29788         * tests/test-log10l-ieee.c: New file.
29790         New module 'log10l-ieee'.
29791         * modules/log10l-ieee: New file.
29793         Tests for module 'log10-ieee'.
29794         * modules/log10-ieee-tests: New file.
29795         * tests/test-log10-ieee.c: New file.
29797         New module 'log10-ieee'.
29798         * modules/log10-ieee: New file.
29800         Tests for module 'log10f-ieee'.
29801         * modules/log10f-ieee-tests: New file.
29802         * tests/test-log10f-ieee.c: New file.
29803         * tests/test-log10-ieee.h: New file.
29805         New module 'log10f-ieee'.
29806         * modules/log10f-ieee: New file.
29808 2012-04-01  Bruno Haible  <bruno@clisp.org>
29810         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
29811         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
29812         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
29813         workaround.
29814         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
29815         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
29816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
29817         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
29818         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
29819         (Depends-on): Update conditions.
29820         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
29821         IRIX 6.5, OSF/1 5.1 problems.
29823 2012-04-01  Bruno Haible  <bruno@clisp.org>
29825         log10f: Work around OSF/1 5.1 bug.
29826         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
29827         * lib/log10f.c (log10f): If logf exists, use it and provide just the
29828         workaround.
29829         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
29830         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
29831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
29832         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
29833         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
29834         (Depends-on): Update conditions.
29835         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
29837 2012-04-01  Bruno Haible  <bruno@clisp.org>
29839         log10: Work around OSF/1 5.1 bug.
29840         * lib/math.in.h (log10): New declaration.
29841         * lib/log10.c: New file.
29842         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
29843         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
29844         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
29845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
29846         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
29847         * modules/log10 (Files): Add lib/log10.c.
29848         (Depends-on): Add math.
29849         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
29850         * tests/test-math-c++.cc: Check the declaration of log10.
29851         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
29853 2012-03-31  Bruno Haible  <bruno@clisp.org>
29855         log10l tests: More tests.
29856         * modules/log10l-tests (Files): Add tests/test-log10l.h,
29857         tests/minus-zero.h, tests/randoml.c.
29858         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
29859         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
29860         (main): Invoke test_function.
29862         log10f tests: More tests.
29863         * modules/log10f-tests (Files): Add tests/test-log10.h,
29864         tests/minus-zero.h, tests/randomf.c.
29865         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
29866         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
29867         (main): Invoke test_function.
29869         log10 tests: More tests.
29870         * tests/test-log10.h: New file.
29871         * modules/log10-tests (Files): Add tests/test-log10.h,
29872         tests/minus-zero.h, tests/randomd.c.
29873         (Makefile.am): Add randomd.c to test_log10_SOURCES.
29874         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
29875         (main): Invoke test_function.
29877 2012-03-31  Simon Josefsson  <simon@josefsson.org>
29879         fflush: Fix syntax error.
29880         * lib/fflush.c: Include unused-parameter.h, needed for
29881         _GL_UNUSED_PARAMETER.
29882         * modules/fflush (Depends-on): Add snippet/unused-parameter.
29884 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29886         regex: pacify GCC when compiling GRUB
29887         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
29888         a diagnostic.  Reported by Vladimir Serbinenko in
29889         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
29891 2012-03-29  Eric Blake  <eblake@redhat.com>
29893         stdio: don't assume gets any more
29894         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
29895         support.
29896         * modules/stdio (Makefile.am): Likewise.
29897         * lib/stdio-read.c (gets): Likewise.
29898         * tests/test-stdio-c++.cc: Likewise.
29899         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
29900         * lib/stdio.in.h (gets): Make warning occur in more places.
29901         * doc/posix-functions/gets.texi (gets): Update documentation.
29902         Reported by Christer Solskogen.
29904         maint.mk: fix syntax checks without exclusions
29905         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
29906         Reported by Daniel P. Berrange.
29908         strerror_r: avoid compiler warning
29909         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
29910         level.
29912         fflush: avoid compiler warning
29913         * lib/fflush.c (update_fpos_cache): Mark variables that are
29914         potentially unused.
29916 2012-03-25  Bruno Haible  <bruno@clisp.org>
29918         Tests for module 'localeconv'.
29919         * modules/localeconv-tests: New file.
29920         * tests/test-localeconv.c: New file.
29922         New module 'localeconv'.
29923         * lib/locale.in.h (localeconv): New declaration.
29924         * lib/localeconv.c: New file.
29925         * m4/localeconv.m4: New file.
29926         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
29927         REPLACE_LOCALECONV.
29928         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
29929         REPLACE_LOCALECONV.
29930         * modules/localeconv: New file.
29931         * modules/nl_langinfo (Depends-on): Add localeconv.
29932         * modules/human (Depends-on): Likewise.
29933         * doc/posix-functions/localeconv.texi: Mention the new module.
29935 2012-03-25  Bruno Haible  <bruno@clisp.org>
29937         locale: Provide a complete 'struct lconv'.
29938         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
29939         'struct lconv' does not contain int_p_cs_precedes.
29940         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
29941         * doc/posix-headers/locale.texi: Update.
29943         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
29944         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
29945         * doc/posix-headers/locale.texi: Update.
29947         locale: Provide a working 'struct lconv'.
29948         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
29949         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
29950         'struct lconv' does not even contain decimal_point.
29951         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
29952         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
29953         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
29954         * doc/posix-headers/locale.texi: Mention the problems with
29955         'struct lconv'.
29956         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29958 2012-03-24  Bruno Haible  <bruno@clisp.org>
29960         Enable common subexpression optimization in GCC.
29961         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
29962         macros.
29963         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
29964         GCC attribute 'const'.
29965         (uc_locale_language): Declare with GCC attribute 'pure'.
29966         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
29967         with GCC attribute 'const'.
29968         * lib/unictype.in.h (uc_is_general_category_withtable,
29969         uc_combining_class, uc_combining_class_name,
29970         uc_combining_class_long_name, uc_bidi_class_name,
29971         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
29972         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
29973         uc_decimal_value, uc_digit_value, uc_numeric_value,
29974         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
29975         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
29976         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
29977         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
29978         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
29979         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
29980         Declare with GCC attribute 'const'.
29981         (uc_general_category_name, uc_general_category_long_name,
29982         uc_general_category_byname, uc_general_category,
29983         uc_is_general_category, uc_combining_class_byname,
29984         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
29985         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
29986         Declare with GCC attribute 'pure'.
29987         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
29988         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
29989         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
29990         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
29991         with GCC attribute 'pure'.
29992         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
29993         'const'.
29994         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
29995         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
29996         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
29997         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
29998         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
29999         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
30000         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
30001         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
30002         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
30003         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
30004         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
30005         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
30006         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
30007         GCC attribute 'pure'.
30008         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
30009         'const'.
30010         * lib/uniwidth.in.h (uc_width): Simplify declaration.
30011         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
30012         u32_strwidth): Declare with GCC attribute 'pure'.
30014         Enable common subexpression optimization in GCC.
30015         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
30016         (alphasort): Declare with GCC attribute 'pure'.
30017         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
30018         (atoll): Declare with GCC attribute 'pure'.
30019         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30020         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30021         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
30022         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
30023         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
30024         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
30025         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
30027 2012-03-24  Bruno Haible  <bruno@clisp.org>
30029         gnulib-tool: Avoid unintended error output from 'cmp'.
30030         * gnulib-tool (func_add_file, func_update_file, func_import): Use
30031         "cmp -s", not "cmp > /dev/null".
30033 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
30035         gnulib-tool: fix imprecise comments w.r.t. an automake bug
30037         It's not just Automake versions < 1.9b that creates an empty
30038         pkgdatadir at installation time if pkgdata_DATA is specified
30039         to empty; modern automake versions do this as well, at least
30040         until automake 1.11.4 (not yet released at the moment of writing,
30041         but soon to appear).  That behaviour was generally considered a
30042         feature rather than a bug, at least until this discussion:
30043         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
30045         See also automake bugs #10997 and #11030.
30047         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
30048         reference to relevant automake bug numbers.
30049         (func_emit_tests_Makefile_am): Likewise.
30051 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
30053         announce-gen: use Digest::SHA when possible
30054         * build-aux/announce-gen: Use Digest::SHA when possible, falling
30055         back to Digest::SHA1 if necessary.
30057 2012-03-20  Jim Meyering  <meyering@redhat.com>
30059         tests: avoid gcc warnings about argv vs. const initializers
30060         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
30061         warnings about discarding 'const' qualifier from pointer target type.
30062         * tests/test-posix_spawn2.c (main): Likewise.
30064 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
30066         README-release: simplify slightly
30067         * top/README-release: Run "git checkout master" only once.
30069 2012-03-15  Mark Wielaard  <mark@klomp.org>
30071         git-merge-changelog: add specific example on how to use with hg.
30072         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
30074 2012-03-18  Mark Wielaard  <mark@klomp.org>
30076         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
30078 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
30080         git-version-gen: don't let "prefix" envvar cause trouble
30081         * build-aux/git-version-gen (prefix): Initialize properly,
30082         so as not to use a value specified via the environment.
30083         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
30085 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
30087         regex: diagnose too-large repeat counts in EREs
30088         Previously, the code did not diagnose the too-large repeat count
30089         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
30090         as if it were 'b\{1000000000}', which is unexpected.
30091         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
30092         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
30093         is a reasonable one for this problem.  Another option would be to
30094         create a new REG_OVERFLOW error for repeat counts that are too large.
30095         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
30096         count is too large, so that the caller can distinguish the two cases.
30097         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
30098         "Too large" return code, and that repeat counts are one example of this.
30100 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
30102         doc: some glibc x32 integer width issues
30103         * doc/posix-headers/sys_types.texi (sys/types.h):
30104         * doc/posix-headers/time.texi (time.h):
30105         Mention that glibc x32 does not conform to POSIX in a couple of
30106         areas related to integer widths.
30108 2012-03-15  Bruno Haible  <bruno@clisp.org>
30110         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
30111         * lib/fma.c (VOLATILE): New macro.
30112         (FUNC): Use it to work around a GCC compiler bug.
30114 2012-03-13  Bruno Haible  <bruno@clisp.org>
30116         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
30117         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
30118         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
30119         REPLACE_HYPOTL to 1.
30120         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
30122 2012-03-13  Bruno Haible  <bruno@clisp.org>
30124         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
30125         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
30126         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
30127         REPLACE_REMAINDERL to 1.
30128         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
30129         bug.
30131 2012-03-13  Bruno Haible  <bruno@clisp.org>
30133         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
30134         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
30135         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
30136         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
30137         too big rounding errors.
30138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
30139         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
30140         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
30141         (Depends-on): Update conditions.
30142         * tests/test-sqrtl.c (my_ldexpl): New function.
30143         (main): Add test of a particular value.
30144         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
30146 2012-03-13  Pádraig Brady  <P@draigBrady.com>
30148         doc: Update timer_* platform portability notes.
30149         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
30150         that always return ENOSYS.
30151         * doc/posix-functions/timer_delete.texi: Likewise.
30152         * doc/posix-functions/timer_gettime.texi: Likewise.
30153         * doc/posix-functions/timer_settime.texi: Likewise.
30155 2012-03-13  Bruno Haible  <bruno@clisp.org>
30157         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
30158         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
30159         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
30160         REPLACE_CBRTL to 1.
30161         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
30163 2012-03-13  Bruno Haible  <bruno@clisp.org>
30165         remainderl: Avoid compilation error on AIX >= 5.2.
30166         * lib/math.in.h (remainderl): Undefine macro from the system header.
30168 2012-03-13  Bruno Haible  <bruno@clisp.org>
30170         Avoid compilation errors with MSVC option -fp:strict.
30171         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
30172         * lib/cbrtf.c: Likewise.
30173         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30175 2012-03-12  Bruno Haible  <bruno@clisp.org>
30177         uninorm: Don't crash in out-of-memory conditions.
30178         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
30179         gracefully.
30180         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
30181         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
30183 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
30185         quote: fix syntax-check
30186         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
30187         also exports quote_quoting_options.
30189 2012-03-12  Simon Josefsson  <simon@josefsson.org>
30191         Collapse list of copyright years to ranges.  See
30192         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
30193         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
30194         build-aux/csharpexec.sh.in, build-aux/gnupload,
30195         build-aux/install-reloc, build-aux/javacomp.sh.in,
30196         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
30197         build-aux/move-if-change, build-aux/reloc-ldflags,
30198         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
30200 2012-03-11  Bruno Haible  <bruno@clisp.org>
30202         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
30203         * m4/log2f-ieee.m4: New file.
30204         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
30205         whether log2f works with a minus zero argument. Replace it if not.
30206         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
30207         (Depends-on): Add log2-ieee.
30208         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
30209         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
30211         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
30212         * m4/log2-ieee.m4: New file.
30213         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
30214         whether log2 works with a minus zero argument. Replace it if not.
30215         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
30216         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
30217         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
30219         Tests for module 'log2l-ieee'.
30220         * modules/log2l-ieee-tests: New file.
30221         * tests/test-log2l-ieee.c: New file.
30223         New module 'log2l-ieee'.
30224         * modules/log2l-ieee: New file.
30226         Tests for module 'log2-ieee'.
30227         * modules/log2-ieee-tests: New file.
30228         * tests/test-log2-ieee.c: New file.
30230         New module 'log2-ieee'.
30231         * modules/log2-ieee: New file.
30233         Tests for module 'log2f-ieee'.
30234         * modules/log2f-ieee-tests: New file.
30235         * tests/test-log2f-ieee.c: New file.
30236         * tests/test-log2-ieee.h: New file.
30238         New module 'log2f-ieee'.
30239         * modules/log2f-ieee: New file.
30241 2012-03-11  Bruno Haible  <bruno@clisp.org>
30243         Tests for module 'log2l'.
30244         * modules/log2l-tests: New file.
30245         * tests/test-log2l.c: New file.
30247         New module 'log2l'.
30248         * lib/math.in.h (log2l): New declaration.
30249         * lib/log2l.c: New file.
30250         * m4/log2l.m4: New file.
30251         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
30252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
30253         REPLACE_LOG2L.
30254         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
30255         REPLACE_LOG2L.
30256         * modules/log2l: New file.
30257         * tests/test-math-c++.cc: Check the declaration of log2l.
30258         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
30259         and OSF/1 problems.
30261 2012-03-11  Bruno Haible  <bruno@clisp.org>
30263         Tests for module 'log2f'.
30264         * modules/log2f-tests: New file.
30265         * tests/test-log2f.c: New file.
30267         New module 'log2f'.
30268         * lib/math.in.h (log2f): New declaration.
30269         * lib/log2f.c: New file.
30270         * m4/log2f.m4: New file.
30271         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
30272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
30273         REPLACE_LOG2F.
30274         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
30275         REPLACE_LOG2F.
30276         * modules/log2f: New file.
30277         * tests/test-math-c++.cc: Check the declaration of log2f.
30278         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
30279         and OSF/1 and Cygwin problems.
30281 2012-03-11  Bruno Haible  <bruno@clisp.org>
30283         Tests for module 'log2'.
30284         * modules/log2-tests: New file.
30285         * tests/test-log2.c: New file.
30286         * tests/test-log2.h: New file.
30288         New module 'log2'.
30289         * lib/math.in.h (log2): New declaration.
30290         * lib/log2.c: New file.
30291         * m4/log2.m4: New file.
30292         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
30293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
30294         REPLACE_LOG2.
30295         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
30296         REPLACE_LOG2.
30297         * modules/log2: New file.
30298         * tests/test-math-c++.cc: Check the declaration of log2.
30299         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
30300         and OSF/1 and Cygwin problems.
30302 2012-03-11  Bruno Haible  <bruno@clisp.org>
30304         exp2* tests: More tests.
30305         * tests/test-exp2.h (test_function): Test all integral arguments that
30306         don't need to overflow or denormalized numbers.
30307         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
30308         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
30309         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
30311 2012-03-10  Bruno Haible  <bruno@clisp.org>
30313         log1pl-ieee: Work around test failure on AIX 7.1.
30314         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
30316         log1pl-ieee: Work around test failure on IRIX 6.5.
30317         * m4/log1pl-ieee.m4: New file.
30318         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
30319         test whether log1pl works with a minus zero argument. Replace it if
30320         not.
30321         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
30322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
30323         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
30324         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
30325         (Depends-on): Update conditions.
30326         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
30327         m4/signbit.m4.
30328         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
30329         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
30331         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
30332         * m4/log1pf-ieee.m4: New file.
30333         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
30334         test whether log1pf works with a minus zero argument. Replace it if
30335         not.
30336         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
30337         m4/signbit.m4.
30338         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
30339         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
30341         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
30342         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
30343         (configure.ac): Require gl_FUNC_LOG1PF.
30345         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
30346         * m4/log1p-ieee.m4: New file.
30347         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
30348         whether log1p works with a minus zero argument. Replace it if not.
30349         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
30350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
30351         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
30352         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
30353         (Depends-on): Update conditions.
30354         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
30355         m4/signbit.m4.
30356         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
30357         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
30359         Tests for module 'log1pl-ieee'.
30360         * modules/log1pl-ieee-tests: New file.
30361         * tests/test-log1pl-ieee.c: New file.
30363         New module 'log1pl-ieee'.
30364         * modules/log1pl-ieee: New file.
30366         Tests for module 'log1p-ieee'.
30367         * modules/log1p-ieee-tests: New file.
30368         * tests/test-log1p-ieee.c: New file.
30370         New module 'log1p-ieee'.
30371         * modules/log1p-ieee: New file.
30373         Tests for module 'log1pf-ieee'.
30374         * modules/log1pf-ieee-tests: New file.
30375         * tests/test-log1pf-ieee.c: New file.
30376         * tests/test-log1p-ieee.h: New file.
30378         New module 'log1pf-ieee'.
30379         * modules/log1pf-ieee: New file.
30381 2012-03-10  Bruno Haible  <bruno@clisp.org>
30383         Tests for module 'log1pl'.
30384         * modules/log1pl-tests: New file.
30385         * tests/test-log1pl.c: New file.
30387         New module 'log1pl'.
30388         * lib/math.in.h (log1pl): New declaration.
30389         * lib/log1pl.c: New file.
30390         * m4/log1pl.m4: New file.
30391         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
30392         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
30393         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
30394         * modules/log1pl: New file.
30395         * tests/test-math-c++.cc: Check the declaration of log1pl.
30396         * doc/posix-functions/log1pl.texi: Mention the new module.
30398 2012-03-10  Bruno Haible  <bruno@clisp.org>
30400         Tests for module 'log1pf'.
30401         * modules/log1pf-tests: New file.
30402         * tests/test-log1pf.c: New file.
30404         New module 'log1pf'.
30405         * lib/math.in.h (log1pf): New declaration.
30406         * lib/log1pf.c: New file.
30407         * m4/log1pf.m4: New file.
30408         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
30409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
30410         REPLACE_LOG1PF.
30411         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
30412         REPLACE_LOG1PF.
30413         * modules/log1pf: New file.
30414         * tests/test-math-c++.cc: Check the declaration of log1pf.
30415         * doc/posix-functions/log1pf.texi: Mention the new module.
30417 2012-03-10  Bruno Haible  <bruno@clisp.org>
30419         log1p tests: More tests.
30420         * tests/test-log1p.h: New file.
30421         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
30422         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
30423         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
30424         (main): Invoke test_function.
30426         log1p: Provide replacement for Minix and MSVC.
30427         * lib/math.in.h (log1p): New declaration.
30428         * lib/log1p.c: New file.
30429         * m4/log1p.m4: New file.
30430         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
30431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
30432         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
30433         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
30434         (Depends-on): Add math, isnand, log, round.
30435         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
30436         HAVE_LOG1P is 0.
30437         * tests/test-math-c++.cc: Check the declaration of log1p.
30438         * doc/posix-functions/log1p.texi: Mention the replacement.
30440 2012-03-10  Bruno Haible  <bruno@clisp.org>
30442         math tests: Small simplification.
30443         * tests/test-exp.h (test_function): Use the same err_bound for
30444         'double' on platforms with sizeof (long double) == sizeof (double)
30445         than on platforms with sizeof (long double) > sizeof (double).
30446         * tests/test-exp2.h (test_function): Likewise.
30447         * tests/test-expm1.h (test_function): Likewise.
30448         * tests/test-log.h (test_function): Likewise.
30450 2012-03-10  Bruno Haible  <bruno@clisp.org>
30452         Fix some comments.
30453         * lib/expl.c: Fix an ambiguous comment.
30454         * lib/expm1.c: Likewise.
30455         * lib/expm1l.c: Likewise.
30456         * lib/exp2.c: Likewise.
30457         * lib/exp2l.c: Likewise.
30459 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
30461         regex: allow inclusion of <regex.h> before <limits.h>
30462         Without this patch, portable programs had to include <limits.h> before
30463         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
30464         I ran into this problem with a test version of GNU grep on Solaris 8.
30465         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
30466         This is done conditionally so that this change can be merged
30467         back to glibc.
30468         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
30469         using the included regex.
30471         fts: depend on fdopendir
30472         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
30473         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
30474         problem was introduced when fdopendir was split out.
30476 2012-03-10  Bruno Haible  <bruno@clisp.org>
30478         Remove unused variables.
30479         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
30480         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
30482 2012-03-10  Bruno Haible  <bruno@clisp.org>
30484         isnanf-nolibm: Fix last commit.
30485         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
30487         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
30488         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
30490 2012-03-10  Bruno Haible  <bruno@clisp.org>
30492         logf-ieee: Work around test failure on NetBSD 5.1.
30493         * m4/logf-ieee.m4: New file.
30494         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
30495         whether logf works with a negative argument. Replace it if not.
30496         * lib/logf.c (logf): For negative arguments, return NaN.
30497         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
30498         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
30499         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
30501         logf-ieee: Work around test failure on Solaris 9.
30502         * modules/logf-ieee (Depends-on): Add log-ieee.
30503         (configure.ac): Require gl_FUNC_LOGF.
30505         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
30506         * m4/log-ieee.m4: New file.
30507         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
30508         log works with a negative argument. Replace it if not.
30509         * lib/log.c (log): For negative arguments, return NaN.
30510         * modules/log-ieee (Files): Add m4/log-ieee.m4.
30511         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
30512         * doc/posix-functions/log.texi: Mention the log-ieee module.
30514         Tests for module 'logl-ieee'.
30515         * modules/logl-ieee-tests: New file.
30516         * tests/test-logl-ieee.c: New file.
30518         New module 'logl-ieee'.
30519         * modules/logl-ieee: New file.
30521         Tests for module 'log-ieee'.
30522         * modules/log-ieee-tests: New file.
30523         * tests/test-log-ieee.c: New file.
30525         New module 'log-ieee'.
30526         * modules/log-ieee: New file.
30528         Tests for module 'logf-ieee'.
30529         * modules/logf-ieee-tests: New file.
30530         * tests/test-logf-ieee.c: New file.
30531         * tests/test-log-ieee.h: New file.
30533         New module 'logf-ieee'.
30534         * modules/logf-ieee: New file.
30536 2012-03-10  Bruno Haible  <bruno@clisp.org>
30538         log: Fix bug introduced on 2012-03-09.
30539         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
30541 2012-03-10  Pádraig Brady  <P@draigBrady.com>
30543         timer-time: link explicitly with pthreads on glibc
30544         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
30545         to support static linking, when newer glibc is
30546         detected, as that contains pthread emulation of
30547         POSIX timer functions where required.
30548         * modules/timer-time: Depend on threadlib to
30549         pull in the appropriate library to link.
30551 2012-03-10  Bruno Haible  <bruno@clisp.org>
30553         log* tests: More tests.
30554         * tests/test-log.h: New file.
30555         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
30556         (main): Invoke test_function.
30557         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
30558         (main): Invoke test_function.
30559         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
30560         (main): Invoke test_function.
30561         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
30562         tests/randomd.c.
30563         (Makefile.am): Add randomd.c to test_log_SOURCES.
30564         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
30565         tests/randomf.c.
30566         (Makefile.am): Add randomf.c to test_logf_SOURCES.
30567         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
30568         tests/randoml.c.
30569         (Depends-on): Add 'float'.
30570         (Makefile.am): Add randoml.c to test_logl_SOURCES.
30572 2012-03-09  Bruno Haible  <bruno@clisp.org>
30574         logl: Work around OSF/1 5.1 bug.
30575         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
30576         * lib/logl.c (logl): If logl exists, use it and provide just the
30577         workaround.
30578         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
30579         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
30580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
30581         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
30582         * modules/logl (configure.ac): Consider REPLACE_LOGL.
30583         (Depends-on): Update conditions.
30584         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
30586 2012-03-09  Bruno Haible  <bruno@clisp.org>
30588         logf: Work around OSF/1 5.1 bug.
30589         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
30590         * lib/logf.c (logf): If logf exists, use it and provide just the
30591         workaround.
30592         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
30593         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
30594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
30595         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
30596         * modules/logf (configure.ac): Consider REPLACE_LOGF.
30597         (Depends-on): Update conditions.
30598         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
30600 2012-03-09  Bruno Haible  <bruno@clisp.org>
30602         log: Work around OSF/1 5.1 bug.
30603         * lib/math.in.h (log): New declaration.
30604         * lib/log.c: New file.
30605         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
30606         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
30607         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
30608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
30609         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
30610         * modules/log (Files): Add lib/log.c.
30611         (Depends-on): Add math.
30612         (configure.ac): If REPLACE_LOG is 1, compile an override.
30613         * tests/test-math-c++.cc: Check the declaration of log.
30614         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
30616 2012-03-09  Jim Meyering  <meyering@redhat.com>
30618         readtokens.c: adjust wording in a comment
30619         * lib/readtokens.c: Insert omitted "that" in a comment.
30621 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
30623         modechange: add notations +40, 00440, etc.
30624         * lib/modechange.c (mode_compile): Support new notations
30625         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
30627 2012-03-08  Bruno Haible  <bruno@clisp.org>
30629         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
30630         * m4/exp2l-ieee.m4: New file.
30631         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
30632         test whether exp2l works with a NaN argument and with a negative
30633         infinity argument. Replace it if not.
30634         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
30635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
30636         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
30637         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
30638         (Depends-on): Update conditions.
30639         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
30640         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
30641         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
30643         Tests for module 'exp2l-ieee'.
30644         * modules/exp2l-ieee-tests: New file.
30645         * tests/test-exp2l-ieee.c: New file.
30647         New module 'exp2l-ieee'.
30648         * modules/exp2l-ieee: New file.
30650         Tests for module 'exp2-ieee'.
30651         * modules/exp2-ieee-tests: New file.
30652         * tests/test-exp2-ieee.c: New file.
30654         New module 'exp2-ieee'.
30655         * modules/exp2-ieee: New file.
30657         Tests for module 'exp2f-ieee'.
30658         * modules/exp2f-ieee-tests: New file.
30659         * tests/test-exp2f-ieee.c: New file.
30660         * tests/test-exp2-ieee.h: New file.
30662         New module 'exp2f-ieee'.
30663         * modules/exp2f-ieee: New file.
30665 2012-03-08  Bruno Haible  <bruno@clisp.org>
30667         Tests for module 'exp2l'.
30668         * modules/exp2l-tests: New file.
30669         * tests/test-exp2l.c: New file.
30671         New module 'exp2l'.
30672         * lib/math.in.h (exp2l): New declaration.
30673         * lib/exp2l.c: New file.
30674         * lib/expl-table.c: New file, extracted from lib/expl.c.
30675         * lib/expl.c (gl_expl_table): New declaration.
30676         (expl): Remove expl_table. Update reference.
30677         * m4/exp2l.m4: New file.
30678         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
30679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
30680         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
30681         * modules/exp2l: New file.
30682         * modules/expl (Files): Add lib/expl-table.c.
30683         (configure.ac): Compile also expl-table.c.
30684         * tests/test-math-c++.cc: Check the declaration of exp2l.
30685         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
30686         problem.
30688 2012-03-08  Bruno Haible  <bruno@clisp.org>
30690         Tests for module 'exp2f'.
30691         * modules/exp2f-tests: New file.
30692         * tests/test-exp2f.c: New file.
30694         New module 'exp2f'.
30695         * lib/math.in.h (exp2f): New declaration.
30696         * lib/exp2f.c: New file.
30697         * m4/exp2f.m4: New file.
30698         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
30699         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
30700         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
30701         * modules/exp2f: New file.
30702         * tests/test-math-c++.cc: Check the declaration of exp2f.
30703         * doc/posix-functions/exp2f.texi: Mention the new module and the
30704         IRIX problem.
30706 2012-03-08  Bruno Haible  <bruno@clisp.org>
30708         Tests for module 'exp2'.
30709         * modules/exp2-tests: New file.
30710         * tests/test-exp2.c: New file.
30711         * tests/test-exp2.h: New file.
30713         New module 'exp2'.
30714         * lib/math.in.h (exp2): New declaration.
30715         * lib/exp2.c: New file.
30716         * m4/exp2.m4: New file.
30717         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
30718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
30719         REPLACE_EXP2.
30720         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
30721         REPLACE_EXP2.
30722         * modules/exp2: New file.
30723         * tests/test-math-c++.cc: Check the declaration of exp2.
30724         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
30725         and OpenBSD problems.
30727 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
30729         savedir: fix comment typo
30730         * lib/savedir.c (savedirstream): Fix typo in comment.
30732 2012-03-08  Bruno Haible  <bruno@clisp.org>
30734         test-readtokens.c: use const; remove unwarranted cast
30735         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
30737 2012-03-08  Bruno Haible  <bruno@clisp.org>
30739         fmal: Avoid compilation error on AIX.
30740         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
30741         AIX 5.2..7.1.
30743 2012-03-08  Bruno Haible  <bruno@clisp.org>
30745         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
30746         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
30747         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
30748         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
30749         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
30750         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
30751         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
30753 2012-03-08  Bruno Haible  <bruno@clisp.org>
30755         remainderf: Override buggy system function on IRIX 6.5.
30756         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
30757         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
30758         when it exists.
30759         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
30761 2012-03-08  Jim Meyering  <meyering@redhat.com>
30763         test-readtokens.c: avoid const-related compilation warnings
30764         * tests/test-readtokens.c: Avoid const-related compilation warnings.
30766 2012-03-07  Jim Meyering  <meyering@redhat.com>
30767             Bruno Haible  <bruno@clisp.org>
30769         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
30770         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
30771         tests/randomd.c.
30772         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
30773         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
30774         tests/randoml.c.
30775         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
30777 2012-03-07  Bruno Haible  <bruno@clisp.org>
30779         expm1l: Avoid compilation error on AIX.
30780         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
30781         AIX 5.2..7.1.
30783 2012-03-07  Bruno Haible  <bruno@clisp.org>
30785         expm1l: Don't override undeclared system function on IRIX 6.5.
30786         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
30787         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
30788         it exists. Set HAVE_DECL_EXPM1L.
30789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
30790         HAVE_EXPM1L.
30791         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
30792         HAVE_EXPM1L.
30793         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
30795 2012-03-07  Bruno Haible  <bruno@clisp.org>
30797         remainderl: Don't override undeclared system function on IRIX 6.5.
30798         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
30799         HAVE_REMAINDERL.
30800         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
30801         declared when it exists. Set HAVE_DECL_REMAINDERL.
30802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
30803         not HAVE_REMAINDERL.
30804         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
30805         HAVE_REMAINDERL.
30806         * doc/posix-functions/remainderl.texi: Mention missing declaration
30807         problem.
30809 2012-03-07  Bruno Haible  <bruno@clisp.org>
30811         rintf: Don't override undeclared system function on IRIX 6.5.
30812         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
30813         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
30814         exists. Set HAVE_DECL_RINTF.
30815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
30816         HAVE_RINTF.
30817         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
30818         HAVE_RINTF.
30819         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
30821 2012-03-07  Bruno Haible  <bruno@clisp.org>
30823         roundl: Avoid compilation error on AIX.
30824         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
30825         AIX 5.2..7.1.
30827 2012-03-07  Bruno Haible  <bruno@clisp.org>
30829         roundl: Don't override undeclared system function on IRIX 6.5.
30830         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
30831         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
30832         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
30833         * modules/roundl (configure.ac): For replacement code, test
30834         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
30835         (Depends-on): Update conditions.
30836         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
30838 2012-03-07  Bruno Haible  <bruno@clisp.org>
30840         roundf: Don't override undeclared system function on IRIX 6.5.
30841         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
30842         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
30843         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
30844         * modules/roundf (configure.ac): For replacement code, test
30845         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
30846         (Depends-on): Update conditions.
30847         * modules/roundf-ieee (Depends-on): Update conditions.
30848         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
30850 2012-03-07  Bruno Haible  <bruno@clisp.org>
30852         round: Don't override undeclared system function on IRIX 6.5.
30853         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
30854         argument.
30855         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
30856         also when it is not declared. Set HAVE_ROUND. For replacement code,
30857         test HAVE_ROUND, not HAVE_DECL_ROUND.
30858         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
30859         not HAVE_DECL_ROUND.
30860         (Depends-on): Update conditions.
30861         * modules/round-ieee (Depends-on): Update conditions.
30862         * doc/posix-functions/round.texi: Mention the IRIX problem.
30864 2012-03-07  Bruno Haible  <bruno@clisp.org>
30866         copysignf: Don't override undeclared system function on IRIX 6.5.
30867         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
30868         HAVE_COPYSIGNF.
30869         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
30870         declared when it exists. Set HAVE_DECL_COPYSIGNF.
30871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
30872         not HAVE_COPYSIGNF.
30873         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
30874         HAVE_COPYSIGNF.
30875         * doc/posix-functions/copysignf.texi: Mention missing declaration
30876         problem.
30878 2012-03-07  Jim Meyering  <meyering@redhat.com>
30880         readtokens: add tests
30881         * modules/readtokens-tests: New file.
30882         * tests/test-readtokens.c: New file.
30884 2012-03-07  Jim Meyering  <meyering@redhat.com>
30886         quotearg: the module must now include quote.h
30887         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
30888         So must the module.
30889         * modules/quotearg (Files): Add quote.h.
30891 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
30893         readtokens: avoid core dumps with unusual calling patterns
30894         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
30895         * lib/readtokens.c: Include limits.h.
30896         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
30897         (readtoken): Don't cache the delimiters; the cache code was buggy
30898         if !delim && saved_delim, or if the new n_delim differs from the old.
30899         Also, it wasn't thread-safe.
30901 2012-03-07  Bruno Haible  <bruno@clisp.org>
30903         quote: Adhere to common module description layout.
30904         * modules/quote (Makefile.am): Add back empty section.
30906 2012-03-06  Akim Demaille  <demaille@gostai.com>
30908         quote: fuse into quotearg
30909         This patch is made for the benefit of Bison.
30910         quote does not leave the choice of the quoting style to the user.
30911         quoting_style provides poor customizability, yet quoting_options,
30912         which is very rich, is hidden inside quotearg.c.  So in order to
30913         allow quote customization, move its implementation to quotearg.c.
30914         * lib/quote.c: Remove.
30915         * modules/quote: Adjust.
30916         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
30917         warning: provide all the members of literal structs.
30918         (quote_quoting_options): New.
30919         (quote, quote_n): Import implementation from quote.c.
30920         * lib/quote.h: Import the comments from quote.c.
30921         (quote_quoting_options): New.
30923 2012-03-06  Bruno Haible  <bruno@clisp.org>
30925         Tests for module 'expm1l-ieee'.
30926         * modules/expm1l-ieee-tests: New file.
30927         * tests/test-expm1l-ieee.c: New file.
30929         New module 'expm1l-ieee'.
30930         * modules/expm1l-ieee: New file.
30932         Tests for module 'expm1f-ieee'.
30933         * modules/expm1f-ieee-tests: New file.
30934         * tests/test-expm1f-ieee.c: New file.
30936         New module 'expm1f-ieee'.
30937         * modules/expm1f-ieee: New file.
30939         Tests for module 'expm1-ieee'.
30940         * modules/expm1-ieee-tests: New file.
30941         * tests/test-expm1-ieee.c: New file.
30942         * tests/test-expm1-ieee.h: New file.
30944         New module 'expm1-ieee'.
30945         * modules/expm1-ieee: New file.
30946         * m4/expm1-ieee.m4: New file.
30947         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
30948         whether expm1 works with a minus zero argument. Replace it if not.
30949         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
30950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
30951         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
30952         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
30953         (Depends-on): Update conditions.
30954         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
30955         AIX problem.
30957 2012-03-06  Bruno Haible  <bruno@clisp.org>
30959         Work around expm1f bug on IRIX 6.5.
30960         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
30961         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
30962         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
30963         not work.
30964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
30965         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
30966         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
30967         (Depends-on): Update conditions.
30968         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
30970 2012-03-06  Bruno Haible  <bruno@clisp.org>
30972         Tests for module 'expm1l'.
30973         * modules/expm1l-tests: New file.
30974         * tests/test-expm1l.c: New file.
30976         New module 'expm1l'.
30977         * lib/math.in.h (expm1l): New declaration.
30978         * lib/expm1l.c: New file.
30979         * m4/expm1l.m4: New file.
30980         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
30981         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
30982         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
30983         * modules/expm1l: New file.
30984         * tests/test-math-c++.cc: Check the declaration of expm1l.
30985         * doc/posix-functions/expm1l.texi: Mention the new module.
30987 2012-03-06  Bruno Haible  <bruno@clisp.org>
30989         Tests for module 'expm1f'.
30990         * modules/expm1f-tests: New file.
30991         * tests/test-expm1f.c: New file.
30993         New module 'expm1f'.
30994         * lib/math.in.h (expm1f): New declaration.
30995         * lib/expm1f.c: New file.
30996         * m4/expm1f.m4: New file.
30997         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
30998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
30999         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
31000         * modules/expm1f: New file.
31001         * tests/test-math-c++.cc: Check the declaration of expm1f.
31002         * doc/posix-functions/expm1f.texi: Mention the new module.
31004 2012-03-06  Bruno Haible  <bruno@clisp.org>
31006         Tests for module 'expm1'.
31007         * modules/expm1-tests: New file.
31008         * tests/test-expm1.c: New file.
31009         * tests/test-expm1.h: New file.
31011         New module 'expm1'.
31012         * lib/math.in.h (expm1): New declaration.
31013         * lib/expm1.c: New file.
31014         * m4/expm1.m4: New file.
31015         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
31016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
31017         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
31018         * modules/expm1: New file.
31019         * tests/test-math-c++.cc: Check the declaration of expm1.
31020         * doc/posix-functions/expm1.texi: Mention the new module.
31022 2012-03-06  Bruno Haible  <bruno@clisp.org>
31024         math: Ensure declarations of math functions.
31025         * modules/acosf (Depends-on): Add 'extensions'.
31026         * modules/asinf (Depends-on): Likewise.
31027         * modules/atan2f (Depends-on): Likewise.
31028         * modules/atanf (Depends-on): Likewise.
31029         * modules/cbrt (Depends-on): Likewise.
31030         * modules/cbrtf (Depends-on): Likewise.
31031         * modules/cbrtl (Depends-on): Likewise.
31032         * modules/copysignf (Depends-on): Likewise.
31033         * modules/copysignl (Depends-on): Likewise.
31034         * modules/cosf (Depends-on): Likewise.
31035         * modules/coshf (Depends-on): Likewise.
31036         * modules/expf (Depends-on): Likewise.
31037         * modules/fabsf (Depends-on): Likewise.
31038         * modules/fabsl (Depends-on): Likewise.
31039         * modules/fmaf (Depends-on): Likewise.
31040         * modules/fmal (Depends-on): Likewise.
31041         * modules/fmodf (Depends-on): Likewise.
31042         * modules/fmodl (Depends-on): Likewise.
31043         * modules/frexpf (Depends-on): Likewise.
31044         * modules/frexpl (Depends-on): Likewise.
31045         * modules/hypot (Depends-on): Likewise.
31046         * modules/hypotf (Depends-on): Likewise.
31047         * modules/hypotl (Depends-on): Likewise.
31048         * modules/ldexpf (Depends-on): Likewise.
31049         * modules/ldexpl (Depends-on): Likewise.
31050         * modules/log10f (Depends-on): Likewise.
31051         * modules/log10l (Depends-on): Likewise.
31052         * modules/log1p (Depends-on): Likewise.
31053         * modules/logb (Depends-on): Likewise.
31054         * modules/logf (Depends-on): Likewise.
31055         * modules/modff (Depends-on): Likewise.
31056         * modules/modfl (Depends-on): Likewise.
31057         * modules/powf (Depends-on): Likewise.
31058         * modules/remainderf (Depends-on): Likewise.
31059         * modules/remainderl (Depends-on): Likewise.
31060         * modules/rintf (Depends-on): Likewise.
31061         * modules/rintl (Depends-on): Likewise.
31062         * modules/sinf (Depends-on): Likewise.
31063         * modules/sinhf (Depends-on): Likewise.
31064         * modules/sqrtf (Depends-on): Likewise.
31065         * modules/tanf (Depends-on): Likewise.
31066         * modules/tanhf (Depends-on): Likewise.
31067         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
31068         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
31069         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
31070         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
31071         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
31072         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
31073         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
31074         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
31075         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
31076         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
31077         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
31078         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
31079         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
31080         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
31081         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
31082         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
31083         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
31084         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
31085         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
31086         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
31087         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
31088         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
31089         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
31090         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
31091         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
31092         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
31093         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
31094         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31095         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
31096         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
31097         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
31098         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
31099         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
31100         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
31101         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
31102         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
31103         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
31104         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
31105         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
31106         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
31107         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
31109 2012-03-06  Bruno Haible  <bruno@clisp.org>
31111         math: Update module names in warnings.
31112         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
31113         tanl): Use specific module name in warn-on-use warning.
31115 2012-03-06  Bruno Haible  <bruno@clisp.org>
31117         expl: Simplify computation.
31118         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
31120 2012-03-05  Bruno Haible  <bruno@clisp.org>
31122         exp* tests: More tests.
31123         * tests/test-exp.h: New file.
31124         * tests/test-exp.c: Include <float.h> and test-exp.h.
31125         (main): Invoke test_function.
31126         * tests/test-expf.c: Include <float.h> and test-exp.h.
31127         (main): Invoke test_function.
31128         * tests/test-expl.c: Include <float.h> and test-exp.h.
31129         (main): Invoke test_function.
31130         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
31131         (Makefile.am): Add randomd.c to test_exp_SOURCES.
31132         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
31133         (Makefile.am): Add randomf.c to test_expf_SOURCES.
31134         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
31135         (Depends-on): Add 'float'.
31136         (Makefile.am): Add randoml.c to test_expl_SOURCES.
31138         expl: Fix precision of computed result.
31139         * lib/expl.c: Completely rewritten.
31140         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
31141         (Maintainer): Add me.
31142         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
31144 2012-03-05  Bruno Haible  <bruno@clisp.org>
31146         cbrt* tests: More tests.
31147         * tests/test-cbrt.h: New file.
31148         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
31149         (main): Invoke test_function.
31150         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
31151         (main): Invoke test_function.
31152         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
31153         (main): Invoke test_function.
31154         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
31155         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
31156         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
31157         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
31158         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
31159         (Depends-on): Add 'float'.
31160         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
31162 2012-03-05  Bruno Haible  <bruno@clisp.org>
31164         hypot* tests: More tests.
31165         * tests/test-hypot.h: New file, partially extracted from
31166         tests/test-hypotl.c.
31167         * tests/test-hypot.c: Include test-hypot.h.
31168         (main): Invoke test_function.
31169         * tests/test-hypotf.c: Include test-hypot.h.
31170         (main): Invoke test_function.
31171         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
31172         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
31173         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
31174         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
31175         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
31176         tests/randomf.c.
31177         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
31178         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
31179         tests/randoml.c.
31180         (Depends-on): Add 'fpucw', 'float'.
31181         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
31183 2012-03-05  Bruno Haible  <bruno@clisp.org>
31185         fpucw: Doc about FreeBSD.
31186         * lib/fpucw.h: Mention FreeBSD in comments.
31188 2012-03-04  Bruno Haible  <bruno@clisp.org>
31190         sqrt* tests: More tests.
31191         * tests/test-sqrt.h: New file.
31192         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
31193         (main): Invoke test_function.
31194         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
31195         (main): Invoke test_function.
31196         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
31197         (main): Invoke test_function.
31198         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
31199         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
31200         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
31201         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
31202         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
31203         (Depends-on): Add 'float'.
31204         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
31206 2012-03-04  Bruno Haible  <bruno@clisp.org>
31208         remainder* tests: More tests.
31209         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
31210         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
31211         (main): Invoke test_function.
31212         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
31213         (main): Invoke test_function.
31214         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
31215         (main): Invoke test_function.
31216         * modules/remainder-tests (Files): Add tests/test-remainder.h,
31217         tests/randomd.c.
31218         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
31219         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
31220         tests/randomf.c.
31221         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
31222         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
31223         tests/randoml.c.
31224         (Depends-on): Add 'float'.
31225         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
31227 2012-03-04  Bruno Haible  <bruno@clisp.org>
31229         remainder, remainderf, remainderl: Fix computation for large quotients.
31230         * lib/remainder.c: Completely rewritten.
31231         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
31232         USE_FLOAT.
31233         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
31234         USE_LONG_DOUBLE.
31235         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
31236         isnand, isinf. Remove round, fma.
31237         * modules/remainderf (Files): Add lib/remainder.c.
31238         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
31239         Remove roundf, fmaf.
31240         * modules/remainderl (Files): Add lib/remainder.c.
31241         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
31242         isinf. Remove roundl, fmal.
31243         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
31244         REMAINDER_LIBM.
31245         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
31246         REMAINDERF_LIBM.
31247         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
31248         REMAINDERL_LIBM.
31250 2012-03-04  Bruno Haible  <bruno@clisp.org>
31252         fmod* tests: More tests.
31253         * tests/test-fmod.h (my_ldexp): New function.
31254         (test_function): Reduce amount of random numbers to test. Add tests
31255         of very large quotients x / y.
31256         * tests/test-fmod.c (MAX_EXP): New macro.
31257         * tests/test-fmodf.c (MAX_EXP): Likewise.
31258         * tests/test-fmodl.c (MAX_EXP): Likewise.
31260 2012-03-04  Bruno Haible  <bruno@clisp.org>
31262         fmod, fmodl: Fix computation for large quotients x / y.
31263         * lib/fmod.c: Completely rewritten.
31264         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
31265         USE_LONG_DOUBLE.
31266         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
31267         isnand. Remove fma.
31268         * modules/fmodl (Files): Add lib/fmod.c.
31269         (Depends-on): Add float, isfinite, signbit, fabsl,
31270         frexpl, ldexpl, isnanl. Remove fma.
31271         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
31272         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
31274 2012-03-03  Bruno Haible  <bruno@clisp.org>
31276         fmod* tests: More tests.
31277         * tests/test-fmod.h: New file.
31278         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
31279         (main): Invoke test_function.
31280         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
31281         (main): Invoke test_function.
31282         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
31283         (main): Invoke test_function.
31284         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
31285         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
31286         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
31287         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
31288         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
31289         (Depends-on): Add 'float'.
31290         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
31292 2012-03-03  Bruno Haible  <bruno@clisp.org>
31294         rint* tests: More tests.
31295         * tests/test-rint.h: New file, partially extracted from
31296         tests/test-rintl.c.
31297         * tests/test-rint.c: Include test-rint.h.
31298         (main): Invoke test_function.
31299         * tests/test-rintf.c: Include test-rint.h.
31300         (main): Invoke test_function.
31301         * tests/test-rintl.c: Include test-rint.h.
31302         (main): Invoke test_function.
31303         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
31304         (Makefile.am): Add randomd.c to test_rint_SOURCES.
31305         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
31306         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
31307         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
31308         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
31310 2012-03-03  Bruno Haible  <bruno@clisp.org>
31312         modf* tests: More tests.
31313         * tests/test-modf.h: New file.
31314         * tests/test-modf.c: Include <float.h> and test-modf.h.
31315         (main): Invoke test_function.
31316         * tests/test-modff.c: Include <float.h> and test-modf.h.
31317         (main): Invoke test_function.
31318         * tests/test-modfl.c: Include <float.h> and test-modf.h.
31319         (main): Invoke test_function.
31320         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
31321         (Makefile.am): Add randomd.c to test_modf_SOURCES.
31322         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
31323         (Makefile.am): Add randomf.c to test_modff_SOURCES.
31324         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
31325         (Depends-on): Add 'float'.
31326         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
31328 2012-03-03  Bruno Haible  <bruno@clisp.org>
31330         fabs* tests: More tests.
31331         * tests/test-fabs.h: New file, partially extracted from
31332         tests/test-fabsl.c.
31333         * tests/test-fabs.c (RANDOM): New macro.
31334         * tests/test-fabsf.c (RANDOM): New macro.
31335         * tests/test-fabsl.c (RANDOM): New macro.
31336         * modules/fabs-tests (Files): Add tests/randomd.c.
31337         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
31338         * modules/fabsf-tests (Files): Add tests/randomf.c.
31339         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
31340         * modules/fabsl-tests (Files): Add tests/randoml.c.
31341         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
31343 2012-03-03  Bruno Haible  <bruno@clisp.org>
31345         ldexp* tests: More tests.
31346         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
31347         * tests/test-ldexp.c (RANDOM): New macro.
31348         * tests/test-ldexpf.c (RANDOM): New macro.
31349         * tests/test-ldexpl.c (RANDOM): New macro.
31350         * modules/ldexp-tests (Files): Add tests/randomd.c.
31351         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
31352         * modules/ldexpf-tests (Files): Add tests/randomf.c.
31353         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
31354         * modules/ldexpl-tests (Files): Add tests/randoml.c.
31355         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
31357 2012-03-03  Bruno Haible  <bruno@clisp.org>
31359         frexp* tests: More tests.
31360         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
31361         * tests/test-frexp.c (RANDOM): New macro.
31362         * tests/test-frexpf.c (RANDOM): New macro.
31363         * tests/test-frexpl.c (RANDOM): New macro.
31364         * modules/frexp-tests (Files): Add tests/randomd.c.
31365         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
31366         * modules/frexpf-tests (Files): Add tests/randomf.c.
31367         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
31368         * modules/frexpl-tests (Files): Add tests/randoml.c.
31369         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
31371 2012-03-03  Bruno Haible  <bruno@clisp.org>
31373         Support for pseudo-random numbers in tests.
31374         * tests/randomf.c: New file.
31375         * tests/randomd.c: New file.
31376         * tests/randoml.c: New file.
31377         * tests/macros.h (randomf, randomd, randoml): New declarations.
31379 2012-03-03  Bruno Haible  <bruno@clisp.org>
31381         frexp* tests: Refactor.
31382         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
31383         * tests/test-frexp.c: Include and use it.
31384         * tests/test-frexpf.c: Likewise.
31385         * tests/test-frexpl.c: Likewise.
31386         * modules/frexp-tests (Files): Add tests/test-frexp.h.
31387         * modules/frexpf-tests (Files): Likewise.
31388         * modules/frexpl-tests (Files): Likewise.
31390 2012-03-02  Jim Meyering  <meyering@redhat.com>
31392         maint: don't specify XZ_OPT=-9ev in dist-related rule
31393         Using xz's -9 option is warranted only if you have a very large
31394         tarball (see xz's documentation for the sizes vs. presets), and
31395         requires 64MiB of memory at decompression time.
31396         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
31397         Automake's default of just "-e" is fine.  Override on a
31398         per-package basis by setting XZ_OPT e.g., in cfg.mk.
31400 2012-03-01  Eric Blake  <eblake@redhat.com>
31402         maint.mk: allow announcement for non-gnulib project
31403         * maint.mk (announcement): Skip gnulib version if not used.
31405 2012-03-01  Jim Meyering  <meyering@redhat.com>
31407         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
31408         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
31409         envvar settings cannot interfere.  Otherwise, setting envvars like
31410         prohibit=foo require=bar, etc. would cause spurious test failures.
31412 2012-03-01  Eric Blake  <eblake@redhat.com>
31414         maint.mk: add per-line exclusions to prohibitions
31415         * maint.mk (_sc_search_regexp): Add $exclude parameter.
31416         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
31417         (sc_const_long_option): Use it.
31419 2012-03-01  Bruno Haible  <bruno@clisp.org>
31421         Tests for module 'expl-ieee'.
31422         * modules/expl-ieee-tests: New file.
31423         * tests/test-expl-ieee.c: New file.
31425         New module 'expl-ieee'.
31426         * modules/expl-ieee: New file.
31428         Tests for module 'exp-ieee'.
31429         * modules/exp-ieee-tests: New file.
31430         * tests/test-exp-ieee.c: New file.
31432         New module 'exp-ieee'.
31433         * modules/exp-ieee: New file.
31435         Tests for module 'expf-ieee'.
31436         * modules/expf-ieee-tests: New file.
31437         * tests/test-expf-ieee.c: New file.
31438         * tests/test-exp-ieee.h: New file.
31440         New module 'expf-ieee'.
31441         * modules/expf-ieee: New file.
31443 2012-02-29  Bruno Haible  <bruno@clisp.org>
31445         cbrtl-ieee: Work around test failure on IRIX 6.5.
31446         * m4/cbrtl-ieee.m4: New file.
31447         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
31448         test whether cbrtl works with a minus zero argument. Replace it if not.
31449         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
31450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
31451         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
31452         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
31453         (Depends-on): Update conditions.
31454         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
31455         m4/signbit.m4.
31456         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
31457         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
31458         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
31460         Tests for module 'cbrtl-ieee'.
31461         * modules/cbrtl-ieee-tests: New file.
31462         * tests/test-cbrtl-ieee.c: New file.
31464         New module 'cbrtl-ieee'.
31465         * modules/cbrtl-ieee: New file.
31467         Tests for module 'cbrt-ieee'.
31468         * modules/cbrt-ieee-tests: New file.
31469         * tests/test-cbrt-ieee.c: New file.
31471         New module 'cbrt-ieee'.
31472         * modules/cbrt-ieee: New file.
31474         Tests for module 'cbrtf-ieee'.
31475         * modules/cbrtf-ieee-tests: New file.
31476         * tests/test-cbrtf-ieee.c: New file.
31477         * tests/test-cbrt-ieee.h: New file.
31479         New module 'cbrtf-ieee'.
31480         * modules/cbrtf-ieee: New file.
31482 2012-02-29  Bruno Haible  <bruno@clisp.org>
31484         cbrtf: Work around bug in IRIX 6.5 system function.
31485         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
31486         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
31487         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
31488         work.
31489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
31490         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
31491         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
31492         (Depends-on): Update conditions.
31493         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
31495 2012-02-29  Bruno Haible  <bruno@clisp.org>
31497         Tests for module 'cbrtl'.
31498         * modules/cbrtl-tests: New file.
31499         * tests/test-cbrtl.c: New file.
31501         New module 'cbrtl'.
31502         * lib/math.in.h (cbrtl): New declaration.
31503         * lib/cbrtl.c: New file.
31504         * m4/cbrtl.m4: New file.
31505         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
31506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
31507         HAVE_DECL_CBRTL.
31508         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
31509         HAVE_DECL_CBRTL.
31510         * modules/cbrtl: New file.
31511         * tests/test-math-c++.cc: Check the declaration of cbrtl.
31512         * doc/posix-functions/cbrtl.texi: Mention the new module.
31514 2012-02-29  Bruno Haible  <bruno@clisp.org>
31516         Tests for module 'cbrtf'.
31517         * modules/cbrtf-tests: New file.
31518         * tests/test-cbrtf.c: New file.
31520         New module 'cbrtf'.
31521         * lib/math.in.h (cbrtf): New declaration.
31522         * lib/cbrtf.c: New file.
31523         * m4/cbrtf.m4: New file.
31524         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
31525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
31526         HAVE_DECL_CBRTF.
31527         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
31528         HAVE_DECL_CBRTF.
31529         * modules/cbrtf: New file.
31530         * tests/test-math-c++.cc: Check the declaration of cbrtf.
31531         * doc/posix-functions/cbrtf.texi: Mention the new module.
31533 2012-02-29  Bruno Haible  <bruno@clisp.org>
31535         cbrt: Provide replacement on MSVC and Minix.
31536         * lib/math.in.h (cbrt): New declaration.
31537         * lib/cbrt.c: New file.
31538         * m4/cbrt.m4: New file.
31539         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
31540         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
31541         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
31542         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
31543         (Depends-on): Add dependencies.
31544         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
31545         * tests/test-math-c++.cc: Check the declaration of cbrt.
31546         * doc/posix-functions/cbrt.texi: Mention that the module provides a
31547         replacement.
31549 2012-02-29  Bruno Haible  <bruno@clisp.org>
31551         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
31552         * m4/hypotl-ieee.m4: New file.
31553         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
31554         test whether hypotl works with mixed NaN and Infinity arguments.
31555         Replace it if not.
31556         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
31557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
31558         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
31559         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
31560         (Depends-on): Update conditions.
31561         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
31562         (Depends-on): Add hypot-ieee.
31563         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
31564         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
31566         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
31567         * m4/hypotf-ieee.m4: New file.
31568         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
31569         test whether hypotf works with mixed NaN and Infinity arguments.
31570         Replace it if not.
31571         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
31572         (Depends-on): Add hypot-ieee.
31573         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
31574         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
31576         hypot-ieee: Work around test failure on OSF/1 and native Windows.
31577         * lib/math.in.h (hypot): New declaration.
31578         * lib/hypot.c: New file.
31579         * m4/hypot-ieee.m4: New file.
31580         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
31581         whether hypot works with mixed NaN and Infinity arguments. Replace it
31582         if not.
31583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
31584         REPLACE_HYPOT.
31585         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
31586         * modules/hypot (Files): Add lib/hypot.c.
31587         (Depends-on): Add dependencies.
31588         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
31589         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
31590         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
31591         * tests/test-math-c++.cc: Check the declaration of hypot.
31592         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
31594         Tests for module 'hypotl-ieee'.
31595         * modules/hypotl-ieee-tests: New file.
31596         * tests/test-hypotl-ieee.c: New file.
31598         New module 'hypotl-ieee'.
31599         * modules/hypotl-ieee: New file.
31601         Tests for module 'hypot-ieee'.
31602         * modules/hypot-ieee-tests: New file.
31603         * tests/test-hypot-ieee.c: New file.
31605         New module 'hypot-ieee'.
31606         * modules/hypot-ieee: New file.
31608         Tests for module 'hypotf-ieee'.
31609         * modules/hypotf-ieee-tests: New file.
31610         * tests/test-hypotf-ieee.c: New file.
31611         * tests/test-hypot-ieee.h: New file.
31613         New module 'hypotf-ieee'.
31614         * modules/hypotf-ieee: New file.
31616 2012-02-29  Bruno Haible  <bruno@clisp.org>
31618         Remove unused variables.
31619         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
31620         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
31621         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
31622         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
31624 2012-02-29  Eric Blake  <eblake@redhat.com>
31626         termios: fix pid_t always, not just for tcgetsid
31627         * doc/posix-headers/termios.texi (termios.h): Mention problem.
31628         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
31629         just when building tcgetsid.
31631 2012-02-29  Bruno Haible  <bruno@clisp.org>
31633         Tests for module 'hypotl'.
31634         * modules/hypotl-tests: New file.
31635         * tests/test-hypotl.c: New file.
31637         New module 'hypotl'.
31638         * lib/math.in.h (hypotl): New declaration.
31639         * lib/hypotl.c: New file.
31640         * m4/hypotl.m4: New file.
31641         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
31642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
31643         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
31644         * modules/hypotl: New file.
31645         * tests/test-math-c++.cc: Check the hypotl declaration.
31646         * doc/posix-functions/hypotl.texi: Mention the new module.
31648 2012-02-29  Eric Blake  <eblake@redhat.com>
31650         tcgetsid: fix cygwin header bug
31651         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
31653         docs: update cygwin progress
31654         * doc/posix-functions/llround.texi (llround): Added in cygwin
31655         1.7.8.
31656         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
31657         * doc/glibc-functions/program_invocation_name.texi
31658         (program_invocation_name): Likewise.
31659         * doc/glibc-functions/program_invocation_short_name.texi
31660         (program_invocation_short_name): Likewise.
31661         * doc/glibc-functions/madvise.texi (madvise): Likewise.
31662         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
31663         Likewise.
31664         * doc/posix-functions/pthread_spin_destroy.texi
31665         (pthread_spin_destroy): Added in cygwin 1.7.10.
31666         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
31667         Likewise.
31668         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
31669         Likewise.
31670         * doc/posix-functions/pthread_spin_trylock.texi
31671         (pthread_spin_trylock): Likewise.
31672         * doc/posix-functions/pthread_spin_unlock.texi
31673         (pthread_spin_unlock): Likewise.
31674         * doc/posix-functions/pthread_setschedprio.texi
31675         (pthread_setschedprio): Likewise.
31676         * doc/posix-functions/pthread_attr_getstack.texi
31677         (pthread_attr_getstack): Likewise.
31678         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
31679         (pthread_attr_getstackaddr): Likewise.
31680         * doc/glibc-functions/pthread_getattr_np.texi
31681         (pthread_getattr_np): Likewise.
31682         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
31683         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
31684         * doc/posix-functions/clock_settime.texi (clock_settime):
31685         Likewise.
31686         * doc/posix-functions/pthread_attr_getguardsize.texi
31687         (pthread_attr_getguardsize): Likewise.
31688         * doc/posix-functions/pthread_attr_setguardsize.texi
31689         (pthread_attr_setguardsize): Likewise.
31690         * doc/posix-functions/pthread_attr_setstack.texi
31691         (pthread_attr_setstack): Likewise.
31692         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
31693         (pthread_attr_setstackaddr): Likewise.
31694         * doc/posix-functions/clock_getcpuclockid.texi
31695         (clock_getcpuclockid): Likewise.
31696         * doc/posix-functions/pthread_getcpuclockid.texi
31697         (pthread_getcpuclockid): Likewise.
31698         * doc/glibc-functions/error.texi (error): Likewise.
31699         * doc/glibc-functions/error_at_line.texi (error_at_line):
31700         Likewise.
31701         * doc/glibc-functions/error_message_count.texi
31702         (error_message_count): Likewise.
31703         * doc/glibc-functions/error_one_per_line.texi
31704         (error_one_per_line): Likewise.
31705         * doc/glibc-functions/error_print_progname.texi
31706         (error_print_progname): Likewise.
31707         * doc/posix-functions/pthread_condattr_getclock.texi
31708         (pthread_condattr_getclock): Likewise.
31709         * doc/posix-functions/pthread_condattr_setclock.texi
31710         (pthread_condattr_setclock): Likewise.
31711         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
31712         Likewise.
31713         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
31714         * doc/glibc-functions/getpt.texi (getpt): Likewise.
31715         * doc/glibc-functions/get_current_dir_name.texi
31716         (get_current_dir_name): Likewise.
31717         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
31718         Likewise.
31719         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
31720         wrong return type.
31721         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
31722         1.7.11.
31724 2012-02-29  Bruno Haible  <bruno@clisp.org>
31726         Tests for module 'hypotf'.
31727         * modules/hypotf-tests: New file.
31728         * tests/test-hypotf.c: New file.
31730         New module 'hypotf'.
31731         * lib/math.in.h (hypotf): New declaration.
31732         * lib/hypotf.c: New file.
31733         * m4/hypotf.m4: New file.
31734         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
31735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
31736         REPLACE_HYPOTF.
31737         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
31738         REPLACE_HYPOTF.
31739         * modules/hypotf: New file.
31740         * tests/test-math-c++.cc: Check the hypotf declaration.
31741         * doc/posix-functions/hypotf.texi: Mention the new module.
31743         hypot: Prepare for hypotf module.
31744         * m4/hypot.m4: New file.
31745         * modules/hypot (Files): Add m4/hypot.m4.
31746         (configure.ac): Invoke gl_FUNC_HYPOT.
31748 2012-02-29  Bruno Haible  <bruno@clisp.org>
31750         hypot tests: More tests.
31751         * tests/test-hypot.c: Include <float.h>.
31752         (main): Add tests about overflow and underflow.
31754 2012-02-29  Bruno Haible  <bruno@clisp.org>
31756         math code: Add comments.
31757         * lib/acosl.c: Add comment about related glibc source files.
31758         * lib/asinl.c: Likewise.
31759         * lib/atanl.c: Likewise.
31760         * lib/expl.c: Likewise.
31761         * lib/logl.c: Likewise.
31762         * lib/sincosl.c: Likewise.
31763         * lib/sinl.c: Likewise.
31764         * lib/tanl.c: Likewise.
31765         * lib/trigl.c: Likewise.
31766         * lib/cosl.c: Likewise. Fix comments.
31768 2012-02-28  Bruno Haible  <bruno@clisp.org>
31770         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
31771         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
31772         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
31773         HUGE_VALL are defined.
31774         (numeric_equald): Renamed from numeric_equal.
31775         (numeric_equalf, numeric_equall): New functions.
31776         (main): Check also HUGE_VALF, HUGE_VALL.
31777         * modules/math-tests (Files): Add tests/macros.h.
31778         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
31779         HUGE_VALL.
31781 2012-02-28  Bruno Haible  <bruno@clisp.org>
31783         doc: Move ISO C11 feature notes into POSIX chapters.
31784         * doc/posix-functions/aligned_alloc.texi: Renamed from
31785         doc/glibc-functions/aligned_alloc.texi.
31786         * doc/posix-functions/quick_exit.texi: Renamed from
31787         doc/glibc-functions/quick_exit.texi.
31788         * doc/posix-headers/uchar.texi: Renamed from
31789         doc/glibc-headers/uchar.texi.
31790         * doc/posix-functions/c16rtomb.texi: Renamed from
31791         doc/glibc-functions/c16rtomb.texi.
31792         * doc/posix-functions/c32rtomb.texi: Renamed from
31793         doc/glibc-functions/c32rtomb.texi.
31794         * doc/posix-functions/mbrtoc16.texi: Renamed from
31795         doc/glibc-functions/mbrtoc16.texi.
31796         * doc/posix-functions/mbrtoc32.texi: Renamed from
31797         doc/glibc-functions/mbrtoc32.texi.
31798         * doc/gnulib.texi: Update.
31799         (Glibc uchar.h): Remove section.
31800         Suggested by Eric Blake.
31802 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
31804         stdnoreturn: port to MSVC better
31805         MSVC standard headers use __declspec(noreturn), so #define noreturn
31806         to empty on that platform.  Reported by Bruno Haible in
31807         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
31808         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
31809         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
31811 2012-02-28  Bruno Haible  <bruno@clisp.org>
31813         doc: Mention new glibc headers and functions.
31814         * doc/glibc-headers/uchar.texi: New file.
31815         * doc/glibc-functions/aligned_alloc.texi: New file.
31816         * doc/glibc-functions/c16rtomb.texi: New file.
31817         * doc/glibc-functions/c32rtomb.texi: New file.
31818         * doc/glibc-functions/clock_adjtime.texi: New file.
31819         * doc/glibc-functions/fanotify_init.texi: New file.
31820         * doc/glibc-functions/fanotify_mark.texi: New file.
31821         * doc/glibc-functions/inet6_opt_append.texi: New file.
31822         * doc/glibc-functions/inet6_opt_find.texi: New file.
31823         * doc/glibc-functions/inet6_opt_finish.texi: New file.
31824         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
31825         * doc/glibc-functions/inet6_opt_init.texi: New file.
31826         * doc/glibc-functions/inet6_opt_next.texi: New file.
31827         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
31828         * doc/glibc-functions/inet6_rth_add.texi: New file.
31829         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
31830         * doc/glibc-functions/inet6_rth_init.texi: New file.
31831         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
31832         * doc/glibc-functions/inet6_rth_segments.texi: New file.
31833         * doc/glibc-functions/inet6_rth_space.texi: New file.
31834         * doc/glibc-functions/login.texi: New file.
31835         * doc/glibc-functions/mbrtoc16.texi: New file.
31836         * doc/glibc-functions/mbrtoc32.texi: New file.
31837         * doc/glibc-functions/name_to_handle_at.texi: New file.
31838         * doc/glibc-functions/ntp_gettimex.texi: New file.
31839         * doc/glibc-functions/open_by_handle_at.texi: New file.
31840         * doc/glibc-functions/prlimit.texi: New file.
31841         * doc/glibc-functions/process_vm_readv.texi: New file.
31842         * doc/glibc-functions/process_vm_writev.texi: New file.
31843         * doc/glibc-functions/recvmmsg.texi: New file.
31844         * doc/glibc-functions/scandirat.texi: New file.
31845         * doc/glibc-functions/sendmmsg.texi: New file.
31846         * doc/glibc-functions/setns.texi: New file.
31847         * doc/glibc-functions/timespec_get.texi: New file.
31848         * doc/gnulib.texi: Include them.
31849         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
31850         sections.
31851         Reported by Eric Blake.
31853 2012-02-28  Bruno Haible  <bruno@clisp.org>
31855         Avoid compilation errors with MSVC option -fp:strict.
31856         * lib/floor.c: Use MSVC specific pragma fenv_access.
31857         * lib/ceil.c: Likewise.
31858         * lib/trunc.c: Likewise.
31859         * lib/round.c: Likewise.
31860         * lib/rint.c: Likewise.
31861         * lib/fma.c: Likewise.
31862         * lib/integer_length.c: Likewise.
31863         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31864         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31865         * tests/test-floor2.c: Likewise.
31866         * tests/test-floorf2.c: Likewise.
31867         * tests/test-ceil2.c: Likewise.
31868         * tests/test-ceilf2.c: Likewise.
31869         * tests/test-trunc2.c: Likewise.
31870         * tests/test-truncf2.c: Likewise.
31871         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
31873 2012-02-27  Bruno Haible  <bruno@clisp.org>
31875         Tests for module 'sqrtl-ieee'.
31876         * modules/sqrtl-ieee-tests: New file.
31877         * tests/test-sqrtl-ieee.c: New file.
31879         New module 'sqrtl-ieee'.
31880         * modules/sqrtl-ieee: New file.
31882         Tests for module 'sqrt-ieee'.
31883         * modules/sqrt-ieee-tests: New file.
31884         * tests/test-sqrt-ieee.c: New file.
31886         New module 'sqrt-ieee'.
31887         * modules/sqrt-ieee: New file.
31889         Tests for module 'sqrtf-ieee'.
31890         * modules/sqrtf-ieee-tests: New file.
31891         * tests/test-sqrtf-ieee.c: New file.
31892         * tests/test-sqrt-ieee.h: New file.
31894         New module 'sqrtf-ieee'.
31895         * modules/sqrtf-ieee: New file.
31897 2012-02-27  Bruno Haible  <bruno@clisp.org>
31899         remainderl-ieee: Work around test failure on OSF/1.
31900         * m4/remainderl-ieee.m4: New file.
31901         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
31902         present, test whether remainderl works with a zero second argument.
31903         Replace it if not.
31904         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
31905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
31906         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
31907         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
31908         (Depends-on): Update conditions.
31909         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
31910         (Depends-on): Add remainder-ieee.
31911         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
31912         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
31913         module.
31915         remainderf-ieee: Work around test failure on OSF/1.
31916         * m4/remainderf-ieee.m4: New file.
31917         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
31918         present, test whether remainderf works with a zero second argument.
31919         Replace it if not.
31920         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
31921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
31922         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
31923         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
31924         (Depends-on): Update conditions.
31925         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
31926         (Depends-on): Add remainder-ieee.
31927         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
31928         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
31929         module.
31931         remainder-ieee: Work around test failure on OSF/1.
31932         * m4/remainder-ieee.m4: New file.
31933         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
31934         present, test whether remainder works with a zero second argument.
31935         Replace it if not.
31936         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
31937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
31938         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
31939         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
31940         (Depends-on): Update dependencies.
31941         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
31942         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
31943         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
31945         Tests for module 'remainderl-ieee'.
31946         * modules/remainderl-ieee-tests: New file.
31947         * tests/test-remainderl-ieee.c: New file.
31949         New module 'remainderl-ieee'.
31950         * modules/remainderl-ieee: New file.
31952         Tests for module 'remainder-ieee'.
31953         * modules/remainder-ieee-tests: New file.
31954         * tests/test-remainder-ieee.c: New file.
31956         New module 'remainder-ieee'.
31957         * modules/remainder-ieee: New file.
31959         Tests for module 'remainderf-ieee'.
31960         * modules/remainderf-ieee-tests: New file.
31961         * tests/test-remainderf-ieee.c: New file.
31962         * tests/test-remainder-ieee.h: New file.
31964         New module 'remainderf-ieee'.
31965         * modules/remainderf-ieee: New file.
31967 2012-02-27  Bruno Haible  <bruno@clisp.org>
31969         modff, modfl: Fix configure syntax error.
31970         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
31971         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
31973 2012-02-27  Bruno Haible  <bruno@clisp.org>
31975         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
31976         * m4/fmodl-ieee.m4: New file.
31977         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
31978         whether fmodl works with zero arguments. Replace it if not.
31979         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
31980         (Depends-on): Add fmod-ieee.
31981         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
31982         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
31984         fmodf-ieee: Work around test failure on OSF/1.
31985         * m4/fmodf-ieee.m4: New file.
31986         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
31987         whether fmodf works with zero arguments. Replace it if not.
31988         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
31989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
31990         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
31991         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
31992         (Depends-on): Update dependencies.
31993         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
31994         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
31995         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
31997         fmodf-ieee: Work around test failure on MSVC 9.
31998         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
31999         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
32001         fmod-ieee: Work around test failures on OSF/1, mingw.
32002         * m4/fmod-ieee.m4: New file.
32003         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
32004         whether fmod works with zero arguments. Replace it if not.
32005         * lib/math.in.h (fmod): New declaration.
32006         * lib/fmod.c: New file.
32007         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
32008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
32009         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
32010         * modules/fmod (Files): Add lib/fmod.c.
32011         (Depends-on): Add math, isinf, trunc, fma.
32012         (configure.ac): Arrange to compile lib/fmod.c if needed.
32013         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
32014         m4/signbit.m4.
32015         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
32016         * tests/test-math-c++.cc: Check the declaration of fmod.
32017         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
32019         fmodl-ieee: Fix test failures.
32020         * lib/fmodl.c (fmodl): Treat Inf specially.
32021         * modules/fmodl (Depends-on): Add isinf.
32023         Tests for module 'fmodl-ieee'.
32024         * modules/fmodl-ieee-tests: New file.
32025         * tests/test-fmodl-ieee.c: New file.
32027         New module 'fmodl-ieee'.
32028         * modules/fmodl-ieee: New file.
32030         Tests for module 'fmod-ieee'.
32031         * modules/fmod-ieee-tests: New file.
32032         * tests/test-fmod-ieee.c: New file.
32034         New module 'fmod-ieee'.
32035         * modules/fmod-ieee: New file.
32037         Tests for module 'fmodf-ieee'.
32038         * modules/fmodf-ieee-tests: New file.
32039         * tests/test-fmodf-ieee.c: New file.
32040         * tests/test-fmod-ieee.h: New file.
32042         New module 'fmodf-ieee'.
32043         * modules/fmodf-ieee: New file.
32045 2012-02-27  Bruno Haible  <bruno@clisp.org>
32047         Tests for module 'rintl-ieee'.
32048         * modules/rintl-ieee-tests: New file.
32049         * tests/test-rintl-ieee.c: New file.
32051         New module 'rintl-ieee'.
32052         * modules/rintl-ieee: New file.
32054         Tests for module 'rint-ieee'.
32055         * modules/rint-ieee-tests: New file.
32056         * tests/test-rint-ieee.c: New file.
32058         New module 'rint-ieee'.
32059         * modules/rint-ieee: New file.
32061         Tests for module 'rintf-ieee'.
32062         * modules/rintf-ieee-tests: New file.
32063         * tests/test-rintf-ieee.c: New file.
32064         * tests/test-rint-ieee.h: New file.
32066         New module 'rintf-ieee'.
32067         * modules/rintf-ieee: New file.
32069 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32071         regex: re_search etc. should return -2 when memory exhausted
32072         This bug was uncovered when testing 'grep'.  Without the fix,
32073         re_search and friends return -1 when memory is exhausted, but -1
32074         means no match, and this causes grep to falsely report no-match
32075         instead of memory-exhaustion.  See
32076         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
32077         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
32078         trouble; this can occur if re_search_internal ran out of memory.
32080 2012-02-26  Bruno Haible  <bruno@clisp.org>
32082         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
32083         * m4/modfl-ieee.m4: New file.
32084         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
32085         whether modfl works with Inf. Replace it if not.
32086         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
32087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
32088         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
32089         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
32090         (Depends-on): Update dependencies.
32091         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
32092         m4/signbit.m4.
32093         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
32094         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
32096         modfl-ieee: Fix dependencies.
32097         * modules/modfl-ieee (Depends-on): Add modf-ieee.
32099         modfl-ieee: Fix test failures.
32100         * lib/modfl.c (modfl): Treat NaN and Inf specially.
32101         * modules/modfl (Depends-on): Add isfinite, isinf.
32103         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
32104         * m4/modff-ieee.m4: New file.
32105         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
32106         whether modff works with NaN and Inf. Replace it if not.
32107         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
32108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
32109         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
32110         * modules/modff (configure.ac): Consider REPLACE_MODFF.
32111         (Depends-on): Update dependencies.
32112         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
32113         m4/signbit.m4.
32114         (Depends-on): Add modf-ieee.
32115         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
32116         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
32118         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
32119         * m4/modf-ieee.m4: New file.
32120         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
32121         whether modf works with NaN and Inf. Replace it if not.
32122         * lib/math.in.h (modf): New declaration.
32123         * lib/modf.c: New file.
32124         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
32125         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
32126         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
32127         * modules/modf (Files): Add lib/modf.c.
32128         (Depends-on): Add math, isfinite, trunc, isinf.
32129         (configure.ac): Addrange to compile lib/modf.c if needed.
32130         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
32131         m4/signbit.m4.
32132         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
32133         * tests/test-math-c++.cc: Check the declaration of modf.
32134         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
32136         Tests for module 'modfl-ieee'.
32137         * modules/modfl-ieee-tests: New file.
32138         * tests/test-modfl-ieee.c: New file.
32140         New module 'modfl-ieee'.
32141         * modules/modfl-ieee: New file.
32143         Tests for module 'modf-ieee'.
32144         * modules/modf-ieee-tests: New file.
32145         * tests/test-modf-ieee.c: New file.
32147         New module 'modf-ieee'.
32148         * modules/modf-ieee: New file.
32150         Tests for module 'modff-ieee'.
32151         * modules/modff-ieee-tests: New file.
32152         * tests/test-modff-ieee.c: New file.
32153         * tests/test-modf-ieee.h: New file.
32155         New module 'modff-ieee'.
32156         * modules/modff-ieee: New file.
32158 2012-02-26  Bruno Haible  <bruno@clisp.org>
32160         Tests for module 'fabsl-ieee'.
32161         * modules/fabsl-ieee-tests: New file.
32162         * tests/test-fabsl-ieee.c: New file.
32164         New module 'fabsl-ieee'.
32165         * modules/fabsl-ieee: New file.
32167         Tests for module 'fabs-ieee'.
32168         * modules/fabs-ieee-tests: New file.
32169         * tests/test-fabs-ieee.c: New file.
32171         New module 'fabs-ieee'.
32172         * modules/fabs-ieee: New file.
32174         Tests for module 'fabsf-ieee'.
32175         * modules/fabsf-ieee-tests: New file.
32176         * tests/test-fabsf-ieee.c: New file.
32177         * tests/test-fabs-ieee.h: New file.
32179         New module 'fabsf-ieee'.
32180         * modules/fabsf-ieee: New file.
32182 2012-02-26  Bruno Haible  <bruno@clisp.org>
32184         Tests for module 'fmal-ieee'.
32185         * modules/fmal-ieee-tests: New file.
32186         * tests/test-fmal-ieee.c: New file.
32188         New module 'fmal-ieee'.
32189         * modules/fmal-ieee: New file.
32191         Tests for module 'fma-ieee'.
32192         * modules/fma-ieee-tests: New file.
32193         * tests/test-fma-ieee.c: New file.
32195         New module 'fma-ieee'.
32196         * modules/fma-ieee: New file.
32198         Tests for module 'fmaf-ieee'.
32199         * modules/fmaf-ieee-tests: New file.
32200         * tests/test-fmaf-ieee.c: New file.
32201         * tests/test-fma-ieee.h: New file.
32203         New module 'fmaf-ieee'.
32204         * modules/fmaf-ieee: New file.
32206 2012-02-26  Bruno Haible  <bruno@clisp.org>
32208         Tests for module 'ldexpl-ieee'.
32209         * modules/ldexpl-ieee-tests: New file.
32210         * tests/test-ldexpl-ieee.c: New file.
32212         New module 'ldexpl-ieee'.
32213         * modules/ldexpl-ieee: New file.
32215         Tests for module 'ldexp-ieee'.
32216         * modules/ldexp-ieee-tests: New file.
32217         * tests/test-ldexp-ieee.c: New file.
32219         New module 'ldexp-ieee'.
32220         * modules/ldexp-ieee: New file.
32222         Tests for module 'ldexpf-ieee'.
32223         * modules/ldexpf-ieee-tests: New file.
32224         * tests/test-ldexpf-ieee.c: New file.
32225         * tests/test-ldexp-ieee.h: New file.
32227         New module 'ldexpf-ieee'.
32228         * modules/ldexpf-ieee: New file.
32230 2012-02-26  Bruno Haible  <bruno@clisp.org>
32232         Refactor frexp*-ieee tests.
32233         * tests/test-frexp-ieee.h: New file.
32234         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
32235         (main): Just call test_function.
32236         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
32237         (main): Just call test_function.
32238         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
32239         (main): Just call test_function.
32240         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
32241         * modules/frexp-ieee-tests (Files): Likewise.
32242         * modules/frexpl-ieee-tests (Files): Likewise.
32244         Tests for module 'frexpl-ieee'.
32245         * modules/frexpl-ieee-tests: New file.
32246         * tests/test-frexpl-ieee.c: New file.
32248         New module 'frexpl-ieee'.
32249         * modules/frexpl-ieee: New file.
32251         Tests for module 'frexp-ieee'.
32252         * modules/frexp-ieee-tests: New file.
32253         * tests/test-frexp-ieee.c: New file.
32255         New module 'frexp-ieee'.
32256         * modules/frexp-ieee: New file.
32258         Tests for module 'frexpf-ieee'.
32259         * modules/frexpf-ieee-tests: New file.
32260         * tests/test-frexpf-ieee.c: New file.
32262         New module 'frexpf-ieee'.
32263         * modules/frexpf-ieee: New file.
32265 2012-02-26  Bruno Haible  <bruno@clisp.org>
32267         roundl-ieee tests: More tests.
32268         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
32269         (main): Add tests for [MX] shaded specification in POSIX.
32270         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32271         (Depends-on): Add isnanl-nolibm.
32273         round-ieee tests: More tests.
32274         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
32275         (main): Add tests for [MX] shaded specification in POSIX.
32276         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32277         (Depends-on): Add isnand-nolibm.
32279         roundf-ieee tests: More tests.
32280         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
32281         (main): Add tests for [MX] shaded specification in POSIX.
32282         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32283         (Depends-on): Add isnanf-nolibm.
32285         truncl-ieee tests: More tests.
32286         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
32287         (main): Add tests for [MX] shaded specification in POSIX.
32288         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32289         (Depends-on): Add isnanl-nolibm.
32291         trunc-ieee tests: More tests.
32292         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
32293         (main): Add tests for [MX] shaded specification in POSIX.
32294         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32295         (Depends-on): Add isnand-nolibm.
32297         truncf-ieee tests: More tests.
32298         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
32299         (main): Add tests for [MX] shaded specification in POSIX.
32300         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32301         (Depends-on): Add isnanf-nolibm.
32303         ceill-ieee tests: More tests.
32304         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
32305         (main): Add tests for [MX] shaded specification in POSIX.
32306         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32307         (Depends-on): Add isnanl-nolibm.
32309         ceil-ieee tests: More tests.
32310         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
32311         (main): Add tests for [MX] shaded specification in POSIX.
32312         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32313         (Depends-on): Add isnand-nolibm.
32315         ceilf-ieee tests: More tests.
32316         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
32317         (main): Add tests for [MX] shaded specification in POSIX.
32318         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32319         (Depends-on): Add isnanf-nolibm.
32321         floorl-ieee tests: More tests.
32322         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
32323         (main): Add tests for [MX] shaded specification in POSIX.
32324         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32325         (Depends-on): Add isnanl-nolibm.
32327         floor-ieee tests: More tests.
32328         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
32329         (main): Add tests for [MX] shaded specification in POSIX.
32330         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32331         (Depends-on): Add isnand-nolibm.
32333         floorf-ieee tests: More tests.
32334         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
32335         (main): Add tests for [MX] shaded specification in POSIX.
32336         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32337         (Depends-on): Add isnanf-nolibm.
32339 2012-02-26  Bruno Haible  <bruno@clisp.org>
32341         fpieee: More comments.
32342         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
32344 2012-02-25  Bruno Haible  <bruno@clisp.org>
32346         Tests for module 'log10l'.
32347         * modules/log10l-tests: New file.
32348         * tests/test-log10l.c: New file.
32349         * tests/test-math-c++.cc: Check the declaration of log10l.
32351         New module 'log10l'.
32352         * lib/math.in.h (log10l): New declaration.
32353         * lib/log10l.c: New file.
32354         * m4/log10l.m4: New file.
32355         * modules/log10l: New file.
32356         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
32357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
32358         HAVE_DECL_LOG10L.
32359         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
32360         HAVE_DECL_LOG10L.
32361         * doc/posix-functions/log10l.texi: Mention the new module.
32363 2012-02-25  Bruno Haible  <bruno@clisp.org>
32365         fmodl, remainder*: Avoid wrong results due to rounding errors.
32366         * lib/fmodl.c (fmodl): Correct the result if it is not within the
32367         expected bounds.
32368         * lib/remainderf.c (remainderf): Likewise.
32369         * lib/remainder.c (remainder): Likewise.
32370         * lib/remainderl.c (remainderl): Likewise.
32372 2012-02-25  Bruno Haible  <bruno@clisp.org>
32374         Tests for module 'remainderl'.
32375         * modules/remainderl-tests: New file.
32376         * tests/test-remainderl.c: New file.
32377         * tests/test-math-c++.cc: Check the declaration of remainderl.
32379         New module 'remainderl'.
32380         * lib/math.in.h (remainderl): New declaration.
32381         * lib/remainderl.c: New file.
32382         * m4/remainderl.m4: New file.
32383         * modules/remainderl: New file.
32384         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
32385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
32386         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
32387         HAVE_REMAINDERL.
32388         * doc/posix-functions/remainderl.texi: Mention the new module.
32390 2012-02-25  Bruno Haible  <bruno@clisp.org>
32392         Tests for module 'remainderf'.
32393         * modules/remainderf-tests: New file.
32394         * tests/test-remainderf.c: New file.
32395         * tests/test-math-c++.cc: Check the declaration of remainderf.
32397         New module 'remainderf'.
32398         * lib/math.in.h (remainderf): New declaration.
32399         * lib/remainderf.c: New file.
32400         * m4/remainderf.m4: New file.
32401         * modules/remainderf: New file.
32402         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
32403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
32404         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
32405         HAVE_REMAINDERF.
32406         * doc/posix-functions/remainderf.texi: Mention the new module.
32408 2012-02-25  Bruno Haible  <bruno@clisp.org>
32410         remainder: Support for MSVC.
32411         * lib/math.in.h (remainder): New declaration.
32412         * lib/remainder.c: New file.
32413         * m4/remainder.m4: New file.
32414         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
32415         (Depends-on): Add math, round, fma.
32416         (configure.ac): Use results of gl_FUNC_REMAINDER.
32417         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
32418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
32419         HAVE_DECL_REMAINDER.
32420         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
32421         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
32422         * tests/test-math-c++.cc: Check the declaration of remainder.
32423         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
32424         problems are fixed.
32426 2012-02-25  Bruno Haible  <bruno@clisp.org>
32428         Tests for module 'fmodl'.
32429         * modules/fmodl-tests: New file.
32430         * tests/test-fmodl.c: New file.
32431         * tests/test-math-c++.cc: Check the declaration of fmodl.
32433         New module 'fmodl'.
32434         * lib/math.in.h (fmodl): New declaration.
32435         * lib/fmodl.c: New file.
32436         * m4/fmodl.m4: New file.
32437         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
32438         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
32439         REPLACE_FMODL.
32440         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
32441         REPLACE_FMODL.
32442         * modules/fmodl: New file.
32443         * doc/posix-functions/fmodl.texi: Mention the new module.
32445 2012-02-25  Bruno Haible  <bruno@clisp.org>
32447         Tests for module 'modfl'.
32448         * modules/modfl-tests: New file.
32449         * tests/test-modfl.c: New file.
32450         * tests/test-math-c++.cc: Check the declaration of modfl.
32452         New module 'modfl'.
32453         * lib/math.in.h (modfl): New declaration.
32454         * lib/modfl.c: New file.
32455         * m4/modfl.m4: New file.
32456         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
32457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
32458         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
32459         * modules/modfl: New file.
32460         * doc/posix-functions/modfl.texi: Mention the new module.
32462 2012-02-25  Bruno Haible  <bruno@clisp.org>
32464         Tests for module 'fabsl'.
32465         * modules/fabsl-tests: New file.
32466         * tests/test-fabsl.c: New file.
32467         * tests/test-math-c++.cc: Check the declaration of fabsl.
32469         New module 'fabsl'.
32470         * lib/math.in.h (fabsl): New declaration.
32471         * lib/fabsl.c: New file.
32472         * m4/fabsl.m4: New file.
32473         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
32474         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
32475         REPLACE_FABSL.
32476         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
32477         REPLACE_FABSL.
32478         * modules/fabsl: New file.
32479         * doc/posix-functions/fabsl.texi: Mention the new module.
32481 2012-02-25  Bruno Haible  <bruno@clisp.org>
32483         fabs tests: More tests.
32484         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
32485         (zero): New variable.
32486         (main): Add tests for signed zero.
32487         * modules/fabs-tests (Files): Add tests/minus-zero.h.
32489         fabsf tests: More tests.
32490         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
32491         (zero): New variable.
32492         (main): Add tests for signed zero.
32493         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
32495 2012-02-24  Bruno Haible  <bruno@clisp.org>
32497         atanl: Provide function definition on MSVC.
32498         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
32499         function pointer.
32500         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
32502 2012-02-24  Bruno Haible  <bruno@clisp.org>
32504         acosl: Provide function definition on MSVC.
32505         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
32506         function pointer.
32507         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
32509 2012-02-24  Bruno Haible  <bruno@clisp.org>
32511         asinl: Provide function definition on MSVC.
32512         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
32513         function pointer.
32514         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
32516 2012-02-24  Bruno Haible  <bruno@clisp.org>
32518         tanl: Provide function definition on MSVC.
32519         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
32520         function pointer.
32521         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
32523 2012-02-24  Bruno Haible  <bruno@clisp.org>
32525         cosl: Provide function definition on MSVC.
32526         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
32527         function pointer.
32528         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
32530 2012-02-24  Bruno Haible  <bruno@clisp.org>
32532         sinl: Provide function definition on MSVC.
32533         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
32534         function pointer.
32535         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
32537 2012-02-24  Bruno Haible  <bruno@clisp.org>
32539         logl: Provide function definition on MSVC.
32540         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
32541         function pointer.
32542         * lib/math.in.h (logl): Undefine if it does not exist as a function.
32544 2012-02-24  Bruno Haible  <bruno@clisp.org>
32546         expl: Provide function definition on MSVC.
32547         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
32548         function pointer.
32549         * lib/math.in.h (expl): Undefine if it does not exist as a function.
32551 2012-02-24  Bruno Haible  <bruno@clisp.org>
32553         sqrtl: Provide function definition on MSVC.
32554         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
32555         a function pointer.
32556         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
32558 2012-02-24  Bruno Haible  <bruno@clisp.org>
32560         ceill: Provide function definition on MSVC.
32561         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
32562         used as a function pointer.
32563         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
32565 2012-02-24  Bruno Haible  <bruno@clisp.org>
32567         floorl: Provide function definition on MSVC.
32568         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
32569         used as a function pointer.
32570         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
32572 2012-02-24  Bruno Haible  <bruno@clisp.org>
32574         ceilf: Provide function definition on MSVC.
32575         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
32576         used as a function pointer.
32577         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
32579 2012-02-24  Bruno Haible  <bruno@clisp.org>
32581         floorf: Provide function definition on MSVC.
32582         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
32583         used as a function pointer.
32584         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
32586 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
32588         stdnoreturn: new module
32589         This implements a replacement for C11's <stdnoreturn.h>.
32590         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
32591         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
32592         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
32593         * tests/test-stdnoreturn.c: New files.
32595 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
32597         regex: fix false multibyte matches in some regular expressions
32598         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
32599         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
32600         * lib/regex_internal.c (re_string_skip_chars):
32601         Fix miscomputation of remain_len that may cause incomplete
32602         multi-byte character and false match.
32604 2012-02-24  Jim Meyering  <meyering@redhat.com>
32606         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
32607         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
32608         uses with "==" *before* the call, e.g., 0 == strcmp (...)
32609         Remove now-unnecessary str''cmp obfuscation.
32610         Suggested by Akim Demaille.
32612 2012-02-24  Bruno Haible  <bruno@clisp.org>
32614         streq: Rename macro.
32615         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
32616         * NEWS: Mention the change.
32617         * lib/mbrtowc.c (mbrtowc): Update.
32618         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
32619         * lib/wcwidth.c (wcwidth): Update.
32620         Suggested by Akim Demaille and Jim Meyering.
32622 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
32624         regex: fix typo in definition of MIN
32625         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
32626         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
32628 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
32629             Bruno Haible  <bruno@clisp.org>
32631         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
32632         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
32633         entries into a stack-allocated buffer directly.
32634         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
32636 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
32637             Bruno Haible  <bruno@clisp.org>
32639         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
32641          - There were several instances of this pattern:
32643              for (;;) {
32644                n = acl (f, GETACLCNT, 0, NULL);
32645                [ allocate an array A of size N ]
32646                if (acl (f, GETACL, n, a) == n)
32647                  break;
32648              }
32650            This loop might never terminate if some other process is constantly
32651            manipulating the file's ACL.  The loop should be rewritten to
32652            terminate.
32654          - The acl (... GETACLNT ...) call is merely an optimization; its value
32655            is merely a hint as to how big to make the array.  A better
32656            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
32657            and just guess a reasonably-big size, growing the size and trying
32658            again if it's not large enough.  This guarantees termination, and
32659            saves a system call.
32661         * lib/acl-internal.h: Include <limits.h>.
32662         (MIN, SIZE_MAX): New macros.
32663         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
32664         a stack-allocated buffer, and use malloc if it does not fit. Don't
32665         use GETACLCNT.
32666         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
32668 2012-02-19  Bruno Haible  <bruno@clisp.org>
32670         acl: Fix endless loop on Solaris with vxfs.
32671         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
32672         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
32673         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
32674         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
32675         * tests/test-sameacls.c (main)[Solaris]: Likewise.
32676         Reported by Bill Jones in
32677         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
32679 2012-02-19  Bruno Haible  <bruno@clisp.org>
32681         acl: Fix copy-acl test failure on Solaris 11.0.
32682         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
32683         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
32684         that this function returns 0 in some more cases.
32686 2012-02-19  Bruno Haible  <bruno@clisp.org>
32688         acl: Update doc references.
32689         * doc/acl-resources.txt: Update links to Solaris documentation.
32691 2012-02-19  Bruno Haible  <bruno@clisp.org>
32693         Fix test failure in many locales on Solaris 11.
32694         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
32695         'tr' arguments.
32696         * tests/test-pipe-filter-ii1.c (main): Likewise.
32697         * build-aux/bootstrap (check_versions): Run 'tr' command with range
32698         expressions in the C locale.
32699         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
32700         * m4/host-os.m4 (gl_HOST_OS): Likewise.
32702 2012-02-19  Bruno Haible  <bruno@clisp.org>
32704         gnulib-tool: Improve usage message.
32705         * gnulib-tool (func_usage): Move doc of --help and --version to the
32706         section "Operation modes".
32708 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
32710         README-release: make it easier to execute commands
32711         * top/README-release: break commands out on to separate lines.
32713 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
32715         GNUmakefile: simplify detection of unconfigured trees
32716         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
32717         whether the tree make is being run from is already configured or
32718         not.  Related simplifications.
32720 2012-02-13  Simon Josefsson  <simon@josefsson.org>
32722         * gnulib-tool (func_usage): Document --help and --version.
32724 2012-02-11  Jim Meyering  <meyering@redhat.com>
32726         bootstrap: don't exit 0 upon gnulib-tool failure
32727         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
32728         its exit status, not 0.
32730 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
32732         README-release: various improvements
32733         * top/README-release: Give a command to push changes for the
32734         release.  Add "distcheck" to list of other pre-release checks.
32735         Fix instance of "make stable" which should be "make TYPE".
32737 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
32739         maint: replace FSF snail-mail addresses with URLs
32740         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
32741         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
32742         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
32743         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
32744         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
32745         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
32746         * lib/check-version.c, lib/check-version.h, lib/config.charset:
32747         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
32748         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
32749         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
32750         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
32751         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
32752         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
32753         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
32754         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
32755         * lib/glthread/thread.c, lib/glthread/thread.h:
32756         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
32757         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
32758         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
32759         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
32760         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
32761         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
32762         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
32763         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
32764         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
32765         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
32766         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
32767         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
32768         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
32769         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
32770         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
32771         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
32772         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
32773         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
32774         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
32775         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
32776         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
32777         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
32778         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
32779         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
32780         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
32781         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
32782         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
32783         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
32784         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
32785         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
32786         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
32787         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
32788         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
32789         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
32790         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
32791         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
32792         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
32793         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
32794         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
32795         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
32796         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
32797         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
32798         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
32799         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
32800         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
32801         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
32802         * tests/test-poll.c, tests/test-quotearg-simple.c:
32803         * tests/test-quotearg.c, tests/test-quotearg.h:
32804         * tests/test-round-ieee.c, tests/test-round1.c:
32805         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
32806         * tests/test-roundl-ieee.c, tests/test-roundl.c:
32807         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
32808         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
32809         * tests/test-strerror.c, tests/test-strerror_r.c:
32810         * tests/test-strsignal.c, tests/test-strverscmp.c:
32811         * tests/test-xmemdup0.c:
32812         Replace FSF snail mail addresses with URLs, as per GNU coding
32813         standards.  See glibc bug
32814         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
32816 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
32818         README-release: capitalize a word and split a line
32819         * top/README-release: Fix punctuation and spacing.
32821 2012-02-08  Akim Demaille  <demaille@gostai.com>
32823         fatal-signal: use C prototypes (with explicit void).
32824         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
32825         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
32827 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32829         regex: spelling fix
32830         * lib/regexec.c: spelling fix
32832         regex: rely on stdint.h for SIZE_MAX
32833         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
32835 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32837         regex: merge glibc changes
32839         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
32840         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
32841         (init_word_char): Work even if bitset words are not exactly 32 or
32842         64 bits wide.  Don't assume there are no padding bits.
32843         * lib/regex.c [_LIBC]: Do not include <config.h>.
32844         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
32845         and -Wtype-limits.
32846         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
32847         needless disagreement with glibc.  All uses changed.  Define it to
32848         1 only if _GNU_SOURCE, to match glibc.
32849         (_REG_RM_NAME): Remove; no longer needed, since the names in
32850         question are now all protected by __USE_GNU.
32851         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
32852         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
32853         * lib/regex_internal.h (MIN): New macro.
32855         2012-01-03 Ulrich Drepper <drepper@gmail.com>
32856         * lib/regcomp.c (init_word_char): Optimize regex a bit.
32858         2011-12-30 Jakub Jelinek <jakub@redhat.com>
32859         * lib/regex_internal.c (re_string_fetch_byte_case):
32860         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
32861         is miscompiled, and it turns out it is because of an incorrect
32862         attribute on re_string_fetch_byte_case.  Unlike
32863         re_string_peek_byte_case, this one is really not pure, it modifies
32864         memory (increments pstr->cur_idx), and with the pure attribute GCC
32865         assumed it doesn't and it cached the presumed value of
32866         regexp->cur_idx in a variable across the
32867          for (;; ++i)
32868            {
32869              if (i >= BRACKET_NAME_BUF_SIZE)
32870                return REG_EBRACK;
32871              if (token->type == OP_OPEN_CHAR_CLASS)
32872                ch = re_string_fetch_byte_case (regexp);
32873              else
32874                ch = re_string_fetch_byte (regexp);
32875              if (re_string_eoi(regexp))
32876                return REG_EBRACK;
32877              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
32878                break;
32879              elem->opr.name[i] = ch;
32880            }
32882         2011-11-29 Andreas Schwab <schwab@redhat.com>
32883         * lib/regcomp.c (build_equiv_class):
32884         Fix access after end of search string in regex matcher.
32886         2011-11-12 Ulrich Drepper <drepper@redhat.com>
32887         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
32889         2011-10-12 Ulrich Drepper <drepper@redhat.com>
32890         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
32892         2011-10-11 Ulrich Drepper <drepper@redhat.com>
32893         * lib/regcomp.c (parse_branch, parse_sub_exp):
32894         More regex memory leak fixes and tests.
32895         (parse_sub_exp, parse_bracket_exp):
32896         Fix memory leak for some invalid regular expressions.
32898         2011-05-28 Ulrich Drepper <drepper@gmail.com>
32899         * lib/regex_internal.c, lib/regexec.c:
32900         Fix unnecessary overallocation due to incomplete character.  When
32901         incomplete characters are found at the end of a string the code
32902         ran amok and allocated lots of memory.  Stricter limits are now in
32903         place.
32905         2011-05-20 Reuben Thomas <rrt@sc3d.org>
32906         * lib/regex.h: Update documentation.
32908         2011-05-16 Aharon Robbins <arnold@skeeve.com>
32909         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
32911         2010-05-05 Andreas Schwab <schwab@redhat.com>
32912         * lib/regexec.c (find_collation_sequence_value):
32913         Fix lookup of collation sequence value during regexp matching.
32915         2010-01-22 Ulrich Drepper <drepper@redhat.com>
32916         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
32918         2008-01-16 Ulrich Drepper <drepper@redhat.com>
32919         * lib/regex.h: Cleanup namespace.
32921         2007-11-26 Ulrich Drepper <drepper@redhat.com>
32922         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
32924         2007-08-26 Ulrich Drepper <drepper@redhat.com>
32925         * lib/regex_internal.h: Prevent some declarations and definitions
32926         to be seen when used in tests.
32928         2005-05-06 Ulrich Drepper <drepper@redhat.com>
32929         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
32930         __libc_lock_* macros if not _LIBC.
32931         (struct re_dfa_t): Add lock.
32933 2012-02-07  Eric Blake  <eblake@redhat.com>
32935         maint.mk: also prohibit lower-case @var@
32936         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
32937         lower case, like @top_srcdir@.
32939 2012-02-04  Eric Blake  <eblake@redhat.com>
32941         canonicalize: avoid uninitialized memory use
32942         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
32943         random '/' left in dest.
32944         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
32946 2012-02-04  Bruno Haible  <bruno@clisp.org>
32948         isatty: Fix test failure of ptsname_r on native Windows.
32949         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
32950         and don't set errno.
32951         (isatty): Test first whether fd is valid. Set errno when returning 0.
32953 2012-02-04  Bruno Haible  <bruno@clisp.org>
32955         spawn-pipe tests: Fix a NULL program name in a diagnostic.
32956         * tests/test-spawn-pipe-main.c: Include progname.h.
32957         (main): Invoke set_program_name.
32958         * modules/spawn-pipe-tests (Depends-on): Add progname.
32960         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
32961         * tests/test-nonblocking-socket-main.c: Include progname.h.
32962         (main): Invoke set_program_name.
32963         * modules/nonblocking-socket-tests (Depends-on): Add progname.
32965         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
32966         * tests/test-nonblocking-pipe-main.c: Include progname.h.
32967         (main): Invoke set_program_name.
32968         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
32970 2012-02-04  Eric Blake  <eblake@redhat.com>
32972         canonicalize-lgpl: fix // handling
32973         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
32975         canonicalize: fix // handling
32976         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
32977         /// to //, since only // is special.
32979 2012-02-04  Bruno Haible  <bruno@clisp.org>
32981         ioctl: Fix test failure on native Windows.
32982         * lib/ioctl.c: Include msvc-nothrow.h.
32983         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
32985 2012-02-04  Bruno Haible  <bruno@clisp.org>
32987         fsync: Avoid test failure on native Windows.
32988         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
32989         read-only.
32991 2012-02-04  Bruno Haible  <bruno@clisp.org>
32993         sys_select: Avoid syntax error on OpenBSD 5.0.
32994         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
32995         currently being included, just include the system's <sys/select.h>.
32997 2012-02-04  Bruno Haible  <bruno@clisp.org>
32999         sys_select: Avoid syntax error on OpenBSD 5.0.
33000         * lib/sys_select.in.h: Include <signal.h> only after the include_next
33001         <sys/select.h>, not before.
33002         Reported by Jiri B <jirib@devio.us>.
33004 2012-02-04  Bruno Haible  <bruno@clisp.org>
33006         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
33007         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
33008         global variables.
33009         * tests/test-get-rusage-data.c (main): Likewise.
33010         Reported by Jim Meyering.
33012 2012-02-04  Bruno Haible  <bruno@clisp.org>
33014         stdioext: Fix last commit.
33015         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
33017 2012-02-03  Bruno Haible  <bruno@clisp.org>
33019         stdioext: Add tentative support for Plan9.
33020         * lib/stdio-impl.h: Include <errno.h>.
33021         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
33022         * lib/freadable.c (freadable): Likewise.
33023         * lib/fwritable.c (fwritable): Likewise.
33024         * lib/fbufmode.c (fbufmode): Likewise.
33025         * lib/freading.c (freading): Likewise.
33026         * lib/fwriting.c (fwriting): Likewise.
33027         * lib/freadptr.c (freadptr): Likewise.
33028         * lib/freadseek.c (freadptrinc): Likewise.
33029         * lib/freadahead.c (freadahead): Likewise.
33030         * lib/fpurge.c (fpurge): Likewise.
33031         * lib/fseeko.c (rpl_fseeko): Likewise.
33032         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
33033         Reported by Jens Staal <staal1978@gmail.com>.
33035 2012-02-02  Jim Meyering  <meyering@redhat.com>
33037         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
33038         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
33039         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
33040         not even to try to add the attribute.  Instead, add a pragma to suppress
33041         the suggestion/warning.
33043 2012-01-31  Karl Berry  <karl@gnu.org>
33045         setstate doc: typo.
33046         * doc/posix-functions/setstate.texi (setstate): { not (.
33048 2012-01-31  Bruno Haible  <bruno@clisp.org>
33050         popen: Make more robust on Windows.
33051         * lib/popen.c: On native Windows, use the _popen based code even if
33052         HAVE_POPEN is set.
33053         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
33054         environment variable on native Windows.
33056 2012-01-30  Bruno Haible  <bruno@clisp.org>
33058         pclose: Fix typo.
33059         * lib/stdio.in.h (pclose): Fix typo in warning message.
33061 2012-01-30  Bruno Haible  <bruno@clisp.org>
33063         doc about getlogin_r, setstate.
33064         * doc/posix-functions/getlogin_r.texi: List the incompatible
33065         declaration problem under "not fixed by gnulib".
33066         * doc/posix-functions/setstate.texi: Mention incompatible declaration
33067         problem on Solaris 11 and other platforms.
33069 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
33070             Bruno Haible  <bruno@clisp.org>
33072         poll tests: Make test more robust.
33073         * tests/test-poll.c: Include macros.h.
33074         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
33075         return value of various I/O operations.
33076         * modules/poll-tests (Files): Add tests/macros.h.
33078 2012-01-30  Bruno Haible  <bruno@clisp.org>
33080         sys_stat: Fix support for mingw64 and MSVC.
33081         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
33082         header files already do it.
33083         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
33084         stat itself.
33085         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
33087 2012-01-30  Bruno Haible  <bruno@clisp.org>
33089         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
33090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
33091         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
33093 2012-01-29  Bruno Haible  <bruno@clisp.org>
33095         quotearg: Fix test failure on MacOS X 10.5.
33096         * tests/test-quotearg-simple.c: Include localcharset.h.
33097         (main): If the locale encoding is not ASCII, bypass the tests of
33098         locale_quoting_style and clocale_quoting_style.
33099         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
33101 2012-01-29  Jim Meyering  <meyering@redhat.com>
33103         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
33104         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
33105         detect uses of canonicalize_file_name.
33107 2012-01-28  Bruno Haible  <bruno@clisp.org>
33109         test-framework-sh: Fix test failure with AIX 7.1 diff.
33110         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
33111         in column 1, like 'diff -c' does.
33112         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
33113         whether 'diff -u' is used. Instead, test whether the output contains
33114         some '@' character.
33116 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
33118         strtoimax: eliminate need for stdint.h, inttypes.h checks
33119         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
33120         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
33121         the prerequisites for a recently-introduced strtoimax test.
33122         I guess this might cause strtoimax to be replaced when not
33123         strictly necessary on older hosts, but this shouldn't introduce
33124         any bugs and it should make Emacs 'configure' faster on typical
33125         modern hosts.  Problem discovered when importing the latest gnulib
33126         to an Emacs test version.
33127         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
33129 2012-01-28  Bruno Haible  <bruno@clisp.org>
33131         sys_time: Override 'struct timeval' on some native Windows platforms.
33132         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
33133         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
33134         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
33135         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
33136         needs to be overridden.
33137         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
33138         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
33139         * tests/test-sys_select.c: Check that the tv_sec member has the same
33140         size as a 'time_t'.
33141         * tests/test-sys_time.c: Likewise.
33142         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
33143         is set, set also REPLACE_GETTIMEOFDAY.
33144         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
33145         convert the resulting 'struct timeval' before returning.
33146         * lib/select.c: Include <sys/time.h>.
33147         (select, timeval): Undefine at the right place.
33148         * modules/select (Depends-on): Add sys_time.
33149         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
33150         some Windows platforms.
33151         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
33153 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
33155         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
33156         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
33157         an integer.
33158         * lib/fcntl.c (dupfd): Likewise.
33159         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
33161 2012-01-28  Bruno Haible  <bruno@clisp.org>
33163         fcntl: Avoid compilation error on native Windows.
33164         * modules/fcntl (Depends-on): Add 'close'.
33166 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
33168         select, poll, isatty: Avoid warnings on x86_64 mingw64.
33169         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
33170         pointer to an integer.
33171         * lib/poll.c (IsConsoleHandle): Likewise.
33172         * lib/isatty.c (IsConsoleHandle): Likewise.
33174 2012-01-28  Jim Meyering  <meyering@redhat.com>
33176         doc: clarify README-release
33177         * top/README-release: Clarify: you should make a point to have
33178         the latest stable versions of build tools in your PATH, and the
33179         reference to buildreq is solely for its list of tool names, not
33180         for its minimal-functional version numbers.
33181         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
33183         maint.mk: use more readable (yet functionally equivalent) quoting
33184         It is common to quote a single quote in a single quoted string like
33185         this:  '...'\''...'.  Unless you know the idiom, that looks like
33186         gibberish, so prefer to double-quote the string when possible.
33187         Then you can use a more readable, lone single quote: "...'..."
33188         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
33189         "don't" is more readable than the equivalent 'don'\''t'.
33190         (sc_cast_of_x_alloc_return_value): Likewise.
33191         (sc_cast_of_alloca_return_value): Likewise.
33192         (sc_makefile_path_separator_check): Similar: use ":" in '...',
33193         rather than '\'':'\''.
33195 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
33197         stdalign: relax _Alignof and tighten _Alignas test
33198         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
33199         as it was too strict: alignof must divide offsetof, but it need
33200         not equal offsetof.  Inspired by Joseph S. Myers's comment
33201         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
33202         Conversely, tighten the _Alignas test a bit, as the resulting
33203         alignment must be exactly 8.
33205 2012-01-27  Bruno Haible  <bruno@clisp.org>
33207         stdalign: Document the last change.
33208         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
33210 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
33212         stdalign: check that alignof and offsetof are consistent
33213         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
33214         Problem reported for gnulib by Richard W.M. Jones in
33215         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
33217 2012-01-27  Jim Meyering  <meyering@redhat.com>
33219         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
33220         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
33221         convert a sequence with gaps to the minimal containing range.
33222         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
33223         * tests/test-update-copyright.sh: Test for this.
33224         The FSF confirmed it is ok to do this, assuming there is at
33225         least one significant change per year in the affected range:
33226         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
33228 2012-01-26  Bruno Haible  <bruno@clisp.org>
33230         pipe2: refine doc about thread-safety
33231         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
33232         multithread-safety problem.
33233         * doc/glibc-functions/accept4.texi: Likewise.
33235 2012-01-26  Bruno Haible  <bruno@clisp.org>
33237         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
33238         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
33239         In the test program, include <fcntl.h>, for O_RDONLY.
33241 2012-01-26  Eric Blake  <eblake@redhat.com>
33243         pipe2: document lack of thread-safety in replacement
33244         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
33245         issue in replacement.
33246         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33247         Based on a report by Eric Wong.
33249 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
33250             Bruno Haible  <bruno@clisp.org>
33252         malloca: Avoid warnings on x86_64 mingw64.
33253         * lib/malloca.c: Include <stdint.h>.
33254         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
33255         * modules/malloca (Depends-on): Add stdint.
33256         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
33258 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33260         obstack: remove __STDC__ conditionals
33261         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
33262         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
33263         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
33264         m4/include_next.m4 as the only gnulib-maintained places that still
33265         refer to __STDC__.
33267 2012-01-24  Bruno Haible  <bruno@clisp.org>
33269         havelib: Modern quoting.
33270         * build-aux/config.rpath: Quote 'like this', not `like this', as per
33271         the recent change to the GNU coding standards.
33273 2012-01-24  Bruno Haible  <bruno@clisp.org>
33275         stdint: Improve support for Android.
33276         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
33277         Reported by Simon Josefsson <simon@josefsson.org>.
33279 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33281         doc: omit trailing empty lines from INSTALL etc.
33282         * doc/Makefile (INSTALL): Omit trailing empty lines.
33283         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
33284         omit trailing empty lines.  This simplifies the build procedure.
33286 2012-01-23  Jim Meyering  <meyering@redhat.com>
33288         tests: avoid spurious warnings about gl_sockets_startup
33289         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
33290         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
33291         reporting a "statement with no effect".
33292         * tests/test-accept.c (main): Mark as "(void)".
33293         * tests/test-accept4.c (main): Likewise.
33294         * tests/test-bind.c (main): Likewise.
33295         * tests/test-connect.c (main): Likewise.
33296         * tests/test-getpeername.c (main): Likewise.
33297         * tests/test-getsockname.c (main): Likewise.
33298         * tests/test-getsockopt.c (main): Likewise.
33299         * tests/test-listen.c (main): Likewise.
33300         * tests/test-recv.c (main): Likewise.
33301         * tests/test-recvfrom.c (main): Likewise.
33302         * tests/test-send.c (main): Likewise.
33303         * tests/test-sendto.c (main): Likewise.
33304         * tests/test-setsockopt.c (main): Likewise.
33305         * tests/test-shutdown.c (main): Likewise.
33307 2012-01-21  Bruno Haible  <bruno@clisp.org>
33309         locale-fr.m4: Fix for Android.
33310         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
33311         failure of the test program on Bionic libc.
33313 2012-01-21  Jim Meyering  <meyering@redhat.com>
33315         bootstrap: fail when bootstrap_post_import_hook fails
33316         Otherwise, it's far too easy to miss diagnostics emitted
33317         between gnulib-tool's output and that of running configure.
33318         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
33320 2012-01-17  Jim Meyering  <meyering@redhat.com>
33322         maint: enable sc_trailing_blank
33323         * build-aux/pmccabe.css: Remove trailing blanks.
33324         * doc/acl-cygwin.txt: Likewise.
33325         * doc/gnu-oids.texi: Likewise
33326         * cfg.mk: Enable sc_trailing_blank.
33327         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
33329 2012-01-17  Jim Meyering  <meyering@redhat.com>
33331         maint: enable sc_prohibit_openat_without_use
33332         * cfg.mk: Enable sc_prohibit_openat_without_use.
33333         Exempt lib/selinux-at.c.
33335 2012-01-17  Jim Meyering  <meyering@redhat.com>
33337         maint: enable sc_prohibit_cloexec_without_use
33338         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
33339         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
33341 2012-01-17  Jim Meyering  <meyering@redhat.com>
33343         maint: enable sc_prohibit_intprops_without_use
33344         * cfg.mk: Enable sc_prohibit_intprops_without_use
33345         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
33347 2012-01-17  Jim Meyering  <meyering@redhat.com>
33349         maint: enable sc_prohibit_hash_pjw_without_use
33350         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
33351         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
33352         to match any use of \<hash_pjw\>, i.e., not necessarily with a
33353         following " (".
33355 2012-01-17  Jim Meyering  <meyering@redhat.com>
33357         maint: enable double-word-prohibiting rule
33358         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
33359         Exempt three files.
33361 2012-01-17  Jim Meyering  <meyering@redhat.com>
33363         maint: remove empty lines at EOF, but excluding modules/*
33364         Apply syntax rules at home as well as abroad.  Most changes
33365         were induced by running this:
33366           make srcdir=. _build-aux=build-aux -f top/maint.mk \
33367             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
33368             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
33369         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
33370         Exempt modules/* and two binary files.
33371         Also exempt doc/INSTALL*, per request from Bruno Haible.
33372         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
33373         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
33374         * doc/Copyright/request-assign.future: Likewise.
33375         * doc/Copyright/request-disclaim.changes: Likewise.
33376         * doc/INSTALL: Likewise.
33377         * doc/INSTALL.ISO: Likewise.
33378         * doc/INSTALL.UTF-8: Likewise.
33379         * doc/acl-cygwin.txt: Likewise.
33380         * doc/acl-resources.txt: Likewise.
33381         * doc/fdl-1.2.texi: Likewise.
33382         * doc/fdl-1.3.texi: Likewise.
33383         * doc/fdl.texi: Likewise.
33384         * lib/argp-pin.c: Likewise.
33385         * lib/round.c: Likewise.
33386         * lib/unicase/u16-totitle.c: Likewise.
33387         * lib/unictype/block_test.c: Likewise.
33388         * lib/uninorm/canonical-decomposition.c: Likewise.
33389         * m4/README: Likewise.
33390         * m4/relocatable-lib.m4: Likewise.
33391         * tests/test-isnand-nolibm.c: Likewise.
33392         * tests/test-isnand.c: Likewise.
33393         * tests/uninorm/NormalizationTest.txt: Likewise.
33395 2012-01-17  Jim Meyering  <meyering@redhat.com>
33397         maint: add framework to run syntax-check rules against gnulib sources
33398         * cfg.mk: New file, to disable all currently-failing tests.
33399         We'll enable them one by one, as they are made to pass.
33400         * Makefile (sc_maint): New rule.
33402 2012-01-21  Bruno Haible  <bruno@clisp.org>
33404         stdint: Add support for Android.
33405         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
33406         include the system's <stdint.h>.
33407         Reported by Simon Josefsson <simon@josefsson.org>.
33409 2012-01-19  Jim Meyering  <meyering@redhat.com>
33411         bootstrap: add bootstrap_post_import_hook
33412         Bison does still need something like the gnulib_mk_hook whose
33413         invocation I had to remove along with slurp in commit 767ccd40.
33414         Technically, we could get along without it, but doing so would
33415         have required living with a warning and a mandatory post-bootstrap
33416         automake rerun.
33417         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
33418         (bootstrap_post_import_hook): New function.
33419         Invoke it after gnulib-tool --import and before autoreconf.
33421 2012-01-18  Jim Meyering  <meyering@redhat.com>
33423         gitlog-to-changelog: don't use "no_"-prefixed variable name
33424         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
33425         to enable both --cluster and --no-cluster.  Change variable name,
33426         s/\$no_cluster/$cluster/, and reverse usage to match.
33428         gitlog-to-changelog: use "||", not "or" in expressions
33429         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
33430         expressions.
33432 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
33434         gitlog-to-changelog: new option --no-cluster
33435         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
33436         clustering of adjacent commit messages.
33438 2012-01-17  Jim Meyering  <meyering@redhat.com>
33440         maint: spell file systems with two words, not one
33441         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
33442         two words, not one.
33444 2012-01-16  Jim Meyering  <meyering@redhat.com>
33446         bootstrap: add a FIXME comment to ensure we eventually remove the hack
33447         * build-aux/bootstrap (gnulib_tool_options): Add comment.
33449 2012-01-16  Eric Blake  <eblake@redhat.com>
33451         bootstrap: cater to autoconf 2.59
33452         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
33453         is not available.
33455         bootstrap: properly check for libtool
33456         * build-aux/bootstrap (libtoolize): Also run libtool when older
33457         usage is detected.
33459 2012-01-15  Bruno Haible  <bruno@clisp.org>
33461         Improve support for MSVC 9.
33462         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
33463         clashes on MSVC.
33464         * lib/fcntl.in.h: Likewise.
33465         * lib/stdlib.in.h: Likewise.
33466         * lib/sys_stat.in.h: Likewise.
33468 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
33470         gnupload: we hold the master copy of this script now
33471         For motivation and more information, see:
33472         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
33473         * build-aux/gnupload: Make it clear in the heading comments that the
33474         master copy of this file is maintained by gnulib.  Since we are at
33475         it, bump its copyright year and ...
33476         ($scriptversion): ... the date in its version.
33477         ($usage): Patches and bug reports should be sent to the gnulib list,
33478         not the automake one.
33479         * config/srclist.txt: Don't try to sync 'gnupload' from automake
33480         anymore.
33482 2012-01-15  Bruno Haible  <bruno@clisp.org>
33484         Fix module 'random'.
33485         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
33486         initstate, setstate are declared.
33488 2012-01-14  Bruno Haible  <bruno@clisp.org>
33490         Tests for module 'random'.
33491         * modules/random-tests: New file.
33492         * tests/test-random.c: New file, based on tests/test-random_r.c.
33494         New module 'random'.
33495         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
33496         declarations.
33497         * lib/random.c: New file, based on glibc/stdlib/random.c.
33498         * m4/random.m4: New file.
33499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
33500         HAVE_RANDOM.
33501         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
33502         * modules/random: New file.
33503         * config/srclist.txt: Add an entry for random.c.
33504         * doc/posix-functions/random.texi: Mention the 'random' module.
33505         * doc/posix-functions/initstate.texi: Likewise.
33506         * doc/posix-functions/setstate.texi: Likewise.
33507         * doc/posix-functions/srandom.texi: Likewise.
33509 2012-01-12  Bruno Haible  <bruno@clisp.org>
33511         random_r: Use common idioms.
33512         * lib/random_r.c: Include <stdlib.h> first.
33514         random_r: Override incompatible API on AIX, OSF/1.
33515         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
33516         Override the system function if REPLACE_RANDOM_R is 1.
33517         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
33518         and OSF/1, set REPLACE_RANDOM_R.
33519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
33520         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
33521         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
33522         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
33523         * doc/glibc-functions/random_r.texi: Likewise.
33524         * doc/glibc-functions/setstate_r.texi: Likewise.
33526         random_r: Support for MSVC 9.
33527         * lib/random_r.c: Include stdint.h, not inttypes.h.
33529 2012-01-12  Eric Blake  <eblake@redhat.com>
33531         inet_ntop: guard extra work by IF_LINT
33532         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
33533         better code generation when not checking for warnings.
33534         Suggested by Paul Eggert and Jim Meyering.
33536         strptime: fix regression on mingw
33537         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
33538         Fix regression.  Reported by Bruno Haible.
33540 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
33541             Bruno Haible  <bruno@clisp.org>
33543         copy-file: add error-code-returning variant.
33544         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
33545         (qcopy_file_preserving): New declaration.
33546         * lib/copy-file.c (qcopy_file_preserving): Renamed from
33547         copy_file_preserving. Change return type to 'int'. Don't emit an error
33548         message here.
33549         (copy_file_preserving): New function.
33550         * tests/test-copy-file.c: Include <stdlib.h>.
33551         (main): Test qcopy_file_preserving if the environment variable
33552         NO_STDERR_OUTPUT is set.
33553         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
33554         with NO_STDERR_OUTPUT
33555         * tests/test-copy-file-2.sh: Likewise.
33557 2012-01-10  Bruno Haible  <bruno@clisp.org>
33559         copy-file: Use 'quote' module consistently.
33560         * lib/copy-file.c (copy_file_preserving): Use quote().
33562         copy-file: Refactor.
33563         * lib/copy-file.c: Include quote.h.
33564         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
33565         message here.
33566         * modules/copy-file (Depends-on): Add quote.
33568         acl: Export qcopy_acl.
33569         * lib/acl.h (qcopy_acl): New declaration.
33570         * lib/copy-acl.c (qcopy_acl): Make non-static.
33572         acl: Rename a local variable.
33573         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
33575         acl: Align return values of copy_acl and qcopy_acl.
33576         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
33577         maybe < -1.
33579 2012-01-11  Eric Blake  <eblake@redhat.com>
33581         strptime: silence gcc warnings
33582         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
33583         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
33584         Reported by Daniel P. Berrange.
33586         inet_ntop: silence gcc warning
33587         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
33588         Reported by Daniel P. Berrange.
33590 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
33592         getloadavg test: skip the test on GNU/Linux without /proc mounted
33593         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
33594         file.  When /proc is not mounted, it always fails with ENOENT.
33595         * tests/test-getloadavg.c (main): Treat ENOENT return code from
33596         getloadavg(3) the same way as ENOSYS and ENOTSUP.
33598 2012-01-10  Bruno Haible  <bruno@clisp.org>
33600         regex: Avoid link error on MSVC 9.
33601         * modules/regex (Depends-on): Add wctype.
33603 2012-01-10  Bruno Haible  <bruno@clisp.org>
33605         doc: Mention --with-tests option.
33606         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
33607         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
33608         --with-tests.
33609         Reported by Reuben Thomas.
33611 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
33613         users.txt: order package names lexicographically.
33614         * users.txt: Order package names lexicographically.
33616 2012-01-10  Jim Meyering  <meyering@redhat.com>
33618         maint.mk: fix description in comment
33619         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
33621         ignore-value: remove deprecated ignore_ptr function
33622         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
33623         * NEWS: Note this.
33625 2012-01-09  Jim Meyering  <meyering@redhat.com>
33627         test-init.sh: avoid a subshell
33628         * tests/test-init.sh: Remove protective subshell.
33629         Suggested by Bernhard Voelker.  While a subshell is normally
33630         required to protect against older shells (Solaris, FreeBSD) that
33631         warn about a missing program before performing redirection, the
33632         shell-selection tests performed by init.sh probably exclude any
33633         offending shell.
33635 2012-01-08  Bruno Haible  <bruno@clisp.org>
33637         setlocale tests: Avoid test failure on Solaris 11.0.
33638         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
33639         variable.
33641 2012-01-08  Bruno Haible  <bruno@clisp.org>
33643         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
33644         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
33645         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
33646         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
33647         macro.
33648         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
33649         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
33650         * lib/spawn_faction_addopen.c: Add workaround implementation if
33651         HAVE_WORKING_POSIX_SPAWN.
33652         * modules/spawn (Makefile): Substitute
33653         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
33654         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
33655         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
33656         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
33657         (Depends-on): Update conditions.
33658         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
33659         the Solaris 11 bug.
33661 2012-01-08  Bruno Haible  <bruno@clisp.org>
33663         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
33664         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
33665         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
33666         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
33667         macro.
33668         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
33669         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
33670         * lib/spawn_faction_adddup2.c: Add workaround implementation if
33671         HAVE_WORKING_POSIX_SPAWN.
33672         * modules/spawn (Makefile): Substitute
33673         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
33674         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
33675         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
33676         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
33677         (Depends-on): Update conditions.
33678         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
33679         the Solaris 11 bug.
33681 2012-01-08  Bruno Haible  <bruno@clisp.org>
33683         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
33684         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
33685         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
33686         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
33687         HAVE_WORKING_POSIX_SPAWN.
33688         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
33689         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
33690         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
33691         * lib/spawn_faction_addclose.c: Add workaround implementation if
33692         HAVE_WORKING_POSIX_SPAWN.
33693         * modules/spawn (Makefile): Substitute
33694         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
33695         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
33696         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
33697         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
33698         (Depends-on): Update conditions.
33699         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
33700         the Solaris 11 bug.
33702 2012-01-08  Bruno Haible  <bruno@clisp.org>
33704         doc: Update for Solaris 11.0.
33705         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
33706         * m4/printf.m4: Update comments.
33708 2012-01-08  Bruno Haible  <bruno@clisp.org>
33710         mktime: Avoid compilation error on Solaris 11.
33711         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
33713 2012-01-08  Bruno Haible  <bruno@clisp.org>
33715         doc: Small fix.
33716         * doc/posix-headers/nl_types.texi: Correct platforms list.
33718 2012-01-08  Simon Josefsson  <simon@josefsson.org>
33720         Add lgpl-3.0 module.
33721         * MODULES.html.sh (Support for building documentation): Add
33722         lgpl-3.0.
33723         * modules/lgpl-3.0: New file.
33725 2012-01-08  Jim Meyering  <meyering@redhat.com>
33727         select.c: indent with spaces, not TABs
33728         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
33730 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
33732         quotearg: do not use grave accent for left quote
33733         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
33734         locale_quoting_style.
33735         (quotearg_buffer_restyled): Fix example.
33736         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
33738 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
33740         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
33741         Most programs do not have translation catalogs for English and much
33742         less separate catalogs for British and American English.  Drop the
33743         suggestion to translators about these two, and provide it
33744         automatically for Unicode locales.  Like most programs, even those
33745         using American English, we use single quotation marks.  This conflicts
33746         with the American typographic convention, but works better when you
33747         cite the entire error message within double quotes.  It also tries not
33748         to clash with established practice and with what non-gnulib programs
33749         will usually do.
33750         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
33751         using an UTF-8 or GB-18030 locale.  The list of other locales with
33752         quotes was provided by Bruno Haible.
33753         (quotearg_buffer_restyled): Adjust instructions to translators.
33754         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
33755         text, since this would be wrong when using Unicode.
33756         * modules/quotearg: Depend on c-strcaseeq.
33758 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
33760         quotearg: fix Wikipedia link
33761         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
33763 2012-01-07  Simon Josefsson  <simon@josefsson.org>
33765         Fix for mingw with MSVC9.
33766         * m4/ld-version-script.m4: Check that compiler rejects version
33767         scripts with syntax errors.  Reported by Bruno Haible
33768         <bruno@clisp.org>.
33770 2012-01-06  Bruno Haible  <bruno@clisp.org>
33772         Talk about "native Windows API", not "Woe32".
33773         * lib/accept4.c: Update comments to mention native Windows.
33774         * lib/execute.c: Likewise.
33775         * lib/fatal-signal.c: Likewise.
33776         * lib/localcharset.c: Likewise.
33777         * lib/nanosleep.c: Likewise.
33778         * lib/nl_langinfo.c: Likewise.
33779         * lib/pclose.c: Likewise.
33780         * lib/pipe-filter-gi.c: Likewise.
33781         * lib/pipe-filter-ii.c: Likewise.
33782         * lib/pipe.c: Likewise.
33783         * lib/pipe2.c: Likewise.
33784         * lib/popen.c: Likewise.
33785         * lib/progreloc.c: Likewise.
33786         * lib/relocatable.c: Likewise.
33787         * lib/sigaction.c: Likewise.
33788         * lib/sigprocmask.c: Likewise.
33789         * lib/spawn-pipe.h: Likewise.
33790         * lib/spawn-pipe.c: Likewise.
33791         * lib/spawni.c: Likewise.
33792         * lib/stat-time.h: Likewise.
33793         * lib/w32spawn.h: Likewise.
33794         * tests/test-isatty.c: Likewise.
33795         * lib/config.charset: More comments.
33796         * doc/gnulib-intro.texi: Mention native Windows.
33797         * doc/posix-functions/_Exit_C99.texi: Likewise.
33798         * doc/posix-headers/fcntl.texi: Likewise.
33800 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
33802         argp: Avoid crash if translator uses % characters in a translation.
33803         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
33804         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
33806 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
33808         doc: C11 and C++11 are now official
33809         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
33810         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
33811         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
33812         * modules/stdalign:
33813         Replace references to draft C1X to C11, and to draft C++0X to C++11.
33815 2012-01-06  Bruno Haible  <bruno@clisp.org>
33817         uc-is-grapheme-break tests: Tweak.
33818         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
33819         message.
33821 2012-01-06  Bruno Haible  <bruno@clisp.org>
33823         test-init.sh: correct the test for diff -u
33824         * tests/test-init.sh: Also redirect stdout to /dev/null.
33826 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
33828         Use ', not `, for quoting output.
33829         * build-aux/announce-gen (usage, sizes, print_news_deltas)
33830         (print_changelog_deltas, get_tool_versions, main program):
33831         * build-aux/git-version-gen:
33832         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
33833         * build-aux/move-if-change (help):
33834         * build-aux/useless-if-before-free (usage, main program):
33835         * check-module (parse_module_file, usage)
33836         (find_included_lib_files, check_module):
33837         * lib/argmatch.c (main) [TEST]:
33838         * lib/argp-help.c (_help):
33839         * lib/getopt1.c (main) [TEST]:
33840         * lib/git-merge-changelog.c (usage):
33841         * lib/xstrtol-error.c (xstrtol_error):
33842         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
33843         * m4/argz.m4 (gl_FUNC_ARGZ):
33844         * m4/bison.m4 (gl_BISON):
33845         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
33846         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
33847         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
33848         * m4/fpending.m4 (gl_PREREQ_FPENDING):
33849         * m4/gc-random.m4 (gl_GC_RANDOM):
33850         * m4/intl.m4 (gt_CHECK_DECL):
33851         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
33852         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
33853         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
33854         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
33855         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
33856         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
33857         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
33858         * tests/test-dirname.c (main):
33859         * tests/test-getpass.c (main):
33860         * tests/test-iconvme.c (main):
33861         * tests/test-parse-datetime.c (LOG):
33862         * tests/test-xstrtoimax.sh:
33863         * tests/test-xstrtol.sh:
33864         * tests/test-xstrtoll.sh:
33865         * tests/test-xstrtoumax.sh:
33866         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
33867         * top/GNUmakefile (abort-due-to-no-makefile):
33868         Quote 'like this', not `like this', as per the recent change to
33869         the GNU coding standards.
33871 2012-01-05  Bruno Haible  <bruno@clisp.org>
33873         strtoimax: Don't force a replacement on systems where intmax_t is int.
33874         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
33875         'intmax_t' is not larger than 'int'.
33876         Reported by Pádraig Brady <P@draigBrady.com>.
33878 2012-01-05  Bruno Haible  <bruno@clisp.org>
33880         doc: Mention NetBSD bugs.
33881         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
33882         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
33884 2012-01-05  Bruno Haible  <bruno@clisp.org>
33886         strtoumax tests: Enhance tests.
33887         * tests/test-strtoumax.c (main): Add tests for large values.
33889 2012-01-05  Bruno Haible  <bruno@clisp.org>
33891         strtoimax: Work around AIX 5.1 bug.
33892         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
33893         definition.
33894         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
33895         Set HAVE_STRTOIMAX.
33896         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
33897         REPLACE_STRTOIMAX.
33898         * modules/inttypes-incomplete (Makefile.am): Substitute
33899         REPLACE_STRTOIMAX.
33900         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
33901         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
33902         (Depends-on): Update conditions.
33903         * tests/test-strtoimax.c (main): Add tests for large values.
33904         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
33906 2012-01-05  Bruno Haible  <bruno@clisp.org>
33908         inttypes: Modernize.
33909         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
33910         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
33911         (Makefile.am): Update inttypes.h rule.
33913 2012-01-05  Jim Meyering  <meyering@redhat.com>
33915         init.sh: don't waste a subshell just to redirect stderr
33916         * tests/init.sh: In testing for diff -u and diff -c, use a
33917         stderr-redirecting exec inside `...` rather than a subshell.
33919         test-init.sh: avoid failure on HP-UX 11.00
33920         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
33921         resolves to diff -c or cmp.  Reported by Bruno Haible.
33923 2012-01-05  Bruno Haible  <bruno@clisp.org>
33925         Tests for module 'strtoull'.
33926         * modules/strtoull-tests: New file.
33927         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
33929 2012-01-05  Bruno Haible  <bruno@clisp.org>
33931         Tests for module 'strtoll'.
33932         * modules/strtoll-tests: New file.
33933         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
33935 2012-01-05  Bruno Haible  <bruno@clisp.org>
33937         Tests for module 'strtoul'.
33938         * modules/strtoul-tests: New file.
33939         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
33941 2012-01-05  Bruno Haible  <bruno@clisp.org>
33943         Tests for module 'strtol'.
33944         * modules/strtol-tests: New file.
33945         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
33947 2012-01-04  Jim Meyering  <meyering@redhat.com>
33949         test-init.sh: accommodate Solaris 5.10's different diff -u output
33950         * tests/test-init.sh: Also exempt @@ lines from the comparison
33951         of diff output, since Solaris 5.10 and GNU diff formats differ.
33952         Reported by Stefano Lattarini.
33954 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33956         test-posixtm: don't assume signed integer wraparound
33957         * tests/test-posixtm.c (main): Don't assume wraparound semantics
33958         after signed integer overflow.  Inspired by (though it may not
33959         fix) Bruno Haible's bug report in
33960         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
33962         Spell out "Windows 9x" and "Windows XP".
33963         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
33964         "Windows 9x" and "WinXP" with "Windows XP".
33966 2012-01-04  Jim Meyering  <meyering@redhat.com>
33968         test-vc-list-files-cvs.sh: remove obsolete comment
33969         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
33970         double exit.  Now that's all encapsulated via skip_ and Exit.
33972 2012-01-04  Bruno Haible  <bruno@clisp.org>
33974         Talk about "native Windows API", not "Win32".
33975         * lib/classpath.c: Update comments to mention native Windows.
33976         * lib/csharpexec.c: Likewise.
33977         * lib/dup2.c: Likewise.
33978         * lib/error.c: Likewise.
33979         * lib/fcntl.c: Likewise.
33980         * lib/filename.h: Likewise.
33981         * lib/findprog.c: Likewise.
33982         * lib/get-rusage-as.c: Likewise.
33983         * lib/get-rusage-data.c: Likewise.
33984         * lib/getpagesize.c: Likewise.
33985         * lib/javaexec.c: Likewise.
33986         * lib/msvc-inval.c: Likewise.
33987         * lib/msvc-nothrow.c: Likewise.
33988         * lib/nanosleep.c: Likewise.
33989         * lib/nonblocking.c: Likewise.
33990         * lib/printf-parse.c: Likewise.
33991         * lib/setlocale.c: Likewise.
33992         * lib/sigaction.c: Likewise.
33993         * lib/strerror_r.c: Likewise.
33994         * lib/tmpdir.c: Likewise.
33995         * lib/vasnprintf.c: Likewise.
33996         * lib/w32spawn.h: Likewise.
33997         * lib/waitpid.c: Likewise.
33998         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
33999         * m4/locale-ar.m4: Likewise.
34000         * m4/locale-fr.m4: Likewise.
34001         * m4/locale-ja.m4: Likewise.
34002         * m4/locale-tr.m4: Likewise.
34003         * m4/locale-zh.m4: Likewise.
34004         * m4/printf.m4: Likewise.
34005         * tests/test-cloexec.c: Likewise.
34006         * tests/test-copy-acl.sh: Likewise.
34007         * tests/test-copy-file.sh: Likewise.
34008         * tests/test-file-has-acl.sh: Likewise.
34009         * tests/test-set-mode-acl.sh: Likewise.
34010         * tests/test-dup-safer.c: Likewise.
34011         * tests/test-dup2.c: Likewise.
34012         * tests/test-dup3.c: Likewise.
34013         * tests/test-fcntl.c: Likewise.
34014         * tests/test-nonblocking-pipe.h: Likewise.
34015         * tests/test-nonblocking-socket.h: Likewise.
34016         * tests/test-pipe.c: Likewise.
34017         * tests/test-pipe2.c: Likewise.
34018         * tests/test-spawn-pipe-child.c: Likewise.
34019         * doc/acl-resources.txt: Likewise.
34020         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
34021         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
34022         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
34023         * lib/localcharset.c: Update comments to mention native Windows.
34024         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
34025         * lib/localename.c: Likewise.
34026         * lib/progreloc.c: Likewise.
34027         * lib/relocatable.c: Likewise.
34028         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
34029         (windows_compute_revents): Renamed from win32_compute_revents.
34030         (windows_compute_revents_socket): Renamed from
34031         win32_compute_revents_socket.
34032         * lib/select.c: Update comments to mention native Windows.
34033         (windows_poll_handle): Renamed from win32_poll_handle.
34034         * m4/threadlib.m4: Update comments to mention native Windows.
34035         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
34036         --enable-threads=windows instead of --enable-threads=win32. Set
34037         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
34038         * lib/glthread/lock.h: Update comments to mention native Windows.
34039         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
34040         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
34041         USE_WIN32_THREADS.
34042         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
34043         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
34044         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
34045         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
34046         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
34047         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
34048         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
34049         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
34050         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
34051         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
34052         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
34053         * tests/test-tls.c: Likewise.
34054         Rationale:
34055         Microsoft renamed the "Win32 API" to "Windows API", as it is available
34056         on both 32-bit and 64-bit Windows systems.
34057         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
34058         line of distinction is between "native Windows" on one side and Unix/
34059         POSIX systems on the other side. More details in
34060         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
34061         Suggested by Paul Eggert.
34063 2012-01-03  Bruno Haible  <bruno@clisp.org>
34065         isatty: Support for MSVC 9.
34066         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
34067         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
34068         (_isatty_nothrow): New function.
34069         (isatty): Use it instead of _isatty.
34070         (IsConsoleHandle): Add comment, from Paolo Bonzini.
34071         * lib/poll.c (IsConsoleHandle): Likewise.
34072         * lib/select.c (IsConsoleHandle): Likewise.
34073         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
34074         (gl_PREREQ_ISATTY): New macro.
34075         * modules/isatty (Depends-on): Add msvc-inval.
34076         (configure.ac): Invoke gl_PREREQ_ISATTY.
34078 2012-01-03  Jim Meyering  <meyering@redhat.com>
34080         maint.mk: remove temporary transition aid from over 1.5 years ago
34081         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
34082         purpose was to aid in the transition (avoiding silent malfunction)
34083         from that old name to the new _sc_search_regexp.  This shim was
34084         added by commit 219c504b.
34086         init.sh: do not try to accommodate compare arguments starting with "-"
34087         * tests/init.sh (compare_dev_null_): Do not try to accommodate
34088         compare arguments that start with "-".  Besides, we do not worry
34089         about this when invoking diff or cmp; why start now with sed?
34090         Using "--" to separate options from argument would trigger sed
34091         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
34092         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
34094 2012-01-02  Bruno Haible  <bruno@clisp.org>
34096         Enhance tests for module 'isatty'.
34097         * modules/isatty-tests (Depends-on): Add pipe-posix.
34098         * tests/test-isatty.c: Include <fcntl.h>.
34099         (DEV_NULL): New macro.
34100         (main): Test the resut of isatty() also on regular files, pipes, and
34101         /dev/null.
34103         New module 'isatty'.
34104         * lib/unistd.in.h (isatty): New declaration.
34105         * lib/isatty.c: New file, based on an idea of
34106         Bastien Roucariès <roucaries.bastien@gmail.com>.
34107         * m4/isatty.m4: New file.
34108         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
34109         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
34110         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
34111         REPLACE_ISATTY.
34112         * modules/isatty: New file.
34113         * doc/posix-functions/isatty.texi: Mention the new module.
34114         Suggested by Paolo Bonzini.
34116 2012-01-02  Bruno Haible  <bruno@clisp.org>
34118         canonicalize: Tweak 2011-12-29 commit.
34119         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
34120         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
34122 2012-01-02  Jim Meyering  <meyering@redhat.com>
34124         gitlog-to-changelog: describe input syntax in --help output
34125         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
34127         gitlog-to-changelog: fix typo in --help: show backslash before email @
34128         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
34129         in sources, but not in actual output.
34131 2011-12-30  Jim Meyering  <meyering@redhat.com>
34133         gitlog-to-changelog: don't malfunction when name contains %-directive
34134         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
34135         in a name string cause trouble.  E.g., with a user name of "%s",
34136         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
34138 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
34140         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
34141         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
34142         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
34143         the "  (tiny change)" notation that is appended to the standard
34144         ChangeLog "date  name  email" header line.
34146 2012-01-01  Jim Meyering  <meyering@redhat.com>
34148         test-framework-sh: init.sh: fix "make dist" failure
34149         When using gnulib-tool's --with-tests option and any module that
34150         depends on test-framework-sh, "make dist" would fail due to the
34151         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
34152         in the gltests directory, and not in the gllib/ directory.
34153         One way to work around that is to move the EXTRA_DIST += init.sh
34154         from the primary module to the -tests one:
34155         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
34156         * modules/test-framework-sh (Makefile.am): ...not here.
34157         Reported by Tom G. Christensen in
34158         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
34160         version-etc: update copyright year reported by --version
34161         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
34163 2011-12-31  Pádraig Brady  <P@draigBrady.com>
34165         canonicalize: only stat() if required
34166         * lib/canonicalize.c (canonicalize_filename_mode):
34167         Avoid calling l?stat() when both CAN_MISSING,
34168         and CAN_NOLINKS are set, as we neither need
34169         to resolve symlinks or test component existence.
34171 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
34173         doc: cover st_ino issues once; add OpenVMS etc.
34174         * doc/posix-functions/stat.texi (stat):
34175         * doc/posix-functions/lstat.texi (lstat):
34176         * doc/posix-functions/fstatat.texi (fstatat):
34177         * doc/posix-functions/fstat.texi (fstat):
34178         Move general 'struct stat' stuff to sys_stat.texi,
34179         leaving behind a pointer.
34180         * doc/posix-headers/sys_stat.texi (sys/stat.h):
34181         Merge duplicate info about 'struct stat' problems into here.
34182         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
34183         and suggest partial workarounds.
34185         same-inode: port to OpenVMS
34186         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
34187         three st_ino values.
34189 2011-12-30  Pádraig Brady  <P@draigBrady.com>
34191         canonicalize: fix references to stat() and lstat()
34192         * lib/canonicalize.c (canonicalize_filename_mode):
34193         Ensure references always resolve to a replacement
34194         function if required (even via a macro).
34196 2011-12-30  Jim Meyering  <meyering@redhat.com>
34198         gitlog-to-changelog: remove a little duplication
34199         * build-aux/gitlog-to-changelog (main): Grep @lines once,
34200         rather than twice.
34202 2011-12-29  Pádraig Brady  <P@draigBrady.com>
34204         canonicalize: add support for not resolving symlinks
34205         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
34206         indicate we don't want to follow symlinks.  Also
34207         provide CAN_MODE_MASK to aid setting these existing
34208         mutually exclusive values.
34209         * lib/canonicalize.c (canonicalize_filename_mode):
34210         Extract the flags from can_mode parameter, which
34211         are currently just used to select between stat()
34212         and lstat().  Also ensure that mutually exclusive
34213         values are flagged immediately as invalid.
34214         * tests/test-canonicalize.c: Verify symlinks are
34215         not followed, and that invalid flag combinations
34216         are diagnosed.
34218 2011-12-25  Jim Meyering  <meyering@redhat.com>
34220         gitlog-to-changelog: do not clump multi-paragraph entries
34221         Identical header lines (date,name,email+coauthors) are suppressed,
34222         thus putting all entries with those same characteristics under
34223         a single header.  However, when a log entry consists of two or
34224         more paragraphs, it may not be clear where it starts and ends.
34225         This change makes it so that such an entry is always separated
34226         from others by a header line, even when that header would
34227         otherwise be suppressed.
34228         * build-aux/gitlog-to-changelog: Implement the above.
34229         Inspired by a related request from Stefano Lattarini in
34230         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
34232 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34234         announce-gen: fix `cmd' typo in diagnostic
34235         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
34236         diagnostic: a missing '$' meant that the command was not output.
34238 2011-12-23  Jim Meyering  <meyering@redhat.com>
34240         test-framework-sh: distribute init.sh
34241         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
34242         Otherwise, "make -C gnulib-tests check" (at least in grep) would
34243         fail due to the lack of init.sh.
34245         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
34246         * modules/atexit-tests: Rather than listing tests/init.sh,
34247         now that there's a module for it, simply depend on that new module.
34248         * modules/closein-tests: Likewise.
34249         * modules/exclude-tests: Likewise.
34250         * modules/getcwd-tests: Likewise.
34251         * modules/perror-tests: Likewise.
34252         * modules/pread-tests: Likewise.
34253         * modules/pwrite-tests: Likewise.
34254         * modules/vc-list-files-tests: Likewise.
34255         * modules/verify-tests: Likewise.
34256         * modules/xalloc-die-tests: Likewise.
34257         * modules/xstrtoimax-tests: Likewise.
34258         * modules/xstrtol-tests: Likewise.
34259         * modules/xstrtoll-tests: Likewise.
34260         * modules/xstrtoumax-tests: Likewise.
34261         * modules/yesno-tests: Likewise.
34263 2011-12-22  Jim Meyering  <meyering@redhat.com>
34265         test-framework-sh: add minimal tests of init.sh's compare function
34266         * modules/test-framework-sh-tests: New file.
34267         * tests/test-init.sh: New file.
34269         test-framework-sh: new module
34270         * modules/test-framework-sh: New file.
34271         * MODULES.html.sh (Support for maintaining and releasing projects):
34272         List it.
34274         init.sh: do not emit simulated diff output to stderr
34275         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
34277 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
34279         .gitignore: ignore gnulib.dvi and regex.info
34280         * doc/.gitignore:add gnulib.dvi and regex.info
34282 2011-12-22  Jim Meyering  <meyering@redhat.com>
34284         init.sh: correct previous change
34285         * tests/init.sh (compare): My previous change was wrong.
34286         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
34288         init.sh: avoid unwarranted test failure when using "set -e"
34289         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
34290         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
34291         a use like "compare exp out" would get evoke an unconditional failure.
34293 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
34295         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
34296         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
34297         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
34298         autoreconf that did not.
34299         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
34300         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
34302 2011-12-17  Jim Meyering  <meyering@redhat.com>
34304         bootstrap: remove some now-unneeded code
34305         This script arose back when gnulib-tool was young.
34306         Since then, it has seen improvements that render much of this
34307         script unnecessary.  In particular, it can now make symlinks
34308         to the files it uses.  Also, I no longer see as much value in
34309         marking files as read-only via comments.
34310         If you relied on the symlink-creation feature of the preceding
34311         version of this script, you can get most of that functionality
34312         by adding the --symlink option to the definition of
34313         gnulib_tool_option_extras in your bootstrap.conf file.
34314         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
34315         Run autopoint and libtoolize *before* gnulib-tool.
34316         After it, run an abbreviated autoreconf, rather than a loop around
34317         all tools.
34318         (slirp, bt_mark_as_generated): Remove functions.
34320 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34322         ftoastr: fix typo
34323         * lib/ftoastr.h: Fix misspelling in comment.
34325 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
34327         * top/README-release: fix punctuation.
34329 2011-12-17  Jim Meyering  <meyering@redhat.com>
34331         bootstrap: correct the recent buildreq change
34332         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
34333         had no effect.
34334         * build-aux/bootstrap (buildreq): Bracket each search term with
34335         "*...*", so that the shell "case" statement works as intended.
34336         Add comments.
34338 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
34340         build: let bootstrap resort to wget when downloading .po files
34341         * build-aux/bootstrap (download_po_files): Fallback to wget when
34342         downloading the .po files via rsync fails.  This is necessary to
34343         bootstrap from behind a strict firewall.
34345 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
34347         stdint: don't assume C++11 when compiling with g++
34348         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
34349         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
34350         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
34351         work also in C++ before C++11, as that improperly inhibits
34352         generating a substitute stdint.h for that case.
34354 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
34356         alloca: protect comment from gnulib-tool
34357         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
34358         that gnulib-tool doesn't think it's a license, and munge it to
34359         say "GCC version 3".
34361 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
34363         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
34364         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
34365         $(abs_top_builddir) instead of $(top_builddir).
34367 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
34369         strftime-tests: also test nanoseconds
34370         * tests/test-strftime.c (T): Add a test of %N.
34372 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
34374         inttypes, stdint: add C++11 support
34375         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
34376         when including inttypes.h and stdint.h.  Support this change to
34377         the standard.
34378         * doc/posix-headers/inttypes.texi (inttypes.h):
34379         * doc/posix-headers/stdint.texi (stdint.h): Document this.
34380         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
34381         Define if not defined already, for the benefit of pre-C++11 hosts.
34382         Define the standard format macros (e.g., PRId8) always.
34383         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
34384         Likewise, if __cpluspus.  Define the standard constant and limit
34385         macros (e.g., INT8_C, INT8_MAX) always.
34386         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
34387         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
34388         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
34389         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
34390         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
34391         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
34392         Likewise.
34394 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
34396         nonblocking tests: Fix test failure on Linux/PPC.
34397         Suggested by Prerna Saxena in
34398         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
34399         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
34400         Set to 1100000.
34402 2011-12-12  Jim Meyering  <meyering@redhat.com>
34404         argmatch: don't hard-code `' when listing valid option arguments
34405         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
34406         use the quote function to add quotes.  Use fputs rather than
34407         fprintf for the format string with no format directive.
34409 2011-12-07  Eric Blake  <eblake@redhat.com>
34411         bootstrap: detect tools required by gnulib-tool
34412         * build-aux/bootstrap (buildreq): Provide minimum implicit
34413         dependencies.
34414         * DEPENDENCIES: Mention patch as a prereq.
34416 2011-12-04  Bruno Haible  <bruno@clisp.org>
34418         sethostname: Port to Windows platforms.
34419         * lib/sethostname.c: Provide an alternate implementation for Windows
34420         platforms.
34421         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
34422         (main): Skip the test if sethostname() fails with EPERM. On Windows
34423         platforms, don't check the result of gethostname().
34425 2011-12-04  Bruno Haible  <bruno@clisp.org>
34426             Jim Meyering  <meyering@redhat.com>
34428         tests: Avoid spurious error message on platforms without mktemp program.
34429         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
34431 2011-12-04  Bruno Haible  <bruno@clisp.org>
34433         sethostname: Fix documentation.
34434         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
34435         "not fixed" section.
34437 2011-12-03  Bruno Haible  <bruno@clisp.org>
34439         gnulib-tool: Verify that the License field is present and non-empty.
34440         * gnulib-tool (func_get_license_raw): New function, extracted from
34441         func_get_license.
34442         (func_get_license): Use it. Warn if the module is not a test module and
34443         has no license.
34444         Suggested by Jim Meyering.
34446 2011-12-03  Bruno Haible  <bruno@clisp.org>
34448         sethostname tests: Fix link error on mingw.
34449         * tests/test-sethostname1.c: New file, extracted from
34450         tests/test-sethostname.c.
34451         * tests/test-sethostname2.c: New file, extracted from
34452         tests/test-sethostname.c.
34453         * tests/test-sethostname.c: Remove file.
34454         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
34455         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
34456         (Depends-on): Add gethostname.
34457         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
34458         Link the latter with $(GETHOSTNAME_LIB).
34460         sethostname tests: Fix compilation error on mingw.
34461         * tests/test-sethostname.c: Don't include <sys/types.h>.
34462         (geteuid): Use a dummy value without uid_t.
34463         * modules/sethostname-tests (Depends-on): Remove sys_types.
34465         sethostname tests: Avoid a gcc warning.
34466         * tests/test-sethostname.c (main): Remove an unused variable.
34468         Tweak last commit.
34469         * modules/sethostname-tests (Files): Sort by decreasing importance.
34470         (configure.ac): Check for geteuid.
34471         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
34472         the test when there's nothing to test. Drop an unnecessary cast.
34473         Improve an error message. Verify that the final sethostname() call
34474         succeeds.
34476 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
34478         Add a test suite for the sethostname module.
34479         * modules/sethostname-tests: New file.  A test program
34480         for the sethostname module.
34481         * tests/test-sethostname.c: Likewise.
34483 2011-12-03  Bruno Haible  <bruno@clisp.org>
34485         Tweak last commit.
34486         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
34487         Fix preprocessor directives indentation. Fix typos.
34488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
34489         * modules/unistd (Makefile): Likewise.
34491 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
34493         Integrate the sethostname module into unistd.
34494         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
34495         into the unistd.h header.
34496         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
34497         preprocessor directives.
34498         * modules/unistd: Setup the Makefile substitutions of the
34499         SETHOSTNAME preprocessor directives.
34501 2011-12-03  Bruno Haible  <bruno@clisp.org>
34503         Tweak last commit.
34504         * lib/sethostname.c: Don't include <string.h>.
34505         (sethostname): No need to copy the argument string to the stack. Don't
34506         call clearerr. Preserve errno when fprintf failed.
34507         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
34508         Don't invoke AC_REPLACE_FUNCS.
34509         * modules/sethostname (Link): Remove empty section.
34510         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
34511         failure problem.
34513 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
34515         New module 'sethostname'.
34516         * lib/sethostname.c (sethostname): New file.  Provide sethostname
34517         for systems that lack it.
34518         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
34519         sethostname declaration and function.
34520         * modules/sethostname: New file.  Define the sethostname module.
34522 2011-12-03  Bruno Haible  <bruno@clisp.org>
34524         Tweak last commit.
34525         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
34527 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
34529         Split the HOST_NAME_MAX detection into a separate m4 macro.
34530         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
34531         macro so it can be used by the pending sethostname module.
34533 2011-12-03  Bruno Haible  <bruno@clisp.org>
34535         Fix module descriptions syntax.
34536         * modules/argv-iter (License): Fix syntax.
34537         * modules/di-set (License): Likewise.
34538         * modules/ino-map (License): Likewise.
34539         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
34541 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
34543         stdalign: port to Clang 3.0
34544         Problem reported by Simon Josefsson in
34545         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
34546         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
34547         which has <stdalign.h> but which does not define alignof.
34548         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
34550 2011-12-01  Eric Blake  <eblake@redhat.com>
34552         mktempd: silence dd usage
34553         * build-aux/mktempd (rand_bytes): Silence dd.
34555 2011-11-30  Simon Josefsson  <simon@josefsson.org>
34557         manywarnings: Don't mention gcc version in docstring.
34558         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
34559         Jim Meyering <meyering@redhat.com>.
34561 2011-11-30  Jim Meyering  <meyering@redhat.com>
34563         hash: mark a few floating point constants with "f" suffix
34564         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
34565         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
34566         floating point constants with "f", since they're destined to be
34567         saved/used as "float"s.
34569 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
34571         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
34572         * tests/test-float.c (test_long_double): Correct and re-enable the
34573         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
34575 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
34577         Avoid subtracting two pointers that don't point into the same block.
34578         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
34579         only pointers into the same memory block are subtracted. We cannot
34580         assume that sizeof (ptrdiff_t) == sizeof (void *).
34582 2011-11-29  Eric Blake  <eblake@redhat.com>
34584         maint.mk: add syntax check for use of compare from init.sh
34585         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
34586         moved here from coreutils.
34588         manywarnings: drop -Wunsuffixed-float-constants
34589         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
34590         '1.0D', which is the only way to silence this warning for 'double'.
34592 2011-11-29  Jim Meyering  <meyering@redhat.com>
34594         hash: mark compute_bucket_size with the pure attribute
34595         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
34597         quotearg, propername: correct pragma guard expression
34598         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
34599         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
34601 2011-11-28  Jim Meyering  <meyering@redhat.com>
34603         propername: do not mark proper_name with the const attribute
34604         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
34605         since it examines data pointed to by its parameter.
34606         * lib/propername.c (proper_name): Instead, add a pragma to suppress
34607         the suggestion from -Wsuggest-attribute=const.
34609         propername: mark one more function as const
34610         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
34612 2011-11-27  Jim Meyering  <meyering@redhat.com>
34614         mark functions with const and pure attributes
34616         Mark functions per suggestions from gcc-4.6 when using these options:
34617         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
34618         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
34619         Follow these guidelines: when possible, apply the attribute to
34620         an extern declaration, not to its definition.  Apply it to the
34621         definition only when the definition is static.
34622         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
34623         * lib/argv-iter.h (argv_iter_n_args): Likewise.
34624         * lib/base64.h (isbase64): Likewise.
34625         * lib/basename-lgpl.c (last_component, base_len): Likewise.
34626         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
34627         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
34628         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
34629         (c_tolower, c_toupper): Likewise.
34630         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
34631         * lib/chdir-long.c (find_non_slash): Likewise.
34632         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
34633         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
34634         * lib/file-type.h (file_type): Likewise.
34635         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
34636         * lib/filevercmp.c (verrevcmp): Likewise.
34637         * lib/freadahead.h (freadahead): Likewise.
34638         * lib/fts.c (fts_maxarglen): Likewise.
34639         * lib/hash-pjw.h (hash_pjw): Likewise.
34640         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
34641         * lib/hash.c (is_prime, next_prime): Likewise.
34642         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
34643         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
34644         (hash_table_ok, hash_get_first, hash_string): Likewise.
34645         (compute_bucket_size): Likewise.
34646         * lib/i-ring.h (i_ring_empty): Likewise.
34647         * lib/isnan.c (isnanl): Likewise.
34648         * lib/math.h (isnanl, rpl_isnanl): Likewise.
34649         * lib/memcasecmp.h (memcasecmp): Likewise.
34650         * lib/memchr2.h (memchr2): Likewise.
34651         * lib/memcmp2.h (memcmp2): Likewise.
34652         * lib/parse-datetime.y (lookup_zone): Likewise.
34653         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
34654         [!WINDOWS_SOCKETS]: Likewise.
34655         * lib/strnlen1.h (strnlen1): Likewise.
34656         * lib/uniwidth.in.h (uc_width): Likewise.
34657         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
34658         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
34659         (quoting_options_from_style): Add a comment.
34660         * lib/propername.h (proper_name): Add a comment.
34662 2011-11-27  Bruno Haible  <bruno@clisp.org>
34664         Remove unused macros from !_LIBC code in glibc-borrowed files.
34665         * lib/fnmatch.c (STRCOLL): Remove macro.
34666         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
34667         * lib/glob.c (__stat, __readdir64): Remove macros.
34668         * lib/tempname.c (__open64, __xstat64): Remove macros.
34669         Suggested by Paul Eggert.
34671 2011-11-27  Bruno Haible  <bruno@clisp.org>
34673         getcwd: Fix link error on MSVC 9.
34674         * modules/getcwd (Depends-on): Add readdir, rewinddir.
34676 2011-11-27  Bruno Haible  <bruno@clisp.org>
34678         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
34679         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
34680         HAVE_OPENDIR is 0.
34681         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
34682         HAVE_CLOSEDIR is 0.
34683         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
34684         is 0.
34685         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
34687 2011-11-27  Bruno Haible  <bruno@clisp.org>
34689         getcwd: Fix bug from 2011-08-17.
34690         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
34691         platforms that need it.
34692         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
34693         code of 4 to be a failure, not a success. This ensures that
34694         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
34696 2011-11-27  Bruno Haible  <bruno@clisp.org>
34698         binary-io tests: Avoid test failure on mingw when libtool is used.
34699         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
34700         Don't verify the size of t-bin-out1.tmp here.
34701         * tests/test-binary-io.sh: Verify it here.
34702         Reported by Simon Josefsson.
34704 2011-11-26  Bruno Haible  <bruno@clisp.org>
34706         Fix conflict between two instantiations of module 'unistd'.
34707         * gnulib-tool (func_emit_autoconf_snippet): Substitute
34708         ${include_guard_prefix} also in the autoconf snippet.
34709         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
34710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
34711         GNULIB_UNISTD_H_GETOPT.
34712         * modules/getopt-posix (configure.ac): Set the
34713         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
34714         * modules/getopt-gnu (configure.ac): Likewise.
34715         * modules/unistd (Makefile.am): Change the substitution value of
34716         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
34717         Reported by Simon Josefsson.
34719 2011-11-25  Bruno Haible  <bruno@clisp.org>
34721         pagealign_alloc: Doc and comments.
34722         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
34723         module.
34724         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
34726 2011-11-25  Jim Meyering  <meyering@redhat.com>
34728         test-update-copyright.sh: avoid false-positive failure
34729         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
34730         around false positive failure on Cygwin/Windows.  The latter was
34731         matching erroneously-created files with names like
34732         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
34734 2011-11-25  Simon Josefsson  <simon@josefsson.org>
34736         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
34737         * m4/valgrind-tests.m4: Check that the parameters that will be
34738         used works, not just a subset of them.  Reported by Bruno Haible
34739         <bruno@clisp.org>.
34741 2011-11-24  Jim Meyering  <meyering@redhat.com>
34743         test-stdalign.c: comment out long double tests
34744         * tests/test-stdalign.c: Don't try to reduce alignment of long double
34745         variables.  That provokes errors like this from gcc-4.7.0 20111124:
34746         error: '_Alignas' specifiers cannot reduce alignment of \
34747         'static_longdouble_alignas'.
34749 2011-11-22  Jim Meyering  <meyering@redhat.com>
34751         init.sh: make "compare /dev/null FILE" output more readable
34752         * tests/init.sh (compare_): Document the preferred order of arguments.
34753         (emit_diff_u_header_): New function.
34754         (compare_dev_null_): Emit a simulated diff, rather than just the
34755         contents of the unexpected file.  Suggestion from Bruno Haible.
34757 2011-11-21  Jim Meyering  <meyering@redhat.com>
34758             Eric Blake  <eblake@redhat.com>
34760         init.sh: work around OSF/1 5.1's mishandling of /dev/null
34761         * tests/init.sh: Make our compare function slightly more portable.
34762         Reported by Bruno Haible in
34763         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
34765 2011-11-21  Simon Josefsson  <simon@josefsson.org>
34767         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
34768         before using it, in code that ends up in config.h.
34770 2011-11-20  Bruno Haible  <bruno@clisp.org>
34772         getcwd: Work around getcwd bug on AIX 5..7.
34773         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
34774         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
34775         Use a different value for gl_cv_func_getcwd_path_max. Move the
34776         definition of HAVE_PARTLY_WORKING_GETCWD from here...
34777         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
34778         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
34779         Define HAVE_MINIMALLY_WORKING_GETCWD.
34780         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
34781         where it is not even minimally working, that is, on AIX.
34782         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
34783         m4/getcwd-path-max.m4.
34784         (main): Update exit code computation.
34785         * doc/posix-functions/getcwd.texi: Mention list of platforms where
34786         getcwd does not handle long file names.
34788 2011-11-20  Bruno Haible  <bruno@clisp.org>
34790         getcwd: Fix bug from 2009-09-10.
34791         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
34792         like "no".
34794 2011-11-20  Simon Josefsson  <simon@josefsson.org>
34796         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
34798 2011-11-20  Bruno Haible  <bruno@clisp.org>
34800         fma tests: Avoid shadowing local variables.
34801         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
34802         expected.
34804 2011-11-20  Bruno Haible  <bruno@clisp.org>
34806         copysignf tests: Fix.
34807         * tests/test-copysignf.c: Fix signature check.
34809 2011-11-20  Bruno Haible  <bruno@clisp.org>
34811         fma: Remove unused code.
34812         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
34813         unused macros.
34815 2011-11-20  Bruno Haible  <bruno@clisp.org>
34817         sethostname: Fix doc about AIX.
34818         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
34819         sethostname; it has it.
34821         sethostname: Mention more portability problems.
34822         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
34823         problem.
34824         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
34826 2011-11-19  Bruno Haible  <bruno@clisp.org>
34828         Depend on module fcntl-h when AT_FDCWD is used.
34829         * modules/utimens (Depends-on): Add fcntl-h.
34830         * modules/areadlinkat (Depends-on): Likewise.
34831         * modules/areadlinkat-with-size (Depends-on): Likewise.
34832         * modules/faccessat (Depends-on): Likewise.
34833         * modules/fchmodat (Depends-on): Likewise.
34834         * modules/fchownat (Depends-on): Likewise.
34835         * modules/getcwd (Depends-on): Likewise.
34836         * modules/mkdirat (Depends-on): Likewise.
34837         * modules/mkfifoat (Depends-on): Likewise.
34838         * modules/readlinkat (Depends-on): Likewise.
34839         * modules/symlinkat (Depends-on): Likewise.
34840         * modules/dup2-tests (Depends-on): Likewise.
34841         * modules/fdutimensat-tests (Depends-on): Likewise.
34842         * modules/futimens-tests (Depends-on): Likewise.
34844 2011-11-19  Bruno Haible  <bruno@clisp.org>
34846         euidaccess: Update a comment.
34847         * lib/euidaccess.c: Update comment about platforms with faccessat.
34849 2011-11-19  Bruno Haible  <bruno@clisp.org>
34851         openat: Fix file list.
34852         * modules/openat (Files): Remove lib/at-func.c.
34854 2011-11-19  Bruno Haible  <bruno@clisp.org>
34856         fstatat: Simplify.
34857         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
34858         gnulib should define rpl_fstatat, there is a
34859         "#define fstatat rpl_fstatat" in <sys/stat.h>.
34861 2011-11-19  Bruno Haible  <bruno@clisp.org>
34863         Ensure 'inline' can be used in tests/test-utimens-common.h.
34864         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
34865         * modules/futimens-tests (configure.ac): Likewise.
34866         * modules/utimens-tests (configure.ac): Likewise.
34867         * modules/utimensat-tests (configure.ac): Likewise.
34869 2011-11-19  Simon Josefsson  <simon@josefsson.org>
34871         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
34872         not hash_insert0.
34873         (hash_insert_if_absent): Doc fix.
34875 2011-11-19  Simon Josefsson  <simon@josefsson.org>
34877         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
34879 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
34881         test-getcwd: disambiguate exit status
34882         * tests/test-getcwd.c (test_long_name): Return 0..7.
34883         (main): Exit with an unambiguous exit status.  The old
34884         code yielded a mysterious mixture of two failure codes.
34886         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
34887         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
34888         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
34889         rpl_fstatat or fstatat.  This should fix the other problem
34890         reported by Kai Habel in
34891         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
34892         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
34893         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
34894         and I reproduced it on a Solaris 8 host we still have in production.
34896 2011-11-18  Jim Meyering  <meyering@redhat.com>
34898         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
34899         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
34900         Add a sentence to the comment.
34901         (hash_insert0): New function that simply calls hash_insert_if_absent.
34902         * lib/hash.h (hash_insert_if_absent): Declare it.
34903         (hash_insert0): Add deprecation attribute.
34904         (_GL_ATTRIBUTE_DEPRECATED): Define.
34905         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
34906         not hash_insert0.
34907         * NEWS: Mention it, even though it's not really an incompatible change.
34909 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
34911         openat: avoid compilation failure due to lack of <errno.h> inclusion
34912         * lib/openat.c: Include <errno.h>.
34914 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34916         * modules/getcwd (Depends-on): Add fdopendir.
34917         This fixes one of the two problems reported by Kai Habel in
34918         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
34920         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
34921         stdalign problem reported by Ian Beckwith in
34922         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
34923         * modules/crypto/gc-arcfour (Depends-on):
34924         Depend conditionally on crypto/arcfour.
34925         * modules/crypto/gc-arctwo (Depends-on):
34926         Depend conditionally on crypto/arctwo.
34927         * modules/crypto/gc-des (Depends-on):
34928         Depend conditionally on crypto/des.
34929         * modules/crypto/gc-hmac-md5 (Depends-on):
34930         Depend conditionally on crypto/hmac-md5.
34931         * modules/crypto/gc-hmac-sha1 (Depends-on):
34932         Depend conditionally on crypto/hmac-sha1.
34933         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
34934         * modules/crypto/gc-md4 (Depends-on):
34935         Depend conditionally on crypto/md4.
34936         * modules/crypto/gc-md5 (Depends-on):
34937         Depend conditionally on crypto/md5.
34938         * modules/crypto/gc-rijndael (Depends-on):
34939         Depend conditionally on crypto/rijndael.
34940         * modules/crypto/gc-sha1 (Depends-on):
34941         Depend conditionally on crypto/sha1.
34942         * modules/crypto/gc-arcfour:
34943         * modules/crypto/gc-arctwo:
34944         * modules/crypto/gc-des:
34945         * modules/crypto/gc-hmac-md5:
34946         * modules/crypto/gc-hmac-sha1:
34947         * modules/crypto/gc-md2:
34948         * modules/crypto/gc-md4:
34949         * modules/crypto/gc-md5:
34950         * modules/crypto/gc-rijndael:
34951         * modules/crypto/gc-sha1:
34952         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
34953         now that the conditional dependencies do the work for us.
34955 2011-11-17  Jim Meyering  <meyering@redhat.com>
34957         tests: factor st_ctime-comparison out of two headers
34958         * tests/test-utimens-common.h (ctime_compare): Define.
34959         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
34960         * tests/test-lutimens.h (test_lutimens): Likewise.
34961         * tests/test-utimens.h (test_utimens): Likewise.
34963         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
34964         Invoke the test program via an init.sh-using wrapper.
34965         * tests/test-getcwd.sh: New file.
34966         * modules/getcwd-tests (Files): Add it.
34967         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
34969 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
34971         gitlog-to-changelog: support multi-author commits.
34972         The FSF cares about keeping track of all authors of patches to its
34973         projects, but Git doesn't provide obvious support for multi-author
34974         changesets. Consensus seems to be forming around the use of extra
34975         Signed-off-by inspired lines in the log message formatted as
34976         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
34977         multi-author commits between version control systems.
34978         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
34979         log message and output in standard ChangeLog multi-author format.
34980         Reported by Peter Rosin <peda@lysator.liu.se>
34982 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
34983             Bruno Haible  <bruno@clisp.org>
34985         Fix some modules' file list.
34986         * modules/fstatat (Files): Add m4/lstat.m4.
34987         * modules/openat (Files): Likewise.
34988         * modules/unlinkat (Files): Likewise.
34990 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
34992         maint.mk: fix tight-scope.mk generation in VPATH builds.
34993         * top/maint.mk (tight-scope.mk): Make sure to prefix file
34994         reference with $(srcdir) so that the file is found correctly even
34995         when running `make syntax-check' in a VPATH build.
34997 2011-11-13  Bruno Haible  <bruno@clisp.org>
34998             Jim Meyering  <meyering@redhat.com>
35000         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
35001         * tests/init.sh (compare): Remove "No differences encountered" or
35002         synonymous output from the 'diff' program.
35004 2011-11-13  Bruno Haible  <bruno@clisp.org>
35006         Makefile: Tweak indentation.
35007         * Makefile: Use tab as first character in every line that contains rule
35008         commands.
35010 2011-11-13  Bruno Haible  <bruno@clisp.org>
35012         Syntax check for copyright statements.
35013         * check-copyright: New file.
35014         * Makefile (sc_check_copyright): New rule.
35016 2011-11-13  Simon Josefsson  <simon@josefsson.org>
35018         * build-aux/git-version-gen: Add --prefix to configure the tag
35019         match string.
35021 2011-11-13  Simon Josefsson  <simon@josefsson.org>
35023         * build-aux/git-version-gen: Add --help and --version.
35025 2011-11-12  Jim Meyering  <meyering@redhat.com>
35027         revamp the other test-exclude?.sh scripts to use init.sh, too
35028         * tests/test-exclude1.sh: Use init.sh.
35029         * tests/test-exclude2.sh: Likewise.
35030         * tests/test-exclude3.sh: Likewise.
35031         * tests/test-exclude4.sh: Likewise.
35032         * tests/test-exclude5.sh: Likewise.
35033         * tests/test-exclude6.sh: Likewise.
35034         * tests/test-exclude7.sh: Likewise.
35035         * tests/test-exclude8.sh: Likewise.
35036         * modules/exclude-tests (Files): List init.sh.
35038         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
35039         These shell scripts ignored failure of the binary test-exclude,
35040         so making the latter return 77 didn't cause them to be skipped.
35041         * tests/test-exclude5.sh: Exit with test-exclude's error status
35042         when that program fails.  Revamp to use init.sh.
35043         * tests/test-exclude2.sh: Likewise.
35045         test-exclude: fix a typo
35046         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
35048 2011-11-11  Bruno Haible  <bruno@clisp.org>
35050         obstack: Fix compilation error on MSVC 9.
35051         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
35053 2011-11-11  Jim Meyering  <meyering@redhat.com>
35055         test-exclude: skip tests rather than failing on deficient systems
35056         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
35057         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
35058         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
35059         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
35061 2011-11-10  Bruno Haible  <bruno@clisp.org>
35063         ptsname_r test: Avoid gcc warning on glibc systems.
35064         * tests/test-ptsname_r.c (null_ptr): New function.
35065         (test_errors): Use it.
35067 2011-11-10  Bruno Haible  <bruno@clisp.org>
35069         ptsname_r: Avoid compilation error on OSF/1 5.1.
35070         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
35071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
35072         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
35073         function is not declared or incompatibly declared.
35074         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
35075         * modules/ptsname_r (Depends-on, configure.ac): Update.
35076         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
35078 2011-11-10  Bruno Haible  <bruno@clisp.org>
35080         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
35081         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
35082         When cross-compiling, guess yes on all platforms except AIX.
35083         Reported by Ludovic Courtès <ludo@gnu.org>.
35085 2011-11-09  Bruno Haible  <bruno@clisp.org>
35087         ptsname_r tests: Fix bugs.
35088         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
35089         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
35091 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
35093         fstatat: work with cross-compilation
35094         Problem reported by Ludovic Courtès in
35095         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
35096         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
35097         "cross-compiling" and assume the bug is present.  Replace
35098         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
35099         an inverted sense, to be more conservative about our assumptions.
35100         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
35102 2011-11-09  Bruno Haible  <bruno@clisp.org>
35104         Improve MODULES.html output.
35105         * modules/mkfifoat (Description): Use the word "function".
35106         * modules/readlinkat (Description): Likewise.
35107         * modules/symlinkat (Description): Likewise.
35109 2011-11-09  Eric Blake  <eblake@redhat.com>
35111         ptsname_r-tests: new test module
35112         * modules/ptsname_r-tests: New module.
35113         * tests/test-ptsname_r.c: New file.
35115         ptsname_r: new module
35116         * modules/ptsname_r: New module.
35117         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
35118         * lib/ptsname.c (__ptsname_r): Split...
35119         * lib/ptsname_r.c: ...into new file.
35120         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
35121         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
35122         * modules/stdlib (Makefile.am): Substitute witnesses.
35123         * lib/stdlib.in.h (ptsname_r): Declare it.
35124         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
35125         * MODULES.html.sh (Misc): Likewise.
35126         * modules/ptsname (Depends-on): Alter dependency.
35127         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
35129 2011-11-09  Jim Meyering  <meyering@redhat.com>
35131         announce-gen: be more concise when there's only one URL+tarball
35132         * build-aux/announce-gen (get_tool_versions): When you distribute
35133         only one type of tarball, combine the first two "Here are..."
35134         sections and make the key-checking grammar independent of
35135         how many tarballs there are.
35137 2011-11-09  Eric Blake  <eblake@redhat.com>
35139         openpty: provide a stub on mingw
35140         * lib/pty.in.h (includes): Provide forward declarations.
35141         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
35143         raise: fix mingw handling of SIGPIPE
35144         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
35146 2011-11-08  Bruno Haible  <bruno@clisp.org>
35148         More conditional dependencies.
35149         * modules/faccessat (Depends-on): Add conditions.
35150         * modules/fchmodat (Depends-on): Likewise.
35151         * modules/fchownat (Depends-on): Likewise.
35152         * modules/fstatat (Depends-on): Likewise.
35153         * modules/mkfifoat (Depends-on): Likewise.
35154         * modules/readlinkat (Depends-on): Likewise.
35155         * modules/symlinkat (Depends-on): Likewise.
35156         * modules/unlinkat (Depends-on): Likewise.
35157         * modules/utimensat (Depends-on): Likewise.
35158         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
35159         * modules/linkat (Depends-on): Refine the conditions.
35160         * modules/renameat (Depends-on): Likewise.
35162 2011-11-08  Bruno Haible  <bruno@clisp.org>
35164         faccessat: Move AC_LIBOBJ invocation to module description.
35165         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
35166         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
35167         invocation from here...
35168         * modules/faccessat (configure.ac): ... to here. Invoke
35169         gl_PREREQ_FACCESSAT.
35171 2011-11-08  Bruno Haible  <bruno@clisp.org>
35173         faccessat: Simplify autoconf macro.
35174         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
35175         gl_FUNC_EUIDACCESS.
35177 2011-11-08  Bruno Haible  <bruno@clisp.org>
35179         renameat: Fix dependencies.
35180         * modules/renameat (Depends-on): Add stdbool.
35182 2011-11-08  Bruno Haible  <bruno@clisp.org>
35184         mkfifoat: Fix module description.
35185         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
35186         not gl_UNISTD_MODULE_INDICATOR.
35188 2011-11-08  Bruno Haible  <bruno@clisp.org>
35190         fstatat: Remove unused dependency.
35191         * modules/fstatat (Depends-on): Remove fstat.
35193 2011-11-08  Simon Josefsson  <simon@josefsson.org>
35195         GNUmakefile: behave when Makefile is missing.
35196         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
35198 2011-11-08  Bruno Haible  <bruno@clisp.org>
35200         openat: Conditionalize dependencies.
35201         * lib/openat.c: Reduce the scope of some #includes.
35202         * modules/openat (Depends-on): Add conditions.
35204 2011-11-07  Jim Meyering  <meyering@redhat.com>
35206         maint.mk: extract GPG key ID without using a temporary file
35207         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
35208         without using a temporary file.  Based on a suggestion from Werner Koch
35209         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
35211 2011-11-07  Eric Blake  <eblake@redhat.com>
35213         grantpt: fix typo
35214         * lib/stdlib.in.h (grantpt): Check correct function.
35216         maint.mk: silence new syntax check
35217         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
35219 2011-11-06  Bruno Haible  <bruno@clisp.org>
35221         Doc about floating-point and math API.
35222         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
35223         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
35225 2011-11-06  Bruno Haible  <bruno@clisp.org>
35227         stdalign tests: Skip the test when compiled by Sun C.
35228         * tests/test-stdalign.c (main): Skip the test on Sun C.
35230 2011-11-06  Bruno Haible  <bruno@clisp.org>
35232         ansi-c++-opt: Complete the 2011-06-05 change.
35233         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
35234         does not support namespaces, set the variable to "no", not to ":".
35236 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
35238         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
35240 2011-11-06  Bruno Haible  <bruno@clisp.org>
35242         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
35243         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
35244         (minus_zerol) [HP-UX]: New macro.
35245         (unary_minus) [HP-UX]: New function.
35246         (copysignl) [HP-UX]: Use unary_minus function.
35248 2011-11-06  Bruno Haible  <bruno@clisp.org>
35250         ldexp, ldexpf, ldexpl: Enhance tests.
35251         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
35252         and tests/test-ldexpl.c.
35253         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
35254         LDEXP, MIN_EXP, MAX_EXP): New macros.
35255         Include test-ldexp.h.
35256         (main): Just call test_function.
35257         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
35258         infinity.h, nan.h.
35259         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
35260         MAX_EXP): New macros.
35261         Include test-ldexp.h.
35262         (x, y): Remove variables.
35263         (main): Just call test_function.
35264         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
35265         infinity.h, nan.h.
35266         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
35267         MAX_EXP): New macros.
35268         Include test-ldexp.h.
35269         (x, y): Remove variables.
35270         (main): Just call test_function.
35271         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
35272         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
35273         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
35274         (Depends-on): Add isnand-nolibm, signbit, float.
35275         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
35276         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
35277         (Depends-on): Add isnanf-nolibm, signbit, float.
35279 2011-11-06  Bruno Haible  <bruno@clisp.org>
35281         math tests: Cosmetics.
35282         * tests/test-math-c++.cc: Reorder declarations.
35284 2011-11-05  Bruno Haible  <bruno@clisp.org>
35286         fma*: Simplify test.
35287         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
35288         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
35290         Tests for module 'fmal'.
35291         * modules/fmal-tests: New file.
35292         * tests/test-fmal1.c: New file.
35293         * tests/test-fmal2.c: New file.
35295         New module 'fmal'.
35296         * lib/math.in.h (fmal): New declaration.
35297         * lib/fmal.c: New file.
35298         * m4/fmal.m4: New file.
35299         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
35300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
35301         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
35302         REPLACE_FMAL.
35303         * modules/fmal: New file.
35304         * doc/posix-functions/fmal.texi: Mention the new module and the various
35305         bugs.
35307         Tests for module 'fmaf'.
35308         * modules/fmaf-tests: New file.
35309         * tests/test-fmaf1.c: New file.
35310         * tests/test-fmaf2.c: New file.
35312         New module 'fmaf'.
35313         * lib/math.in.h (fmaf): New declaration.
35314         * lib/fmaf.c: New file.
35315         * m4/fmaf.m4: New file.
35316         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
35317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
35318         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
35319         REPLACE_FMAF.
35320         * modules/fmaf: New file.
35321         * doc/posix-functions/fmaf.texi: Mention the new module and the various
35322         bugs.
35324         Tests for module 'fma'.
35325         * modules/fma-tests: New file.
35326         * tests/test-fma1.c: New file.
35327         * tests/test-fma1.h: New file.
35328         * tests/test-fma2.c: New file.
35329         * tests/test-fma2.h: New file.
35331         New module 'fma'.
35332         * lib/math.in.h (fma): New declaration.
35333         * lib/fma.c: New file.
35334         * m4/fma.m4: New file.
35335         * m4/fegetround.m4: New file.
35336         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
35337         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
35338         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
35339         REPLACE_FMA.
35340         * modules/fma: New file.
35341         * doc/posix-functions/fma.texi: Mention the new module and the various
35342         bugs.
35344         Extend gl_MATHFUNC.
35345         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
35346         Support 'void' as argument type.
35347         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
35349 2011-11-05  Jim Meyering  <meyering@redhat.com>
35351         maint.mk: also prohibit inclusion of dirent.h without use
35352         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
35354 2011-11-05  Bruno Haible  <bruno@clisp.org>
35356         ldexpl tests: Avoid test failure on MSVC 9.
35357         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
35358         value. Needed in order to enforce the conversion from a value greater
35359         than LDBL_MAX to Infinity.
35361 2011-11-05  Bruno Haible  <bruno@clisp.org>
35363         New modules 'at-internal', 'openat-h', split off from module 'openat'.
35364         * modules/at-internal: New file, extracted from modules/openat.
35365         * modules/openat-h: New file.
35366         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
35367         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
35368         * modules/openat (Description): Add reference to POSIX function.
35369         (Files): Remove lib/openat.h, lib/openat-proc.c.
35370         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
35371         intprops, unistd.
35372         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
35373         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
35374         gl_FCNTL_MODULE_INDICATOR.
35375         (Include): Remove unistd.h, openat.h.
35376         * modules/areadlinkat (Files): Add lib/at-func.c.
35377         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
35378         openat-die, openat-h, save-cwd.
35379         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
35380         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
35381         openat-die, openat-h, save-cwd, unistd.
35382         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
35383         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
35384         openat-h, save-cwd. Remove fcntl-h, openat.
35385         * modules/fchmodat (Files): Remove lib/openat.h.
35386         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
35387         openat, stdbool, unistd.
35388         * modules/fchownat (Files): Remove lib/openat.h.
35389         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
35390         openat, stdbool, sys_stat.
35391         * modules/fdopendir (Files): Remove lib/openat-priv.h,
35392         lib/openat-proc.c.
35393         (Depends-on): Add at-internal.
35394         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
35395         * modules/fstatat (Files): Remove lib/openat.h.
35396         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
35397         stdbool, unistd.
35398         * modules/fts (Depends-on): Add openat-h.
35399         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
35400         openat.
35401         * modules/mkdirat (Files): Remove lib/openat.h.
35402         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
35403         openat, stdbool, sys_stat.
35404         * modules/mkfifoat (Files): Add lib/at-func.c.
35405         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
35406         openat-h, save-cwd. Remove fcntl-h, openat.
35407         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
35408         * modules/readlinkat (Files): Add lib/at-func.c.
35409         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
35410         openat-h, save-cwd. Remove fcntl-h, openat.
35411         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
35412         openat.
35413         * modules/selinux-at (Files): Add lib/at-func.c.
35414         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
35415         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
35416         * modules/symlinkat (Files): Add lib/at-func.c.
35417         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
35418         openat-h, save-cwd. Remove fcntl-h, openat.
35419         * modules/unlinkat (Files): Remove lib/openat.h.
35420         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
35421         stdbool.
35422         * modules/utimensat (Files): Add lib/at-func.c.
35423         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
35424         openat-die, openat-h, save-cwd.
35425         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
35426         * modules/fdutimensat-tests (Depends-on): Add openat.
35427         * modules/fstatat-tests (Depends-on): Add openat-h.
35428         * modules/readlinkat-tests (Depends-on): Add openat.
35429         * modules/symlinkat-tests (Depends-on): Add openat.
35431 2011-11-05  Bruno Haible  <bruno@clisp.org>
35433         openat: Include <stdbool.h>.
35434         * lib/openat.c: Include <stdbool.h>.
35436 2011-11-04  Bruno Haible  <bruno@clisp.org>
35438         fchownat, renameat, unlinkat: Fix dependencies.
35439         * modules/fchownat (Depends-on): Add fstatat.
35440         * modules/renameat (Depends-on): Likewise.
35441         * modules/unlinkat (Depends-on): Likewise.
35443 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
35445         openat: remove direct dependency on dirent
35446         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
35447         and hasn't been needed ever since fdopendir was split into its own
35448         module on 2009-08-31.
35449         * modules/openat (Depends-on): Remove dirent.
35451 2011-11-04  Bruno Haible  <bruno@clisp.org>
35453         renameat: Optimize code size.
35454         * modules/renameat (configure.ac): Don't compile at-func2.c if
35455         REPLACE_RENAMEAT is 1.
35457 2011-11-04  Bruno Haible  <bruno@clisp.org>
35459         openat tests: Fix file list.
35460         * modules/openat-tests (Files): Add tests/test-open.h.
35462 2011-11-04  Bruno Haible  <bruno@clisp.org>
35464         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
35465         * modules/fchmodat (Depends-on): Add openat-die.
35466         * modules/fchownat (Depends-on): Likewise.
35467         * modules/linkat (Depends-on): Likewise.
35468         * modules/renameat (Depends-on): Likewise.
35469         * modules/openat (Depends-on): Add dirent.
35471 2011-11-04  Jim Meyering  <meyering@redhat.com>
35473         at-func*.c: fix comments
35474         * lib/at-func2.c: Correct/improve first-line comment.
35475         * lib/at-func.c: Correct grammar in first-line comment.
35477 2011-11-04  Bruno Haible  <bruno@clisp.org>
35479         New module 'mkdirat', split off from module 'openat'.
35480         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
35481         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
35482         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
35483         * modules/mkdirat: New file, extracted from modules/openat.
35484         * modules/openat (Files): Remove lib/mkdirat.c.
35485         (Depends-on): Remove mkdir.
35486         (configure.ac): Remove AC_LIBOBJ of mkdirat.
35487         (Include): Remove <sys/stat.h>.
35488         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
35489         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
35490         tests/test-mkdir.h.
35491         (Depends-on): Remove ignore-value.
35492         (Makefile.am): Remove rules for test-mkdirat.
35493         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
35494         of module 'openat'.
35495         * NEWS: Mention the change.
35497 2011-11-04  Bruno Haible  <bruno@clisp.org>
35499         closedir: Avoid warning on mingw.
35500         * lib/closedir.c: Include <unistd.h>.
35502 2011-11-04  Bruno Haible  <bruno@clisp.org>
35504         New module 'fstatat', split off from module 'openat'.
35505         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
35506         defined.
35507         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
35508         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
35509         gl_FUNC_FSTATAT.
35510         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
35511         * modules/fstatat: New file, extracted from modules/openat.
35512         * modules/openat (Files): Remove lib/fstatat.c.
35513         (Depends-on): Remove lstat.
35514         (configure.ac): Remove AC_LIBOBJ of fstatat.
35515         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
35516         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
35517         tests/test-lstat.h, tests/test-stat.h.
35518         (Depends-on): Remove getcwd-lgpl.
35519         (Makefile.am): Remove rules for test-fstatat.
35520         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
35521         of module 'openat'.
35522         * NEWS: Mention the change.
35523         * modules/getcwd (Depends-on): Add fstatat.
35524         * modules/linkat (Depends-on): Likewise.
35525         * modules/mkfifoat-tests (Depends-on): Likewise.
35526         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
35528 2011-11-03  Bruno Haible  <bruno@clisp.org>
35530         New module 'unlinkat', split off from module 'openat'.
35531         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
35532         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
35533         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
35534         * modules/unlinkat: New file, extracted from modules/openat. Correct
35535         the dependency conditions.
35536         * modules/openat (Files): Remove lib/unlinkat.c.
35537         (Depends-on): Remove rmdir, unlink.
35538         (configure.ac): Remove AC_LIBOBJ of unlinkat.
35539         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
35540         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
35541         tests/test-rmdir.h, tests/test-unlink.h.
35542         (Depends-on): Remove unlinkdir.
35543         (Makefile.am): Remove rules for test-unlinkat.
35544         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
35545         of module 'openat'.
35546         * NEWS: Mention the change.
35547         * modules/linkat-tests (Depends-on): Add unlinkat.
35548         * modules/mkfifoat-tests (Depends-on): Likewise.
35549         * modules/readlinkat-tests (Depends-on): Likewise.
35551 2011-11-02  Bruno Haible  <bruno@clisp.org>
35553         New module 'fchmodat', split off from module 'openat'.
35554         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
35555         defined.
35556         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
35557         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
35558         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
35559         * modules/fchmodat: New file, extracted from modules/openat.
35560         * modules/openat (Files): Remove lib/fchmodat.c.
35561         (configure.ac): Remove AC_LIBOBJ of fchmodat.
35562         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
35563         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
35564         (Makefile.am): Remove rules for test-fchmodat.
35565         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
35566         of module 'openat'.
35567         * NEWS: Mention the change.
35569 2011-11-02  Jim Meyering  <meyering@redhat.com>
35571         putenv: indent #definition of "environ" to placate cppi
35572         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
35574         gitlog-to-changelog: provide a ChangeLog-repair mechanism
35575         Git logs are often treated as immutable, because editing them
35576         changes the SHA1 checksums of all descendants.  Thus, errors in
35577         git logs tend to stay there forever.  However, when we generate
35578         a ChangeLog file -- typically for distribution -- from that git log,
35579         we can actually make corrections in the generated file.  The key
35580         lies in recording in machine-readable/applicable form the desired
35581         corrections.  See --help for description and an example.
35582         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
35583         (usage): Describe it; alphabetize option descriptions.
35584         (main): Honor the new option, carefully.
35586 2011-11-01  Jim Meyering  <meyering@redhat.com>
35588         gitlog-to-changelog: avoid an infloop
35589         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
35590         that ends up being empty.
35592 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
35594         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
35595         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
35596         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
35597         contains (possibly-quoted) backslashes.  This should avoid
35598         all-too-common shell bugs if COMPLICATED contains backslashes in
35599         the "wrong" places.  Reported by David Evans in
35600         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
35601         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
35602         because we want ASCII ranges.  Is there some reason we don't use
35603         the C locale everywhere in this script?
35604         (func_module, top level): Avoid unwanted pathname expansion when
35605         $repo_url_prefix or $repo_url_suffix_repl contain shell
35606         metacharacters like '?' and '*'.
35608 2011-11-01  Bruno Haible  <bruno@clisp.org>
35610         fchownat: Improve description.
35611         * modules/fchownat (Description): Add link to function.
35613 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
35615         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
35616         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
35617         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
35618         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
35620 2011-11-01  Bruno Haible  <bruno@clisp.org>
35622         alignof: Avoid collision with stdalign module.
35623         * lib/alignof.h (alignof): Remove macro.
35624         * NEWS: Mention the change.
35625         Reported by Paul Eggert.
35627 2011-11-01  Bruno Haible  <bruno@clisp.org>
35629         New module 'fchownat', split off from module 'openat'.
35630         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
35631         defined.
35632         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
35633         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
35634         invoke gl_FUNC_FCHOWNAT.
35635         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
35636         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
35637         * modules/fchownat: New file, extracted from modules/openat.
35638         * modules/openat (Files): Remove lib/fchownat.c.
35639         (Depends-on): Remove lchown.
35640         (configure.ac): Remove AC_LIBOBJ of fchownat.
35641         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
35642         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
35643         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
35644         (Depends-on): Remove mgetgroups, usleep, stat-time.
35645         (configure.ac): Remove test for getegid.
35646         (Makefile.am): Remove rules for test-fchownat.
35647         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
35648         of module 'openat'.
35649         * NEWS: Mention the change.
35651 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
35653         stdalign: port better to MSVC and to Sun C 5.11
35654         This fixes some of the problems reported by Bruno Haible in
35655         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
35656         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
35657         shortcomings of MSVC and of Sun C 5.11.
35658         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
35659         around __declspec arg.
35660         * modules/stdalign-tests (Files): Add tests/macros.h.
35661         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
35662         Include macros.h, for ASSERT.
35663         (DECLARE_ALIGNED): Remove.
35664         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
35665         to catch bug), and to 1 if not (simplifies the rest of the code).
35666         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
35667         (CHECK_AUTO): Remove.
35668         (CHECK_ALIGNED): Check only the alignment of the static vars,
35669         since auto var alignment isn't supported by Sun C 5.11.
35670         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
35671         ASSERT failures are easier to diagnose.
35673 2011-10-31  Bruno Haible  <bruno@clisp.org>
35675         doc about some IRIX 5.3 problems.
35676         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
35677         on IRIX 5.3.
35678         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
35679         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
35680         5.3.
35681         * doc/posix-functions/grantpt.texi: Likewise.
35682         * doc/posix-functions/unlockpt.texi: Likewise.
35683         * doc/posix-functions/lgamma.texi: Likewise.
35684         * doc/posix-functions/nextafter.texi: Likewise.
35685         * doc/posix-functions/remainder.texi: Likewise.
35686         * doc/posix-functions/select.texi: Mention misplaced declaration on
35687         IRIX 5.3.
35688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35690 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
35692         gitlog-to-changelog: fix git-log invocation.
35693         git-log mishandles date strings before 1970-01-01 UTC, and there is
35694         no use to specify --since=1970-01-01 by default anyway.
35695         * build-aux/gitlog-to-changelog: By default, when no --since option
35696         was given, do not specify explicit --since option to git-log.
35698 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
35700         gitlog-to-changelog: new option --append-dot.
35701         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
35702         first non-blank line of each commit message terminated with a dot.
35704 2011-10-30  Bruno Haible  <bruno@clisp.org>
35706         ffsl, ffsll: Avoid compilation error due to 'restrict'.
35707         * lib/ffsl.h: Include <config.h>.
35708         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
35710 2011-10-30  Jim Meyering  <meyering@redhat.com>
35712         GNUmakefile: reenable "make syntax-check" for most projects
35713         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
35714         build-aux variable", "syntax-check" would do nothing but succeed with
35715         the "No version control files detected..." diagnostic (unless you
35716         happened to override _build-aux via cfg.mk).
35717         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
35718         to precede inclusion of maint.mk.  Otherwise, these variables would
35719         be used undefined in any project that does not override the default.
35721 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
35723         gitlog-to-changelog: treat a message with only blank lines as empty.
35724         * build-aux/gitlog-to-changelog: Move the code that removes leading and
35725         trailing blank lines before the code that issues a warning about an
35726         empty commit message.
35728 2011-10-30  Jim Meyering  <meyering@redhat.com>
35730         test-parse-datetime.c: avoid new DST-related false positive test failure
35731         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
35732         based on the time/date we'll convert, not the current time.
35733         Otherwise, the moment we cross a DST boundary like today's in
35734         Europe, (CEST to CET), that offset ends up being one hour off.
35736 2011-10-27  Bruno Haible  <bruno@clisp.org>
35738         fstat: Tweak documentation.
35739         * modules/fstat (Description): More precise description.
35741 2011-10-27  Bruno Haible  <bruno@clisp.org>
35743         Update documentation regarding 'largefile' module.
35744         * doc/posix-functions/fstat.texi: Tweak wording.
35745         * doc/posix-functions/opendir.texi: Mention that the module fixes the
35746         problems with huge directories and/or small ino_t types.
35747         * doc/posix-functions/readdir.texi: Likewise.
35748         * doc/posix-functions/rewinddir.texi: Likewise.
35750 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
35752         maint.mk: don't maintain a second build-aux variable.
35753         * maint.mk (build_aux): Removed.  The maintainer-makefile module
35754         depends on GNUmakefile, which already maintains a cfg.mk
35755         overridable $(_build-aux) for projects with a non-standard
35756         build-aux directory location, although without the $(srcdir)
35757         prefix.  Use that variable consistently instead of introducing a
35758         second one.  Adjust all call sites.
35760 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
35762         Add stdalign module and use it in other modules.
35763         This is based on a previous proposal by Bruno Haible
35764         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
35766         stdalign: new module
35767         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
35768         * modules/stdalign: New files.
35769         * MODULES.html.sh (c1x_core_properties): Add stdalign.
35770         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
35772         stdalign-tests: new module
35773         * modules/stdalign-tests, tests/test-stdalign.c: New files.
35775         argp: use stdalign
35776         * lib/argp-parse.c: Include <stdalign.h>.
35777         (alignof): Remove.
35778         * modules/argp (Depends-on): Add stdalign.
35780         crypto libraries: use stdalign
35781         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
35782         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
35783         Do not include <stdlib.h> twice, in md4.c.
35784         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
35785         because we are accessing a pointer's bit-pattern, not a size.
35786         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
35787         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
35788         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
35789         * modules/crypto/sha512: Likewise.
35791         sys_socket: use stdalign, not alignof
35792         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
35793         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
35795 2011-10-27  Bruno Haible  <bruno@clisp.org>
35797         raise test: Avoid a test failure on Linux/MIPS.
35798         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
35799         because 99 is a valid signal on Linux/MIPS.
35801 2011-10-27  Bruno Haible  <bruno@clisp.org>
35803         nonblocking tests: Fix test failure on Linux/MIPS.
35804         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
35805         Set to 270000.
35807 2011-10-27  Bruno Haible  <bruno@clisp.org>
35809         utimensat: Work around problem on Linux/hppa.
35810         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
35811         values.
35812         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
35814 2011-10-25  Jim Meyering  <meyering@redhat.com>
35816         maint.mk: fix a bug in sc_prohibit_stddef_without_use
35817         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
35818         after symbols like NULL, size_t, etc.
35819         Reported by Alfred M. Szmidt.
35821         maint.mk: exempt ENODATA from a syntax-check rule
35822         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
35823         from the sc_prohibit_always-defined_macros syntax-check rule.
35824         Add a comment.  See this for more details:
35825         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
35827 2011-10-23  Jim Meyering  <meyering@redhat.com>
35829         fts: close parent dir FD before returning from post-traversal fts_read
35830         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
35831         unlink A, even though an FD open on A remained.  This is suboptimal
35832         (holding a file descriptor open longer than needed), but otherwise not
35833         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
35834         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
35835         that represents a real problem: it causes the removal of A to fail
35836         with e.g., "rm: cannot remove `A': Device or resource busy"
35838         fts visits each directory twice and keeps a cache (fts_fd_ring) of
35839         directory file descriptors.  After completing the final, FTS_DP,
35840         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
35841         cache, but then proceeded to add a new FD to it via the subsequent
35842         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
35843         final file descriptor would be closed only via fts_close's call to
35844         fd_ring_clear.  Now, it is usually closed earlier, via the final
35845         FTS_DP-returning fts_read call.
35846         * lib/fts.c (restore_initial_cwd): New function, converted from
35847         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
35848         Update callers.
35849         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
35850         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
35852 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
35853             Bruno Haible  <bruno@clisp.org>
35854             Jim Meyering  <jim@meyering.net>
35856         readme-release: improve safety of release prep instructions.
35857         * README-release: Don't git pull all branches when only master
35858         is needed for the release process.
35859         Run make maintainer-clean before changing trees and merging.
35860         Don't try to run ./configure right after git pull in case files
35861         that influence the bootstrap process have changed, move the
35862         ./configure step to after running ./bootstrap.
35863         Don't bootstrap "one last time"... it's the first time!
35865 2011-10-22  Bruno Haible  <bruno@clisp.org>
35867         errno, strerror-override: Support for MSVC 10.
35868         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
35869         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
35870         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
35871         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
35872         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
35873         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
35874         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
35875         Assign values compatible with MSVC 10.
35876         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
35877         New macros.
35878         (GNULIB_defined_EWINSOCK): New macro.
35879         * lib/strerror-override.c (strerror_override): Update accordingly.
35880         * lib/strerror-override.h: Likewise.
35881         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
35882         longer equal to the corresponding errno value.
35883         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
35885 2011-10-22  Bruno Haible  <bruno@clisp.org>
35887         perror: Recognize when test program crashes.
35888         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
35889         strerror, set gl_cv_func_perror_works to no.
35890         Reported by Daniel Richard G. <skunk@iskunk.org>.
35892         perror: Fix indentation.
35893         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
35895 2011-10-22  Bruno Haible  <bruno@clisp.org>
35897         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
35898         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
35899         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
35900         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
35901         functions, not as a macro.
35902         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
35903         macros.
35904         (isfinite, isinf, isnan, signbit): Check overloaded functions and
35905         absence of macro.
35906         Suggested by Eric Blake.
35907         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
35909 2011-10-21  Bruno Haible  <bruno@clisp.org>
35911         relocatable-prog-wrapper: Don't leave object files behind.
35912         * build-aux/install-reloc: Re-synchronize list of .o files to be
35913         removed with list of compilation units.
35915 2011-10-20  Bruno Haible  <bruno@clisp.org>
35917         openpty, posix_openpt: Remove code duplication.
35918         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
35919         * lib/openpty.c: Include <stdlib.h>.
35920         (openpty): Use posix_openpt on all platforms except IRIX.
35921         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
35923 2011-10-20  Bruno Haible  <bruno@clisp.org>
35925         unlockpt: Detect invalid argument.
35926         * lib/unlockpt.c: Include <fcntl.h>.
35927         (unlockpt): Check whether fd is valid, using fcntl().
35928         * modules/unlockpt (Depends-on): Add fcntl-h.
35930 2011-10-20  Bruno Haible  <bruno@clisp.org>
35932         openpty: Avoid compilation error on AIX 6.1.
35933         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
35935 2011-10-20  Bruno Haible  <bruno@clisp.org>
35937         posix_openpt: Support for OpenBSD.
35938         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
35939         (posix_openpt) [OpenBSD]: New code.
35940         * lib/grantpt.c: Include <fcntl.h>.
35941         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
35942         * modules/grantpt (Depends-on): Add fcntl-h.
35944 2011-10-20  Bruno Haible  <bruno@clisp.org>
35946         posix_openpt test: Coding style.
35947         * tests/test-posix_openpt.c: Use GNU coding style.
35949 2011-10-20  Bruno Haible  <bruno@clisp.org>
35951         grantpt: Support --avoid=pt_chown.
35952         * modules/grantpt (Files): Add lib/pty-private.h.
35954 2011-10-20  Bruno Haible  <bruno@clisp.org>
35956         posix_openpt: Fix autoconf macro.
35957         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
35958         unneeded check for _getpty.
35960 2011-10-20  Bruno Haible  <bruno@clisp.org>
35962         openpty: Update comments.
35963         * lib/openpty.c: Add comments about Minix.
35965 2011-10-19  Eric Blake  <eblake@redhat.com>
35967         openpty: relax license
35968         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
35970         pt_chown: use configmake to simplify build
35971         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
35973         ptsname and others: relax license
35974         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
35975         * modules/unlockpt (License): Likewise.
35976         * modules/pt_chown (License): Likewise.
35977         * modules/ptsname (License): Likewise.
35978         * modules/ttyname_r (License): Likewise.
35980 2011-10-19  Jim Meyering  <meyering@redhat.com>
35982         posix_openpt: remove spurious #endif
35983         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
35985 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
35987         maint.mk: Respect $(build_aux) in web-manual rule.
35988         * top/maint.mk (web-manual): Find gen-announce script in user's
35989         $(build_aux) directory instead of hard-coding 'build-aux'.
35991 2011-10-19  Bruno Haible  <bruno@clisp.org>
35993         posix_openpt: Fix compilation error.
35994         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
35995         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
35996         Mention the openpty module as an alternative.
35998 2011-10-19  Bruno Haible  <bruno@clisp.org>
36000         Support for old NeXTstep 3.3 frexp().
36001         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
36002         execution time of the test to 5 seconds.
36003         Reported by Daniel Richard G. <skunk@iskunk.org>.
36005 2011-10-19  Bruno Haible  <bruno@clisp.org>
36007         Support for old NeXTstep 3.3 sed.
36008         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
36009         part, use /.../, not \|...|. Escape periods in the header file name.
36010         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
36011         Reported by Daniel Richard G. <skunk@iskunk.org>.
36013 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
36015         Support for old NeXTstep 3.3 gcc.
36016         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
36017         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
36018         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
36019         * lib/spawn.in.h (_Restrict_arr_): Likewise.
36020         * lib/regex.h (_Restrict_arr_): Likewise.
36021         * lib/regex_internal.h (re_token_t): Likewise.
36022         * lib/regexec.c (check_node_accept_bytes): Likewise.
36023         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
36025 2011-10-18  Eric Blake  <eblake@redhat.com>
36027         posix_openpt: new module
36028         * modules/posix_openpt: New module.
36029         * m4/posix_openpt.m4: New file.
36030         * lib/posix_openpt.c: Likewise.
36031         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
36032         (gl_STDLIB_H_DEFAULTS): Set defaults.
36033         * modules/stdlib (Makefile.am): Substitute macros.
36034         * lib/stdlib.in.h (posix_openpt): Declare.
36035         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
36036         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
36037         * modules/posix_openpt-tests: New test module.
36038         * tests/test-posix_openpt.c: New test.
36040 2011-10-15  Bruno Haible  <bruno@clisp.org>
36042         xstrtoll: Fix compilation failure.
36043         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
36044         from lib/strtol.c.
36045         * doc/posix-headers/limits.texi: Mention missing numerical limits on
36046         some platforms.
36047         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36049 2011-10-15  Bruno Haible  <bruno@clisp.org>
36051         vasnprintf: Optimize bit search operation.
36052         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
36053         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
36054         gl_DOUBLE_EXPONENT_LOCATION.
36055         * modules/vasnprintf (Files): Add m4/exponentd.m4.
36056         * modules/unistdio/u8-vasnprintf (Files): Likewise.
36057         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
36058         * modules/unistdio/u16-vasnprintf (Files): Likewise.
36059         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
36060         * modules/unistdio/u32-vasnprintf (Files): Likewise.
36061         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
36062         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
36063         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
36065 2011-10-15  Bruno Haible  <bruno@clisp.org>
36067         vasnprintf: Fix comments.
36068         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
36070 2011-10-14  Bruno Haible  <bruno@clisp.org>
36072         Tests for module 'integer_length_ll'.
36073         * modules/integer_length_ll-tests: New file.
36074         * tests/test-integer_length_ll.c: New file.
36076         New module 'integer_length_ll'.
36077         * lib/integer_length_ll.c: New file.
36078         * modules/integer_length_ll: New file.
36080 2011-10-14  Bruno Haible  <bruno@clisp.org>
36082         Tests for module 'integer_length_l'.
36083         * modules/integer_length_l-tests: New file.
36084         * tests/test-integer_length_l.c: New file.
36086         New module 'integer_length_l'.
36087         * lib/integer_length_l.c: New file.
36088         * modules/integer_length_l: New file.
36090 2011-10-14  Bruno Haible  <bruno@clisp.org>
36092         Tests for module 'integer_length'.
36093         * modules/integer_length-tests: New file.
36094         * tests/test-integer_length.c: New file.
36096         New module 'integer_length'.
36097         * lib/integer_length.h: New file.
36098         * lib/integer_length.c: New file.
36099         * modules/integer_length: New file.
36101 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
36103         popen: Fix dependency conditions.
36104         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
36106 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
36108         perror: Fix autoconf test.
36109         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
36110         <stdlib.h> and <string.h>.
36112 2011-10-14  Bruno Haible  <bruno@clisp.org>
36114         ffsl: Optimize on 64-bit platforms.
36115         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
36116         unrolling.
36118 2011-10-13  Bruno Haible  <bruno@clisp.org>
36120         ffsl: Optimize on 32-bit platforms.
36121         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
36122         use ffs() without a loop.
36124         ffsl, ffsll: Optimize for GCC.
36125         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
36126         * lib/ffsl.c (GCC_BUILTIN): New macro.
36127         * lib/ffsll.c (GCC_BUILTIN): Likewise.
36129 2011-10-13  Bruno Haible  <bruno@clisp.org>
36131         ffs, bcopy, memset: Support symbol renaming via config.h.
36132         * lib/ffs.c: Include <config.h>.
36133         * lib/bcopy.c: Likewise.
36134         * lib/memset.c: Likewise.
36136 2011-10-10  Bruno Haible  <bruno@clisp.org>
36138         atanl: Simplify for platforms where 'long double' == 'double'.
36139         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
36140         alternative implementation.
36141         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36142         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36143         * modules/atanl (Depends-on): Add atan. Update conditions.
36145 2011-10-10  Bruno Haible  <bruno@clisp.org>
36147         acosl: Simplify for platforms where 'long double' == 'double'.
36148         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
36149         alternative implementation.
36150         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36151         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36152         * modules/acosl (Depends-on): Add acos. Update conditions.
36154 2011-10-10  Bruno Haible  <bruno@clisp.org>
36156         asinl: Simplify for platforms where 'long double' == 'double'.
36157         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
36158         alternative implementation.
36159         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36160         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36161         * modules/asinl (Depends-on): Add asin. Update conditions.
36163 2011-10-10  Bruno Haible  <bruno@clisp.org>
36165         tanl: Simplify for platforms where 'long double' == 'double'.
36166         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
36167         implementation.
36168         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36169         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36170         * modules/tanl (Depends-on): Add tan. Update conditions.
36171         (configure.ac): Don't compile trigl.c if
36172         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36174 2011-10-10  Bruno Haible  <bruno@clisp.org>
36176         cosl: Simplify for platforms where 'long double' == 'double'.
36177         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
36178         implementation.
36179         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36180         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36181         * modules/cosl (Depends-on): Add cos. Update conditions.
36182         (configure.ac): Don't compile sincosl.c and trigl.c if
36183         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36185 2011-10-10  Bruno Haible  <bruno@clisp.org>
36187         sinl: Simplify for platforms where 'long double' == 'double'.
36188         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
36189         implementation.
36190         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36191         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36192         * modules/sinl (Depends-on): Add sin. Update conditions.
36193         (configure.ac): Don't compile sincosl.c and trigl.c if
36194         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36196 2011-10-10  Bruno Haible  <bruno@clisp.org>
36198         logl: Simplify for platforms where 'long double' == 'double'.
36199         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
36200         implementation.
36201         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36202         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36203         * modules/logl (Depends-on): Add log. Update conditions.
36205 2011-10-10  Bruno Haible  <bruno@clisp.org>
36207         expl: Simplify for platforms where 'long double' == 'double'.
36208         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
36209         implementation.
36210         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36211         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36212         * modules/expl (Depends-on): Add exp. Update conditions.
36214 2011-10-10  Bruno Haible  <bruno@clisp.org>
36216         sqrtl: Simplify for platforms where 'long double' == 'double'.
36217         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
36218         alternative implementation.
36219         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36220         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36221         * modules/sqrtl (Depends-on): Update conditions.
36223 2011-10-10  Bruno Haible  <bruno@clisp.org>
36225         ldexpl: Simplify for platforms where 'long double' == 'double'.
36226         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
36227         alternative implementation.
36228         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36229         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36230         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
36232 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
36234         ffsll: set correct witness
36235         * modules/ffsll (configure.ac): Fix typo.
36237 2011-10-10  Bruno Haible  <bruno@clisp.org>
36239         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
36240         * lib/printf-frexpl.c: Include <config.h>.
36241         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
36242         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
36243         second time.
36244         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
36245         gl_LONG_DOUBLE_VS_DOUBLE.
36246         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
36247         conditions.
36249 2011-10-10  Bruno Haible  <bruno@clisp.org>
36251         frexpl: Simplify for platforms where 'long double' == 'double'.
36252         * lib/frexpl.c: Include <config.h>.
36253         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
36254         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
36255         time.
36256         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36257         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36258         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
36259         * modules/frexpl (Depends-on): Add frexp. Update conditions.
36260         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
36261         conditions.
36263 2011-10-10  Jim Meyering  <meyering@redhat.com>
36265         test-renameat: don't leave behind a temporary file
36266         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
36267           ERROR: files left in build directory after distclean:
36268           ./gltests/test-renameat.too
36269           make[1]: *** [distcleancheck] Error 1
36270         Reported by Tom G. Christensen.
36272 2011-10-09  Bruno Haible  <bruno@clisp.org>
36274         rint: Determine RINT_LIBM correctly on AIX 7.
36275         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
36276         directly, not only through a function pointer. Also accept an optional
36277         4th argument with extra code.
36278         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
36279         rintf() call by gcc when optimizing.
36281         mathfunc.m4: Refactor.
36282         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
36283         m4 variable.
36285 2011-10-09  Bruno Haible  <bruno@clisp.org>
36287         rintl: Simplify for platforms where 'long double' == 'double'.
36288         * lib/rintl.c: Include <config.h>.
36289         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
36290         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
36291         time.
36292         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36293         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36294         * modules/rintl (Depends-on): Add rint. Update conditions.
36296 2011-10-09  Bruno Haible  <bruno@clisp.org>
36298         roundl: Simplify for platforms where 'long double' == 'double'.
36299         * lib/roundl.c: Include <config.h>.
36300         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
36301         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
36302         time.
36303         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36304         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36305         * modules/roundl (Depends-on): Add round. Update conditions.
36307 2011-10-09  Bruno Haible  <bruno@clisp.org>
36309         truncl: Simplify for platforms where 'long double' == 'double'.
36310         * lib/truncl.c: Include <config.h>.
36311         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
36312         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
36313         time.
36314         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36315         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36316         * modules/truncl (Depends-on): Add trunc. Update conditions.
36318 2011-10-09  Bruno Haible  <bruno@clisp.org>
36320         ceill: Simplify for platforms where 'long double' == 'double'.
36321         * lib/ceill.c: Include <config.h>.
36322         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
36323         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
36324         time.
36325         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36326         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36327         * modules/ceill (Depends-on): Add ceil. Update conditions.
36329 2011-10-09  Bruno Haible  <bruno@clisp.org>
36331         floorl: Simplify for platforms where 'long double' == 'double'.
36332         * lib/floorl.c: Include <config.h>.
36333         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
36334         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
36335         time.
36336         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36337         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36338         * modules/floorl (Depends-on): Add floor. Update conditions.
36340 2011-10-09  Bruno Haible  <bruno@clisp.org>
36342         rint: Fix ordering constraints.
36343         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
36344         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
36345         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
36347 2011-10-09  Bruno Haible  <bruno@clisp.org>
36349         copysignl: Simplify for platforms where 'long double' == 'double'.
36350         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
36351         alternative.
36352         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36353         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36354         * modules/copysignl (Depends-on): Add copysign. Update conditions.
36356 2011-10-09  Bruno Haible  <bruno@clisp.org>
36358         Tests for module 'rintl'.
36359         * modules/rintl-tests: New file.
36360         * tests/test-rintl.c: New file.
36362         New module 'rintl'.
36363         * lib/math.in.h (rintl): New declaration.
36364         * lib/rintl.c: New file.
36365         * m4/rintl.m4: New file.
36366         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
36367         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
36368         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
36369         * modules/rintl: New file.
36370         * tests/test-math-c++.cc: Check the declaration of rintl.
36371         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
36372         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
36373         * doc/posix-functions/rintl.texi: Mention the new module.
36375 2011-10-09  Bruno Haible  <bruno@clisp.org>
36377         Tests for module 'rintf'.
36378         * modules/rintf-tests: New file.
36379         * tests/test-rintf.c: New file.
36381         New module 'rintf'.
36382         * lib/math.in.h (rintf): New declaration.
36383         * lib/rintf.c: New file.
36384         * m4/rintf.m4: New file.
36385         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
36386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
36387         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
36388         * modules/rintf: New file.
36389         * tests/test-math-c++.cc: Check the declaration of rintf.
36390         * doc/posix-functions/rintf.texi: Mention the new module.
36392 2011-10-09  Bruno Haible  <bruno@clisp.org>
36394         rint: Support for MSVC.
36395         * lib/math.in.h (rint): New declaration.
36396         * lib/rint.c: New file.
36397         * m4/rint.m4: New file.
36398         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
36399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
36400         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
36401         * modules/rint (Description): Fix.
36402         (Files): Add lib/rint.c, m4/rint.m4.
36403         (Depends-on): Add math.
36404         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
36405         gl_MATH_MODULE_INDICATOR.
36406         * tests/test-math-c++.cc: Check the declaration of rint.
36407         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
36408         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
36409         * doc/posix-functions/rint.texi: Mention the replacement provided by
36410         the module.
36412         rint tests: More tests.
36413         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
36414         minus-zero.h, infinity.h, nan.h.
36415         (main): Skip the test if the current rounding mode is not standard. Add
36416         tests for negative numbers, minus zero, infinity, NaN.
36417         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
36418         tests/nan.h.
36419         (Depends-on): Add isnand-nolibm.
36421 2011-10-09  Bruno Haible  <bruno@clisp.org>
36423         Tests for module 'copysignl'.
36424         * modules/copysignl-tests: New file.
36425         * tests/test-copysignl.c: New file.
36427         New module 'copysignl'.
36428         * lib/math.in.h (copysignl): New declaration.
36429         * lib/copysignl.c: New file.
36430         * m4/copysignl.m4: New file.
36431         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
36432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
36433         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
36434         HAVE_COPYSIGNL.
36435         * modules/copysignl: New file.
36436         * tests/test-math-c++.cc: Check the declaration of copysignl.
36437         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
36438         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
36439         * doc/posix-functions/copysignl.texi: Mention the new module.
36441 2011-10-09  Bruno Haible  <bruno@clisp.org>
36443         Tests for module 'copysignf'.
36444         * modules/copysignf-tests: New file.
36445         * tests/test-copysignf.c: New file.
36447         New module 'copysignf'.
36448         * lib/math.in.h (copysignf): New declaration.
36449         * lib/copysignf.c: New file.
36450         * m4/copysignf.m4: New file.
36451         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
36452         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
36453         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
36454         HAVE_COPYSIGNF.
36455         * modules/copysignf: New file.
36456         * tests/test-math-c++.cc: Check the declaration of copysignf.
36457         * doc/posix-functions/copysignf.texi: Mention the new module.
36459 2011-10-09  Bruno Haible  <bruno@clisp.org>
36461         Ensure that HAVE_* variables are set to 1 before they are set to 0.
36462         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
36463         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
36464         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
36465         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
36466         gl_SIGNAL_H_DEFAULTS.
36468 2011-10-09  Bruno Haible  <bruno@clisp.org>
36470         poll: Make macro safer.
36471         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
36472         ac_cv_header_poll_h is not set.
36474 2011-10-09  Bruno Haible  <bruno@clisp.org>
36476         copysign: Provide replacement.
36477         * lib/math.in.h (copysign): New declaration.
36478         * lib/copysign.c: New file.
36479         * m4/copysign.m4: New file.
36480         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
36481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
36482         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
36483         HAVE_COPYSIGN.
36484         * modules/copysign (Description): Clarify.
36485         (Files): Add lib/copysign.c, m4/copysign.m4.
36486         (Depends-on): Add math, signbit.
36487         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
36488         gl_MATH_MODULE_INDICATOR.
36489         * tests/test-math-c++.cc: Check the declaration of copysign.
36490         * doc/posix-functions/copysign.texi: Mention the effects of the module
36491         on Minix and MSVC.
36493 2011-10-09  Bruno Haible  <bruno@clisp.org>
36495         isinf: Ensure macro on AIX 5.1.
36496         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
36497         macro.
36498         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
36500 2011-10-09  Bruno Haible  <bruno@clisp.org>
36502         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
36503         * modules/snprintf-posix-tests (configure.ac): Require
36504         gl_LONG_DOUBLE_VS_DOUBLE.
36505         * modules/sprintf-posix-tests (configure.ac): Likewise.
36506         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
36507         * modules/vasprintf-posix-tests (configure.ac): Likewise.
36508         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
36509         * modules/vsprintf-posix-tests (configure.ac): Likewise.
36510         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
36511         tests on platforms where 'long double' is the same as 'double'.
36512         * tests/test-sprintf-posix.h (test_function): Likewise.
36513         * tests/test-vasnprintf-posix.c (test_function): Likewise.
36514         * tests/test-vasprintf-posix.c (test_function): Likewise.
36516         *printf: Fix for platforms where 'long double' == 'double'.
36517         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
36518         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
36519         * modules/dprintf-posix (Files): Add m4/math_h.m4.
36520         * modules/fprintf-posix (Files): Likewise.
36521         * modules/obstack-printf-posix (Files): Likewise.
36522         * modules/snprintf-posix (Files): Likewise.
36523         * modules/sprintf-posix (Files): Likewise.
36524         * modules/vasnprintf (Files): Likewise.
36525         * modules/vasnprintf-posix (Files): Likewise.
36526         * modules/vasprintf-posix (Files): Likewise.
36527         * modules/vdprintf-posix (Files): Likewise.
36528         * modules/vfprintf-posix (Files): Likewise.
36529         * modules/vsnprintf-posix (Files): Likewise.
36530         * modules/vsprintf-posix (Files): Likewise.
36531         * modules/unistdio/u8-vasnprintf (Files): Likewise.
36532         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
36533         * modules/unistdio/u16-vasnprintf (Files): Likewise.
36534         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
36535         * modules/unistdio/u32-vasnprintf (Files): Likewise.
36536         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
36537         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
36539         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
36540         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
36541         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36542         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
36543         'long double'.
36544         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
36546         isinf: Fix for platforms where 'long double' == 'double'.
36547         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
36548         Don't blindly assume 80-bit 'long double'.
36550         isfinite: Fix for platforms where 'long double' == 'double'.
36551         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
36552         Don't blindly assume 80-bit 'long double'.
36554         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
36555         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
36556         * modules/isfinite-tests (configure.ac): Require
36557         gl_LONG_DOUBLE_VS_DOUBLE.
36558         * modules/isinf-tests (configure.ac): Likewise.
36559         * modules/isnan-tests (configure.ac): Likewise.
36560         * modules/isnanl-tests (configure.ac): Likewise.
36561         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
36562         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
36563         tests on platforms where 'long double' is the same as 'double'.
36564         * tests/test-isinf.c (test_isinfl): Likewise.
36565         * tests/test-isnan.c (test_long_double): Likewise.
36566         * tests/test-isnanl.h (main): Likewise.
36568 2011-10-08  Bruno Haible  <bruno@clisp.org>
36570         Tests for module 'tanhf'.
36571         * modules/tanhf-tests: New file.
36572         * tests/test-tanhf.c: New file.
36574         New module 'tanhf'.
36575         * lib/math.in.h (tanhf): New declaration.
36576         * lib/tanhf.c: New file.
36577         * m4/tanhf.m4: New file.
36578         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
36579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
36580         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
36581         * modules/tanhf: New file.
36582         * tests/test-math-c++.cc: Check the declaration of tanhf.
36583         * doc/posix-functions/tanhf.texi: Mention the new module.
36585         tanh: Use a .m4 file.
36586         * m4/tanh.m4: New file.
36587         * modules/tanh (Files): Add it.
36588         (configure.ac): Just invoke gl_FUNC_TANH.
36590 2011-10-08  Bruno Haible  <bruno@clisp.org>
36592         Tests for module 'coshf'.
36593         * modules/coshf-tests: New file.
36594         * tests/test-coshf.c: New file.
36596         New module 'coshf'.
36597         * lib/math.in.h (coshf): New declaration.
36598         * lib/coshf.c: New file.
36599         * m4/coshf.m4: New file.
36600         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
36601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
36602         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
36603         * modules/coshf: New file.
36604         * tests/test-math-c++.cc: Check the declaration of coshf.
36605         * doc/posix-functions/coshf.texi: Mention the new module.
36607         cosh: Use a .m4 file.
36608         * m4/cosh.m4: New file.
36609         * modules/cosh (Files): Add it.
36610         (configure.ac): Just invoke gl_FUNC_COSH.
36612 2011-10-08  Bruno Haible  <bruno@clisp.org>
36614         Tests for module 'sinhf'.
36615         * modules/sinhf-tests: New file.
36616         * tests/test-sinhf.c: New file.
36618         New module 'sinhf'.
36619         * lib/math.in.h (sinhf): New declaration.
36620         * lib/sinhf.c: New file.
36621         * m4/sinhf.m4: New file.
36622         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
36623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
36624         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
36625         * modules/sinhf: New file.
36626         * tests/test-math-c++.cc: Check the declaration of sinhf.
36627         * doc/posix-functions/sinhf.texi: Mention the new module.
36629         sinh: Use a .m4 file.
36630         * m4/sinh.m4: New file.
36631         * modules/sinh (Files): Add it.
36632         (configure.ac): Just invoke gl_FUNC_SINH.
36634 2011-10-08  Bruno Haible  <bruno@clisp.org>
36636         Tests for module 'atan2f'.
36637         * modules/atan2f-tests: New file.
36638         * tests/test-atan2f.c: New file.
36640         New module 'atan2f'.
36641         * lib/math.in.h (atan2f): New declaration.
36642         * lib/atan2f.c: New file.
36643         * m4/atan2f.m4: New file.
36644         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
36645         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
36646         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
36647         * modules/atan2f: New file.
36648         * tests/test-math-c++.cc: Check the declaration of atan2f.
36649         * doc/posix-functions/atan2f.texi: Mention the new module.
36651         atan2: Use a .m4 file.
36652         * m4/atan2.m4: New file.
36653         * modules/atan2 (Files): Add it.
36654         (configure.ac): Just invoke gl_FUNC_ATAN2.
36656 2011-10-08  Bruno Haible  <bruno@clisp.org>
36658         Tests for module 'atanf'.
36659         * modules/atanf-tests: New file.
36660         * tests/test-atanf.c: New file.
36662         New module 'atanf'.
36663         * lib/math.in.h (atanf): New declaration.
36664         * lib/atanf.c: New file.
36665         * m4/atanf.m4: New file.
36666         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
36667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
36668         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
36669         * modules/atanf: New file.
36670         * tests/test-math-c++.cc: Check the declaration of atanf.
36671         * doc/posix-functions/atanf.texi: Mention the new module.
36673         atan: Use a .m4 file.
36674         * m4/atan.m4: New file.
36675         * modules/atan (Files): Add it.
36676         (configure.ac): Just invoke gl_FUNC_ATAN.
36678 2011-10-08  Bruno Haible  <bruno@clisp.org>
36680         Tests for module 'acosf'.
36681         * modules/acosf-tests: New file.
36682         * tests/test-acosf.c: New file.
36684         New module 'acosf'.
36685         * lib/math.in.h (acosf): New declaration.
36686         * lib/acosf.c: New file.
36687         * m4/acosf.m4: New file.
36688         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
36689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
36690         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
36691         * modules/acosf: New file.
36692         * tests/test-math-c++.cc: Check the declaration of acosf.
36693         * doc/posix-functions/acosf.texi: Mention the new module.
36695         acos: Use a .m4 file.
36696         * m4/acos.m4: New file.
36697         * modules/acos (Files): Add it.
36698         (configure.ac): Just invoke gl_FUNC_ACOS.
36700 2011-10-08  Bruno Haible  <bruno@clisp.org>
36702         Tests for module 'asinf'.
36703         * modules/asinf-tests: New file.
36704         * tests/test-asinf.c: New file.
36706         New module 'asinf'.
36707         * lib/math.in.h (asinf): New declaration.
36708         * lib/asinf.c: New file.
36709         * m4/asinf.m4: New file.
36710         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
36711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
36712         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
36713         * modules/asinf: New file.
36714         * tests/test-math-c++.cc: Check the declaration of asinf.
36715         * doc/posix-functions/asinf.texi: Mention the new module.
36717         asin: Use a .m4 file.
36718         * m4/asin.m4: New file.
36719         * modules/asin (Files): Add it.
36720         (configure.ac): Just invoke gl_FUNC_ASIN.
36722 2011-10-08  Bruno Haible  <bruno@clisp.org>
36724         Tests for module 'tanf'.
36725         * modules/tanf-tests: New file.
36726         * tests/test-tanf.c: New file.
36728         New module 'tanf'.
36729         * lib/math.in.h (tanf): New declaration.
36730         * lib/tanf.c: New file.
36731         * m4/tanf.m4: New file.
36732         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
36733         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
36734         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
36735         * modules/tanf: New file.
36736         * tests/test-math-c++.cc: Check the declaration of tanf.
36737         * doc/posix-functions/tanf.texi: Mention the new module.
36739         tan: Use a .m4 file.
36740         * m4/tan.m4: New file.
36741         * modules/tan (Files): Add it.
36742         (configure.ac): Just invoke gl_FUNC_TAN.
36744 2011-10-08  Bruno Haible  <bruno@clisp.org>
36746         Tests for module 'cosf'.
36747         * modules/cosf-tests: New file.
36748         * tests/test-cosf.c: New file.
36750         New module 'cosf'.
36751         * lib/math.in.h (cosf): New declaration.
36752         * lib/cosf.c: New file.
36753         * m4/cosf.m4: New file.
36754         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
36755         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
36756         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
36757         * modules/cosf: New file.
36758         * tests/test-math-c++.cc: Check the declaration of cosf.
36759         * doc/posix-functions/cosf.texi: Mention the new module.
36761         cos: Use a .m4 file.
36762         * m4/cos.m4: New file.
36763         * modules/cos (Files): Add it.
36764         (configure.ac): Just invoke gl_FUNC_COS.
36766 2011-10-08  Bruno Haible  <bruno@clisp.org>
36768         Tests for module 'sinf'.
36769         * modules/sinf-tests: New file.
36770         * tests/test-sinf.c: New file.
36772         New module 'sinf'.
36773         * lib/math.in.h (sinf): New declaration.
36774         * lib/sinf.c: New file.
36775         * m4/sinf.m4: New file.
36776         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
36777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
36778         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
36779         * modules/sinf: New file.
36780         * tests/test-math-c++.cc: Check the declaration of sinf.
36781         * doc/posix-functions/sinf.texi: Mention the new module.
36783         sin: Use a .m4 file.
36784         * m4/sin.m4: New file.
36785         * modules/sin (Files): Add it.
36786         (configure.ac): Just invoke gl_FUNC_SIN.
36788 2011-10-08  Bruno Haible  <bruno@clisp.org>
36790         Tests for module 'powf'.
36791         * modules/powf-tests: New file.
36792         * tests/test-powf.c: New file.
36794         New module 'powf'.
36795         * lib/math.in.h (powf): New declaration.
36796         * lib/powf.c: New file.
36797         * m4/powf.m4: New file.
36798         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
36799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
36800         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
36801         * modules/powf: New file.
36802         * tests/test-math-c++.cc: Check the declaration of powf.
36803         * doc/posix-functions/powf.texi: Mention the new module.
36805         pow: Use a .m4 file.
36806         * m4/pow.m4: New file.
36807         * modules/pow (Files): Add it.
36808         (configure.ac): Just invoke gl_FUNC_POW.
36810 2011-10-08  Bruno Haible  <bruno@clisp.org>
36812         Tests for module 'log10f'.
36813         * modules/log10f-tests: New file.
36814         * tests/test-log10f.c: New file.
36816         New module 'log10f'.
36817         * lib/math.in.h (log10f): New declaration.
36818         * lib/log10f.c: New file.
36819         * m4/log10f.m4: New file.
36820         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
36821         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
36822         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
36823         * modules/log10f: New file.
36824         * tests/test-math-c++.cc: Check the declaration of log10f.
36825         * doc/posix-functions/log10f.texi: Mention the new module.
36827         log10: Use a .m4 file.
36828         * m4/log10.m4: New file.
36829         * modules/log10 (Files): Add it.
36830         (configure.ac): Just invoke gl_FUNC_LOG10.
36832 2011-10-08  Bruno Haible  <bruno@clisp.org>
36834         Tests for module 'logf'.
36835         * modules/logf-tests: New file.
36836         * tests/test-logf.c: New file.
36838         New module 'logf'.
36839         * lib/math.in.h (logf): New declaration.
36840         * lib/logf.c: New file.
36841         * m4/logf.m4: New file.
36842         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
36843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
36844         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
36845         * modules/logf: New file.
36846         * tests/test-math-c++.cc: Check the declaration of logf.
36847         * doc/posix-functions/logf.texi: Mention the new module.
36849         log: Use a .m4 file.
36850         * m4/log.m4: New file.
36851         * modules/log (Files): Add it.
36852         (configure.ac): Just invoke gl_FUNC_LOG.
36854 2011-10-08  Bruno Haible  <bruno@clisp.org>
36856         Tests for module 'expf'.
36857         * modules/expf-tests: New file.
36858         * tests/test-expf.c: New file.
36860         New module 'expf'.
36861         * lib/math.in.h (expf): New declaration.
36862         * lib/expf.c: New file.
36863         * m4/expf.m4: New file.
36864         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
36865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
36866         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
36867         * modules/expf: New file.
36868         * tests/test-math-c++.cc: Check the declaration of expf.
36869         * doc/posix-functions/expf.texi: Mention the new module.
36871         exp: Use a .m4 file.
36872         * m4/exp.m4: New file.
36873         * modules/exp (Files): Add it.
36874         (configure.ac): Just invoke gl_FUNC_EXP.
36876 2011-10-08  Bruno Haible  <bruno@clisp.org>
36878         Tests for module 'sqrtf'.
36879         * modules/sqrtf-tests: New file.
36880         * tests/test-sqrtf.c: New file.
36882         New module 'sqrtf'.
36883         * lib/math.in.h (sqrtf): New declaration.
36884         * lib/sqrtf.c: New file.
36885         * m4/sqrtf.m4: New file.
36886         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
36887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
36888         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
36889         * modules/sqrtf: New file.
36890         * tests/test-math-c++.cc: Check the declaration of sqrtf.
36891         * doc/posix-functions/sqrtf.texi: Mention the new module.
36893 2011-10-08  Bruno Haible  <bruno@clisp.org>
36895         Tests: Avoid link failures w.r.t. libintl.
36896         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
36897         $(LIBINTL).
36898         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
36899         $(LIBINTL).
36900         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
36901         against $(LIBINTL).
36902         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
36903         $(LIBINTL).
36904         * modules/openat-tests (Makefile.am): Link test-fchmodat against
36905         $(LIBINTL).
36906         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
36908 2011-10-08  Bruno Haible  <bruno@clisp.org>
36910         pow tests: Defeat compiler optimizations.
36911         * tests/test-pow.c (main): Assign arguments to x and y before use.
36913 2011-10-08  Bruno Haible  <bruno@clisp.org>
36915         gnulib-tool: Improve last commit.
36916         * gnulib-tool (func_modules_transitive_closure): Simplify code.
36917         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
36918         ignore dependencies that are not among the modules list.
36920 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
36922         gnulib-tool: don't follow dependencies to avoided modules
36923         This fixes a bug that is related to the previous one.
36924         * gnulib-tool (func_modules_transitive_closure)
36925         (func_emit_autoconf_snippets):
36926         Check whether a dependency is acceptable before using it.
36927         (--extract-dependencies): Report an error if --avoid is also used,
36928         since this combination of options is not yet supported.
36930         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
36931         Problem reported by Peter Dyballa in
36932         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
36933         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
36934         when echoing "$condition".
36936 2011-10-07  Bruno Haible  <bruno@clisp.org>
36938         Fix documentation about math functions on MacOS X.
36939         * doc/posix-functions/exp2.texi: Don't say the function is missing on
36940         MacOS X 10.5.
36941         * doc/posix-functions/fdim.texi: Likewise.
36942         * doc/posix-functions/feclearexcept.texi: Likewise.
36943         * doc/posix-functions/fegetenv.texi: Likewise.
36944         * doc/posix-functions/fegetround.texi: Likewise.
36945         * doc/posix-functions/feholdexcept.texi: Likewise.
36946         * doc/posix-functions/feraiseexcept.texi: Likewise.
36947         * doc/posix-functions/fesetenv.texi: Likewise.
36948         * doc/posix-functions/fesetround.texi: Likewise.
36949         * doc/posix-functions/fetestexcept.texi: Likewise.
36950         * doc/posix-functions/feupdateenv.texi: Likewise.
36951         * doc/posix-functions/fmax.texi: Likewise.
36952         * doc/posix-functions/fmin.texi: Likewise.
36953         * doc/posix-functions/log2.texi: Likewise.
36954         * doc/posix-functions/modff.texi: Likewise.
36955         * doc/posix-functions/nan.texi: Likewise.
36956         * doc/posix-functions/nanf.texi: Likewise.
36957         * doc/posix-functions/nextafterf.texi: Likewise.
36958         * doc/posix-functions/remquo.texi: Likewise.
36960 2011-10-07  Bruno Haible  <bruno@clisp.org>
36962         modff: Drop assumption about library that defines modff.
36963         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
36964         AC_CHECK_FUNCS.
36965         * modules/modff (Files): Add m4/mathfunc.m4.
36967 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
36969         raise tests: Avoid a GCC warning.
36970         * tests/test-raise.c (handler): Use _Noreturn.
36972 2011-10-07  Bruno Haible  <bruno@clisp.org>
36974         Tests for module 'ldexpf'.
36975         * modules/ldexpf-tests: New file.
36976         * tests/test-ldexpf.c: New file.
36978         New module 'ldexpf'.
36979         * lib/math.in.h (ldexpf): New declaration.
36980         * lib/ldexpf.c: New file.
36981         * m4/ldexpf.m4: New file.
36982         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
36983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
36984         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
36985         * modules/ldexpf: New file.
36986         * tests/test-math-c++.cc: Check the declaration of ldexpf.
36987         * doc/posix-functions/ldexpf.texi: Mention the new module.
36989 2011-10-06  Bruno Haible  <bruno@clisp.org>
36991         frexpf: Work around problems on IRIX and mingw.
36992         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
36993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
36994         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
36995         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
36996         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
36997         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
36998         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
37000 2011-10-06  Bruno Haible  <bruno@clisp.org>
37002         fabsf: Drop assumption about library that defines fabsf.
37003         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
37004         AC_CHECK_FUNCS.
37005         * modules/fabsf (Files): Add m4/mathfunc.m4.
37007 2011-10-06  Bruno Haible  <bruno@clisp.org>
37009         frexpf: Drop assumption about library that defines frexpf.
37010         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
37011         'int *', 'float *', 'long double *', 'float', 'long double'.
37012         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
37013         AC_CHECK_FUNCS.
37014         * modules/frexpf (Files): Add m4/mathfunc.m4.
37016         Tests for module 'frexpf'.
37017         * modules/frexpf-tests: New file.
37018         * tests/test-frexpf.c: New file.
37020         New module 'frexpf'.
37021         * lib/math.in.h (frexpf): New declaration.
37022         * lib/frexpf.c: New file.
37023         * m4/frexpf.m4: New file.
37024         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
37025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
37026         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
37027         * modules/frexpf: New file.
37028         * tests/test-math-c++.cc: Check the declaration of frexpf.
37029         * doc/posix-functions/frexpf.texi: Mention the new module.
37031 2011-10-06  Bruno Haible  <bruno@clisp.org>
37033         math: Sort function declarations of math.in.h.
37034         * lib/math.in.h (frexp, logb): Move declarations.
37036 2011-10-05  Bruno Haible  <bruno@clisp.org>
37038         Tests for module 'modff'.
37039         * modules/modff-tests: New file.
37040         * tests/test-modff.c: New file.
37042         New module 'modff'.
37043         * lib/math.in.h (modff): New declaration.
37044         * lib/modff.c: New file.
37045         * m4/modff.m4: New file.
37046         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
37047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
37048         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
37049         * modules/modff: New file.
37050         * tests/test-math-c++.cc: Check the declaration of modff.
37051         * doc/posix-functions/modff.texi: Mention the new module.
37053         modf tests: Make test sharper.
37054         * tests/test-modf.c (main): Strengthen upper bound.
37056         modf: Use a .m4 file.
37057         * m4/modf.m4: New file.
37058         * modules/modf (Files): Add it.
37059         (configure.ac): Just invoke gl_FUNC_MODF.
37061 2011-10-05  Bruno Haible  <bruno@clisp.org>
37063         Tests for module 'fmodf'.
37064         * modules/fmodf-tests: New file.
37065         * tests/test-fmodf.c: New file.
37067         New module 'fmodf'.
37068         * lib/math.in.h (fmodf): New declaration.
37069         * lib/fmodf.c: New file.
37070         * m4/fmodf.m4: New file.
37071         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
37072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
37073         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
37074         * modules/fmodf: New file.
37075         * tests/test-math-c++.cc: Check the declaration of fmodf.
37076         * doc/posix-functions/fmodf.texi: Mention the new module.
37078         fmod: Use a .m4 file.
37079         * m4/fmod.m4: New file.
37080         * modules/fmod (Files): Add it.
37081         (configure.ac): Just invoke gl_FUNC_FMOD.
37083 2011-10-05  Bruno Haible  <bruno@clisp.org>
37085         Tests for module 'fabsf'.
37086         * modules/fabsf-tests: New file.
37087         * tests/test-fabsf.c: New file.
37089         New module 'fabsf'.
37090         * lib/math.in.h (fabsf): New declaration.
37091         * lib/fabsf.c: New file.
37092         * m4/fabsf.m4: New file.
37093         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
37094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
37095         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
37096         * modules/fabsf: New file.
37097         * tests/test-math-c++.cc: Check the declaration of fabsf.
37098         * doc/posix-functions/fabsf.texi: Mention the new module.
37100         fabs: Use a .m4 file.
37101         * m4/fabs.m4: New file.
37102         * modules/fabs (Files): Add it.
37103         (configure.ac): Just invoke gl_FUNC_FABS.
37105 2011-10-05  Jim Meyering  <meyering@redhat.com>
37107         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
37108         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
37109         ls -lL regression introduced in coreutils-8.12, it does so at the
37110         cost of an additional stat call in the common case.  Besides, now
37111         that the kernel change that prompted commit 95f7c57f has been reverted
37112         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
37113         we have no use for commit 95f7c57f, "file-has-acl: use
37114         acl_extended_file_nofollow if available".
37116 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
37118         file-has-acl: revert unintended change in behavior of ls -L
37119         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
37120         derived from...
37121         (file_has_acl): ...code here.  Call it.
37122         This problem was introduced with 2011-07-22 commit 95f7c57f,
37123         "file-has-acl: use acl_extended_file_nofollow if available".
37124         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
37126 2011-10-03  Bruno Haible  <bruno@clisp.org>
37128         poll: Avoid link errors on MSVC.
37129         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
37130         * modules/poll (Depends-on): Add sockets.
37131         (Link): New section.
37132         * NEWS: Mention the change.
37133         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
37134         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
37135         $(LIB_POLL) instead of $(LIBSOCKET).
37137 2011-10-03  Bruno Haible  <bruno@clisp.org>
37139         sys_select tests: Fix link error on MSVC 9.
37140         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
37141         with $(LIB_SELECT) instead of $(LIBSOCKET).
37143 2011-10-03  Bruno Haible  <bruno@clisp.org>
37145         sys_select: Fix compilation error on mingw.
37146         * lib/sys_select.in.h: On native Windows, include <io.h>.
37148 2011-10-03  Bruno Haible  <bruno@clisp.org>
37150         wmemset: Support for MSVC.
37151         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
37152         whether wmemset() exists.
37154 2011-10-03  Bruno Haible  <bruno@clisp.org>
37156         wmemmove: Support for MSVC.
37157         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
37158         whether wmemmove() exists.
37160 2011-10-03  Bruno Haible  <bruno@clisp.org>
37162         wmemcpy: Support for MSVC.
37163         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
37164         whether wmemcpy() exists.
37166 2011-10-03  Bruno Haible  <bruno@clisp.org>
37168         wmemcmp: Support for MSVC.
37169         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
37170         whether wmemcmp() exists.
37172 2011-10-03  Bruno Haible  <bruno@clisp.org>
37174         wmemchr: Support for MSVC.
37175         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
37176         whether wmemchr() exists.
37178 2011-10-03  Bruno Haible  <bruno@clisp.org>
37180         glthread/*, strsignal: Support for MSVC.
37181         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
37182         including <winsock.h> on MSVC 9.
37183         * lib/glthread/lock.h: Likewise.
37184         * lib/glthread/thread.h: Likewise.
37185         * lib/glthread/tls.h: Likewise.
37186         * lib/glthread/yield.h: Likewise.
37187         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
37188         if HAVE_UNISTD_H is false.
37189         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
37191 2011-10-03  Bruno Haible  <bruno@clisp.org>
37193         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
37194         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
37195         Set to 100000.
37197 2011-10-03  Bruno Haible  <bruno@clisp.org>
37199         acl: Fix specification.
37200         * lib/file-has-acl.c (file_has_acl): Fix specification.
37202 2011-10-03  Bruno Haible  <bruno@clisp.org>
37204         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
37205         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
37206         (compute_curr_prefix, shared_library_fullname,
37207         find_shared_library_fullname, get_shared_library_fullname, relocate):
37208         Use it together with PIC && INSTALLDIR.
37209         Reported by <jojelino@gmail.com>
37210         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
37212 2011-10-01  Jim Meyering  <meyering@redhat.com>
37214         maint.mk: adjust a release-related rule not to require use of gzip
37215         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
37216         Instead, check each file in $(DIST_ARCHIVES).  This is better for
37217         projects that build only .tar.xz files.  Also fix an erroneous test.
37219         test-linkat: don't leave behind a temporary file
37220         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
37221         Otherwise, coreutils' "make distcheck" would fail with this:
37222           Only in /c/cu/tests/torture/coreutils/test/\
37223             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
37224           make[2]: *** [my-distcheck] Error 1
37226         float, math: add omitted file
37227         * lib/itold.c: Add file, required for yesterday's float change.
37229 2011-10-01  Bruno Haible  <bruno@clisp.org>
37231         isinf: Fix for OpenBSD/x86.
37232         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
37233         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
37234         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
37236 2011-10-01  Bruno Haible  <bruno@clisp.org>
37238         isfinite: Fix syntax error in configure test.
37239         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
37241         isfinite: Fix typo.
37242         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
37243         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
37245 2011-10-01  Bruno Haible  <bruno@clisp.org>
37247         nonblocking tests: Fix test failure on Linux/IA-64.
37248         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
37249         Set to 270000.
37251 2011-10-01  Bruno Haible  <bruno@clisp.org>
37253         mkfifoat tests: Fix a test failure on mingw.
37254         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
37255         with error ENOSYS.
37257 2011-09-30  Bruno Haible  <bruno@clisp.org>
37259         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
37260         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
37261         'long double'. Set REPLACE_ITOLD.
37262         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
37263         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
37264         * lib/itold.c: New file.
37265         * modules/float (Files): Add lib/itold.c.
37266         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
37267         (Makefile.am): Substitute REPLACE_ITOLD.
37268         * modules/math (Depends-on): Add float.
37269         (Makefile.am): Substitute REPLACE_ITOLD.
37270         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
37271         * doc/posix-headers/math.texi: Likewise.
37272         * doc/posix-functions/logl.texi: Likewise.
37274 2011-09-30  Bruno Haible  <bruno@clisp.org>
37276         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
37277         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
37278         Set to 140000.
37280 2011-09-30  Bruno Haible  <bruno@clisp.org>
37282         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
37283         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
37284         invocation, say "right after AC_PROG_CC_STDC", not "right after
37285         AC_PROG_CC".
37286         Reported by Gary V. Vaughan <gary@gnu.org>.
37288 2011-09-30  Bruno Haible  <bruno@clisp.org>
37290         Centralize C99 requirement.
37291         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
37292         * modules/stdarg (configure.ac-early): Invoke it instead of
37293         AC_PROG_CC_STDC.
37294         Reported by Gary V. Vaughan and Paul Eggert.
37296 2011-09-29  Bruno Haible  <bruno@clisp.org>
37298         float: Fix LDBL_MAX value on Linux/PowerPC.
37299         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
37300         on Linux/PowerPC.
37301         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
37302         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
37303         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
37304         platform.
37305         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
37307 2011-09-29  Bruno Haible  <bruno@clisp.org>
37309         doc: Improve doc about gl_EARLY.
37310         * doc/gnulib-tool.texi (Initial import): Mention where to place an
37311         AC_PROG_CC_STDC invocation.
37312         Reported by Gary V. Vaughan <gary@gnu.org>.
37314 2011-09-28  Bruno Haible  <bruno@clisp.org>
37316         fgetc, fputc, fread, fwrite tests: Fix link error.
37317         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
37318         on non-MSVC platforms.
37319         * tests/test-fputc.c (main): Likewise.
37320         * tests/test-fread.c (main): Likewise.
37321         * tests/test-fwrite.c (main): Likewise.
37322         Reported by Jim Meyering.
37324 2011-09-27  Bruno Haible  <bruno@clisp.org>
37326         fputc, fwrite tests: Avoid test failure on MSVC.
37327         * tests/test-fgetc.c: Include msvc-inval.h.
37328         (main): Invoke gl_msvc_inval_ensure_handler.
37329         * tests/test-fputc.c: Include msvc-inval.h.
37330         (main): Invoke gl_msvc_inval_ensure_handler.
37331         * tests/test-fread.c: Include msvc-inval.h.
37332         (main): Invoke gl_msvc_inval_ensure_handler.
37333         * tests/test-fwrite.c: Include msvc-inval.h.
37334         (main): Invoke gl_msvc_inval_ensure_handler.
37335         * modules/fgetc-tests (Depends-on): Add msvc-inval.
37336         * modules/fputc-tests (Depends-on): Likewise.
37337         * modules/fread-tests (Depends-on): Likewise.
37338         * modules/fwrite-tests (Depends-on): Likewise.
37340 2011-09-27  Bruno Haible  <bruno@clisp.org>
37342         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
37343         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
37344         (raise): Remove older, duplicated declaration.
37345         (_gl_raise_SIGPIPE): New declaration.
37346         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
37347         (rpl_raise): Remove function.
37348         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
37349         a gnulib-defined SIGPIPE here.
37350         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
37351         'sigprocmask' has detected missing signal-blocking and the module
37352         'sigpipe' is enabled.
37353         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
37355 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
37357         base64-tests: avoid memory leak
37358         * tests/test-base64.c (main): Plug memory leak.
37360         base32: new module
37361         * modules/base32: New module.
37362         * lib/base32.c: New file.
37363         * lib/base32.h: Likewise.
37364         * m4/base32.m4: Likewise.
37365         * modules/base32-tests: New test.
37366         * tests/test-base32.c: Likewise.
37367         * MODULES.html.sh (Misc): Mention it.
37369 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37371         gnulib: use more-standard license notice wording
37372         * gnulib-tool (func_emit_copyright_notice): When emitting a
37373         license notice into a file, use the standard wording as suggested
37374         by the current information for GNU maintainers, except say "file"
37375         rather than "program".  The new wording gives a license version
37376         number, which addresses an issue raised by Glenn Morris in
37377         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
37378         * m4/onceonly.m4: Use that same wording here, too.
37380         dup2: minor simplification
37381         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
37382         as lib/dup2.c no longer uses 'inline'.
37384 2011-09-25  Bruno Haible  <bruno@clisp.org>
37386         strings: Fix compilation error on MSVC.
37387         * lib/strings.in.h: Include <stddef.h> for size_t.
37389 2011-09-25  Bruno Haible  <bruno@clisp.org>
37391         fflush et al.: Document limitation on MSVC.
37392         * doc/posix-functions/fflush.texi: Document possible crash in handling
37393         mode other than DEFAULT_HANDLING.
37394         * doc/posix-functions/fgetc.texi: Likewise.
37395         * doc/posix-functions/fputc.texi: Likewise.
37396         * doc/posix-functions/fread.texi: Likewise.
37397         * doc/posix-functions/fwrite.texi: Likewise.
37399 2011-09-25  Bruno Haible  <bruno@clisp.org>
37401         msvc-inval: Allow three invalid parameter handling modes.
37402         * lib/msvc-inval.h: Don't include <stdlib.h> here.
37403         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
37404         macros.
37405         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
37406         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
37407         SANE_LIBRARY_HANDLING as a no-op.
37408         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
37409         <stdlib.h>.
37410         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
37412 2011-09-25  Bruno Haible  <bruno@clisp.org>
37414         msvc-inval: Make handler multithread-safe.
37415         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
37416         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
37417         declarations.
37418         (gl_msvc_inval_current): New declaration.
37419         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
37420         Operate on the structure returned by gl_msvc_inval_current().
37421         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
37422         Remove varaiables.
37423         (tls_index, tls_initialized): New variables.
37424         (not_per_thread): New variable.
37425         (gl_msvc_inval_current): New function.
37426         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
37427         returned by gl_msvc_inval_current().
37429 2011-09-25  Bruno Haible  <bruno@clisp.org>
37431         msvc-inval: Install handler globally.
37432         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
37433         !_MSC_VER.
37434         (gl_msvc_invalid_parameter_handler): Remove declaration.
37435         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
37436         declarations.
37437         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
37438         Install the handler globally, don't uninstall it.
37439         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
37440         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
37441         currently valid, call RaiseException instead.
37442         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
37443         for !_MSC_VER.
37445 2011-09-25  Bruno Haible  <bruno@clisp.org>
37447         strerror_r-posix: Fix for MSVC 9.
37448         * lib/strerror_r.c (local_snprintf): New function.
37449         (snprintf): Define to local_snprintf, not to _snprintf.
37451 2011-09-25  Bruno Haible  <bruno@clisp.org>
37453         ftruncate: Support for MSVC 9.
37454         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
37455         (chsize_nothrow): New function.
37456         (chsize): Redefine as a macro.
37457         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
37458         * modules/ftruncate (Depends-on): Add msvc-inval.
37460 2011-09-25  Bruno Haible  <bruno@clisp.org>
37462         New module 'fstat'.
37463         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
37464         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
37465         * lib/fchdir.c (rpl_fstat): Remove function.
37466         * m4/fstat.m4: New file.
37467         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
37468         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
37469         declared.
37470         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
37471         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
37472         * modules/fstat: New file.
37473         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
37474         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
37475         is set.
37476         * doc/posix-functions/fstat.texi: Mention the new module and the
37477         problem on MSVC.
37478         * NEWS: Mention the change.
37479         * modules/acl (Depends-on): Add fstat.
37480         * modules/chdir-safer (Depends-on): Likewise.
37481         * modules/chown (Depends-on): Likewise.
37482         * modules/copy-file (Depends-on): Likewise.
37483         * modules/fchdir (Depends-on): Likewise.
37484         * modules/fdopendir (Depends-on): Likewise.
37485         * modules/fopen (Depends-on): Likewise.
37486         * modules/fts (Depends-on): Likewise.
37487         * modules/getcwd (Depends-on): Likewise.
37488         * modules/isapipe (Depends-on): Likewise.
37489         * modules/linkat (Depends-on): Likewise.
37490         * modules/lseek (Depends-on): Likewise.
37491         * modules/mkdir-p (Depends-on): Likewise.
37492         * modules/open (Depends-on): Likewise.
37493         * modules/openat (Depends-on): Likewise.
37494         * modules/read-file (Depends-on): Likewise.
37495         * modules/renameat (Depends-on): Likewise.
37496         * modules/utimens (Depends-on): Likewise.
37498 2011-09-25  Bruno Haible  <bruno@clisp.org>
37500         linkat: Fix compilation on MSVC 9.
37501         * lib/linkat.c: Don't include <stdint.h>.
37503 2011-09-25  Bruno Haible  <bruno@clisp.org>
37505         fclose: Support for MSVC 9.
37506         * lib/fclose.c: Include msvc-inval.h.
37507         (fclose_nothrow): New function.
37508         (rpl_fclose): Use it.
37509         * modules/fclose (Depends-on): Add msvc-inval.
37510         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
37512 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
37514         dup2: minor simplifications
37515         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
37516         that it's a performance win.
37517         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
37518         ! defined __CYGWIN__)" to "ifdef F_GETFL".
37520 2011-09-24  Jim Meyering  <meyering@redhat.com>
37522         test-futimens: avoid a warning from gcc -Wshadow
37523         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
37524         to avoid a shadowing warning.
37526 2011-09-24  Bruno Haible  <bruno@clisp.org>
37528         fdopen: Support for MSVC 9.
37529         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
37530         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
37531         * lib/fdopen.c: Include msvc-inval.h.
37532         (fdopen_nothrow): New function.
37533         (rpl_fdopen): Use it.
37534         * modules/fdopen (Depends-on): Add msvc-inval.
37535         * modules/fclose-tests (Depends-on): Add fdopen.
37536         * modules/fflush-tests (Depends-on): Likewise.
37537         * modules/fgetc-tests (Depends-on): Likewise.
37538         * modules/fputc-tests (Depends-on): Likewise.
37539         * modules/fread-tests (Depends-on): Likewise.
37540         * modules/freopen-tests (Depends-on): Likewise.
37541         * modules/fseeko-tests (Depends-on): Likewise.
37542         * modules/ftello-tests (Depends-on): Likewise.
37543         * modules/fwrite-tests  (Depends-on): Likewise.
37544         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
37546 2011-09-24  Bruno Haible  <bruno@clisp.org>
37548         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
37549         * modules/fgetc-tests (Depends-on): Add unistd.
37550         * modules/fputc-tests (Depends-on): Likewise.
37551         * modules/fread-tests (Depends-on): Likewise.
37552         * modules/fwrite-tests (Depends-on): Likewise.
37554 2011-09-24  Bruno Haible  <bruno@clisp.org>
37556         dup: Simplify autoconf test.
37557         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
37558         on gl_MSVC_INVAL's result.
37560 2011-09-24  Bruno Haible  <bruno@clisp.org>
37562         Tests for function fwrite().
37563         * modules/fwrite-tests: New file.
37564         * tests/test-fwrite.c: New file.
37565         * modules/stdio-tests (Depends-on): Add fwrite-tests.
37567         Tests for function fread().
37568         * modules/fread-tests: New file.
37569         * tests/test-fread.c: New file.
37570         * modules/stdio-tests (Depends-on): Add fread-tests.
37572         Activate fputc tests.
37573         * modules/stdio-tests (Depends-on): Add fputc-tests.
37575         Enhance fgetc, fputc tests.
37576         * tests/test-fgetc.c (main): Also test the stream's error indicator.
37577         * tests/test-fputc.c (main): Likewise.
37579 2011-09-24  Bruno Haible  <bruno@clisp.org>
37581         write: Support for MSVC 9.
37582         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
37583         is not 1.
37584         * lib/write.c (write_nothrow): New function.
37585         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
37586         not 1. Use write_nothrow.
37587         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
37588         invalid parameter handler.
37589         (gl_PREREQ_WRITE): New macro.
37590         * modules/write (Depends-on): Add msvc-inval.
37591         (configure.ac): Invoke gl_PREREQ_WRITE.
37592         * doc/posix-functions/write.texi: Mention the problem on MSVC.
37594 2011-09-24  Bruno Haible  <bruno@clisp.org>
37596         read: Fix last commit.
37597         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
37599 2011-09-24  Bruno Haible  <bruno@clisp.org>
37601         dup2: Fix last commit.
37602         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
37603         (rpl_dup2): Disable fcntl workaround on native Windows.
37605         sigprocmask: Make code safer.
37606         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
37607         section that changes macro definitions for this compilation unit.
37609 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
37611         dup2: clarify by coalescing Windows-specific material
37612         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
37613         "msvc-nothrow.h"' to the Windows-specific section, so that the
37614         Emacs source need not contain these include files.
37615         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
37616         Windows-specific fixes into this function rather than just the
37617         nothrow fix, as this shortens and clarifies the code.  Always
37618         define as a function, as that's a bit cleaner than having it be
37619         sometimes a function and sometimes a macro.
37620         (rpl_dup2): Move the Windows-specific stuff out of here and into
37621         ms_windows_dup2.  Don't protect the Haiku-related fix with
37622         "#if !defined __linux__", as the same code also works around
37623         a Linux kernel bug, and it doesn't add any system calls on any
37624         platform.  Add comment about FreeBSD 6.1.
37626         sigprocmask: move #include directive
37627         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
37628         Windows-specific section, so that the Emacs source need not
37629         contain msvc-inval.h.
37631 2011-09-23  Bruno Haible  <bruno@clisp.org>
37633         read: Support for MSVC 9.
37634         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
37635         is not 1.
37636         * lib/read.c (read_nothrow): New function.
37637         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
37638         read_nothrow.
37639         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
37640         invalid parameter handler.
37641         (gl_PREREQ_READ): New macro.
37642         * modules/read (Depends-on): Add msvc-inval.
37643         (configure.ac): Invoke gl_PREREQ_READ.
37644         * doc/posix-functions/read.texi: Mention the problem on MSVC.
37646 2011-09-23  Bruno Haible  <bruno@clisp.org>
37648         close: Support for MSVC 9.
37649         * lib/close.c: Include <errno.h>, msvc-inval.h.
37650         (close_nothrow): New function.
37651         (rpl_close): Use it.
37652         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
37653         invalid parameter handler.
37654         * modules/close (Depends-on): Add msvc-inval.
37655         * modules/dup2-tests (Depends-on): Add close.
37656         * modules/dup3-tests (Depends-on): Likewise.
37657         * modules/fcntl-tests (Depends-on): Likewise.
37658         * modules/spawn-pipe-tests (Depends-on): Likewise.
37659         * modules/unistd-safer-tests (Depends-on): Likewise.
37660         * doc/posix-functions/close.texi: Mention the problem on MSVC.
37662 2011-09-23  Bruno Haible  <bruno@clisp.org>
37664         New module 'dup'.
37665         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
37666         Allow replacement.
37667         * lib/dup.c: New file.
37668         * lib/fchdir.c (rpl_dup): Remove function.
37669         * m4/dup.m4: New file.
37670         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
37671         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
37672         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
37673         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
37674         * modules/dup: New file.
37675         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
37676         'dup' module is in use.
37677         * modules/fdopendir (Depends-on): Add dup.
37678         * modules/fdutimensat-tests (Depends-on): Likewise.
37679         * modules/fts (Depends-on): Likewise.
37680         * modules/futimens-tests (Depends-on): Likewise.
37681         * modules/posix_spawnp-tests (Depends-on): Likewise.
37682         * modules/unistd-safer-tests (Depends-on): Likewise.
37683         * modules/utimens-tests (Depends-on): Likewise.
37684         * doc/posix-functions/dup.texi: Mention the new module and the problem
37685         on MSVC.
37687 2011-09-23  Bruno Haible  <bruno@clisp.org>
37689         getdtablesize: Support for MSVC 9.
37690         * lib/getdtablesize.c: Include msvc-inval.h.
37691         (_setmaxstdio_nothrow): New function.
37692         (_setmaxstdio): Redefine it.
37693         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
37694         * modules/getdtablesize (Depends-on): Add msvc-inval.
37695         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
37697 2011-09-23  Bruno Haible  <bruno@clisp.org>
37699         signal-h: Rename from signal.
37700         * modules/signal-h: Renamed from modules/signal.
37701         * modules/pthread_sigmask (Depends-on): Update.
37702         * modules/raise (Depends-on): Likewise.
37703         * modules/sigaction (Depends-on): Likewise.
37704         * modules/sigpipe (Depends-on): Likewise.
37705         * modules/sigprocmask (Depends-on): Likewise.
37706         * modules/sys_select (Depends-on): Likewise.
37707         * modules/signal-h-tests: Renamed from modules/signal-tests.
37708         (Files, Depends-on, Makefile.am): Update.
37709         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
37710         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
37711         (Files, Makefile.am): Update.
37712         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
37713         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
37714         * modules/signal: New placeholder file.
37715         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
37716         * doc/posix-headers/signal.texi: Update.
37717         * NEWS: Mention the change.
37719 2011-09-23  Bruno Haible  <bruno@clisp.org>
37721         sigprocmask: Avoid crashes through signal() on MSVC 9.
37722         * lib/sigprocmask.c: Include msvc-inval.h.
37723         (signal_nothrow): New function.
37724         (signal): Redefine it.
37725         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
37726         * modules/sigprocmask (Depends-on): Add msvc-inval.
37727         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
37729 2011-09-23  Bruno Haible  <bruno@clisp.org>
37731         Tests for module 'raise'.
37732         * modules/raise-tests: New file.
37733         * tests/test-raise.c: New file.
37735         raise: Support for MSVC.
37736         * lib/signal.in.h (raise): New declaration.
37737         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
37738         for native Windows platforms.
37739         * m4/raise.m4: New file.
37740         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
37741         HAVE_RAISE, REPLACE_RAISE.
37742         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
37743         REPLACE_RAISE.
37744         * modules/raise (Status, Notice): Remove fields.
37745         (Files): Add m4/raise.m4.
37746         (Depends-on): Add signal, msvc-inval.
37747         (configure.ac): Use the common idioms.
37748         (Maintainer): Add me.
37749         * tests/test-signal-c++.cc: Check the signature of raise.
37750         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
37752 2011-09-23  Bruno Haible  <bruno@clisp.org>
37754         pipe2: Fix compilation on pre-C99 compilers.
37755         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
37757 2011-09-23  Bruno Haible  <bruno@clisp.org>
37759         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
37760         * lib/msvc-nothrow.h: New file.
37761         * lib/msvc-nothrow.c: New file.
37762         * m4/msvc-nothrow.m4: New file.
37763         * modules/msvc-nothrow: New file.
37764         * lib/dup2.c: Include msvc-nothrow.h.
37765         (rpl_dup2): No need to protect _get_osfhandle call here.
37766         * lib/accept4.c: Include msvc-nothrow.h.
37767         * lib/error.c: Likewise.
37768         * lib/fcntl.c: Likewise.
37769         * lib/lseek.c: Likewise.
37770         * lib/nonblocking.c: Likewise.
37771         * lib/poll.c: Likewise.
37772         * lib/read.c: Likewise.
37773         * lib/select.c: Likewise.
37774         * lib/sockets.h: Likewise.
37775         * lib/sockets.c: Likewise.
37776         * lib/stdio-read.c: Likewise.
37777         * lib/stdio-write.c: Likewise.
37778         * lib/write.c: Likewise.
37779         * lib/w32sock.h: Likewise.
37780         * lib/w32spawn.h: Likewise.
37781         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
37782         * lib/fsync.c: Likewise.
37783         * lib/isapipe.c: Likewise.
37784         * modules/dup2 (Depends-on): Add msvc-nothrow.
37785         * modules/accept4 (Depends-on): Likewise.
37786         * modules/error (Depends-on): Likewise.
37787         * modules/fcntl (Depends-on): Likewise.
37788         * modules/lseek (Depends-on): Likewise.
37789         * modules/nonblocking (Depends-on): Likewise.
37790         * modules/poll (Depends-on): Likewise.
37791         * modules/read (Depends-on): Likewise.
37792         * modules/select (Depends-on): Likewise.
37793         * modules/sockets (Depends-on): Likewise.
37794         * modules/sigpipe (Depends-on): Likewise.
37795         * modules/write (Depends-on): Likewise.
37796         * modules/accept (Depends-on): Likewise.
37797         * modules/bind (Depends-on): Likewise.
37798         * modules/connect (Depends-on): Likewise.
37799         * modules/gethostname (Depends-on): Likewise.
37800         * modules/getpeername (Depends-on): Likewise.
37801         * modules/getsockname (Depends-on): Likewise.
37802         * modules/getsockopt (Depends-on): Likewise.
37803         * modules/ioctl (Depends-on): Likewise.
37804         * modules/listen (Depends-on): Likewise.
37805         * modules/recv (Depends-on): Likewise.
37806         * modules/recvfrom (Depends-on): Likewise.
37807         * modules/send (Depends-on): Likewise.
37808         * modules/sendto (Depends-on): Likewise.
37809         * modules/setsockopt (Depends-on): Likewise.
37810         * modules/shutdown (Depends-on): Likewise.
37811         * modules/socket (Depends-on): Likewise.
37812         * modules/execute (Depends-on): Likewise.
37813         * modules/spawn-pipe (Depends-on): Likewise.
37814         * modules/flock (Depends-on): Likewise.
37815         * modules/fsync (Depends-on): Likewise.
37816         * modules/isapipe (Depends-on): Likewise.
37817         * tests/test-cloexec.c: Include msvc-nothrow.h.
37818         * tests/test-dup-safer.c: Likewise.
37819         * tests/test-dup2.c: Likewise.
37820         * tests/test-dup3.c: Likewise.
37821         * tests/test-fcntl.c: Likewise.
37822         * tests/test-pipe.c: Likewise.
37823         * tests/test-pipe2.c: Likewise.
37824         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
37825         * modules/unistd-safer-tests (Depends-on): Likewise.
37826         * modules/dup2-tests (Depends-on): Likewise.
37827         * modules/dup3-tests (Depends-on): Likewise.
37828         * modules/fcntl-tests (Depends-on): Likewise.
37829         * modules/pipe-posix-tests (Depends-on): Likewise.
37830         * modules/pipe2-tests (Depends-on): Likewise.
37832 2011-09-23  Bruno Haible  <bruno@clisp.org>
37834         dup2: Make code more maintainable.
37835         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
37836         (rpl_dup2): Use it.
37837         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
37838         * modules/dup2 (configure.ac): Invoke it.
37839         Reported by Paul Eggert.
37841 2011-09-23  Bruno Haible  <bruno@clisp.org>
37843         msvc-inval: Fix compilation error.
37844         * lib/msvc-inval.h: Include <excpt.h>.
37846 2011-09-23  Bruno Haible  <bruno@clisp.org>
37848         mkdir: Tweak for MSVC 9.
37849         * lib/sys_stat.in.h: Update comments.
37850         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
37852         Tests for module 'chdir'.
37853         * modules/chdir-tests: New file.
37854         * tests/test-chdir.c: New file.
37856         New module 'chdir'.
37857         * modules/chdir: New file.
37858         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
37859         (chdir): New declaration.
37860         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
37861         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
37862         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
37863         * tests/test-unistd-c++.cc: Check signature of chdir.
37864         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
37865         * modules/chdir-long (Depends-on): Add chdir.
37866         * modules/fchdir (Depends-on): Likewise.
37867         * modules/rename (Depends-on): Likewise.
37868         * modules/savewd (Depends-on): Likewise.
37870         rmdir: Support for mingw, MSVC 9.
37871         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
37872         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
37874         getcwd: Tweak for MSVC 9.
37875         * lib/unistd.in.h: Update comments.
37876         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
37878 2011-09-22  Bruno Haible  <bruno@clisp.org>
37880         strerror_r-posix: Avoid a link error on MSVC.
37881         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
37882         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
37884 2011-09-22  Bruno Haible  <bruno@clisp.org>
37886         select: Avoid link errors on MSVC.
37887         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
37888         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
37889         * modules/pselect (Link): Likewise.
37890         * NEWS: Mention the change.
37891         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
37892         test-select-stdin against $(LIB_SELECT).
37893         * modules/pselect-tests (Makefile.am): Link test-pselect against
37894         $(LIB_SELECT).
37896 2011-09-22  Bruno Haible  <bruno@clisp.org>
37898         select: Avoid compilation error on MSVC.
37899         * lib/select.c: Don't include <stdbool.h>.
37901 2011-09-21  Bruno Haible  <bruno@clisp.org>
37903         Consolidate all uses of PATH_MAX in *.m4 files.
37904         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
37905         macros.
37906         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
37907         and gl_PATHMAX_SNIPPET.
37908         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
37909         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
37910         * modules/chdir-long (Files): Add m4/pathmax.m4.
37911         * modules/getcwd (Files): Likewise.
37913 2011-09-21  Bruno Haible  <bruno@clisp.org>
37915         ftruncate: Un-deprecate, concentrate on Win32 support.
37916         * modules/ftruncate (Status, Notice): Remove sections.
37917         (Depends-on): Add largefile.
37918         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
37919         non-mingw platforms.
37920         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
37921         include <io.h>.
37922         * modules/perror-tests (Depends-on): Add ftruncate.
37923         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
37924         'ftruncate' module.
37926 2011-09-21  Bruno Haible  <bruno@clisp.org>
37928         Add dependencies to new dirent related modules.
37929         * modules/opendir (Depends-on): Add closedir.
37930         * modules/getcwd (Depends-on): Add opendir, closedir.
37931         * modules/dirent-safer-tests (Depends-on): Likewise.
37932         * modules/fdopendir-tests (Depends-on): Likewise.
37933         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
37934         * modules/renameat-tests (Depends-on): Likewise.
37936 2011-09-21  Bruno Haible  <bruno@clisp.org>
37938         opendir: Avoid compilation error on mingw.
37939         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
37940         * modules/opendir (Depends-on): Add unistd.
37942 2011-09-21  Bruno Haible  <bruno@clisp.org>
37944         ftruncate tests: Avoid a test failure on mingw.
37945         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
37947 2011-09-21  Bruno Haible  <bruno@clisp.org>
37949         select tests: Avoid test failures on OSF/1 5.1 and mingw.
37950         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
37951         native Windows.
37953 2011-09-21  Bruno Haible  <bruno@clisp.org>
37955         New module 'fdopen'.
37956         * lib/stdio.in.h (fdopen): New declaration.
37957         * lib/fdopen.c: New file.
37958         * m4/fdopen.m4: New file.
37959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
37960         REPLACE_FDOPEN.
37961         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
37962         REPLACE_FDOPEN.
37963         * modules/fdopen: New file.
37964         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
37965         * tests/test-stdio-c++.cc: Check signature of fdopen.
37966         * doc/posix-functions/fdopen.texi: Mention the new module.
37968 2011-09-21  Bruno Haible  <bruno@clisp.org>
37970         unlockpt tests: Avoid test failure on NetBSD 5.1.
37971         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
37972         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
37974 2011-09-21  Bruno Haible  <bruno@clisp.org>
37976         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
37977         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
37978         * tests/test-getlogin_r.c (main): Likewise.
37980 2011-09-20  Bruno Haible  <bruno@clisp.org>
37982         time tests: Don't require pid_t.
37983         * doc/posix-headers/time.texi: Revert last change.
37984         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
37985         * tests/test-time.c: Comment out the check for pid_t.
37987 2011-09-20  Bruno Haible  <bruno@clisp.org>
37989         fsync tests: Avoid a test failure on mingw.
37990         * tests/test-fsync.c (main): Allow a failure with EIO.
37992 2011-09-20  Bruno Haible  <bruno@clisp.org>
37994         euidaccess: Update comments.
37995         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
37997 2011-09-20  Bruno Haible  <bruno@clisp.org>
37999         Ensure EBADF returns for socket functions on mingw.
38000         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
38001         descriptor is invalid.
38002         * lib/bind.c (rpl_bind): Likewise.
38003         * lib/connect.c (rpl_connect): Likewise.
38004         * lib/getpeername.c (rpl_getpeername): Likewise.
38005         * lib/getsockname.c (rpl_getsockname): Likewise.
38006         * lib/getsockopt.c (rpl_getsockopt): Likewise.
38007         * lib/listen.c (rpl_listen): Likewise.
38008         * lib/recv.c (rpl_recv): Likewise.
38009         * lib/recvfrom.c (rpl_recvfrom): Likewise.
38010         * lib/send.c (rpl_send): Likewise.
38011         * lib/sendto.c (rpl_sendto): Likewise.
38012         * lib/setsockopt.c (rpl_setsockopt): Likewise.
38013         * lib/shutdown.c (rpl_shutdown): Likewise.
38015 2011-09-20  Bruno Haible  <bruno@clisp.org>
38017         select tests: EBADF tests.
38018         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
38019         test_bad_fd): New functions.
38020         (test_function): Invoke also test_bad_fd.
38022 2011-09-20  Bruno Haible  <bruno@clisp.org>
38024         Tests for module 'posix_spawn_file_actions_addopen.
38025         * modules/posix_spawn_file_actions_addopen-tests: New file.
38026         * tests/test-posix_spawn_file_actions_addopen.c: New file.
38028         Tests for module 'posix_spawn_file_actions_adddup2'.
38029         * modules/posix_spawn_file_actions_adddup2-tests: New file.
38030         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
38032         Tests for module 'posix_spawn_file_actions_addclose'.
38033         * modules/posix_spawn_file_actions_addclose-tests: New file.
38034         * tests/test-posix_spawn_file_actions_addclose.c: New file.
38036 2011-09-20  Bruno Haible  <bruno@clisp.org>
38038         Tests for module 'unlockpt'.
38039         * modules/unlockpt-tests: New file.
38040         * tests/test-unlockpt.c: New file.
38041         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
38043         Tests for module 'grantpt'.
38044         * modules/grantpt-tests: New file.
38045         * tests/test-grantpt.c: New file.
38046         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
38048 2011-09-20  Bruno Haible  <bruno@clisp.org>
38050         freopen tests: EBADF tests.
38051         * tests/test-freopen.c: Include errno.h, unistd.h.
38052         (main): Add tests for EBADF, commented out for the moment.
38054         fclose tests: EBADF tests.
38055         * tests/test-fclose.c (main): Add tests for EBADF.
38057         fflush tests: EBADF tests.
38058         * tests/test-fflush.c: Include errno.h, macros.h.
38059         (main): Add tests for EBADF.
38061         ftello tests: EBADF tests.
38062         * tests/test-ftello4.sh: New file.
38063         * tests/test-ftello4.c: New file.
38064         * modules/ftello-tests (Files): Add them.
38065         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
38067         fseeko tests: EBADF tests.
38068         * tests/test-fseeko4.sh: New file.
38069         * tests/test-fseeko4.c: New file.
38070         * modules/fseeko-tests (Files): Add them.
38071         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
38073         Tests for function fputc().
38074         * modules/fputc-tests: New file.
38075         * tests/test-fputc.c: New file.
38076         * modules/stdio-tests (Depends-on): Add fputc-tests.
38078         Tests for function fgetc().
38079         * modules/fgetc-tests: New file.
38080         * tests/test-fgetc.c: New file.
38081         * modules/stdio-tests (Depends-on): Add fgetc-tests.
38083         Tests for function fdopen().
38084         * modules/fdopen-tests: New file.
38085         * tests/test-fdopen.c: New file.
38086         * modules/stdio-tests (Depends-on): Add fdopen-tests.
38088         Tests for module 'vdprintf'.
38089         * modules/vdprintf-tests: New file.
38090         * tests/test-vdprintf.c: New file.
38092         Tests for module 'dprintf'.
38093         * modules/dprintf-tests: New file.
38094         * tests/test-dprintf.c: New file.
38096 2011-09-20  Bruno Haible  <bruno@clisp.org>
38098         Tests for module 'ioctl'.
38099         * modules/ioctl-tests: New file.
38100         * tests/test-ioctl.c: New file.
38102 2011-09-20  Bruno Haible  <bruno@clisp.org>
38104         fcntl tests: EBADF tests.
38105         * tests/test-fcntl.c (main): Add more tests for EBADF.
38107 2011-09-20  Bruno Haible  <bruno@clisp.org>
38109         utimensat tests: EBADF tests.
38110         * tests/test-utimensat.c (main): Add tests for EBADF.
38112         renameat tests: EBADF tests.
38113         * tests/test-renameat.c (main): Add tests for EBADF.
38115         mkfifoat tests: EBADF tests.
38116         * tests/test-mkfifoat.c (main): Add tests for EBADF.
38118         readlinkat tests: EBADF tests.
38119         * tests/test-readlinkat.c (main): Add tests for EBADF.
38121         symlinkat tests: EBADF tests.
38122         * tests/test-symlinkat.c (main): Add tests for EBADF.
38124         linkat tests: EBADF tests.
38125         * tests/test-linkat.c (main): Add tests for EBADF.
38127         Tests for module 'faccessat'.
38128         * modules/faccessat-tests: New file.
38129         * tests/test-faccessat.c: New file.
38131         fdopendir tests: EBADF tests.
38132         * tests/test-fdopendir.c (main): Add more tests for EBADF.
38134         openat tests: EBADF tests.
38135         * tests/test-fchownat.c (main): Add tests for EBADF.
38136         * tests/test-fstatat.c (main): Likewise.
38137         * tests/test-mkdirat.c (main): Likewise.
38138         * tests/test-openat.c (main): Likewise.
38139         * tests/test-unlinkat.c (main): Likewise.
38140         * tests/test-fchmodat.c: New file.
38141         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
38142         (Makefile.am): Also run 'test-fchmodat'.
38144 2011-09-20  Bruno Haible  <bruno@clisp.org>
38146         utimens, futimens, fdutimensat tests: EBADF tests.
38147         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
38149         Tests for function fstat().
38150         * modules/fstat-tests: New file.
38151         * tests/test-fstat.c: New file.
38152         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
38154 2011-09-20  Bruno Haible  <bruno@clisp.org>
38156         test-ttyname_r tests: EBADF tests.
38157         * tests/test-ttyname_r.c (main): Add tests for EBADF.
38159         Tests for module 'isatty'.
38160         * modules/isatty-tests: New file.
38161         * tests/test-isatty.c: New file.
38163         Tests for module 'write'.
38164         * modules/write-tests: New file.
38165         * tests/test-write.c: New file.
38167         Tests for module 'read'.
38168         * modules/read-tests: New file.
38169         * tests/test-read.c: New file.
38171         pwrite tests: EBADF tests.
38172         * tests/test-pwrite.c (main): Add tests for EBADF.
38174         pread tests: EBADF tests.
38175         * tests/test-pread.c (main): Add tests for EBADF.
38177         lseek tests: EBADF tests.
38178         * tests/test-lseek.c (main): Add more tests for EBADF.
38180         Tests for module 'ftruncate'.
38181         * modules/ftruncate-tests: New file.
38182         * tests/test-ftruncate.sh: New file.
38183         * tests/test-ftruncate.c: New file.
38185         fsync tests: EBADF tests.
38186         * tests/test-fsync.c (main): Add more tests for EBADF.
38188         fdatasync tests: EBADF tests.
38189         * tests/test-fdatasync.c (main): Add more tests for EBADF.
38191         Tests for module 'fchown'.
38192         * modules/fchown-tests: New file.
38193         * tests/test-fchown.c: New file.
38195         Tests for module 'fchmod'.
38196         * modules/fchmod-tests: New file.
38197         * tests/test-fchmod.c: New file.
38199         fchdir tests: EBADF tests.
38200         * tests/test-fchdir.c (main): Add more tests for EBADF.
38202         dup2 tests: EBADF tests.
38203         * tests/test-dup2.c (main): Add more tests for EBADF.
38205         Tests for module 'dup'.
38206         * modules/dup-tests: New file.
38207         * tests/test-dup.c: New file.
38209         Tests for module 'close'.
38210         * modules/close-tests: New file.
38211         * tests/test-close.c: New file.
38213 2011-09-20  Bruno Haible  <bruno@clisp.org>
38215         Tests for module 'shutdown'.
38216         * modules/shutdown-tests: New file.
38217         * tests/test-shutdown.c: New file.
38219         Tests for module 'setsockopt'.
38220         * modules/setsockopt-tests: New file.
38221         * tests/test-setsockopt.c: New file.
38223         Tests for module 'sendto'.
38224         * modules/sendto-tests: New file.
38225         * tests/test-sendto.c: New file.
38227         Tests for module 'send'.
38228         * modules/send-tests: New file.
38229         * tests/test-send.c: New file.
38231         Tests for module 'recvfrom'.
38232         * modules/recvfrom-tests: New file.
38233         * tests/test-recvfrom.c: New file.
38235         Tests for module 'recv'.
38236         * modules/recv-tests: New file.
38237         * tests/test-recv.c: New file.
38239         Tests for module 'listen'.
38240         * modules/listen-tests: New file.
38241         * tests/test-listen.c: New file.
38243         Tests for module 'getsockopt'.
38244         * modules/getsockopt-tests: New file.
38245         * tests/test-getsockopt.c: New file.
38247         Tests for module 'getsockname'.
38248         * modules/getsockname-tests: New file.
38249         * tests/test-getsockname.c: New file.
38251         Tests for module 'getpeername'.
38252         * modules/getpeername-tests: New file.
38253         * tests/test-getpeername.c: New file.
38255         Tests for module 'connect'.
38256         * modules/connect-tests: New file.
38257         * tests/test-connect.c: New file.
38259         Tests for module 'bind'.
38260         * modules/bind-tests: New file.
38261         * tests/test-bind.c: New file.
38263         accept4 tests: Fix for native Windows.
38264         * tests/test-accept4.c: Include sockets.h.
38265         (main): Invoke gl_sockets_startup.
38266         * modules/accept4-tests (Depends-on): Add sockets.
38268         accept tests: Fix for native Windows.
38269         * tests/test-accept.c: Include sockets.h.
38270         (main): Invoke gl_sockets_startup.
38271         * modules/accept-tests (Depends-on): Add sockets.
38273 2011-09-19  Bruno Haible  <bruno@clisp.org>
38275         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
38276         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
38277         do...while(0).
38278         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
38279         Suggested by Paul Eggert.
38281 2011-09-19  Bruno Haible  <bruno@clisp.org>
38283         sched: Ensure pid_t is defined.
38284         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
38285         not define pid_t.
38286         * lib/sched.in.h: Include <sys/types.h>.
38287         * doc/posix-headers/sched.texi: Mention the pid_t problem.
38288         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38290 2011-09-19  Bruno Haible  <bruno@clisp.org>
38292         msvc-inval: Ensure the entire expansion is a single statement.
38293         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
38294         of braces.
38296 2011-09-19  Jim Meyering  <meyering@redhat.com>
38298         tests: use printf, not echo in init.sh's warn_ function
38299         * tests/init.sh (warn_): Use printf, not echo.  The latter would
38300         misbehave when given strings containing a backslash or starting
38301         with e.g., -n.  James Youngman suggested setting IFS.
38303 2011-09-19  Eric Blake  <eblake@redhat.com>
38305         futimens: enhance test
38306         * tests/test-futimens.h (test_futimens): Also check for EBADF on
38307         closed non-negative fd.
38309         date: accept 'hence' as opposite of 'ago'
38310         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
38311         * tests/test-parse-datetime.c (main): Enhance test.
38312         Suggested by Jesse Wilson.
38314 2011-09-19  Jim Meyering  <meyering@redhat.com>
38316         getcwd: don't fail in a deep directory on a system without openat
38317         Before this change, getcwd would fail when called from a directory
38318         of depth PATH_MAX / 3 or greater.  That was due to the fact that
38319         the non-openat implementation used "..", "../..", "../../..", etc.
38320         to access ancestor directories.  With too many, that string would
38321         be longer than PATH_MAX.
38322         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
38323         using gnulib's openat replacement.
38324         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
38325         we're using the replacement function.
38327 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
38329         maint.mk: avoid warnings from perl about missing files
38330         * top/maint.mk (def_sym_regex): Ignore files listed in
38331         $(gl_other_headers_) that do not exist, say because a project
38332         does not use a corresponding module.
38334 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
38336         stat: use pathmax.h only if needed
38337         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
38338         This is better for Emacs, which does not have a mingw port and
38339         therefore can avoid the pathmax module.
38341         utimens: remove dependency on dup2
38342         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
38343         to work around the Linux kernel bug.
38344         * modules/utimens (Depends-on): Remove dup2.
38346 2011-09-18  Bruno Haible  <bruno@clisp.org>
38348         inet_ntop, inet_pton: Look for it also in libresolv.
38349         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
38350         libnsl, search for it in libresolv.
38351         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
38352         Needed on Solaris 7.
38354 2011-09-18  Bruno Haible  <bruno@clisp.org>
38356         accept, accept4 tests: Avoid link error on Solaris.
38357         * modules/accept-tests (Makefile.am): Link test-accept against
38358         $(LIBSOCKET).
38359         * modules/accept4-tests (Makefile.am): Link test-accept4 against
38360         $(LIBSOCKET).
38362         accept4: Avoid link error on Solaris.
38363         * modules/accept4 (Link): New section.
38365         socket functions: Avoid link errors on Solaris.
38366         * modules/accept (Depends-on): Add socketlib.
38367         (Link): New section.
38368         * modules/bind (Depends-on): Add socketlib.
38369         (Link): New section.
38370         * modules/connect (Depends-on): Add socketlib.
38371         (Link): New section.
38372         * modules/getpeername (Depends-on): Add socketlib.
38373         (Link): New section.
38374         * modules/getsockname (Depends-on): Add socketlib.
38375         (Link): New section.
38376         * modules/getsockopt (Depends-on): Add socketlib.
38377         (Link): New section.
38378         * modules/listen (Depends-on): Add socketlib.
38379         (Link): New section.
38380         * modules/recv (Depends-on): Add socketlib.
38381         (Link): New section.
38382         * modules/recvfrom (Depends-on): Add socketlib.
38383         (Link): New section.
38384         * modules/send (Depends-on): Add socketlib.
38385         (Link): New section.
38386         * modules/sendto (Depends-on): Add socketlib.
38387         (Link): New section.
38388         * modules/setsockopt (Depends-on): Add socketlib.
38389         (Link): New section.
38390         * modules/shutdown (Depends-on): Add socketlib.
38391         (Link): New section.
38392         * modules/socket (Depends-on): Add socketlib.
38393         (Link): New section.
38395 2011-09-18  Bruno Haible  <bruno@clisp.org>
38397         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
38398         * tests/test-ptsname.c (main): Terminate the test if it takes longer
38399         than 5 seconds.
38400         * modules/ptsname-tests (configure.ac): Test for alarm.
38402 2011-09-18  Bruno Haible  <bruno@clisp.org>
38404         posix_spawn_file_actions_add*: Fix module dependencies.
38405         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
38406         posix_spawn_file_actions_init.
38407         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
38408         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
38410 2011-09-18  Bruno Haible  <bruno@clisp.org>
38412         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
38413         * tests/test-rename.h (test_rename): Allow error code EEXIST.
38414         * tests/test-renameat.c (main): Likewise.
38416 2011-09-18  Bruno Haible  <bruno@clisp.org>
38418         Tests for module 'accept4'.
38419         * modules/accept4-tests: New file.
38420         * tests/test-accept4.c: New file.
38422 2011-09-18  Bruno Haible  <bruno@clisp.org>
38424         Tests for module 'accept'.
38425         * modules/accept-tests: New file.
38426         * tests/test-accept.c: New file.
38428 2011-09-18  Bruno Haible  <bruno@clisp.org>
38430         dup2: Support for MSVC.
38431         * lib/dup2.c: Include msvc-inval.h.
38432         (rpl_dup2): Handle invalid parameter notifications during dup2 and
38433         _get_osfhandle calls.
38434         * modules/dup2 (Depends-on): Add msvc-inval.
38435         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
38437         New module 'msvc-inval'.
38438         * lib/msvc-inval.h: New file.
38439         * lib/msvc-inval.c: New file.
38440         * m4/msvc-inval.m4: New file.
38441         * modules/msvc-inval: New file.
38443 2011-09-17  Bruno Haible  <bruno@clisp.org>
38445         Tests for module 'pclose'.
38446         * modules/pclose-tests: New file.
38448         New module 'pclose'.
38449         * lib/stdio.in.h (pclose): New declaration.
38450         * lib/pclose.c: New file.
38451         * m4/pclose.m4: New file.
38452         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
38453         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
38454         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
38455         * modules/pclose: New file.
38456         * modules/popen-tests (Depends-on): Add pclose.
38457         * modules/popen-safer-tests (Depends-on): Likewise.
38458         * doc/posix-functions/pclose.texi: Mention the new module.
38460 2011-09-17  Bruno Haible  <bruno@clisp.org>
38462         popen: Support for MSVC.
38463         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
38464         * lib/popen.c (popen): Provide alternate definition for native Windows.
38465         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
38466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
38467         * modules/popen (Depends-on, configure.ac): Update condition.
38468         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
38469         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
38470         fixed.
38472 2011-09-17  Bruno Haible  <bruno@clisp.org>
38474         isnanl, isnand, isnanf: Work around MSVC bug.
38475         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
38477 2011-09-17  Bruno Haible  <bruno@clisp.org>
38479         sys_socket tests: Fix recent mistake.
38480         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
38482 2011-09-17  Bruno Haible  <bruno@clisp.org>
38484         putenv: Support for MSVC.
38485         * modules/putenv (Depends-on): Add environ.
38486         * lib/putenv.c (environ): Disable declaration.
38487         * lib/unistd.in.h: Update comment.
38489 2011-09-17  Bruno Haible  <bruno@clisp.org>
38491         math: Avoid macro redefinition warnings on MSVC.
38492         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
38493         Undefine before redefining.
38495 2011-09-17  Bruno Haible  <bruno@clisp.org>
38497         doc: Mention functions which are declared as macros.
38498         * doc/posix-functions/*[fl].texi: Mention that some functions are
38499         defined as macros with arguments only.
38501 2011-09-17  Bruno Haible  <bruno@clisp.org>
38503         Add dependencies to new dirent related modules.
38504         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
38505         * modules/fts (Depends-on): Likewise.
38506         * modules/glob (Depends-on): Likewise.
38507         * modules/savedir (Depends-on): Likewise.
38508         * modules/scandir (Depends-on): Likewise.
38509         * modules/dirent-safer (Depends-on): Add opendir, closedir.
38510         * modules/fdopendir (Depends-on): Add opendir.
38512 2011-09-17  Bruno Haible  <bruno@clisp.org>
38514         inet_pton: Support for MSVC on Windows Vista or newer.
38515         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
38516         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
38517         HAVE_DECL_INET_PTON is defined.
38518         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
38519         On platforms with <winsock2.h>, test whether inet_pton is declared in
38520         <ws2tcpip.h>. If so, arrange to replace it.
38521         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
38522         REPLACE_INET_PTON.
38523         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
38524         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
38525         (Depends-on, configure.ac): Update condition.
38526         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
38528 2011-09-17  Bruno Haible  <bruno@clisp.org>
38530         inet_ntop: Support for MSVC on Windows Vista or newer.
38531         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
38532         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
38533         HAVE_DECL_INET_NTOP is defined.
38534         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
38535         On platforms with <winsock2.h>, test whether inet_ntop is declared in
38536         <ws2tcpip.h>. If so, arrange to replace it.
38537         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
38538         REPLACE_INET_NTOP.
38539         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
38540         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
38541         (Depends-on, configure.ac): Update condition.
38542         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
38544 2011-09-16  Eric Blake  <eblake@redhat.com>
38546         test-fsync: yet another enhancement
38547         * tests/test-fsync.c (main): Also test behavior on read-only text
38548         file.
38550 2011-09-16  Bruno Haible  <bruno@clisp.org>
38552         Enhance fsync, fdatasync tests.
38553         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
38554         * tests/test-fdatasync.c (main): Likewise.
38556 2011-09-16  Bruno Haible  <bruno@clisp.org>
38558         Support for MSVC compiler: Ensure mode_t gets defined.
38559         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
38560         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38561         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38562         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
38563         * tests/test-fcntl-h.c: Check that mode_t is defined.
38564         * tests/test-sys_stat.c: Likewise.
38565         * tests/test-sys_types.c: Likewise.
38566         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
38567         * doc/posix-headers/sys_stat.texi: Likewise.
38568         * doc/posix-headers/sys_types.texi: Likewise.
38570 2011-09-16  Bruno Haible  <bruno@clisp.org>
38572         sys_stat: Support for MSVC.
38573         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
38574         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
38575         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
38576         MSVC.
38578 2011-09-16  Bruno Haible  <bruno@clisp.org>
38580         Support for MSVC compiler: Ensure off_t gets defined.
38581         * lib/unistd.in.h: Include <sys/types.h>.
38582         * tests/test-fcntl-h.c: Check that off_t is defined.
38583         * tests/test-sys_stat.c: Likewise.
38584         * tests/test-sys_types.c: Likewise.
38586 2011-09-16  Eric Blake  <eblake@redhat.com>
38588         fdatasync: port to Solaris
38589         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
38590         * modules/fdatasync (Link): Document it.
38591         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
38593         fdatasync: port to MacOS X 10.7
38594         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
38595         declared.
38596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
38597         * modules/unistd (Makefile.am): Substitute it.
38598         * lib/unistd.in.h (fdatasync): Declare on MacOS.
38599         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
38601         fdatasync: minor improvements
38602         * modules/fdatasync (Depends-on): Add condition for fsync.
38603         * lib/fdatasync.c (fdatasync): Add comment.
38604         * tests/test-unistd-c++.cc: Test fdatasync.
38606         unistd: update refs to newer POSIX
38607         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
38608         Suggested by Bruno Haible.
38610         fdatasync: new module
38611         * modules/fsync (Description): Document difference to fdatasync.
38612         * modules/fdatasync: New module.
38613         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
38614         * lib/fdatasync.c (fdatasync): Likewise.
38615         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
38616         defaults.
38617         * modules/unistd (Makefile.am): Set witnesses.
38618         * lib/unistd.in.h (fdatasync): Declare.
38619         * MODULES.html.sh: Document it.
38620         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
38621         * modules/fdatasync-tests: New test.
38622         * tests/test-fdatasync.c: Likewise.
38624 2011-09-16  Eric Blake  <eblake@redhat.com>
38626         test-fsync: enhance tests
38627         * modules/fsync-tests (Depends-on): Add errno, for mingw.
38628         * tests/test-fsync.c (main): Enhance test.
38630 2011-09-15  Bruno Haible  <bruno@clisp.org>
38632         Support for MSVC compiler: Ensure ssize_t gets defined.
38633         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
38634         * doc/posix-headers/stdio.texi: Likewise.
38635         * modules/stdio (Depends-on): Add ssize_t.
38636         * modules/sys_socket (Depends-on): Likewise.
38637         * modules/sys_types (Depends-on): Likewise.
38638         * modules/sys_uio (Depends-on): Likewise.
38639         * modules/unistd (Depends-on): Likewise.
38640         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
38641         * tests/test-sys_types.c: Check that ssize_t is defined.
38643 2011-09-14  Bruno Haible  <bruno@clisp.org>
38645         Avoid using #, the m4 comment starter character, near brackets.
38646         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
38647         delimiter character in sed expressions.
38648         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
38649         Suggested by Eric Blake.
38651         Properly quote AC_CHECK_DECLS' 4th argument.
38652         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
38653         argument.
38654         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
38655         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
38656         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38657         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
38658         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
38659         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
38660         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
38661         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
38662         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
38663         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
38664         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
38665         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
38666         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
38667         * m4/isinf.m4 (gl_ISINF): Likewise.
38668         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
38669         * m4/readutmp.m4 (gl_READUTMP): Likewise.
38670         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38671         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38672         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38673         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
38674         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
38675         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
38676         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
38677         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
38678         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
38679         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
38680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
38681         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38682         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38683         Reported by Eric Blake.
38685         Properly quote AC_CHECK_DECL's 4th argument.
38686         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
38687         argument.
38688         * m4/argp.m4 (gl_ARGP): Likewise.
38689         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
38690         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38691         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
38692         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
38693         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
38694         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
38695         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
38696         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
38697         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
38698         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
38699         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
38700         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
38701         Reported by Eric Blake.
38703 2011-09-14  Eric Blake  <eblake@redhat.com>
38705         opendir: avoid compile warning
38706         * lib/opendir.c (includes): Always include errno.h.
38707         Reported by Tatsuro MATSUOKA.
38709 2011-09-14  Jim Meyering  <meyering@redhat.com>
38711         maint.mk: sc_tight_scope: propagate failure from sub-make
38712         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
38713         Reported by Martin von Gagern.
38715 2011-09-13  Bruno Haible  <bruno@clisp.org>
38717         tempname: Support for MSVC.
38718         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
38719         MSVC.
38720         * modules/tempname (Depends-on): Add fcntl-h.
38722 2011-09-13  Bruno Haible  <bruno@clisp.org>
38724         sys_time: Support for MSVC.
38725         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
38726         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
38727         include <winsock2.h>.
38728         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
38729         function declarations that collide with POSIX.
38730         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
38731         (Makefile.am): Substitute HAVE_WINSOCK2_H.
38733 2011-09-13  Bruno Haible  <bruno@clisp.org>
38735         stat: Support for MSVC.
38736         * lib/stat.c: Include pathmax.h.
38737         * modules/stat (Depends-on): Add pathmax.
38739         pathmax: Support for native Windows.
38740         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
38742 2011-09-12  Bruno Haible  <bruno@clisp.org>
38744         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
38745         * lib/dirent.in.h (struct dirent): New type.
38746         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
38747         DT_WHT): New macros.
38748         (DIR): New type.
38749         (opendir, closedir): Declare only if the module 'opendir' is enabled.
38750         (readdir, rewinddir): New declarations.
38751         * lib/dirent-private.h: New file.
38752         * lib/opendir.c: New file.
38753         * lib/readdir.c: New file.
38754         * lib/rewinddir.c: New file.
38755         * lib/closedir.c: New file.
38756         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
38757         * m4/opendir.m4: New file.
38758         * m4/readdir.m4: New file.
38759         * m4/rewinddir.m4: New file.
38760         * m4/closedir.m4: New file.
38761         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
38762         REPLACE_CLOSEDIR here.
38763         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
38764         readdir, rewinddir are declared.
38765         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
38766         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
38767         HAVE_REWINDDIR, HAVE_CLOSEDIR.
38768         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
38769         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
38770         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
38771         * modules/opendir: New file.
38772         * modules/readdir: New file.
38773         * modules/rewinddir: New file.
38774         * modules/closedir: New file.
38775         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
38776         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
38777         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
38778         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
38779         * NEWS: Mention the 'fchdir' change.
38781 2011-09-11  Bruno Haible  <bruno@clisp.org>
38783         asm-underscore.m4: Support for MSVC.
38784         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
38785         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
38787 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
38789         Doc about crypt functions.
38790         * doc/posix-functions/crypt.texi: Expand range of glibc versions
38791         needing for _GNU_SOURCE to get crypt.
38792         * doc/posix-functions/encrypt.texi: Likewise.
38793         * doc/posix-functions/setkey.texi: Likewise.
38795 2011-09-11  Bruno Haible  <bruno@clisp.org>
38797         doc: Update regarding MSVC 9.
38798         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
38799         tested".
38800         * doc/posix-functions/*.texi: Update with info about MSVC 9.
38801         * doc/posix-headers/*.texi: Likewise.
38802         * doc/pastposix-functions/*.texi: Likewise.
38803         * doc/glibc-functions/*.texi: Likewise.
38804         * doc/glibc-headers/*.texi: Likewise.
38806 2011-09-11  Bruno Haible  <bruno@clisp.org>
38808         unistd et al.: Don't assume <unistd.h> exists.
38809         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
38810         does not exist.
38811         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
38812         exist. But include <stdlib.h>.
38813         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
38814         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
38815         symlink() does not exist.
38816         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
38817         include <io.h> instead.
38818         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
38819         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
38820         include <direct.h> instead.
38821         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
38822         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
38823         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
38824         <io.h> instead.
38825         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
38826         correctly if the system does not have hard links.
38827         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
38828         <direct.h> instead.
38829         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
38830         it when looking for function declarations.
38831         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
38832         <direct.h> and <io.h> instead.
38833         * doc/posix-headers/unistd.texi: More details about MSVC problem.
38835 2011-09-11  Bruno Haible  <bruno@clisp.org>
38837         strcase: Support for MSVC.
38838         * modules/strcase (Status, Notice): Remove obsoletion mark.
38839         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
38840         * doc/posix-functions/strncasecmp.texi: Likewise.
38842         strings: Don't assume <strings.h> exists.
38843         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
38844         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
38845         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
38846         * doc/posix-headers/strings.texi: Mention the MSVC problem.
38848 2011-09-11  Bruno Haible  <bruno@clisp.org>
38850         dirent: Don't assume <dirent.h> exists.
38851         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
38852         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
38853         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
38854         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
38856 2011-09-11  Bruno Haible  <bruno@clisp.org>
38858         Fix wint_t on MSVC.
38859         * lib/wchar.in.h (wint_t): On MSVC, override it.
38860         * lib/wctype.in.h (wint_t): Likewise.
38861         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
38862         MSVC.
38863         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
38864         * doc/posix-headers/wctype.texi: Likewise.
38866 2011-09-11  Bruno Haible  <bruno@clisp.org>
38868         sys_types: Fix typo.
38869         * lib/sys_types.in.h: Fix typo in comment.
38870         Reported by Paul Eggert.
38872         Support for MSVC compiler: Ensure size_t gets defined.
38873         * modules/strings (Depends-on): Add 'sys_types'.
38874         * modules/sys_uio (Depends-on): Likewise.
38875         * lib/sys_uio.in.h: Update comment.
38877         C++ tests for module 'sys_types'.
38878         * modules/sys_types-c++-tests: New file.
38879         * tests/test-sys_types-c++.cc: New file.
38881         Tests for module 'sys_types'.
38882         * modules/sys_types-tests: New file.
38883         * tests/test-sys_types.c: New file.
38885         New module 'sys_types'.
38886         * lib/sys_types.in.h: New file.
38887         * m4/sys_types_h.m4: New file.
38888         * modules/sys_types: New file.
38889         * doc/posix-headers/sys_types.texi: Mention the new module and the
38890         size_t problem on MSVC 9.
38892 2011-09-11  Bruno Haible  <bruno@clisp.org>
38894         Support for MSVC compiler: Avoid division by a literal 0.
38895         * lib/math.in.h (NAN): Define through a function call also on MSVC.
38896         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
38897         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
38898         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
38899         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
38900         * tests/infinity.h: New file.
38901         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
38902         on MSVC.
38903         * tests/test-ceilf1.c: Include infinity.h.
38904         (main): Use Infinityf.
38905         * tests/test-ceil1.c: Include infinity.h.
38906         (main): Use Infinityd.
38907         * tests/test-ceill.c: Include infinity.h.
38908         (main): Use Infinityl.
38909         * tests/test-dprintf-posix.c: Include infinity.h.
38910         (test_function): Use Infinityd.
38911         * tests/test-floorf1.c: Include infinity.h.
38912         (main): Use Infinityf.
38913         * tests/test-floor1.c: Include infinity.h.
38914         (main): Use Infinityd.
38915         * tests/test-floorl.c: Include infinity.h.
38916         (main): Use Infinityl.
38917         * tests/test-fprintf-posix.c: Include infinity.h.
38918         (test_function): Use Infinityd.
38919         * tests/test-frexp.c: Include infinity.h.
38920         (main): Use Infinityd.
38921         * tests/test-frexpl.c: Include infinity.h.
38922         (main): Use Infinityl.
38923         * tests/test-isfinite.c: Include infinity.h.
38924         (test_isfinitef): Use Infinityf.
38925         (test_isfinited): Use Infinityd.
38926         (test_isfinitel): Use Infinityl.
38927         * tests/test-isinf.c: Include infinity.h.
38928         (test_isinff): Use Infinityf.
38929         (test_isinfd): Use Infinityd.
38930         (test_isinfl): Use Infinityl.
38931         * tests/test-isnan.c: Include infinity.h.
38932         (test_float): Use Infinityf.
38933         (test_double): Use Infinityd.
38934         (test_long_double): Use Infinityl.
38935         * tests/test-isnanf.h: Include infinity.h.
38936         (main): Use Infinityf.
38937         * tests/test-isnand.h: Include infinity.h.
38938         (main): Use Infinityd.
38939         * tests/test-isnanl.h: Include infinity.h.
38940         (main): Use Infinityl.
38941         * tests/test-ldexpl.c: Include infinity.h.
38942         (main): Use Infinityl.
38943         * tests/test-printf-posix.h: Include infinity.h.
38944         (test_function): Use Infinityd.
38945         * tests/test-roundf1.c: Include infinity.h.
38946         (main): Use Infinityf.
38947         * tests/test-round1.c: Include infinity.h.
38948         (main): Use Infinityd.
38949         * tests/test-roundl.c: Include infinity.h.
38950         (main): Use Infinityl.
38951         * tests/test-signbit.c: Include infinity.h.
38952         (test_signbitf): Use Infinityf.
38953         (test_signbitd): Use Infinityd.
38954         (test_signbitl): Use Infinityl.
38955         * tests/test-snprintf-posix.h: Include infinity.h.
38956         (test_function): Use Infinityd, Infinityl.
38957         * tests/test-sprintf-posix.h: Include infinity.h.
38958         (test_function): Use Infinityd, Infinityl.
38959         * tests/test-truncf1.c: Include infinity.h.
38960         (main): Use Infinityf.
38961         * tests/test-trunc1.c: Include infinity.h.
38962         (main): Use Infinityd.
38963         * tests/test-truncl.c: Include infinity.h.
38964         (main): Use Infinityl.
38965         * tests/test-vasnprintf-posix.c: Include infinity.h.
38966         (test_function): Use Infinityd, Infinityl.
38967         * tests/test-vasprintf-posix.c: Include infinity.h.
38968         (test_function): Use Infinityd, Infinityl.
38969         * modules/ceilf-tests (Files): Add tests/infinity.h.
38970         * modules/ceil-tests (Files): Likewise.
38971         * modules/ceill-tests (Files): Likewise.
38972         * modules/dprintf-posix-tests (Files): Likewise.
38973         * modules/floorf-tests (Files): Likewise.
38974         * modules/floor-tests (Files): Likewise.
38975         * modules/floorl-tests (Files): Likewise.
38976         * modules/fprintf-posix-tests (Files): Likewise.
38977         * modules/frexp-tests (Files): Likewise.
38978         * modules/frexp-nolibm-tests (Files): Likewise.
38979         * modules/frexpl-tests (Files): Likewise.
38980         * modules/frexpl-nolibm-tests (Files): Likewise.
38981         * modules/isfinite-tests (Files): Likewise.
38982         * modules/isinf-tests (Files): Likewise.
38983         * modules/isnan-tests (Files): Likewise.
38984         * modules/isnanf-tests (Files): Likewise.
38985         * modules/isnanf-nolibm-tests (Files): Likewise.
38986         * modules/isnand-tests (Files): Likewise.
38987         * modules/isnand-nolibm-tests (Files): Likewise.
38988         * modules/isnanl-tests (Files): Likewise.
38989         * modules/isnanl-nolibm-tests (Files): Likewise.
38990         * modules/ldexpl-tests (Files): Likewise.
38991         * modules/printf-posix-tests (Files): Likewise.
38992         * modules/roundf-tests (Files): Likewise.
38993         * modules/round-tests (Files): Likewise.
38994         * modules/roundl-tests (Files): Likewise.
38995         * modules/signbit-tests (Files): Likewise.
38996         * modules/snprintf-posix-tests (Files): Likewise.
38997         * modules/sprintf-posix-tests (Files): Likewise.
38998         * modules/truncf-tests (Files): Likewise.
38999         * modules/trunc-tests (Files): Likewise.
39000         * modules/truncl-tests (Files): Likewise.
39001         * modules/vasnprintf-posix-tests (Files): Likewise.
39002         * modules/vasprintf-posix-tests (Files): Likewise.
39003         * modules/vdprintf-posix-tests (Files): Likewise.
39004         * modules/vfprintf-posix-tests (Files): Likewise.
39005         * modules/vprintf-posix-tests (Files): Likewise.
39006         * modules/vsnprintf-posix-tests (Files): Likewise.
39007         * modules/vsprintf-posix-tests (Files): Likewise.
39008         * modules/xprintf-posix-tests (Files): Likewise.
39010 2011-09-11  Bruno Haible  <bruno@clisp.org>
39012         Ensure pid_t gets defined.
39013         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
39014         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
39015         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39016         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39017         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
39018         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
39019         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
39020         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39021         * tests/test-fcntl-h.c: Check that pid_t is defined.
39022         * tests/test-sched.c: Likewise.
39023         * tests/test-termios.c: Likewise.
39024         * tests/test-time.c: Likewise.
39025         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
39026         * doc/posix-headers/signal.texi: Likewise.
39027         * doc/posix-headers/sys_types.texi: Likewise.
39028         * doc/posix-headers/time.texi: Likewise.
39030 2011-09-11  Bruno Haible  <bruno@clisp.org>
39032         acl: Fix compilation on Solaris 10 (older version).
39033         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
39034         of ACE_EVERYONE.
39035         * lib/set-mode-acl.c (qset_acl): Likewise.
39036         Reported by Christian Jullien <eligis@orange.fr>.
39038 2011-09-10  Bruno Haible  <bruno@clisp.org>
39040         iconv, unsetenv: Add support for MSVC compiler.
39041         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
39042         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
39044 2011-09-10  Bruno Haible  <bruno@clisp.org>
39046         *printf: Add support for MSVC compiler.
39047         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
39048         handles the exception caused by the %n directive. When cross-compiling,
39049         guess no on native Windows.
39050         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
39051         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
39052         emulate it through vsnprintf.
39053         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
39054         * doc/posix-functions/dprintf.texi: Update documentation regarding
39055         MSVC 9.
39056         * doc/posix-functions/fprintf.texi: Likewise.
39057         * doc/posix-functions/printf.texi: Likewise.
39058         * doc/posix-functions/snprintf.texi: Likewise.
39059         * doc/posix-functions/sprintf.texi: Likewise.
39060         * doc/posix-functions/swprintf.texi: Likewise.
39061         * doc/posix-functions/vdprintf.texi: Likewise.
39062         * doc/posix-functions/vfprintf.texi: Likewise.
39063         * doc/posix-functions/vprintf.texi: Likewise.
39064         * doc/posix-functions/vsnprintf.texi: Likewise.
39065         * doc/posix-functions/vsprintf.texi: Likewise.
39066         * doc/glibc-functions/asprintf.texi: Likewise.
39067         * doc/glibc-functions/obstack_printf.texi: Likewise.
39068         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39069         * doc/glibc-functions/vasprintf.texi: Likewise.
39071 2011-09-10  Bruno Haible  <bruno@clisp.org>
39073         nocrash: Add support for native Windows.
39074         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
39076 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
39077             Bruno Haible  <bruno@clisp.org>
39079         absolute-header, include-next: Add support for MSVC compiler.
39080         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
39081         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
39082         directory separator in #line directives.
39083         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
39084         recognize also backslash as directory separator in #line directives.
39086 2011-09-08  Jim Meyering  <meyering@redhat.com>
39088         maint.mk: mark the post-release commit log with "maint: " prefix
39089         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
39090         one-line commit-log summary.
39092 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
39093             Bruno Haible  <bruno@clisp.org>
39095         Doc about crypt functions.
39096         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
39097         systems.
39098         * doc/posix-functions/encrypt.texi: Likewise.
39099         * doc/posix-functions/setkey.texi: Likewise.
39101 2011-09-08  Simon Josefsson  <simon@josefsson.org>
39103         * lib/gc.h: Fix copyright header.
39105 2011-09-07  Bruno Haible  <bruno@clisp.org>
39107         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
39108         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
39109         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
39111 2011-09-07  Bruno Haible  <bruno@clisp.org>
39113         openat: Work around compilation error with OSF/1 5.1 DTK cc.
39114         * lib/fopen.c: Use different syntax for include of <stdio.h>.
39115         * lib/freopen.c: Likewise.
39116         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
39117         * lib/lstat.c: Likewise.
39118         * lib/stat.c: Likewise.
39119         * lib/open.c: Use different syntax for include of <fcntl.h>.
39120         * lib/openat.c: Include fcntl.h again, explicitly.
39122 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
39124         parse-datetime: document the newly accepted format
39125         * doc/parse-datetime.texi (Combined date and time of day items):
39126         New section.
39128 2011-09-06  Bruno Haible  <bruno@clisp.org>
39130         acl: Fix a test failure on newer Solaris 10 with ZFS.
39131         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
39132         ENOSYS as no ACL.
39133         Reported by Jim Meyering.
39135 2011-09-06  Bruno Haible  <bruno@clisp.org>
39137         acl: Update for AIX >= 5.3 with NFS.
39138         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
39139         ENOSYS as no ACL.
39141         acl: Fix a test failure on AIX >= 5.3 with NFS.
39142         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
39143         as no ACL.
39145 2011-09-06  Bruno Haible  <bruno@clisp.org>
39147         acl: Fix a test failure on IRIX 6.5 with NFS.
39148         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
39149         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
39150         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
39151         * lib/copy-acl.c (qcopy_acl): Likewise.
39153 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
39155         openat: port to AIX 7.1 with large files
39156         AIX 7.1 does a "#define openat open64at" if large files are in use,
39157         so we can't simply #undef openat.  Use the orig_openat trick (similar
39158         to orig_open in lib/open.c) to work around the problem.  Problem
39159         reported by Kevin Brott for GNU tar, in the thread containing
39160         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
39161         * lib/openat.c (__need_system_fcntl_h): Define first.
39162         Include <fcntl.h> and <sys/types.h> before undefining.
39163         (orig_openat) [HAVE_OPENAT]: New inline function.
39164         (openat) [HAVE_OPENAT]: Do not undef.
39165         (rpl_openat): Use orig_openat, not openat.
39167 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
39168             Bruno Haible  <bruno@clisp.org>
39170         acl: Avoid errors on NonStop Kernel.
39171         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
39172         ENOTSUP errors.
39174 2011-09-05  Bruno Haible  <bruno@clisp.org>
39176         acl: Clean up Solaris code.
39177         * lib/acl-internal.h: Remove no-op #if.
39178         * lib/file-has-acl.c: Likewise.
39179         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
39180         * lib/copy-acl.c (qcopy_acl): Likewise.
39182 2011-09-05  Bruno Haible  <bruno@clisp.org>
39184         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
39185         binaries built on the original Solaris 10.
39186         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
39187         trivial.
39189 2011-09-05  Bruno Haible  <bruno@clisp.org>
39191         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
39192         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
39193         10.
39194         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
39195         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
39196         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
39197         instead of acl_get, facl_get, acl_set, facl_set.
39199 2011-09-05  Bruno Haible  <bruno@clisp.org>
39201         copy-file: Try unit tests on more file systems.
39202         * tests/test-copy-file-1.sh: New file.
39203         * tests/test-copy-file-2.sh: New file.
39204         * modules/copy-file-tests (Files): Add them.
39205         (Makefile.am): Add them to TESTS.
39207         acl: Try unit tests on more file systems.
39208         * tests/test-file-has-acl-1.sh: New file.
39209         * tests/test-file-has-acl-2.sh: New file.
39210         * tests/test-set-mode-acl-1.sh: New file.
39211         * tests/test-set-mode-acl-2.sh: New file.
39212         * tests/test-copy-acl-1.sh: New file.
39213         * tests/test-copy-acl-2.sh: New file.
39214         * modules/acl-tests (Files): Add them.
39215         (Makefile.am): Add them to TESTS.
39217 2011-09-04  Bruno Haible  <bruno@clisp.org>
39219         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
39220         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
39221         10.
39222         (OLD_ALLOW, OLD_DENY): New macros.
39223         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
39224         ACE_ACCESS_ALLOWED_ACE_TYPE.
39225         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
39226         ACE_ACCESS_DENIED_ACE_TYPE.
39227         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
39228         (NEW_ACE_EXECUTE): Fix value.
39229         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
39230         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
39231         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
39232         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
39233         NEW_ACE_SYNCHRONIZE): New macros.
39234         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
39235         instead of acl_fromtext, acl_set, facl_set.
39236         Fixes a coreutils/tests/cp/perm failure.
39238 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
39240         openat: test for fstatat (..., 0) bug
39241         Further testing with tar suggests that fstatat (..., 0)
39242         does not work in general, on AIX 7.1; see
39243         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
39244         So, give up entirely on AIX 7.1's fstatat, and fall back on our
39245         replacement fstatat (which is what older AIX releases were using
39246         anyway).
39247         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
39248         use is now changed to orig_fstatat.  This was probably the right
39249         thing to do anyway.
39250         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
39251         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
39252         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
39253         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
39254         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
39255         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
39256         if the bug is found.
39258         openat: test for fstatat (AT_FDCWD, ..., 0) bug
39259         This tests for another fstatat bug on AIX 7.1:
39260         fstatat (AT_FDCWD, ..., 0) does not work.  See
39261         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
39262         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
39263         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
39264         (rpl_fstatat): Adjust so that it works around either (or both)
39265         bugs if present.
39266         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
39268 2011-09-03  Karl Berry  <karl@gnu.org>
39270         * doc/regex.texi (Character Class Operators): Avoid literal ":"
39271         in index entries.
39273 2011-09-02  Bruno Haible  <bruno@clisp.org>
39275         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
39276         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
39277         values of AR, ARFLAGS, RANLIB.
39278         Reported by John W. Eaton <jwe@gnu.org> for Octave.
39280 2011-09-02  Bruno Haible  <bruno@clisp.org>
39282         Find 'ar' program that fits with --host argument.
39283         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
39285 2011-09-02  Bruno Haible  <bruno@clisp.org>
39287         tests: init.sh: Support any non-GNU diff.
39288         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
39289         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
39290         Solaris 8.
39292 2011-09-02  Bruno Haible  <bruno@clisp.org>
39294         tests: init.sh: work also with any non-GNU diff that supports -u
39295         * tests/init.sh: Relax check for diff -u support.
39296         Rather than checking for GNU diff via --version, simply check
39297         for support for -u itself.  Useful at least on OpenBSD 4.9,
39298         AIX 7.1, IRIX 6.5, and Solaris 10.
39300 2011-09-01  Bruno Haible  <bruno@clisp.org>
39302         strtoimax, strtoumax: Document problem on HP-UX 11.
39303         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
39304         * doc/posix-functions/strtoumax.texi: Likewise.
39306 2011-09-01  Bruno Haible  <bruno@clisp.org>
39308         strtoumax: Avoid link error on OSF/1 with DTK cc.
39309         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
39310         defined as a function.
39311         * modules/strtoumax (Depends-on, configure.ac): Test only whether
39312         strtoumax is defined, not whether it is declared.
39314 2011-09-01  Bruno Haible  <bruno@clisp.org>
39316         strtoimax: Avoid link error on OSF/1 with DTK cc.
39317         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
39318         defined as a function.
39319         * modules/strtoimax (Depends-on, configure.ac): Test only whether
39320         strtoimax is defined, not whether it is declared.
39322 2011-09-01  Bruno Haible  <bruno@clisp.org>
39324         imaxdiv: Avoid link error on OSF/1 with DTK cc.
39325         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
39326         as a function.
39327         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
39328         whether it is declared.
39330 2011-09-01  Bruno Haible  <bruno@clisp.org>
39332         imaxabs: Avoid link error on OSF/1 with DTK cc.
39333         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
39334         as a function.
39335         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
39336         whether it is declared.
39338 2011-09-01  Bruno Haible  <bruno@clisp.org>
39340         Tests for module 'strtoumax'.
39341         * modules/strtoumax-tests: New file.
39342         * tests/test-strtoumax.c: New file.
39344         Tests for module 'strtoimax'.
39345         * modules/strtoimax-tests: New file.
39346         * tests/test-strtoimax.c: New file.
39348         Tests for module 'imaxdiv'.
39349         * modules/imaxdiv-tests: New file.
39350         * tests/test-imaxdiv.c: New file.
39352         Tests for module 'imaxabs'.
39353         * modules/imaxabs-tests: New file.
39354         * tests/test-imaxabs.c: New file.
39356 2011-09-01  Bruno Haible  <bruno@clisp.org>
39358         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
39359         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
39360         pthread_create.
39362 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39364         openat: work around AIX 7.1 fstatat issue
39365         This should fix the problem that was not properly fixed
39366         in the previous change, dated 2011-08-30.
39367         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
39368         __need_system_stat_h defined.
39369         (orig_fstatat) [HAVE_FSTATAT]: New function.
39370         (rpl_fstatat): Go back to the old way of doing things,
39371         except call orig_fstatat instead of fstatat.
39372         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
39373         Remove unnecessary check whether fstatat fills in st_size etc.
39375 2011-09-01  Bruno Haible  <bruno@clisp.org>
39377         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
39378         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
39379         just include the system's header.
39381 2011-08-31  Jim Meyering  <meyering@redhat.com>
39383         tests: avoid spurious assertion failure in test-float.c on ppc64
39384         * tests/test-float.c (test_long_double): Comment out an assertion,
39385         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
39386         with gcc-4.4.4.
39388         maint: indent with spaces, not TABs
39389         I need to get in the habit of running gnulib's "make check".
39390         Both of these would have been caught.
39391         * m4/largefile.m4: Indent with spaces, not TABs.
39392         * lib/parse-datetime.y (iso_8601_time): Likewise.
39393         Spotted by Pádraig Brady.
39395         test-parse-datetime.c: accommodate a relatively strict gcc warning
39396         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
39397         to avoid a warning from gcc's -Werror=missing-declarations.
39398         Insert a few spaces-before-funcall-parenthesis.
39400 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
39402         parse-datetime: accept ISO 8601 date and time rep with "T" separator
39403         The parser now accepts ISO 8601 date-time strings with "T" as the
39404         separator.  It has long parsed dates like "2004-02-29 16:21:42"
39405         with a space between the date and time strings.  Now it also parses
39406         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
39407         variants like "2004-02-29T16:21:42.333-07:00"
39408         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
39409         of day representation using the 'T' separator character.
39410         * doc/parse-datetime.texi (General date syntax): replace use of
39411         deprecated --iso-8601 option with --rfc-3339 in example of date
39412         command output formats that can be parsed.
39413         * tests/test-parse-datetime.c (tm_diff): New function, taken from
39414         lib/parse-datetime.y.
39415         (gmt_offset): New function.
39416         (main): Add additional test cases to validate ISO8601 extended
39417         date and time of day parsing.
39419 2011-08-31  Bruno Haible  <bruno@clisp.org>
39421         freopen: Documentation.
39422         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
39423         name.
39424         Reported by Claudio Bley <claudio.bley@gmail.com>.
39426 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
39428         freopen: Don't crash if the filename argument is NULL.
39429         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
39430         NULL.
39432 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
39434         openat: work around AIX 7.1 fstatat bug
39435         Problem reported by Kevin Brott for GNU tar, in the thread containing
39436         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
39437         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
39438         FSTATAT_ST_SIZE_ETC_BROKEN.
39439         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
39440         rpl_fstatat.
39441         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
39442         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
39443         AC_CHECK_FUNCS_ONCE for fstatat.
39444         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
39445         fchmodat, mkdirat, openat and unlinkat.
39447 2011-08-30  Bruno Haible  <bruno@clisp.org>
39449         Avoid endless recursions if config.h includes some header files.
39450         * lib/fopen.c (__need_FILE): Define already before including config.h.
39451         * lib/freopen.c (__need_FILE): Likewise.
39452         * lib/open.c (__need_system_fcntl_h): Likewise.
39453         * lib/stat.c (__need_system_sys_stat_h): Likewise.
39454         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
39455         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
39457 2011-08-25  Karl Berry  <karl@gnu.org>
39459         * config/srclist.txt (ylwrap): new try.
39460         * build-aux/ylwrap: new file.
39462 2011-08-23  Bruno Haible  <bruno@clisp.org>
39464         tmpdir: Use a good default directory on native Windows.
39465         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
39466         (P_tmpdir): Default to _P_tmpdir on native Windows.
39467         (path_search): On native Windows, try the value returned by GetTempPath
39468         before trying P_tmpdir.
39469         * modules/tmpdir (Depends-on): Add pathmax.
39470         Suggested by John Darrington <john@darrington.wattle.id.au>.
39472 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
39474         doc: fix typo in README-release
39475         * top/README-release: Capitalize first word of a sentence.
39477 2011-08-19  Jim Meyering  <meyering@redhat.com>
39479         fts: do not exhaust memory when processing million-entry directories
39480         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
39481         directory would require about 256*N bytes of memory.  Thus, it was
39482         easy to construct a directory too large to be processed by any of
39483         those tools.  With this change, fts' maximum memory utilization is
39484         now limited to around 30MB.
39485         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
39486         (fts_read): When we've processed the final entry (i.e., when
39487         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
39488         using the parent entry to read any remaining entries.  Dispatch
39489         depending on what fts_build returns:
39490         - NULL+stop, aka failure: stop
39491         - NULL otherwise: move up in the dir hierarchy
39492         - non-NULL: handle this new entry
39493         (fts_build): Declare and use new local, continue_readdir.
39494         Prepare to be called from fts_read, when the entries
39495         from a partially-read directory have just been exhausted.
39496         In that case, we'll skip the opendir and instead use the parent's
39497         fts_dirp and derive dir_fd from that.
39498         Finally, in the readdir loop, if we read max_entries entries,
39499         exit the loop ensuring *not* to call closedir.  This is required
39500         so that fts_dirp can be reused on a subsequent call.
39501         Prompted by Ben England's report of memory exhaustion in find
39502         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
39504         maint: fts: move decl of `dp' down into while loop; split a long line
39505         * lib/fts.c (fts_build): No semantic change.
39507         fts: add/use new struct member, fts_dirp
39508         We are about to use this to manage any directory with
39509         too many entries to read all of them into memory at once.
39510         To do that, we'll need to save the DIR* pointer in each
39511         affected FTSENT struct.
39512         * lib/fts_.h: Include <dirent.h>.
39513         (struct FTSENT) [fts_dirp]: New member.
39514         * lib/fts.c (closedir_and_clear): Define.
39515         Use it in place of closedir so that we are sure to
39516         clear the new fts_dirp member when done with it.
39517         (fts_alloc): Initialize the new member.
39518         (fts_lfree): Free, if needed.
39520         maint: fts: give __opendir2 a new parameter and rename
39521         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
39522         than surreptitiously using sole caller's "dir_fd".
39523         (fts_opendir): Rename from __opendir2.
39525         maint: fts.c: remove __opendir2's now-unused parameter, oflag
39526         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
39528         maint: fts.c: correct off-by-one indentation
39529         * lib/fts.c (fts_build): Correct indentation, change style
39530         of a couple of block comments, and bracing style.
39532         maint: fts.c: move __opendir2 #define "up" out of function body
39533         * lib/fts.c (__opendir2): Move "up".  No semantic change.
39535         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
39536         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
39537         out for a long time and besides was useful only on BSD systems.
39539 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
39541         regex: port to Stratus OpenVOS
39542         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
39543         define to empty, rather than attempting nonportable optimizations.
39544         Problem reported by Paul Green in:
39545         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
39546         and fix suggested by Eric Blake in:
39547         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
39549 2011-08-17  Eric Blake  <eblake@redhat.com>
39551         getcwd: fix test failures on mingw
39552         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
39553         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
39554         test if long directory cannot be created, and allow mingw errno.
39556         getcwd-lgpl: fix m4 to match relaxed test for BSD
39557         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
39558         (gl_FUNC_GETCWD_SIGNATURE): New macro.
39559         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
39560         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
39561         signature problem.
39563         getcwd: fix compilation on mingw64
39564         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
39565         getcwd.
39566         Reported by Marc-André Lureau.
39568         pipe2: silence compiler warning
39569         * lib/pipe2.c (pipe2): Hide label if it is not used.
39571 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
39573         relocatable-prog: fix link error
39574         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
39575         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
39576         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
39577         into modules/relocatable-lib without noticing that
39578         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
39579         also needs to build relocatable.c.
39581 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
39583         getaddrinfo: fix sh typo in gai_strerrorA decl checking
39584         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
39585         shell code: it contained a 'break' that was not in a loop.
39586         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
39587         via a shell-language loop; this may have been true in old Autoconf
39588         versions, but it's not true in Autoconf 2.68.  I found this bug
39589         when testing coreutils git on Solaris 8, whose shell complains
39590         about the syntax error.
39592 2011-08-12  Simon Josefsson  <simon@josefsson.org>
39594         * lib/base64.c: Fix comment to reference RFC 4648.
39595         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
39596         <gvtulder@gmail.com>.
39598 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
39600         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
39602         po/Makefile.in.in: fix make -q problem
39603         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
39604         rule, since there's no file named 'check-macro-version' and its
39605         use as a file breaks make -q.
39606         (all): Don't depend on check-macro-version.
39607         (CHECK_MACRO_VERSION): New macro.
39608         (stamp-po): Use it.
39610         configmake: fix make -q problem
39611         * modules/configmake (configmake.h): Update configmake.h's time stamp
39612         even if the file does not change.  Otherwise, 'make -q' fails.
39613         Problem reported by Simon Josefsson in
39614         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
39616 2011-08-11  Jim Meyering  <meyering@redhat.com>
39618         git-version-gen: correct the advice in a comment
39619         * build-aux/git-version-gen: Correct comment.
39620         Don't recommend to list .tarball-version in .gitignore.
39622 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
39624         base64: fix off-by-one buffer size bug
39625         Problem and (trivial) fix reported by Gijs van Tulder in
39626         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
39627         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
39628         * tests/test-base64.c (main): Catch the bug.
39630 2011-08-10  Eric Blake  <eblake@redhat.com>
39632         closein: correct comments
39633         * lib/closein.c (close_stdin): Improve comments.
39635 2011-08-09  Bruno Haible  <bruno@clisp.org>
39637         More tests for 'fseeko'.
39638         * tests/test-fseeko3.c: New file, from Eric Blake.
39639         * tests/test-fseeko3.sh: New file.
39640         * modules/fseeko-tests (Files): Add them.
39641         (TESTS): Add test-fseeko3.sh.
39642         (check_PROGRAMS): Add test-fseeko3.
39644 2011-08-09  Eric Blake  <eblake@redhat.com>
39646         fseeko: remove unneeded hack
39647         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
39649         fseeko: fix bug on glibc
39650         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
39651         Reported by John W. Eaton.
39653 2011-08-08  Bruno Haible  <bruno@clisp.org>
39655         unictype/base: Fix interoperability with preinstalled libunistring.
39656         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
39657         Reported by Simon Josefsson.
39659 2011-08-08  Bruno Haible  <bruno@clisp.org>
39661         iswblank: Detect declaration correctly.
39662         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
39663         AC_CHECK_DECLS invocation.
39665 2011-08-08  Bruno Haible  <bruno@clisp.org>
39667         tcgetsid: Detect declaration correctly.
39668         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
39669         AC_CHECK_DECLS invocation.
39670         Reported by Simon Josefsson.
39672 2011-08-08  Eric Blake  <eblake@redhat.com>
39674         largefile: fix typo that regressed large file support
39675         * modules/largefile (configure.ac-early): Fix section name.
39677 2011-08-06  Karl Berry  <karl@gnu.org>
39679         * MODULES.html.sh (func_all_files): _Noreturn is no longer
39680         a separate module.
39682 2011-08-05  Simon Josefsson  <simon@josefsson.org>
39684         openat: Fix warnings and commens when building unlinkat.c on Hurd.
39685         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
39686         get prototype for free.
39688 2011-08-04  Bruno Haible  <bruno@clisp.org>
39690         Tests for module 'pathmax'.
39691         * modules/pathmax-tests: New file.
39692         * tests/test-pathmax.c: New file.
39694         canonicalize-lgpl: Support larger filenames on the Hurd.
39695         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
39696         Reported by Paul Eggert.
39698         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
39699         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
39700         * lib/chdir-long.h: Include pathmax.h.
39701         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
39702         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
39703         (PATH_MAX): Remove code that is done by pathmax.h.
39704         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
39705         * lib/tmpfile.c: Add a comment.
39706         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
39707         * modules/chdir-long (Depends-on): Add pathmax.
39708         * modules/getcwd (Depends-on): Add pathmax.
39709         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
39710         is not defined.
39711         * doc/posix-headers/limits.texi: Mention the pathmax module.
39712         * NEWS: Mention the change.
39714 2011-08-02  Bruno Haible  <bruno@clisp.org>
39716         pthread_sigmask: Actually use results of gl_THREADLIB.
39717         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
39718         gl_THREADLIB, not gl_[]THREADLIB.
39719         Reported by Eric Blake.
39721 2011-08-02  Jim Meyering  <meyering@redhat.com>
39723         maint.mk: relax the default _gl_TS_function_match regexp
39724         * top/maint.mk (_gl_TS_function_match): Don't require at least one
39725         space between function name and "(" in an "extern" declaration.
39726         That would fail to match a decl with no space there: extern void foo();
39728 2011-07-31  Iain Nicol  <iain@thenicols.net>
39730         git-version-gen: document that EXTRA_DIST must include .version
39731         * build-aux/git-version-gen: In the how-to-use comment, document
39732         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
39733         will fail when run from an unpacked distribution tarball.
39735 2011-08-01  Bruno Haible  <bruno@clisp.org>
39737         wctype-h: Fix last change.
39738         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
39739         REPLACE_TOWLOWER to 0.
39740         Reported by Sam Steingold <sds@gnu.org>.
39742 2011-07-31  Bruno Haible  <bruno@clisp.org>
39744         frexpl: Update autoconf test.
39745         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
39746         according to changes of 2011-06-20.
39748 2011-07-31  Bruno Haible  <bruno@clisp.org>
39750         sys_utsname: Add support for Minix.
39751         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
39752         <sys/utsname.h>.
39753         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
39754         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
39756 2011-07-31  Bruno Haible  <bruno@clisp.org>
39758         strings: Add support for Minix.
39759         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
39760         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
39761         * doc/posix-headers/strings.texi: Document the Minix problem.
39763 2011-07-31  Bruno Haible  <bruno@clisp.org>
39765         wctype-h: Add support for Minix.
39766         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
39767         REPLACE_TOWLOWER.
39768         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
39769         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
39770         REPLACE_ISWCNTRL.
39772 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
39774         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
39775         This is a performance improvement for 64-bit hosts: it causes the
39776         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
39778 2011-07-31  Bruno Haible  <bruno@clisp.org>
39780         stdioext: Add support for Minix.
39781         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
39782         * lib/fpurge.c (fpurge): Likewise.
39783         * lib/freadahead.c (freadahead): Likewise.
39784         * lib/freadable.c (freadable): Likewise.
39785         * lib/freading.c (freading): Likewise.
39786         * lib/freadptr.c (freadptr): Likewise.
39787         * lib/freadseek.c (freadptrinc): Likewise.
39788         * lib/fseeko.c (rpl_fseeko): Likewise.
39789         * lib/fseterr.c (fseterr): Likewise.
39790         * lib/fwritable.c (fwritable): Likewise.
39791         * lib/fwriting.c (fwriting): Likewise.
39792         * lib/fflush.c (clear_ungetc_buffer): Update comment.
39793         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
39795 2011-07-31  Bruno Haible  <bruno@clisp.org>
39797         errno: Port to Minix.
39798         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
39799         ECONNABORTED are defined.
39800         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
39801         GNULIB_defined_ECONNABORTED): New macros.
39802         * lib/strerror-override.h (strerror_override): Test also
39803         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
39804         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
39805         ECONNABORTED.
39806         * doc/posix-headers/errno.texi: Mention the Minix problem.
39808 2011-07-31  Bruno Haible  <bruno@clisp.org>
39810         Work around declaration collisions on Minix.
39811         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
39812         defined, set REPLACE_MBSINIT.
39813         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
39814         defined, set REPLACE_MBRTOWC.
39815         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
39816         set REPLACE_MBRLEN.
39817         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
39818         defined, set REPLACE_MBSRTOWCS.
39819         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
39820         defined, set REPLACE_WCRTOMB.
39821         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
39822         defined, set REPLACE_WCSRTOMBS.
39824 2011-07-31  Bruno Haible  <bruno@clisp.org>
39826         Add support for Minix with ACK compiler.
39827         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
39828         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
39829         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
39831 2011-07-31  Bruno Haible  <bruno@clisp.org>
39833         Documentation about Minix.
39834         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
39835         * doc/glibc-headers/*.texi: Likewise.
39836         * doc/posix-functions/*.texi: Likewise.
39837         * doc/glibc-functions/*.texi: Likewise.
39839 2011-07-31  Bruno Haible  <bruno@clisp.org>
39841         snippet/warn-on-use: Fix indentation.
39842         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
39844 2011-07-25  Jim Meyering  <meyering@redhat.com>
39846         tests: test-update-copyright.sh: remove unnecessary "rm" commands
39847         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
39848         commands.
39850 2011-07-27  Jim Meyering  <meyering@redhat.com>
39852         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
39853         * top/maint.mk (gl_extract_significant_defines_): Now that
39854         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
39855         gnulib/lib/signal.in.h, and now that we recommend to
39856         define-if-undefined those two symbols in application code,
39857         we must filter them out of the "significant" list.
39858         This avoids a "make syntax-check" failure in coreutils.
39860 2011-07-26  Eric Blake  <eblake@redhat.com>
39862         warnings: add comments about previous patch
39863         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
39864         * m4/include_next.m4: Likewise.
39865         * m4/warn-on-use.m4: Likewise.
39866         * m4/warnings.m4: Likewise, and simplify use.
39867         Suggested by Stefano Lattarini.
39869         include-next, warnings: support older autoconf
39870         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
39871         AS_VAR_PUSHDEF in a way that works with older autoconf.
39872         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
39873         Reported by Daniel P. Berrange.
39875 2011-07-25  Bruno Haible  <bruno@clisp.org>
39877         fseek, ftell: Fix doc.
39878         * doc/posix-functions/fseek.texi: Reword statement about
39879         AC_SYS_LARGEFILE.
39880         * doc/posix-functions/ftell.texi: Likewise.
39882 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
39883             Bruno Haible  <bruno@clisp.org>
39885         Add dependencies to the 'largefile' module.
39886         * modules/fopen (Depends-on): Add 'largefile'.
39887         * modules/freopen (Depends-on): Likewise.
39888         * modules/fseeko (Depends-on): Likewise.
39889         * modules/ftello (Depends-on): Likewise.
39890         * modules/glob (Depends-on): Likewise.
39891         * modules/lseek (Depends-on): Likewise.
39892         * modules/lstat (Depends-on): Likewise.
39893         * modules/mkostemp (Depends-on): Likewise.
39894         * modules/mkostemps (Depends-on): Likewise.
39895         * modules/mkstemp (Depends-on): Likewise.
39896         * modules/mkstemps (Depends-on): Likewise.
39897         * modules/open (Depends-on): Likewise.
39898         * modules/openat (Depends-on): Likewise.
39899         * modules/pread (Depends-on): Likewise.
39900         * modules/pwrite (Depends-on): Likewise.
39901         * modules/scandir (Depends-on): Likewise.
39902         * modules/stat (Depends-on): Likewise.
39903         * modules/tmpfile (Depends-on): Likewise.
39904         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
39905         since the containing module now depends on the largefile module.
39906         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
39907         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
39908         off_t is fixed by gnulib.
39909         * doc/posix-functions/freopen.texi: Likewise.
39910         * doc/posix-functions/fseeko.texi: Likewise.
39911         * doc/posix-functions/fstatat.texi: Likewise.
39912         * doc/posix-functions/ftello.texi: Likewise.
39913         * doc/posix-functions/glob.texi: Likewise.
39914         * doc/posix-functions/lseek.texi: Likewise.
39915         * doc/posix-functions/lstat.texi: Likewise.
39916         * doc/posix-functions/mkstemp.texi: Likewise.
39917         * doc/posix-functions/open.texi: Likewise.
39918         * doc/posix-functions/openat.texi: Likewise.
39919         * doc/posix-functions/pread.texi: Likewise.
39920         * doc/posix-functions/pwrite.texi: Likewise.
39921         * doc/posix-functions/scandir.texi: Likewise.
39922         * doc/posix-functions/stat.texi: Likewise.
39923         * doc/posix-functions/tmpfile.texi: Likewise.
39924         * doc/glibc-functions/mkostemp.texi: Likewise.
39925         * doc/glibc-functions/mkostemps.texi: Likewise.
39926         * doc/glibc-functions/mkstemps.texi: Likewise.
39928 2011-07-25  Bruno Haible  <bruno@clisp.org>
39930         fcntl: Move AC_LIBOBJ invocation to module description.
39931         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
39932         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
39934         fcntl: Remove call-in from fchdir.m4.
39935         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
39936         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
39938         dup3: Remove potential call-in from fchdir.m4.
39939         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
39940         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
39942         dup2: Move AC_LIBOBJ invocation to module description.
39943         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
39944         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
39945         Don't invoke AC_LIBOBJ.
39946         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
39948         dup2: Remove call-in from fchdir.m4.
39949         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
39950         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
39952         fclose: Move AC_LIBOBJ invocation to module description.
39953         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
39954         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
39955         to 1.
39956         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
39958         fclose: Remove call-in from close.m4.
39959         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
39960         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
39962         close: Move AC_LIBOBJ invocation to module description.
39963         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
39964         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
39965         1.
39966         * modules/close (configure.ac): Invoke AC_LIBOBJ.
39968         close: Remove call-in from fchdir.m4.
39969         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
39970         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
39972         open: Move AC_LIBOBJ invocation to module description.
39973         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
39974         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
39975         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
39977         open: Remove call-in from fchdir.m4.
39978         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
39979         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
39981         fchdir: Start to remove gl_REPLACE_* idiom.
39982         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
39983         (gl_FUNC_FCHDIR): Invoke it.
39985 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
39987         * lib/ftell.c (ftell): Comment out cast.
39989         close: use gl_REPLACE_FCLOSE only if defined
39990         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
39991         is defined.  The close module doesn't depend on the fclose module
39992         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
39993         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
39994         I reproduced the problem with "./gnulib-tool --test close sys_socket".
39996 2011-07-24  Jim Meyering  <meyering@redhat.com>
39998         test-select.h: avoid warning when using gcc's -Wmissing-declarations
39999         * tests/test-select.h (test_function): Declare as "static".
40001 2011-07-24  Bruno Haible  <bruno@clisp.org>
40003         doc: Mention the effects of AC_SYS_LARGEFILE.
40004         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
40005         on this function.
40006         * doc/posix-functions/aio_error.texi: Likewise.
40007         * doc/posix-functions/aio_fsync.texi: Likewise.
40008         * doc/posix-functions/aio_read.texi: Likewise.
40009         * doc/posix-functions/aio_return.texi: Likewise.
40010         * doc/posix-functions/aio_suspend.texi: Likewise.
40011         * doc/posix-functions/aio_write.texi: Likewise.
40012         * doc/posix-functions/fgetpos.texi: Likewise.
40013         * doc/posix-functions/fopen.texi: Likewise.
40014         * doc/posix-functions/freopen.texi: Likewise.
40015         * doc/posix-functions/fsetpos.texi: Likewise.
40016         * doc/posix-functions/fstatvfs.texi: Likewise.
40017         * doc/posix-functions/ftruncate.texi: Likewise.
40018         * doc/posix-functions/ftw.texi: Likewise.
40019         * doc/posix-functions/getrlimit.texi: Likewise.
40020         * doc/posix-functions/glob.texi: Likewise.
40021         * doc/posix-functions/lio_listio.texi: Likewise.
40022         * doc/posix-functions/lockf.texi: Likewise.
40023         * doc/posix-functions/mkstemp.texi: Likewise.
40024         * doc/posix-functions/mmap.texi: Likewise.
40025         * doc/posix-functions/nftw.texi: Likewise.
40026         * doc/posix-functions/openat.texi: Likewise.
40027         * doc/posix-functions/opendir.texi: Likewise.
40028         * doc/posix-functions/posix_fadvise.texi: Likewise.
40029         * doc/posix-functions/posix_fallocate.texi: Likewise.
40030         * doc/posix-functions/pread.texi: Likewise.
40031         * doc/posix-functions/pwrite.texi: Likewise.
40032         * doc/posix-functions/readdir.texi: Likewise.
40033         * doc/posix-functions/readdir_r.texi: Likewise.
40034         * doc/posix-functions/rewinddir.texi: Likewise.
40035         * doc/posix-functions/scandir.texi: Likewise.
40036         * doc/posix-functions/seekdir.texi: Likewise.
40037         * doc/posix-functions/setrlimit.texi: Likewise.
40038         * doc/posix-functions/statvfs.texi: Likewise.
40039         * doc/posix-functions/telldir.texi: Likewise.
40040         * doc/posix-functions/tmpfile.texi: Likewise.
40041         * doc/posix-functions/truncate.texi: Likewise.
40042         * doc/glibc-functions/fallocate.texi: Likewise.
40043         * doc/glibc-functions/fstatfs.texi: Likewise.
40044         * doc/glibc-functions/fts_children.texi: Likewise.
40045         * doc/glibc-functions/fts_read.texi: Likewise.
40046         * doc/glibc-functions/getdirentries.texi: Likewise.
40047         * doc/glibc-functions/mkostemp.texi: Likewise.
40048         * doc/glibc-functions/mkostemps.texi: Likewise.
40049         * doc/glibc-functions/mkstemps.texi: Likewise.
40050         * doc/glibc-functions/preadv.texi: Likewise.
40051         * doc/glibc-functions/pwritev.texi: Likewise.
40052         * doc/glibc-functions/sendfile.texi: Likewise.
40053         * doc/glibc-functions/statfs.texi: Likewise.
40055 2011-07-24  Bruno Haible  <bruno@clisp.org>
40057         doc: Fix typo.
40058         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
40060 2011-07-24  Bruno Haible  <bruno@clisp.org>
40062         doc: Mention fsusage.
40063         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
40065 2011-07-24  Bruno Haible  <bruno@clisp.org>
40067         doc: Mention new glibc headers and functions.
40068         * doc/glibc-headers/gshadow.texi: New file.
40069         * doc/glibc-functions/endsgent.texi: New file.
40070         * doc/glibc-functions/fgetsgent.texi: New file.
40071         * doc/glibc-functions/fgetsgent_r.texi: New file.
40072         * doc/glibc-functions/getsgent.texi: New file.
40073         * doc/glibc-functions/getsgent_r.texi: New file.
40074         * doc/glibc-functions/getsgnam.texi: New file.
40075         * doc/glibc-functions/getsgnam_r.texi: New file.
40076         * doc/glibc-functions/putsgent.texi: New file.
40077         * doc/glibc-functions/setsgent.texi: New file.
40078         * doc/glibc-functions/sgetsgent.texi: New file.
40079         * doc/glibc-functions/sgetsgent_r.texi: New file.
40080         * doc/glibc-functions/malloc_info.texi: New file.
40081         * doc/glibc-functions/preadv.texi: New file.
40082         * doc/glibc-functions/pwritev.texi: New file.
40083         * doc/glibc-functions/register_printf_modifier.texi: New file.
40084         * doc/glibc-functions/register_printf_specifier.texi: New file.
40085         * doc/glibc-functions/register_printf_type.texi: New file.
40086         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
40087         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
40088         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
40089         * doc/glibc-functions/pthread_getname_np.texi: New file.
40090         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
40091         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
40092         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
40093         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
40094         * doc/glibc-functions/pthread_setname_np.texi: New file.
40095         * doc/glibc-functions/pthread_sigqueue.texi: New file.
40096         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
40097         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
40098         * doc/glibc-functions/qsort_r.texi: New file.
40099         * doc/glibc-functions/quick_exit.texi: New file.
40100         * doc/glibc-functions/syncfs.texi: New file.
40101         * doc/gnulib.texi: Include them.
40102         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
40103         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
40104         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
40105         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
40106         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
40107         * doc/glibc-functions/execvpe.texi: Likewise.
40109 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
40111         ftell: don't include <unistd.h>
40112         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
40113         guaranteed to define off_t, and the ftell module depends on the
40114         stdio module.
40116         ftell: do not assume wraparound signed arithmetic
40117         * lib/ftell.c: Include <limits.h>.
40118         (ftell): Don't assume wraparound signed arithmetic.
40120 2011-07-24  Bruno Haible  <bruno@clisp.org>
40122         close: No longer depend on module 'fclose'.
40123         * modules/close (Depends-on): Remove fclose.
40124         * NEWS: Mention the change.
40125         Suggested by Sam Steingold <sds@gnu.org>.
40127 2011-07-24  Bruno Haible  <bruno@clisp.org>
40129         fsusage: Enable large volume support on AIX >= 5.2.
40130         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
40131         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
40132         instead of STAT_STATVFS.
40133         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
40135         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
40136         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
40137         f_blocks field only on MacOS X.
40139         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
40140         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
40141         * modules/fsusage (Depends-on): Add largefile.
40143 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
40145         * README: Modernize discussion of signed integers.
40146         Assuming overflow wraparound is no longer safe.
40147         Mention ones' complement and signed magnitude.
40149 2011-07-22  Bruno Haible  <bruno@clisp.org>
40151         select tests, pselect tests: Refactor.
40152         * tests/test-select.h: New file, extracted from tests/test-select.c.
40153         (select_fn): New type.
40154         (test, do_select, do_select_nowait, do_select_wait, test_tty,
40155         test_connect_first, test_accept_first, test_pair, test_socket_pair,
40156         test_pipe): Add my_select argument.
40157         (test_function): Renamed from main. Add my_select argument.
40158         * tests/test-select.c: Move most code to tests/test-select.h. Include
40159         test-select.h.
40160         * modules/select-tests (Files): Add tests/test-select.h.
40161         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
40162         (my_select, main): New functions.
40163         * modules/pselect-tests (Files): Add tests/test-select.h,
40164         tests/macros.h, tests/signature.h.
40165         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
40166         (configure.ac): Check for <sys/wait.h>.
40168 2011-07-22  Bruno Haible  <bruno@clisp.org>
40170         sys_select tests: Check the signature of FD_*.
40171         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
40172         signature tests from here...
40173         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
40174         here.
40175         * modules/sys_select-tests (Files): Add tests/signature.h.
40177 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
40179         largefile: new module, replacing large-inode
40180         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
40181         * MODULES.html.sh: Add largefile, remove large-inode.
40182         * modules/largefile, m4/largefile.m4: New files.
40183         * modules/large-inode, m4/large-inode.m4: Remove.
40185         fsusage: port to MacOS X 10.7 with 4 TiB file systems
40186         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
40187         implementations that use only 32 bits to count blocks.
40188         On typical hosts with 1024-byte blocks, this fails with file
40189         systems as small as 4 TiB.  Problem reported by Herb Wartens
40190         <http://debbugs.gnu.org/9140> and this should also fix a similar
40191         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
40193         large-inode: New module
40194         * MODULES.html.sh: Add it.
40195         * modules/large-inode, m4/large-inode.m4: New files.
40197         extensions: Enable extensions on MacOS X 10.5 and later.
40198         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
40200 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
40202         file-has-acl: use acl_extended_file_nofollow if available
40203         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
40204         (acl_extended_file): New macro.
40205         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
40206         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
40208 2011-07-21  Bruno Haible  <bruno@clisp.org>
40210         Declare system functions in a way that works with C++.
40211         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
40212         declare fdopendir as extern "C".
40213         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
40214         declare frexpl as extern "C".
40215         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
40216         declare gai_strerror as extern "C".
40217         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
40218         programs, declare gai_strerror as extern "C".
40219         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
40220         declare getlogin_r as extern "C".
40221         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
40222         as extern "C".
40223         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
40224         declare ldexpl as extern "C".
40225         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
40226         as extern "C".
40227         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
40228         program, declare getmntinfo as extern "C".
40229         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
40230         stpncpy as extern "C".
40231         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
40232         program, declare __xpg_strerror_r as extern "C".
40233         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
40234         strndup as extern "C".
40235         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
40236         declare memset and bzero as extern "C".
40237         Reported by Sam Steingold <sds@gnu.org>.
40239 2011-07-12  Jim Meyering  <meyering@redhat.com>
40241         maint.mk: prohibit inclusion of "verify.h" without use
40242         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
40244 2011-07-19  Pádraig Brady  <P@draigBrady.com>
40246         timer-time: A new module to check for timer_settime()
40247         * m4/timer_time.m4: Check for the posix function.
40248         * modules/timer-time: Add the new module.
40249         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
40250         Mention it.
40252 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
40253             Bruno Haible  <bruno@clisp.org>
40255         pthread_sigmask: assume POSIX threads if --avoid=threadlib
40256         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
40257         not defined, assume POSIX threads and look for pthread_sigmask in
40258         $LIBS, without changing $CPPFLAGS.
40260 2011-07-19  Bruno Haible  <bruno@clisp.org>
40262         strstr: Update cross-compilation guess.
40263         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
40264         CPUs, guess no, in view of glibc
40265         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
40266         Suggested by Eric Blake. Reported by Reuben Thomas.
40268 2011-07-19  Pádraig Brady  <P@draigBrady.com>
40270         getopt-gnu: suppress core dumps from detection code
40271         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
40272         to suppress core dumps that may well occur on glibc systems.
40273         * modules/getopt-gnu: Depend on nocrash.
40275 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
40277         pthread_sigmask: ensure usleep is declared
40278         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
40279         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
40281 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
40283         doc: Document NonStop portability issues.
40284         * doc/posix-functions/sigaction.texi (sigaction):
40285         * doc/posix-headers/signal.texi (signal.h):
40286         Document NonStop.  See Joachim Schmitz in
40287         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
40289 2011-07-15  Bruno Haible  <bruno@clisp.org>
40291         ffsl, ffsll: Avoid unportable behaviour.
40292         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
40294 2011-07-15  Bruno Haible  <bruno@clisp.org>
40296         ffs: More tests.
40297         * tests/test-ffs.c (NBITS): New macro.
40298         (main): Add more tests.
40299         * tests/test-ffsl.c (NBITS): New macro.
40300         (main): Add more tests.
40301         * tests/test-ffsll.c (NBITS): New macro.
40302         (main): Add more tests.
40304 2011-07-15  Eric Blake  <eblake@redhat.com>
40306         ffsl, ffsll: new modules
40307         * modules/ffsl: New file.
40308         * modules/ffsll: Likewise.
40309         * m4/ffsl.m4: Likewise.
40310         * m4/ffsll.m4: Likewise.
40311         * lib/ffsl.c: Likewise.
40312         * lib/ffsl.h: Likewise.
40313         * lib/ffsll.c: Likewise.
40314         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
40315         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
40316         * modules/string (Makefile.am): Substitute witnesses.
40317         * lib/strings.in.h (ffsl, ffsll): Declare.
40318         * modules/ffsl-tests: New test file.
40319         * modules/ffsll-tests: Likewise.
40320         * tests/test-ffsl.c: Likewise.
40321         * tests/test-ffsll.c: Likewise.
40322         * MODULES.html.sh (Integer arithmetic functions): Mention it.
40323         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
40324         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
40326         ffs: fix m4 prerequisite
40327         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
40329         ffs: avoid undefined behavior
40330         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
40331         * tests/test-ffs.c (naive, main): Avoid signed shifts.
40332         Reported by Bruno Haible.
40334 2011-07-12  Bruno Haible  <bruno@clisp.org>
40336         pthread_sigmask: Rely on module 'threadlib'.
40337         * modules/pthread_sigmask (Depends-on): Add threadlib.
40338         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
40339         is defined.
40341 2011-07-12  Bruno Haible  <bruno@clisp.org>
40343         regex: Depend on module 'strcase'.
40344         * modules/regex (Depends-on): Add strcase, for strcasecmp().
40346 2011-07-12  Jim Meyering  <meyering@redhat.com>
40348         warn-on-use: fix typo in file name
40349         * modules/snippet/warn-on-use (Files): Correct file name:
40350         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
40352 2011-07-12  Bruno Haible  <bruno@clisp.org>
40354         strings: Document module.
40355         * doc/posix-headers/strings.texi: Mention module 'strings'.
40357 2011-07-12  Bruno Haible  <bruno@clisp.org>
40359         Rename module '_Noreturn' to 'snippet/_Noreturn'.
40360         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
40361         (Files, Makefile.am): Update.
40362         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
40363         * modules/stdlib (Depends-on): Update.
40365 2011-07-12  Bruno Haible  <bruno@clisp.org>
40367         * NEWS: Mention the changes.
40369         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
40370         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
40371         (Files, Makefile.am): Update.
40372         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
40373         * modules/arpa_inet (Depends-on): Update.
40374         * modules/ctype (Depends-on): Update.
40375         * modules/dirent (Depends-on): Update.
40376         * modules/fcntl-h (Depends-on): Update.
40377         * modules/glob (Depends-on): Update.
40378         * modules/iconv-h (Depends-on): Update.
40379         * modules/inttypes-incomplete (Depends-on): Update.
40380         * modules/langinfo (Depends-on): Update.
40381         * modules/locale (Depends-on): Update.
40382         * modules/math (Depends-on): Update.
40383         * modules/netdb (Depends-on): Update.
40384         * modules/poll-h (Depends-on): Update.
40385         * modules/pty (Depends-on): Update.
40386         * modules/search (Depends-on): Update.
40387         * modules/signal (Depends-on): Update.
40388         * modules/spawn (Depends-on): Update.
40389         * modules/stdio (Depends-on): Update.
40390         * modules/stdlib (Depends-on): Update.
40391         * modules/string (Depends-on): Update.
40392         * modules/strings (Depends-on): Update.
40393         * modules/sys_file (Depends-on): Update.
40394         * modules/sys_ioctl (Depends-on): Update.
40395         * modules/sys_select (Depends-on): Update.
40396         * modules/sys_socket (Depends-on): Update.
40397         * modules/sys_stat (Depends-on): Update.
40398         * modules/sys_time (Depends-on): Update.
40399         * modules/sys_times (Depends-on): Update.
40400         * modules/sys_utsname (Depends-on): Update.
40401         * modules/sys_wait (Depends-on): Update.
40402         * modules/termios (Depends-on): Update.
40403         * modules/time (Depends-on): Update.
40404         * modules/unistd (Depends-on): Update.
40405         * modules/wchar (Depends-on): Update.
40406         * modules/wctype-h (Depends-on): Update.
40407         * MODULES.html.sh (Support for building libraries and executables):
40408         Update.
40410         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
40411         * modules/snippet/unused-parameter: Renamed from
40412         modules/unused-parameter.
40413         (Files, Makefile.am): Update.
40414         * build-aux/snippet/unused-parameter.h: Renamed from
40415         build-aux/unused-parameter.h.
40416         * modules/selinux-h (Depends-on): Update.
40417         * modules/unistr/base (Depends-on): Update.
40418         * MODULES.html.sh (Core language properties): Update.
40420         Rename module 'link-warning' to 'snippet/link-warning'.
40421         * modules/snippet/link-warning: Renamed from modules/link-warning.
40422         (Files, Makefile.am): Update.
40423         * build-aux/snippet/link-warning.h: Renamed from
40424         build-aux/link-warning.h.
40425         * MODULES.html.sh (Support for building libraries and executables):
40426         Update.
40428         Rename module 'c++defs' to 'snippet/c++defs'.
40429         * modules/snippet/c++defs: Renamed from modules/c++defs.
40430         (Files, Makefile.am): Update.
40431         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
40432         * modules/arpa_inet (Depends-on): Update.
40433         * modules/ctype (Depends-on): Update.
40434         * modules/dirent (Depends-on): Update.
40435         * modules/fcntl-h (Depends-on): Update.
40436         * modules/glob (Depends-on): Update.
40437         * modules/iconv-h (Depends-on): Update.
40438         * modules/langinfo (Depends-on): Update.
40439         * modules/locale (Depends-on): Update.
40440         * modules/math (Depends-on): Update.
40441         * modules/netdb (Depends-on): Update.
40442         * modules/poll-h (Depends-on): Update.
40443         * modules/pty (Depends-on): Update.
40444         * modules/search (Depends-on): Update.
40445         * modules/signal (Depends-on): Update.
40446         * modules/spawn (Depends-on): Update.
40447         * modules/stdio (Depends-on): Update.
40448         * modules/stdlib (Depends-on): Update.
40449         * modules/string (Depends-on): Update.
40450         * modules/strings (Depends-on): Update.
40451         * modules/sys_ioctl (Depends-on): Update.
40452         * modules/sys_select (Depends-on): Update.
40453         * modules/sys_socket (Depends-on): Update.
40454         * modules/sys_stat (Depends-on): Update.
40455         * modules/sys_time (Depends-on): Update.
40456         * modules/sys_wait (Depends-on): Update.
40457         * modules/termios (Depends-on): Update.
40458         * modules/time (Depends-on): Update.
40459         * modules/unistd (Depends-on): Update.
40460         * modules/wchar (Depends-on): Update.
40461         * modules/wctype-h (Depends-on): Update.
40463         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
40464         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
40465         (Files, Makefile.am): Update.
40466         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
40467         * modules/argv-iter (Depends-on): Update.
40468         * modules/arpa_inet (Depends-on): Update.
40469         * modules/dirent (Depends-on): Update.
40470         * modules/fcntl-h (Depends-on): Update.
40471         * modules/fnmatch (Depends-on): Update.
40472         * modules/getopt-posix (Depends-on): Update.
40473         * modules/glob (Depends-on): Update.
40474         * modules/iconv-h (Depends-on): Update.
40475         * modules/inttypes-incomplete (Depends-on): Update.
40476         * modules/locale (Depends-on): Update.
40477         * modules/math (Depends-on): Update.
40478         * modules/netdb (Depends-on): Update.
40479         * modules/search (Depends-on): Update.
40480         * modules/signal (Depends-on): Update.
40481         * modules/spawn (Depends-on): Update.
40482         * modules/stdio (Depends-on): Update.
40483         * modules/stdlib (Depends-on): Update.
40484         * modules/string (Depends-on): Update.
40485         * modules/strings (Depends-on): Update.
40486         * modules/sys_socket (Depends-on): Update.
40487         * modules/sys_stat (Depends-on): Update.
40488         * modules/sys_time (Depends-on): Update.
40489         * modules/sys_times (Depends-on): Update.
40490         * modules/sys_utsname (Depends-on): Update.
40491         * modules/time (Depends-on): Update.
40492         * modules/unistd (Depends-on): Update.
40493         * modules/wchar (Depends-on): Update.
40494         * MODULES.html.sh (Support for building libraries and executables):
40495         Update.
40497 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
40499         Improvements on _Noreturn and related modules.
40501         modules/_Exit-tests: test _Noreturn too
40502         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
40503         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
40504         (main): Use them.
40506         stdnoreturn, stdnoreturn-tests: remove modules
40507         They're not needed here and a bit premature for use elsewhere.  See
40508         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
40509         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
40510         * tests/test-stdnoreturn.c: Remove files.
40511         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
40512         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
40513         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
40514         and using noreturn.
40515         * modules/openat, modules/sigpipe-die, modules/xalloc:
40516         * modules/xmemdup0, modules/xstrtol:
40517         Remove dependency on stdnoreturn.
40519         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
40520         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
40521         Reparenthesize to avoid GCC warning.
40522         Support Microsoft's syntax.
40523         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
40525         _Noreturn-tests: remove module
40526         * modules/_Noreturn-tests: Remove.
40527         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
40528         * tests/test-_Noreturn.c: Remove.
40529         * tests/test-stdnoreturn.c: Merge from the old
40530         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
40532 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
40534         _Noreturn, stdnoreturn, and related modules.
40536         * top/maint.mk: Adjust to new noreturn support.
40537         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
40538         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
40540         xalloc: use stdnoreturn.h
40541         * lib/xalloc.h: Include <stdnoreturn.h>.
40542         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
40543         * modules/xalloc (Depends-on): Add stdnoreturn.
40545         xstrtol: use stdnoreturn.h
40546         * lib/xstrtol.h: Include <stdnoreturn.h>.
40547         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
40548         * modules/xstrtol (Depends-on): Add stdnoreturn.
40550         xmemdup0: use stdnoreturn.h
40551         * lib/xmemdup0.h: Include <stdnoreturn.h>.
40552         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
40553         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
40555         sigpipe-die: use stdnoreturn.h
40556         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
40557         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
40558         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
40560         openat: use stdnoreturn.h
40561         * lib/openat.h: Include <stdnoreturn.h>.
40562         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
40563         * modules/openat (Depends-on): Add stdnoreturn.
40565         * lib/openat-die.c (openat_save_fail): Modernize comment.
40567         * lib/xalloc-die.c (xalloc_die): Modernize comment.
40569         * lib/glthread/thread.h: Modernize comment.
40571         obstack: use _Noreturn
40572         * lib/obstack.c (__attribute__): Remove macro.
40573         (print_and_abort): Use _Noreturn.
40575         c-stack: use _Noreturn
40576         * lib/c-stack.c (die, overflow_handler, segv_handler):
40577         Use _Noreturn rather than __attribute__((noreturn)).
40579         argmatch-tests, exclude_tests: use _Noreturn
40580         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
40581         Remove.
40582         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
40584         stdlib: use _Noreturn
40585         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
40586         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
40587         * modules/stdlib (Depends-on): Add _Noreturn.
40588         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
40590         stdnoreturn-tests: new module
40591         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
40593         stdnoreturn: new module
40594         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
40595         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
40597         _Noreturn-tests: new module
40598         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
40600         _Noreturn: new module
40601         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
40602         New section, mentioning it.
40603         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
40605         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
40607 2011-07-11  Eric Blake  <eblake@redhat.com>
40609         ffs: new module
40610         * modules/ffs: New file.
40611         * m4/ffs.m4: Likewise.
40612         * lib/ffs.c: Likewise.
40613         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
40614         * modules/strings (Makefile.am): Substitute witness.
40615         (Depends-on): Add c++defs.
40616         * lib/strings.in.h (ffs): Declare.
40617         * modules/ffs-tests: New test file.
40618         * tests/test-ffs.c: Test new module.
40619         * MODULES.html.sh (Integer arithmetic functions): Mention it.
40620         * doc/posix-functions/ffs.texi (ffs): Likewise.
40622         regex: avoid compiler warning
40623         * lib/regex.c (includes): Include <strings.h>, for use of
40624         strcasecmp in regcomp.c.
40625         Reported by Joachim Schmitz.
40627 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
40629         stdint: respect system's intmax_t if INTMAX_MAX
40630         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
40631         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
40632         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
40633         long but int64_t is long long, and where we will clash with the
40634         system intmax_t if we override it.  See
40635         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
40636         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
40637         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
40638         similarly for UINTMAX_C.
40640 2011-07-08  Bruno Haible  <bruno@clisp.org>
40642         pthread_sigmask tests: Avoid a compiler warning.
40643         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
40644         non-zero.
40646         sigprocmask tests: A better way to avoid a compiler warning.
40647         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
40648         (main): Complain if system() returns non-zero.
40649         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
40651 2011-07-08  Bruno Haible  <bruno@clisp.org>
40653         pthread_sigmask: Work around IRIX bug.
40654         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
40655         bug.
40656         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
40657         there may be unblocked pending signals.
40658         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
40660 2011-07-08  Bruno Haible  <bruno@clisp.org>
40662         pthread_sigmask: Work around Cygwin bug.
40663         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
40664         bug.
40665         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
40666         the system's pthread_sigmask function.
40667         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
40669 2011-07-08  Bruno Haible  <bruno@clisp.org>
40671         pthread_sigmask: Work around bug in single-threaded implementation.
40672         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
40673         FreeBSD, HP-UX, Solaris bug.
40674         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
40675         * lib/pthread_sigmask.c: Include <stddef.h>.
40676         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
40677         the system's pthread_sigmask function.
40678         * modules/pthread_sigmask (configure.ac): Invoke
40679         gl_PREREQ_PTHREAD_SIGMASK.
40680         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
40681         HP-UX, Solaris.
40683 2011-07-08  Eric Blake  <eblake@redhat.com>
40685         test-sigprocmask: avoid compiler warning
40686         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
40687         * tests/test-sigprocmask.c (main): Use it to silence warning.
40688         Reported by Jim Meyering.
40690         test-snprintf: avoid compiler warning
40691         * tests/test-snprintf.c (main): Avoid shadowed declaration.
40692         * tests/test-vsnprintf.c (main): Likewise.
40693         Reported by Jim Meyering.
40695 2011-07-08  Bruno Haible  <bruno@clisp.org>
40697         Tests for module 'pthread_sigmask'.
40698         * modules/pthread_sigmask-tests: New file.
40699         * tests/test-pthread_sigmask1.c: New file, based on
40700         tests/test-sigprocmask.c.
40701         * tests/test-pthread_sigmask2.c: New file.
40703 2011-07-08  Jim Meyering  <meyering@redhat.com>
40705         test-getopt.h: avoid warning about an unused variable
40706         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
40708 2011-07-07  Jim Meyering  <meyering@redhat.com>
40710         maint: reduce list of files exempt from sc_prohibit_leading_TABs
40711         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
40712         now that it no longer contains leading TABs.
40713         Remove unused "url=FIXME" statement.
40715 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
40717         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
40718         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
40719         When gl_THREADLIB is not in use, assume that the POSIX sematics
40720         are desired.  This is better for Emacs, which uses POSIX semantics
40721         on GNUish and/or POSIXish platforms, and does not use threads at
40722         all otherwise.
40724         pthread_sigmask: fix typo when testing for libraries
40725         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
40726         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
40728 2011-07-08  Eric Blake  <eblake@redhat.com>
40730         fts: introduce FTS_NOATIME
40731         * lib/fts_.h (FTS_NOATIME): New bit flag.
40732         (FTS_OPTIONMASK): Adjust.
40733         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
40734         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
40736 2011-07-08  Bruno Haible  <bruno@clisp.org>
40738         Tests for module 'thread'.
40739         * modules/thread-tests: New file.
40740         * tests/test-thread_self.c: New file.
40741         * tests/test-thread_create.cc: New file.
40743 2011-07-08  Bruno Haible  <bruno@clisp.org>
40745         thread: Avoid gcc warnings when using gl_thread_self().
40746         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
40747         'void *'.
40748         (gl_thread_self_pointer): Update.
40750 2011-07-07  Bruno Haible  <bruno@clisp.org>
40752         signal-c++-tests: Check declaration of pthread_sigmask.
40753         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
40754         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
40755         $(LIB_PTHREAD_SIGMASK).
40757 2011-07-07  Bruno Haible  <bruno@clisp.org>
40759         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
40760         * lib/signal.in.h (pthread_sigmask): Override if
40761         REPLACE_PTHREAD_SIGMASK is 1.
40762         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
40763         REPLACE_PTHREAD_SIGMASK.
40764         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
40765         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
40766         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
40767         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
40768         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
40770 2011-07-07  Bruno Haible  <bruno@clisp.org>
40772         pthread_sigmask: Ensure declaration in <signal.h>.
40773         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
40774         include <pthread.h>.
40775         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
40776         problem.
40778 2011-07-07  Bruno Haible  <bruno@clisp.org>
40780         pthread_sigmask: Document the module.
40781         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
40783 2011-07-07  Bruno Haible  <bruno@clisp.org>
40785         pthread_sigmask: Follow gnulib conventions.
40786         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
40787         gl_PTHREAD_SIGMASK.
40788         * modules/pthread_sigmask (configure.ac): Update.
40790 2011-07-07  Bruno Haible  <bruno@clisp.org>
40792         pthread_sigmask: Make declaration C++ safe.
40793         * lib/signal.in.h: In two special conditions, just do an #include_next.
40794         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
40795         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
40796         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
40797         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
40798         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
40799         not REPLACE_PTHREAD_MASK.
40800         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
40801         not REPLACE_PTHREAD_MASK.
40802         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
40804 2011-07-07  Bruno Haible  <bruno@clisp.org>
40806         pthread_sigmask: Fix return value.
40807         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
40808         * lib/pthread_sigmask.c: New file.
40809         * modules/pthread_sigmask (Files): Add it.
40810         (configure.ac): Invoke AC_LIBOBJ.
40812 2011-07-07  Eric Blake  <eblake@redhat.com>
40814         getopt: more portable argv creation
40815         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
40816         const, use char arrays rather than strings.
40817         Suggested by Paul Eggert.
40819 2011-07-07  Bruno Haible  <bruno@clisp.org>
40821         Tests for module 'sigprocmask'.
40822         * modules/sigprocmask-tests: New file.
40823         * tests/test-sigprocmask.c: New file.
40825 2011-07-07  Bruno Haible  <bruno@clisp.org>
40827         float tests: Tweak.
40828         * tests/test-float.c (main): Tweak skip message.
40830 2011-07-07  Eric Blake  <eblake@redhat.com>
40832         getopt: avoid compiler warning during configure
40833         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
40834         assigning string literals to non-const pointer.
40836         getopt-gnu: avoid crash in glibc getopt
40837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
40838         * tests/test-getopt.h (test_getopt): Enhance test.
40839         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40840         * doc/posix-functions/getopt.texi (getopt): Document it.
40841         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
40842         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40843         Likewise.
40845 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
40847         getopt: handle W; without long options in getopt [BZ #12922]
40848         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
40849         but no long options are defined, just return 'W'.
40851 2011-07-07  Bruno Haible  <bruno@clisp.org>
40853         Avoid literal tabs.
40854         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
40855         variable containing a tab instead of a literal tab.
40856         Reported by Jim Meyering.
40858 2011-07-07  Bruno Haible  <bruno@clisp.org>
40860         Comments.
40861         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
40863 2011-07-06  Bruno Haible  <bruno@clisp.org>
40865         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
40866         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
40867         <winsock2.h>.
40868         (rpl_fd_isset, FD_ISSET): New definitions, copied from
40869         lib/sys_socket.in.h.
40870         (close, gethostname): Hide declarations from <winsock2.h>.
40871         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40872         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
40873         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
40874         (select): Don't override if gnulib's <sys/select.h> was already
40875         included.
40876         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
40877         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
40878         setsockopt, shutdown, select): Tweak indentation.
40880 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
40882         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
40883         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
40884         in an application that does not use the sys_select module.
40886 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
40888         poll: do not return 0 on timeout=-1
40889         * lib/poll.c: Loop with yield if no events occurred.
40891 2011-07-06  Eric Blake  <eblake@redhat.com>
40893         pthread_sigmask: always replace when not using pthread
40894         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
40895         replacement when using some threading other than pthread.  Fix
40896         logic bug.
40898 2011-07-06  Bruno Haible  <bruno@clisp.org>
40900         Comments.
40901         * m4/printf.m4: Update comments about mingw.
40903 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
40905         sys_select: define sigset_t more portably
40906         * lib/sys_select.in.h: Always include <sys/types.h>, since
40907         we now need sigset_t and mingw defines it there.
40908         Include <signal.h> before split inclusion guard, to avoid
40909         mishaps on Solaris, whose <signal.h> eventually includes us.
40910         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
40911         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
40912         which come from ...
40913         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
40914         gl_CHECK_TYPE_SIGSET_T.
40915         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
40916         does the real work.
40917         * modules/sys_select (Depends-on): Add 'signal'.
40919         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
40920         Suggested by Bruno Haible.
40922         pselect: Use pthread_sigmask, not sigprocmask.
40923         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
40924         multithreaded apps better than sigprocmask does.
40925         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
40926         sigprocmask directly.
40928 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
40930         * lib/pselect.c (pselect): Use plain name, without "rpl_".
40931         Don't #undef,  since we don't need any underlying pselect.
40932         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
40933         (Depends-on): Add select.
40934         (Link): Add $(LIBSOCKET).
40935         These changes suggested by Bruno Haible.
40937         pselect: document better
40938         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
40939         * doc/posix-functions/pselect.texi (pselect): Document new module.
40941         pthread_sigmask: new module
40942         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
40943         * doc/posix-functions/pthread_sigmask.texi: Document new module.
40944         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
40945         This is done only as a macro; I don't know how well that'll
40946         work for C++.  Move <sys/types.h> include before the include_next,
40947         to avoid mishap on Solaris.
40948         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
40949         * modules/signal (Makefile.am): Substitute the check's results.
40950         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
40952         test-pselect: new module
40953         * modules/pselect-tests, tests/test-pselect.c: New files.
40954         * tests/test-select.c, tests/test-sys_select-c++.cc:
40955         If TEST_PSELECT is defined, test pselect instead of testing select.
40957         * tests/test-sys_select.c (sigset_t): Test for it, too.
40958         Suggested by Bruno Haible.
40960 2011-07-05  Eric Blake  <eblake@redhat.com>
40962         snprintf: guarantee %1$d, for libintl
40963         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
40964         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40965         * doc/posix-functions/snprintf.texi (snprintf): Update.
40966         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40967         * tests/test-snprintf.c (main): Enhance test.
40968         * tests/test-vsnprintf.c (main): Likewise.
40970 2011-07-05  Jim Meyering  <meyering@redhat.com>
40972         maint: exempt stdio-read.c and stdio-write.c from the cppi check
40973         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
40974         per Bruno's request, to accommodate this idiom (no space after "#")
40975         even when the function is inside an #if block:
40976         char *
40977         gets (char *s)
40978         #undef gets
40979         {
40980           ...
40981         }
40983 2011-07-04  Jim Meyering  <meyering@redhat.com>
40985         maint: indent with spaces, not TABs, and add a rule to check this
40986         * tests/test-userspec.c: Indent with spaces, not TABs.
40987         * tests/test-argp.c: Likewise.
40988         * tests/test-c-stack2.sh: Likewise.
40989         * tests/test-parse-duration.sh: Likewise
40990         * m4/strtod.m4: Likewise.
40991         * m4/alloca.m4: Likewise.
40992         * m4/pselect.m4: Likewise.
40993         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
40995 2011-07-03  Jim Meyering  <meyering@redhat.com>
40997         maint.mk: correct omissions in prohibit_argmatch_without_use check
40998         This rule would mistakenly report that argmatch.h is included without
40999         use even when both the argmatch and invalid_arg macro were used.
41000         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
41001         of argmatch and invalid_arg.
41003 2011-07-03  Bruno Haible  <bruno@clisp.org>
41005         Comments about EINTR.
41006         * lib/safe-read.h: Explain the purpose of this module.
41007         * lib/safe-write.h: Likewise.
41008         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
41009         module.
41010         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
41011         module.
41012         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41014 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
41016         xnanosleep: Rewrite to use new dtotimespec module.
41017         It has the conversion code that used to be in xnanosleep.
41018         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
41019         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
41020         (TIME_T_MAX): Remove.
41021         (xnanosleep): Rewrite in terms of dtotimespec.
41022         * modules/xnanosleep (Depends-on): Add dtotimespec.
41023         Remove intprops, stdbool.
41025         timespec-add, timespec-sub: new modules
41026         * lib/timespec.h (timespec_add, timespec_sub): New decls.
41027         * lib/timespec-add.c, lib/timespec-sub.c:
41028         * modules/timespec-add, modules/timespec-sub: New files.
41030         dtotimespec: new module
41031         * lib/timespec.h (dtotimespec): New decl.
41032         * lib/dtotimespec.c, modules/dtotimespec: New files.
41034         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
41036         pselect: new module
41037         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
41038         (pselect): New decls.
41039         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
41040         since the standard pselect decl uses 'restrict'.
41041         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
41042         HAVE_PSELECT, REPLACE_PSELECT.
41043         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
41044         HAVE_PSELECT, REPLACE_PSELECT.
41045         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
41047         sys_select: don't depend on sys_socket
41048         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
41049         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
41050         This fix works on GNU and GNU-like platforms, but has not been tested
41051         on native Windows.
41052         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
41053         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
41054         gl_HEADER_SYS_SOCKET.
41055         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
41056         gl_PREREQ_SYS_H_WINSOCK2.
41058 2011-06-29  Eric Blake  <eblake@redhat.com>
41060         pipe2: fix C89 compile problem
41061         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
41062         Reported by Bruno Haible.
41064         pipe, pipe2: don't corrupt fd on error
41065         * lib/pipe.c (pipe): Leave fd unchanged on error.
41066         * lib/pipe2.c (pipe2): Likewise.
41067         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
41068         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
41070 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
41072         mmap-anon: do not use regular expressions inadvertently
41073         * m4/mmap-anon.m4: Remove trailing period from strings sought
41074         in the output.
41076 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
41078         nanosleep: fix integer overflow problem
41079         * lib/nanosleep.c (my_usleep): Don't assume signed integer
41080         arithmetic wraps around on overflow.
41082         nanosleep: simplify carrying
41083         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
41084         first call to the underyling nanosleep, not for the last one.
41085         This doesn't fix any bugs, but it simplifies the computation of
41086         the remaining delay.  Found while auditing integer overflow issues.
41088         dup2: remove test for existence of fcntl
41089         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
41090         "#if HAVE_FCNTL", in the configure-time test program.
41091         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
41092         and therefore speeds up "configure" a bit.  Found while
41093         adding the dup2 module to Emacs.
41095 2011-06-24  Eric Blake  <eblake@redhat.com>
41097         maint.mk: enhance useless header checks
41098         * top/maint.mk (_sc_header_without_use): Check both include
41099         styles.
41100         (sc_prohibit_assert_without_use)
41101         (sc_prohibit_close_stream_without_use)
41102         (sc_prohibit_getopt_without_use)
41103         (sc_prohibit_quotearg_without_use)
41104         (sc_prohibit_quote_without_use)
41105         (sc_prohibit_long_options_without_use)
41106         (sc_prohibit_inttostr_without_use)
41107         (sc_prohibit_ignore_value_without_use)
41108         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
41109         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
41110         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
41111         (sc_prohibit_hash_pjw_without_use)
41112         (sc_prohibit_safe_read_without_use)
41113         (sc_prohibit_argmatch_without_use)
41114         (sc_prohibit_canonicalize_without_use)
41115         (sc_prohibit_root_dev_ino_without_use)
41116         (sc_prohibit_openat_without_use)
41117         (sc_prohibit_c_ctype_without_use)
41118         (sc_prohibit_signal_without_use)
41119         (sc_prohibit_stdio--_without_use)
41120         (sc_prohibit_stdio-safer_without_use)
41121         (sc_prohibit_strings_without_use)
41122         (sc_prohibit_intprops_without_use)
41123         (sc_prohibit_stddef_without_use)
41124         (sc_prohibit_xfreopen_without_use): Update clients.
41126 2011-06-24  Jim Meyering  <meyering@redhat.com>
41128         syntax-check: keep one maint.mk rule in sync with its header
41129         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
41130         of the bug Eric has just fixed, with today's commit 25e4c2ec.
41131         I prefer to avoid temporary files here, so use <(...), but that
41132         is not supported by /bin/sh, so...
41133         (SHELL): Define to /bin/bash.
41135 2011-06-24  Eric Blake  <eblake@redhat.com>
41137         maint.mk: update sc_prohibit_intprops_without_use
41138         * top/maint.mk (_intprops_names): Match recent changes.
41140 2011-06-24  Bruno Haible  <bruno@clisp.org>
41142         strerror-override: No-op tweak.
41143         * lib/strerror-override.h (strerror_override): Reorder conditions,
41144         for consistency with lib/strerror-override.c.
41146 2011-06-23  Eric Blake  <eblake@redhat.com>
41148         maint.mk: test further PATH_MAX issues
41149         * top/maint.mk (sc_prohibit_path_max_array): Rename...
41150         (sc_prohibit_path_max_allocation): ...and also test alloca.
41151         Suggested by Jim Meyering.
41153 2011-06-22  Eric Blake  <eblake@redhat.com>
41155         maint.mk: add syntax-check to avoid char[PATH_MAX]
41156         * top/maint.mk (sc_prohibit_path_max_array): New rule.
41158         stat: be robust to PATH_MAX definition
41159         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
41160         * modules/stat (Depends-on): Add verify.
41162         link: work around IRIX bug
41163         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
41164         * lib/link.c (rpl_link): Work around it.
41165         * tests/test-link.h (test_link): Enhance test.
41166         * doc/posix-functions/link.texi (link): Document the bug.
41168         getopt: silence clang warning
41169         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
41170         dereference.
41171         Reported by Gustavo Martin Domato.
41173 2011-06-22  Jim Meyering  <meyering@redhat.com>
41175         bootstrap: do not insert a blank line into each .gitignore file
41176         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
41178 2011-06-21  Eric Blake  <eblake@redhat.com>
41180         perror: test for output mismatch
41181         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
41182         perror on IRIX.
41184         strerror_r: fix OpenBSD behavior on out-of-range
41185         * lib/strerror_r.c (strerror_r): Always use maximal string.
41186         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
41188         strerror_r: fix OpenBSD behavior on 0
41189         * lib/strerror-override.c (strerror_override): Also override 0
41190         when needed.
41191         * lib/strerror-override.h (strerror_override): Likewise.
41192         * lib/strerror.c (strerror): Simplify, now that 0 override is done
41193         earlier.
41194         * lib/strerror_r.c (strerror_r): Likewise.
41195         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
41196         behavior...
41197         (gl_FUNC_STRERROR_0): ...into new macro.
41198         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
41199         is overridden.
41200         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
41201         * modules/strerror-override (Files): Add strerror.m4.
41202         (configure.ac): Also provide override for 0 when needed.
41203         * doc/posix-functions/strerror.texi (strerror): Document this.
41204         * doc/posix-functions/perror.texi (perror): Likewise.
41206         perror: adjust array size
41207         * modules/perror (Depends-on): Add strerror-override.
41208         * lib/perror.c (perror): Use it to avoid magic number.
41210         strerror-override: reduce size
41211         * lib/strerror-override.c (strerror_override): Use fewer lines.
41213 2011-06-20  Bruno Haible  <bruno@clisp.org>
41215         pathmax: Ensure correct value for PATH_MAX on HP-UX.
41216         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
41218 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
41220         alloca: port to compilers that can optimize like GCC 4.6.0
41221         * lib/alloca.c (find_stack_direction): New signature, taken from
41222         Autoconf git.  This works with GCC 4.6.0.  This code should never
41223         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
41224         be used with other compilers that optimize as well as GCC 4.6.0 does.
41225         (alloca): Adjust to new signature.
41226         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
41227         New macro, which patches Autoconf in a similar way.
41229         c-stack: stop worrying about stack direction
41230         * lib/c-stack.c (find_stack_direction): Remove.
41231         (segv_handler): Don't worry about stack direction growth, as it's
41232         too much of a pain to configure this correctly, given how compilers
41233         are optimizing-away our stack-growth detection code.  Instead, assume
41234         that any access to just before or just after the stack is OK.
41235         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
41236         Don't require AC_FUNC_ALLOCA; no longer needed.
41238 2011-06-20  Eric Blake  <eblake@redhat.com>
41240         test-stat: don't allocate PATH_MAX bytes
41241         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
41242         PATH_MAX-sized buffer.
41243         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
41244         * modules/stat-tests (Depends-on): Likewise.
41245         * tests/test-fstatat.c (includes): Drop pathmax.h.
41246         * tests/test-stat.c (includes): Likewise.
41247         Reported by Bruno Haible.
41249 2011-06-20  Bruno Haible  <bruno@clisp.org>
41251         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
41252         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
41253         * lib/float.c: New file.
41254         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
41255         REPLACE_FLOAT_LDBL.
41256         * modules/float (Files): Add lib/float.c.
41257         (configure.ac): Invoke AC_LIBOBJ.
41258         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
41260 2011-06-20  Bruno Haible  <bruno@clisp.org>
41262         Tests for module 'float'.
41263         * modules/float-tests: New file.
41264         * tests/test-float.c: New file.
41266 2011-06-19  Bruno Haible  <bruno@clisp.org>
41268         isinf: Coding style.
41269         * lib/isinf.c: Use GNU coding style.
41271 2011-06-19  Bruno Haible  <bruno@clisp.org>
41273         linkat test: Avoid test failure on AIX 7.1.
41274         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
41275         * tests/test-link.h (test_link): Likewise.
41277 2011-06-19  Bruno Haible  <bruno@clisp.org>
41279         pread test: Avoid test failure on OpenBSD 4.9.
41280         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
41282 2011-06-19  Bruno Haible  <bruno@clisp.org>
41284         sprintf-posix: Fix test failure on AIX 7.1.
41285         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
41286         * doc/posix-functions/dprintf.texi: Mention limited precision problem
41287         on AIX.
41288         * doc/posix-functions/fprintf.texi: Likewise.
41289         * doc/posix-functions/printf.texi: Likewise.
41290         * doc/posix-functions/snprintf.texi: Likewise.
41291         * doc/posix-functions/sprintf.texi: Likewise.
41292         * doc/posix-functions/vdprintf.texi: Likewise.
41293         * doc/posix-functions/vfprintf.texi: Likewise.
41294         * doc/posix-functions/vprintf.texi: Likewise.
41295         * doc/posix-functions/vsnprintf.texi: Likewise.
41296         * doc/posix-functions/vsprintf.texi: Likewise.
41298 2011-06-19  Bruno Haible  <bruno@clisp.org>
41300         roundl-ieee: Fix test failure on AIX 7.1.
41301         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
41302         * doc/posix-functions/roundl.texi: Mention problem with negative
41303         arguments.
41305 2011-06-19  Bruno Haible  <bruno@clisp.org>
41307         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
41308         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
41309         * doc/posix-functions/round.texi: Mention problem with negative
41310         arguments.
41311         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
41313 2011-06-19  Bruno Haible  <bruno@clisp.org>
41315         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
41316         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
41317         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
41318         * doc/posix-functions/roundf.texi: Mention problem with negative
41319         arguments.
41320         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
41322 2011-06-19  Bruno Haible  <bruno@clisp.org>
41324         ceilf-ieee: Work around bug on MacOS X 10.5.
41325         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
41327         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
41328         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
41329         IEEE compliant, avoid compiler optimizations.
41330         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
41331         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
41332         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
41333         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
41334         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
41335         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
41336         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
41337         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41338         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41339         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
41341 2011-06-19  Bruno Haible  <bruno@clisp.org>
41343         ceilf-ieee: Work around bug on AIX 7.1.
41344         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
41345         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
41347 2011-06-19  Bruno Haible  <bruno@clisp.org>
41349         ceil-ieee: Work around bug on AIX 7.1.
41350         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
41351         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
41353 2011-06-18  Bruno Haible  <bruno@clisp.org>
41355         fsync test: Avoid test failure on MacOS X and AIX.
41356         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
41357         EINVAL.
41359 2011-06-18  Bruno Haible  <bruno@clisp.org>
41361         openat, fdopendir tests: Fix link errors.
41362         * modules/openat-tests (Depends-on): Add progname.
41363         * modules/fdopendir-tests (Depends-on): Likewise.
41364         * tests/test-fchownat.c: Include progname.h.
41365         (main): Call set_program_name.
41366         * tests/test-fstatat.c: Include progname.h.
41367         (main): Call set_program_name.
41368         * tests/test-mkdirat.c: Include progname.h.
41369         (main): Call set_program_name.
41370         * tests/test-openat.c: Include progname.h.
41371         (main): Call set_program_name.
41372         * tests/test-unlinkat.c: Include progname.h.
41373         (main): Call set_program_name.
41374         * tests/test-fdopendir.c: Include progname.h.
41375         (main): Call set_program_name.
41377 2011-06-18  Bruno Haible  <bruno@clisp.org>
41379         Doc update.
41380         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
41381         HP-UX.
41382         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
41384 2011-06-18  Bruno Haible  <bruno@clisp.org>
41386         getcwd tests: Avoid compilation error on HP-UX 11.31.
41387         * modules/getcwd-tests (Depends-on): Add pathmax.
41388         * tests/test-getcwd.c: Include pathmax.h.
41390 2011-06-18  Bruno Haible  <bruno@clisp.org>
41392         isfinite, isinf: Fix link error on AIX 6 and 7.
41393         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
41394         needed, also test the macro with a 'float' argument.
41395         * m4/isinf.m4 (gl_ISINF): Likewise.
41397 2011-06-18  Bruno Haible  <bruno@clisp.org>
41399         getloadavg: Don't clobber LIBS. Regression from previous commit.
41400         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
41401         AC_CHECK_LIB from here...
41402         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
41403         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
41404         gl_func_getloadavg_done.
41405         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41407 2011-06-18  Bruno Haible  <bruno@clisp.org>
41409         clean-temp: Improve documentation.
41410         * lib/clean-temp.h: Explain better how to use this module.
41411         Reported by John Darrington <john@darrington.wattle.id.au>.
41413 2011-06-17  Bruno Haible  <bruno@clisp.org>
41415         pread, pwrite: Avoid cc warning on AIX.
41416         * lib/unistd.in.h (pread): Undefine before defining as a macro.
41417         (pwrite): Likewise.
41419 2011-06-17  Bruno Haible  <bruno@clisp.org>
41421         spawn-pipe tests: Fix link error.
41422         * tests/test-spawn-pipe-child.c: Undefine fprintf.
41423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41425 2011-06-17  Bruno Haible  <bruno@clisp.org>
41427         Tests: Remove unnecessary dependency.
41428         * modules/canonicalize-tests (Depends-on): Remove progname.
41429         * modules/chown-tests (Depends-on): Likewise.
41430         * modules/dirname-tests (Depends-on): Likewise.
41431         * modules/fdopendir-tests (Depends-on): Likewise.
41432         * modules/fdutimensat-tests (Depends-on): Likewise.
41433         * modules/hash-tests (Depends-on): Likewise.
41434         * modules/lchown-tests (Depends-on): Likewise.
41435         * modules/linkat-tests (Depends-on): Likewise.
41436         * modules/renameat-tests (Depends-on): Likewise.
41437         * modules/spawn-pipe-tests (Depends-on): Likewise.
41438         * modules/utimensat-tests (Depends-on): Likewise.
41440 2011-06-17  Bruno Haible  <bruno@clisp.org>
41442         spawn-pipe tests: Fix link error.
41443         * tests/test-spawn-pipe-child.c: Undefine fflush.
41445 2011-06-17  Bruno Haible  <bruno@clisp.org>
41447         Fix tests link errors.
41448         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
41449         * modules/chown-tests (Makefile.am): Don't link test-chown with
41450         LIBINTL.
41451         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
41452         LIBINTL.
41453         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
41454         LIBINTL.
41455         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
41456         LIBINTL.
41458 2011-06-16  Bruno Haible  <bruno@clisp.org>
41460         crypto/gc-sha1: Fix recent regression.
41461         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
41462         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
41464         crypto/gc-md5: Fix recent regression.
41465         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
41467         crypto/gc-md4: Fix recent regression.
41468         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
41469         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
41471         crypto/gc-arctwo: Fix recent regression.
41472         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
41473         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
41475         crypto/gc-rijndael: Fix recent regression.
41476         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
41477         (configure.ac): Invoke AC_LIBOBJ here.
41478         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
41479         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41481         crypto/gc-hmac-sha1: Fix recent regression.
41482         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
41483         (configure.ac): Invoke AC_LIBOBJ here.
41484         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
41485         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41487         crypto/gc-hmac-md5: Fix recent regression.
41488         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
41489         (configure.ac): Invoke AC_LIBOBJ here.
41490         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
41491         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41493         crypto/gc-des: Fix recent regression.
41494         * modules/crypto/gc-des (Files): Remove m4/des.m4.
41495         (configure.ac): Invoke AC_LIBOBJ here.
41496         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
41497         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41499         crypto/gc-arcfour: Fix recent regression.
41500         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
41501         (configure.ac): Invoke AC_LIBOBJ here.
41502         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
41503         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41505 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
41507         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
41508         After the 2011-05-21 change, this macro requires
41509         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
41510         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41512 2011-06-16  Bruno Haible  <bruno@clisp.org>
41514         fprintftime: Move AC_LIBOBJ invocations to module description.
41515         * m4/fprintftime.m4: Remove file.
41516         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
41517         (configure.ac): Remove gl_FPRINTFTIME call.
41518         (Makefile.am): Augment lib_SOURCES.
41519         Reported by Jim Meyering.
41521 2011-06-16  Bruno Haible  <bruno@clisp.org>
41523         tmpfile-safer: Finish 2011-05-23 commit.
41524         * m4/stdio-safer.m4: Really remove file.
41525         Reported by Jim Meyering.
41527 2011-06-16  Bruno Haible  <bruno@clisp.org>
41529         syntax-check: Fix typo.
41530         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
41531         printf-posix.m4.
41532         Reported by Jim Meyering.
41534 2011-06-13  Jim Meyering  <meyering@redhat.com>
41536         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
41537         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
41539 2011-05-23  Bruno Haible  <bruno@clisp.org>
41541         yesno: Move AC_LIBOBJ invocations to module description.
41542         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
41543         * modules/yesno (Makefile.am): Augment lib_SOURCES.
41545 2011-05-23  Bruno Haible  <bruno@clisp.org>
41547         xstrtol: Move AC_LIBOBJ invocations to module description.
41548         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
41549         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
41551 2011-05-23  Bruno Haible  <bruno@clisp.org>
41553         xstrtold: Move AC_LIBOBJ invocations to module description.
41554         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
41555         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
41557 2011-05-23  Bruno Haible  <bruno@clisp.org>
41559         xstrtod: Move AC_LIBOBJ invocations to module description.
41560         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
41561         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
41563 2011-05-23  Bruno Haible  <bruno@clisp.org>
41565         xnanosleep: Move AC_LIBOBJ invocations to module description.
41566         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
41567         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
41569 2011-05-23  Bruno Haible  <bruno@clisp.org>
41571         xgetcwd: Move AC_LIBOBJ invocations to module description.
41572         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
41573         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
41575 2011-05-23  Bruno Haible  <bruno@clisp.org>
41577         xalloc: Move AC_LIBOBJ invocations to module description.
41578         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
41579         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
41581 2011-05-23  Bruno Haible  <bruno@clisp.org>
41583         write-any-file: Move AC_LIBOBJ invocations to module description.
41584         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
41585         invocation.
41586         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
41588 2011-05-23  Bruno Haible  <bruno@clisp.org>
41590         utimens: Move AC_LIBOBJ invocations to module description.
41591         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
41592         * modules/utimens (Makefile.am): Augment lib_SOURCES.
41594 2011-05-23  Bruno Haible  <bruno@clisp.org>
41596         utimecmp: Move AC_LIBOBJ invocations to module description.
41597         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
41598         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
41600 2011-05-23  Bruno Haible  <bruno@clisp.org>
41602         userspec: Move AC_LIBOBJ invocations to module description.
41603         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
41604         * modules/userspec (Makefile.am): Augment lib_SOURCES.
41606 2011-05-23  Bruno Haible  <bruno@clisp.org>
41608         unlinkdir: Move AC_LIBOBJ invocations to module description.
41609         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
41610         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
41612 2011-05-23  Bruno Haible  <bruno@clisp.org>
41614         unistd-safer: Move AC_LIBOBJ invocations to module description.
41615         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
41616         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
41618 2011-05-23  Bruno Haible  <bruno@clisp.org>
41620         tempname: Move AC_LIBOBJ invocations to module description.
41621         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
41622         * modules/tempname (Makefile.am): Augment lib_SOURCES.
41624 2011-05-23  Bruno Haible  <bruno@clisp.org>
41626         strftime: Move AC_LIBOBJ invocations to module description.
41627         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
41628         * modules/strftime (Makefile.am): Augment lib_SOURCES.
41630 2011-05-23  Bruno Haible  <bruno@clisp.org>
41632         stdlib-safer: Move AC_LIBOBJ invocations to module description.
41633         * m4/stdlib-safer.m4: Remove file.
41634         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
41635         (configure.ac): Remove gl_STDLIB_SAFER call.
41636         (Makefile.am): Augment lib_SOURCES.
41638 2011-05-23  Bruno Haible  <bruno@clisp.org>
41640         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
41641         * m4/stdio-safer.m4: Remove file.
41642         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
41643         (configure.ac): Remove gl_TMPFILE_SAFER call.
41644         (Makefile.am): Augment lib_SOURCES.
41646 2011-05-23  Bruno Haible  <bruno@clisp.org>
41648         popen-safer: Move AC_LIBOBJ invocations to module description.
41649         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
41650         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
41651         (configure.ac): Remove gl_POPEN_SAFER call.
41652         (Makefile.am): Augment lib_SOURCES.
41654 2011-05-23  Bruno Haible  <bruno@clisp.org>
41656         freopen-safer: Move AC_LIBOBJ invocations to module description.
41657         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
41658         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
41659         (configure.ac): Remove gl_FREOPEN_SAFER call.
41660         (Makefile.am): Augment lib_SOURCES.
41662 2011-05-23  Bruno Haible  <bruno@clisp.org>
41664         fopen-safer: Move AC_LIBOBJ invocations to module description.
41665         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
41666         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
41667         (configure.ac): Remove gl_FOPEN_SAFER call.
41668         (Makefile.am): Augment lib_SOURCES.
41670 2011-05-23  Bruno Haible  <bruno@clisp.org>
41672         crypto/sha512: Move AC_LIBOBJ invocations to module description.
41673         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
41674         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
41676 2011-05-23  Bruno Haible  <bruno@clisp.org>
41678         crypto/sha256: Move AC_LIBOBJ invocations to module description.
41679         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
41680         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
41682 2011-05-23  Bruno Haible  <bruno@clisp.org>
41684         crypto/sha1: Move AC_LIBOBJ invocations to module description.
41685         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
41686         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
41688 2011-05-23  Bruno Haible  <bruno@clisp.org>
41690         settime: Move AC_LIBOBJ invocations to module description.
41691         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
41692         * modules/settime (Makefile.am): Augment lib_SOURCES.
41694 2011-05-23  Bruno Haible  <bruno@clisp.org>
41696         savedir: Move AC_LIBOBJ invocations to module description.
41697         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
41698         * modules/savedir (Makefile.am): Augment lib_SOURCES.
41700 2011-05-23  Bruno Haible  <bruno@clisp.org>
41702         save-cwd: Move AC_LIBOBJ invocations to module description.
41703         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
41704         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
41706 2011-05-23  Bruno Haible  <bruno@clisp.org>
41708         same: Move AC_LIBOBJ invocations to module description.
41709         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
41710         * modules/same (Makefile.am): Augment lib_SOURCES.
41712 2011-05-23  Bruno Haible  <bruno@clisp.org>
41714         safe-write: Move AC_LIBOBJ invocations to module description.
41715         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
41716         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
41717         instead of gl_SAFE_WRITE.
41718         (Makefile.am): Augment lib_SOURCES.
41720 2011-05-23  Bruno Haible  <bruno@clisp.org>
41722         safe-read: Move AC_LIBOBJ invocations to module description.
41723         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
41724         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
41725         of gl_SAFE_READ.
41726         (Makefile.am): Augment lib_SOURCES.
41728 2011-05-23  Bruno Haible  <bruno@clisp.org>
41730         safe-alloc: Move AC_LIBOBJ invocations to module description.
41731         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
41732         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
41734 2011-05-23  Bruno Haible  <bruno@clisp.org>
41736         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
41737         * m4/rijndael.m4: Remove file.
41738         * modules/crypto/rijndael (Files): Remove it.
41739         (configure.ac): Remove gl_RIJNDAEL call.
41740         (Makefile.am): Augment lib_SOURCES.
41742 2011-05-23  Bruno Haible  <bruno@clisp.org>
41744         readtokens: Move AC_LIBOBJ invocations to module description.
41745         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
41746         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
41748 2011-05-23  Bruno Haible  <bruno@clisp.org>
41750         read-file: Move AC_LIBOBJ invocations to module description.
41751         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
41752         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
41753         of gl_FUNC_READ_FILE.
41754         (Makefile.am): Augment lib_SOURCES.
41756 2011-05-23  Bruno Haible  <bruno@clisp.org>
41758         quotearg: Move AC_LIBOBJ invocations to module description.
41759         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
41760         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
41762 2011-05-23  Bruno Haible  <bruno@clisp.org>
41764         quote: Move AC_LIBOBJ invocations to module description.
41765         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
41766         * modules/quote (Makefile.am): Augment lib_SOURCES.
41768 2011-05-23  Bruno Haible  <bruno@clisp.org>
41770         posixver: Move AC_LIBOBJ invocations to module description.
41771         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
41772         * modules/posixver (Makefile.am): Augment lib_SOURCES.
41774 2011-05-23  Bruno Haible  <bruno@clisp.org>
41776         posixtm: Move AC_LIBOBJ invocations to module description.
41777         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
41778         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
41780 2011-05-23  Bruno Haible  <bruno@clisp.org>
41782         physmem: Move AC_LIBOBJ invocations to module description.
41783         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
41784         * modules/physmem (Makefile.am): Augment lib_SOURCES.
41786 2011-05-23  Bruno Haible  <bruno@clisp.org>
41788         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
41789         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
41790         invocation.
41791         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
41793 2011-05-23  Bruno Haible  <bruno@clisp.org>
41795         mpsort: Move AC_LIBOBJ invocations to module description.
41796         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
41797         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
41799 2011-05-23  Bruno Haible  <bruno@clisp.org>
41801         modechange: Move AC_LIBOBJ invocations to module description.
41802         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
41803         * modules/modechange (Makefile.am): Augment lib_SOURCES.
41805 2011-05-23  Bruno Haible  <bruno@clisp.org>
41807         mkdir-p: Move AC_LIBOBJ invocations to module description.
41808         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
41809         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
41811 2011-05-23  Bruno Haible  <bruno@clisp.org>
41813         mkancesdirs: Move AC_LIBOBJ invocations to module description.
41814         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
41815         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
41817 2011-05-23  Bruno Haible  <bruno@clisp.org>
41819         mgetgroups: Move AC_LIBOBJ invocations to module description.
41820         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
41821         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
41823 2011-05-23  Bruno Haible  <bruno@clisp.org>
41825         memxor: Move AC_LIBOBJ invocations to module description.
41826         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
41827         * modules/memxor (Makefile.am): Augment lib_SOURCES.
41829 2011-05-23  Bruno Haible  <bruno@clisp.org>
41831         memcoll: Move AC_LIBOBJ invocations to module description.
41832         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
41833         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
41835 2011-05-23  Bruno Haible  <bruno@clisp.org>
41837         memcasecmp: Move AC_LIBOBJ invocations to module description.
41838         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
41839         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
41841 2011-05-23  Bruno Haible  <bruno@clisp.org>
41843         crypto/md5: Move AC_LIBOBJ invocations to module description.
41844         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
41845         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
41847 2011-05-23  Bruno Haible  <bruno@clisp.org>
41849         crypto/md4: Move AC_LIBOBJ invocations to module description.
41850         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
41851         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
41853 2011-05-23  Bruno Haible  <bruno@clisp.org>
41855         crypto/md2: Move AC_LIBOBJ invocations to module description.
41856         * m4/md2.m4: Remove file.
41857         * modules/crypto/md2 (Files): Remove it.
41858         (configure.ac): Remove gl_MD2 call.
41859         (Makefile.am): Augment lib_SOURCES.
41861 2011-05-23  Bruno Haible  <bruno@clisp.org>
41863         long-options: Move AC_LIBOBJ invocations to module description.
41864         * m4/long-options.m4: Remove file.
41865         * modules/long-options (Files): Remove it.
41866         (configure.ac): Remove gl_LONG_OPTIONS call.
41867         (Makefile.am): Augment lib_SOURCES.
41869 2011-05-23  Bruno Haible  <bruno@clisp.org>
41871         i-ring: Move AC_LIBOBJ invocations to module description.
41872         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
41873         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
41875 2011-05-23  Bruno Haible  <bruno@clisp.org>
41877         idcache: Move AC_LIBOBJ invocations to module description.
41878         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
41879         * modules/idcache (Makefile.am): Augment lib_SOURCES.
41881 2011-05-23  Bruno Haible  <bruno@clisp.org>
41883         human: Move AC_LIBOBJ invocations to module description.
41884         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
41885         * modules/human (Makefile.am): Augment lib_SOURCES.
41887 2011-05-23  Bruno Haible  <bruno@clisp.org>
41889         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
41890         * m4/hmac-sha1.m4: Remove file.
41891         * modules/crypto/hmac-sha1 (Files): Remove it.
41892         (configure.ac): Remove gl_HMAC_SHA1 call.
41893         (Makefile.am): Augment lib_SOURCES.
41895 2011-05-23  Bruno Haible  <bruno@clisp.org>
41897         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
41898         * m4/hmac-md5.m4: Remove file.
41899         * modules/crypto/hmac-md5 (Files): Remove it.
41900         (configure.ac): Remove gl_HMAC_MD5 call.
41901         (Makefile.am): Augment lib_SOURCES.
41903 2011-05-23  Bruno Haible  <bruno@clisp.org>
41905         hash: Move AC_LIBOBJ invocations to module description.
41906         * m4/hash.m4: Remove file.
41907         * modules/hash (Files): Remove it.
41908         (configure.ac): Remove gl_HASH call.
41909         (Makefile.am): Augment lib_SOURCES.
41911 2011-05-23  Bruno Haible  <bruno@clisp.org>
41913         hard-locale: Move AC_LIBOBJ invocations to module description.
41914         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
41915         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
41917 2011-05-23  Bruno Haible  <bruno@clisp.org>
41919         getugroups: Move AC_LIBOBJ invocations to module description.
41920         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
41921         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
41923 2011-05-23  Bruno Haible  <bruno@clisp.org>
41925         gettime: Move AC_LIBOBJ invocations to module description.
41926         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
41927         * modules/gettime (Makefile.am): Augment lib_SOURCES.
41929 2011-05-23  Bruno Haible  <bruno@clisp.org>
41931         getndelim2: Move AC_LIBOBJ invocations to module description.
41932         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
41933         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
41935 2011-05-23  Bruno Haible  <bruno@clisp.org>
41937         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
41938         * m4/gc-pbkdf2-sha1.m4: Remove file.
41939         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
41940         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
41941         (Makefile.am): Augment lib_SOURCES.
41943 2011-05-23  Bruno Haible  <bruno@clisp.org>
41945         fts: Move AC_LIBOBJ invocations to module description.
41946         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
41947         * modules/fts (configure.ac): ... to here.
41949 2011-05-23  Bruno Haible  <bruno@clisp.org>
41951         file-type: Move AC_LIBOBJ invocations to module description.
41952         * m4/file-type.m4: Remove file.
41953         * modules/file-type (Files): Remove it.
41954         (configure.ac): Remove gl_FILE_TYPE call.
41955         (Makefile.am): Augment lib_SOURCES.
41957 2011-05-23  Bruno Haible  <bruno@clisp.org>
41959         filenamecat*: Respect rules for use of AC_LIBOBJ.
41960         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
41961         Remove AC_LIBOBJ invocation.
41962         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
41963         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
41965 2011-05-23  Bruno Haible  <bruno@clisp.org>
41967         filemode: Move AC_LIBOBJ invocations to module description.
41968         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
41969         * modules/filemode (Makefile.am): Augment lib_SOURCES.
41971 2011-05-23  Bruno Haible  <bruno@clisp.org>
41973         openat-safer: Move AC_LIBOBJ invocations to module description.
41974         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
41975         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
41977 2011-05-23  Bruno Haible  <bruno@clisp.org>
41979         fcntl-safer: Move AC_LIBOBJ invocations to module description.
41980         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
41981         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
41983 2011-05-23  Bruno Haible  <bruno@clisp.org>
41985         exclude: Move AC_LIBOBJ invocations to module description.
41986         * m4/exclude.m4: Remove file.
41987         * modules/exclude (Files): Remove it.
41988         (configure.ac): Remove gl_EXCLUDE call.
41989         (Makefile.am): Augment lib_SOURCES.
41991 2011-05-23  Bruno Haible  <bruno@clisp.org>
41993         dirname*: Respect rules for use of AC_LIBOBJ.
41994         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
41995         invocations.
41996         * modules/dirname (Makefile.am): Augment lib_SOURCES.
41997         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
41999 2011-05-23  Bruno Haible  <bruno@clisp.org>
42001         dirent-safer: Move AC_LIBOBJ invocations to module description.
42002         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
42003         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
42005 2011-05-23  Bruno Haible  <bruno@clisp.org>
42007         crypto/des: Move AC_LIBOBJ invocations to module description.
42008         * m4/des.m4: Remove file.
42009         * modules/crypto/des (Files): Remove it.
42010         (configure.ac): Remove gl_DES call.
42011         (Makefile.am): Augment lib_SOURCES.
42013 2011-05-23  Bruno Haible  <bruno@clisp.org>
42015         cycle-check: Move AC_LIBOBJ invocations to module description.
42016         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
42017         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
42019 2011-05-23  Bruno Haible  <bruno@clisp.org>
42021         c-strtold: Move AC_LIBOBJ invocations to module description.
42022         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
42023         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
42025 2011-05-23  Bruno Haible  <bruno@clisp.org>
42027         c-strtod: Move AC_LIBOBJ invocations to module description.
42028         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
42029         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
42031 2011-05-23  Bruno Haible  <bruno@clisp.org>
42033         crc: Move AC_LIBOBJ invocations to module description.
42034         * m4/crc.m4: Remove file.
42035         * modules/crc (Files): Remove it.
42036         (configure.ac): Remove gl_CRC call.
42037         (Makefile.am): Augment lib_SOURCES.
42039 2011-05-23  Bruno Haible  <bruno@clisp.org>
42041         close-stream: Move AC_LIBOBJ invocations to module description.
42042         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
42043         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
42045 2011-05-23  Bruno Haible  <bruno@clisp.org>
42047         closeout: Move AC_LIBOBJ invocations to module description.
42048         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
42049         * modules/closeout (Makefile.am): Augment lib_SOURCES.
42051 2011-05-23  Bruno Haible  <bruno@clisp.org>
42053         closein: Move AC_LIBOBJ invocations to module description.
42054         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
42055         * modules/closein (Makefile.am): Augment lib_SOURCES.
42057 2011-05-23  Bruno Haible  <bruno@clisp.org>
42059         cloexec: Move AC_LIBOBJ invocations to module description.
42060         * m4/cloexec.m4: Remove file.
42061         * modules/cloexec (Files): Remove it.
42062         (configure.ac): Remove gl_CLOEXEC call.
42063         (Makefile.am): Augment lib_SOURCES.
42065 2011-05-23  Bruno Haible  <bruno@clisp.org>
42067         check-version: Move AC_LIBOBJ invocations to module description.
42068         * m4/check-version.m4: Remove file.
42069         * modules/check-version (Files): Remove it.
42070         (configure.ac): Remove gl_CHECK_VERSION call.
42071         (Makefile.am): Augment lib_SOURCES.
42073 2011-05-23  Bruno Haible  <bruno@clisp.org>
42075         chdir-safer: Move AC_LIBOBJ invocations to module description.
42076         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
42077         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
42079 2011-05-23  Bruno Haible  <bruno@clisp.org>
42081         canonicalize: Move AC_LIBOBJ invocations to module description.
42082         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
42083         AC_LIBOBJ invocation.
42084         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
42086 2011-05-23  Bruno Haible  <bruno@clisp.org>
42088         canon-host: Move AC_LIBOBJ invocations to module description.
42089         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
42090         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
42091         instead of gl_CANON_HOST.
42092         (Makefile.am): Augment lib_SOURCES.
42094 2011-05-23  Bruno Haible  <bruno@clisp.org>
42096         backupfile: Move AC_LIBOBJ invocations to module description.
42097         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
42098         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
42100 2011-05-23  Bruno Haible  <bruno@clisp.org>
42102         argmatch: Move AC_LIBOBJ invocations to module description.
42103         * m4/argmatch.m4: Remove file.
42104         * modules/argmatch (Files): Remove it.
42105         (configure.ac): Remove gl_ARGMATCH call.
42106         (Makefile.am): Augment lib_SOURCES.
42108 2011-05-23  Bruno Haible  <bruno@clisp.org>
42110         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
42111         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
42112         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
42114 2011-05-23  Bruno Haible  <bruno@clisp.org>
42116         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
42117         * m4/arcfour.m4: Remove file.
42118         * modules/crypto/arcfour (Files): Remove it.
42119         (configure.ac): Remove gl_ARCFOUR call.
42120         (Makefile.am): Augment lib_SOURCES.
42122 2011-05-22  Bruno Haible  <bruno@clisp.org>
42124         write: Move AC_LIBOBJ invocations to module description.
42125         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
42126         * modules/write (configure.ac): ... to here.
42128 2011-05-22  Bruno Haible  <bruno@clisp.org>
42130         wmemset: Move AC_LIBOBJ invocations to module description.
42131         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
42132         here...
42133         * modules/wmemset (configure.ac): ... to here.
42135 2011-05-22  Bruno Haible  <bruno@clisp.org>
42137         wmemmove: Move AC_LIBOBJ invocations to module description.
42138         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
42139         here...
42140         * modules/wmemmove (configure.ac): ... to here.
42142 2011-05-22  Bruno Haible  <bruno@clisp.org>
42144         wmemcpy: Move AC_LIBOBJ invocations to module description.
42145         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
42146         here...
42147         * modules/wmemcpy (configure.ac): ... to here.
42149 2011-05-22  Bruno Haible  <bruno@clisp.org>
42151         wmemcmp: Move AC_LIBOBJ invocations to module description.
42152         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
42153         here...
42154         * modules/wmemcmp (configure.ac): ... to here.
42156 2011-05-22  Bruno Haible  <bruno@clisp.org>
42158         wmemchr: Move AC_LIBOBJ invocations to module description.
42159         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
42160         here...
42161         * modules/wmemchr (configure.ac): ... to here.
42163 2011-05-22  Bruno Haible  <bruno@clisp.org>
42165         wcswidth: Move AC_LIBOBJ invocations to module description.
42166         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
42167         here...
42168         * modules/wcswidth (configure.ac): ... to here.
42170 2011-05-22  Bruno Haible  <bruno@clisp.org>
42172         wcwidth: Respect rules for use of AC_LIBOBJ.
42173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
42174         invocation from here...
42175         * modules/wcwidth (configure.ac): ... to here.
42176         (Depends-on): Update conditions.
42178 2011-05-22  Bruno Haible  <bruno@clisp.org>
42180         wctype: Move AC_LIBOBJ invocations to module description.
42181         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
42182         invocation from here...
42183         * modules/wctype (configure.ac): ... to here.
42184         (Depends-on): Update conditions.
42186 2011-05-22  Bruno Haible  <bruno@clisp.org>
42188         wctrans: Move AC_LIBOBJ invocations to module description.
42189         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
42190         invocation from here...
42191         * modules/wctrans (configure.ac): ... to here.
42193 2011-05-22  Bruno Haible  <bruno@clisp.org>
42195         wctomb: Move AC_LIBOBJ invocations to module description.
42196         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
42197         invocations from here...
42198         * modules/wctomb (configure.ac): ... to here.
42200 2011-05-22  Bruno Haible  <bruno@clisp.org>
42202         wctob: Move AC_LIBOBJ invocations to module description.
42203         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
42204         gl_PREREQ_WCTOB invocations from here...
42205         * modules/wctob (configure.ac): ... to here.
42206         (Depends-on): Update conditions.
42208 2011-05-22  Bruno Haible  <bruno@clisp.org>
42210         wcsxfrm: Move AC_LIBOBJ invocations to module description.
42211         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
42212         here...
42213         * modules/wcsxfrm (configure.ac): ... to here.
42215 2011-05-22  Bruno Haible  <bruno@clisp.org>
42217         wcstok: Move AC_LIBOBJ invocations to module description.
42218         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
42219         * modules/wcstok (configure.ac): ... to here.
42221 2011-05-22  Bruno Haible  <bruno@clisp.org>
42223         wcsstr: Move AC_LIBOBJ invocations to module description.
42224         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
42225         * modules/wcsstr (configure.ac): ... to here.
42227 2011-05-22  Bruno Haible  <bruno@clisp.org>
42229         wcsspn: Move AC_LIBOBJ invocations to module description.
42230         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
42231         * modules/wcsspn (configure.ac): ... to here.
42233 2011-05-22  Bruno Haible  <bruno@clisp.org>
42235         wcsrtombs: Move AC_LIBOBJ invocations to module description.
42236         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
42237         gl_PREREQ_WCSRTOMBS invocations from here...
42238         * modules/wcsrtombs (configure.ac): ... to here.
42240 2011-05-22  Bruno Haible  <bruno@clisp.org>
42242         wcsrchr: Move AC_LIBOBJ invocations to module description.
42243         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
42244         here...
42245         * modules/wcsrchr (configure.ac): ... to here.
42247 2011-05-22  Bruno Haible  <bruno@clisp.org>
42249         wcspbrk: Move AC_LIBOBJ invocations to module description.
42250         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
42251         here...
42252         * modules/wcspbrk (configure.ac): ... to here.
42254 2011-05-22  Bruno Haible  <bruno@clisp.org>
42256         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
42257         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
42258         gl_PREREQ_WCSNRTOMBS invocations from here...
42259         * modules/wcsnrtombs (configure.ac): ... to here.
42261 2011-05-22  Bruno Haible  <bruno@clisp.org>
42263         wcsnlen: Move AC_LIBOBJ invocations to module description.
42264         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
42265         here...
42266         * modules/wcsnlen (configure.ac): ... to here.
42268 2011-05-22  Bruno Haible  <bruno@clisp.org>
42270         wcsncpy: Move AC_LIBOBJ invocations to module description.
42271         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
42272         here...
42273         * modules/wcsncpy (configure.ac): ... to here.
42275 2011-05-22  Bruno Haible  <bruno@clisp.org>
42277         wcsncmp: Move AC_LIBOBJ invocations to module description.
42278         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
42279         here...
42280         * modules/wcsncmp (configure.ac): ... to here.
42282 2011-05-22  Bruno Haible  <bruno@clisp.org>
42284         wcsncat: Move AC_LIBOBJ invocations to module description.
42285         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
42286         here...
42287         * modules/wcsncat (configure.ac): ... to here.
42289 2011-05-22  Bruno Haible  <bruno@clisp.org>
42291         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
42292         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
42293         from here...
42294         * modules/wcsncasecmp (configure.ac): ... to here.
42296 2011-05-22  Bruno Haible  <bruno@clisp.org>
42298         wcslen: Move AC_LIBOBJ invocations to module description.
42299         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
42300         * modules/wcslen (configure.ac): ... to here.
42302 2011-05-22  Bruno Haible  <bruno@clisp.org>
42304         wcsdup: Move AC_LIBOBJ invocations to module description.
42305         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
42306         * modules/wcsdup (configure.ac): ... to here.
42308 2011-05-22  Bruno Haible  <bruno@clisp.org>
42310         wcscspn: Move AC_LIBOBJ invocations to module description.
42311         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
42312         here...
42313         * modules/wcscspn (configure.ac): ... to here.
42315 2011-05-22  Bruno Haible  <bruno@clisp.org>
42317         wcscpy: Move AC_LIBOBJ invocations to module description.
42318         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
42319         * modules/wcscpy (configure.ac): ... to here.
42321 2011-05-22  Bruno Haible  <bruno@clisp.org>
42323         wcscoll: Move AC_LIBOBJ invocations to module description.
42324         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
42325         here...
42326         * modules/wcscoll (configure.ac): ... to here.
42328 2011-05-22  Bruno Haible  <bruno@clisp.org>
42330         wcscmp: Move AC_LIBOBJ invocations to module description.
42331         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
42332         * modules/wcscmp (configure.ac): ... to here.
42334 2011-05-22  Bruno Haible  <bruno@clisp.org>
42336         wcschr: Move AC_LIBOBJ invocations to module description.
42337         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
42338         * modules/wcschr (configure.ac): ... to here.
42340 2011-05-22  Bruno Haible  <bruno@clisp.org>
42342         wcscat: Move AC_LIBOBJ invocations to module description.
42343         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
42344         * modules/wcscat (configure.ac): ... to here.
42346 2011-05-22  Bruno Haible  <bruno@clisp.org>
42348         wcscasecmp: Move AC_LIBOBJ invocations to module description.
42349         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
42350         here...
42351         * modules/wcscasecmp (configure.ac): ... to here.
42353 2011-05-22  Bruno Haible  <bruno@clisp.org>
42355         wcrtomb: Move AC_LIBOBJ invocations to module description.
42356         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
42357         invocations from here...
42358         * modules/wcrtomb (configure.ac): ... to here.
42360 2011-05-22  Bruno Haible  <bruno@clisp.org>
42362         wcpncpy: Move AC_LIBOBJ invocations to module description.
42363         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
42364         here...
42365         * modules/wcpncpy (configure.ac): ... to here.
42367 2011-05-22  Bruno Haible  <bruno@clisp.org>
42369         wcpcpy: Move AC_LIBOBJ invocations to module description.
42370         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
42371         * modules/wcpcpy (configure.ac): ... to here.
42373 2011-05-22  Bruno Haible  <bruno@clisp.org>
42375         waitpid: Move AC_LIBOBJ invocations to module description.
42376         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
42377         invocation from here...
42378         * modules/waitpid (configure.ac): ... to here.
42380 2011-05-22  Bruno Haible  <bruno@clisp.org>
42382         utimensat: Move AC_LIBOBJ invocations to module description.
42383         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
42384         here...
42385         * modules/utimensat (configure.ac): ... to here.
42387 2011-05-22  Bruno Haible  <bruno@clisp.org>
42389         usleep: Move AC_LIBOBJ invocations to module description.
42390         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
42391         here...
42392         * modules/usleep (configure.ac): ... to here.
42394 2011-05-22  Bruno Haible  <bruno@clisp.org>
42396         unlockpt: Move AC_LIBOBJ invocations to module description.
42397         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
42398         gl_PREREQ_UNLOCKPT invocations from here...
42399         * modules/unlockpt (configure.ac): ... to here.
42401 2011-05-22  Bruno Haible  <bruno@clisp.org>
42403         unlink: Respect rules for use of AC_LIBOBJ.
42404         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
42405         * modules/unlink (configure.ac): ... to here.
42407 2011-05-22  Bruno Haible  <bruno@clisp.org>
42409         uname: Move AC_LIBOBJ invocations to module description.
42410         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
42411         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
42412         here...
42413         * modules/uname (configure.ac): ... to here.
42415 2011-05-22  Bruno Haible  <bruno@clisp.org>
42417         ttyname_r: Move AC_LIBOBJ invocations to module description.
42418         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
42419         gl_PREREQ_TTYNAME_R invocations from here...
42420         * modules/ttyname_r (configure.ac): ... to here.
42422 2011-05-22  Bruno Haible  <bruno@clisp.org>
42424         tsearch: Move AC_LIBOBJ invocations to module description.
42425         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
42426         invocations from here...
42427         * modules/tsearch (configure.ac): ... to here.
42429 2011-05-22  Bruno Haible  <bruno@clisp.org>
42431         towctrans: Move AC_LIBOBJ invocations to module description.
42432         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
42433         AC_LIBOBJ invocation from here...
42434         * modules/towctrans (configure.ac): ... to here.
42436 2011-05-22  Bruno Haible  <bruno@clisp.org>
42438         tmpfile: Move AC_LIBOBJ invocations to module description.
42439         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
42440         invocations from here...
42441         * modules/tmpfile (configure.ac): ... to here.
42443 2011-05-22  Bruno Haible  <bruno@clisp.org>
42445         times: Move AC_LIBOBJ invocations to module description.
42446         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
42447         * modules/times (configure.ac): ... to here.
42449 2011-05-22  Bruno Haible  <bruno@clisp.org>
42451         time_r: Move AC_LIBOBJ invocations to module description.
42452         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
42453         invocations from here...
42454         * modules/time_r (configure.ac): ... to here.
42456 2011-05-22  Bruno Haible  <bruno@clisp.org>
42458         timegm: Move AC_LIBOBJ invocations to module description.
42459         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
42460         invocations from here...
42461         * modules/timegm (configure.ac): ... to here.
42463 2011-05-22  Bruno Haible  <bruno@clisp.org>
42465         tcgetsid: Move AC_LIBOBJ invocations to module description.
42466         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
42467         and gl_PREREQ_TCGETSID invocations from here...
42468         * modules/tcgetsid (configure.ac): ... to here.
42469         (Depends-on): Update conditions.
42471 2011-05-22  Bruno Haible  <bruno@clisp.org>
42473         symlinkat: Move AC_LIBOBJ invocations to module description.
42474         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
42475         here...
42476         * modules/symlinkat (configure.ac): ... to here.
42478 2011-05-22  Bruno Haible  <bruno@clisp.org>
42480         symlink: Move AC_LIBOBJ invocations to module description.
42481         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
42482         here...
42483         * modules/symlink (configure.ac): ... to here.
42485 2011-05-22  Bruno Haible  <bruno@clisp.org>
42487         strverscmp: Move AC_LIBOBJ invocations to module description.
42488         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
42489         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
42490         from here...
42491         * modules/strverscmp (configure.ac): ... to here.
42493 2011-05-22  Bruno Haible  <bruno@clisp.org>
42495         strtok_r: Move AC_LIBOBJ invocations to module description.
42496         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
42497         and gl_PREREQ_STRTOK_R invocations from here...
42498         * modules/strtok_r (configure.ac): ... to here.
42499         (Depends-on): Update conditions.
42501 2011-05-22  Bruno Haible  <bruno@clisp.org>
42503         strtoumax: Move AC_LIBOBJ invocations to module description.
42504         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
42505         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
42506         from here...
42507         * modules/strtoumax (configure.ac): ... to here.
42509 2011-05-22  Bruno Haible  <bruno@clisp.org>
42511         strtoimax: Move AC_LIBOBJ invocations to module description.
42512         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
42513         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
42514         from here...
42515         * modules/strtoimax (configure.ac): ... to here.
42517 2011-05-22  Bruno Haible  <bruno@clisp.org>
42519         strtoull: Move AC_LIBOBJ invocations to module description.
42520         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
42521         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
42522         from here...
42523         * modules/strtoull (configure.ac): ... to here.
42525 2011-05-22  Bruno Haible  <bruno@clisp.org>
42527         strtoll: Move AC_LIBOBJ invocations to module description.
42528         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
42529         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
42530         here...
42531         * modules/strtoll (configure.ac): ... to here.
42533 2011-05-22  Bruno Haible  <bruno@clisp.org>
42535         strtoul: Move AC_LIBOBJ invocations to module description.
42536         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
42537         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
42538         * modules/strtoul (configure.ac): ... to here.
42540 2011-05-22  Bruno Haible  <bruno@clisp.org>
42542         strtol: Move AC_LIBOBJ invocations to module description.
42543         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
42544         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
42545         * modules/strtol (configure.ac): ... to here.
42547 2011-05-22  Bruno Haible  <bruno@clisp.org>
42549         strtod: Move AC_LIBOBJ invocations to module description.
42550         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
42551         invocations from here...
42552         * modules/strtod (configure.ac): ... to here.
42554 2011-05-22  Bruno Haible  <bruno@clisp.org>
42556         strstr*: Move AC_LIBOBJ invocations to module description.
42557         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
42558         invocations from here...
42559         * modules/strstr-simple (configure.ac): ... to here.
42560         * modules/strstr (configure.ac): ... and here.
42562 2011-05-22  Bruno Haible  <bruno@clisp.org>
42564         strsignal: Move AC_LIBOBJ invocations to module description.
42565         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
42566         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
42567         * modules/strsignal (configure.ac): ... to here.
42568         (Depends-on): Update conditions.
42570 2011-05-22  Bruno Haible  <bruno@clisp.org>
42572         strsep: Move AC_LIBOBJ invocations to module description.
42573         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
42574         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
42575         here...
42576         * modules/strsep (configure.ac): ... to here.
42578 2011-05-22  Bruno Haible  <bruno@clisp.org>
42580         strptime: Move AC_LIBOBJ invocations to module description.
42581         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
42582         gl_PREREQ_STRPTIME invocations from here...
42583         * modules/strptime (configure.ac): ... to here.
42585 2011-05-22  Bruno Haible  <bruno@clisp.org>
42587         strpbrk: Move AC_LIBOBJ invocations to module description.
42588         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
42589         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
42590         here...
42591         * modules/strpbrk (configure.ac): ... to here.
42593 2011-05-22  Bruno Haible  <bruno@clisp.org>
42595         strnlen: Move AC_LIBOBJ invocations to module description.
42596         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
42597         invocations from here...
42598         * modules/strnlen (configure.ac): ... to here.
42600 2011-05-22  Bruno Haible  <bruno@clisp.org>
42602         strndup: Move AC_LIBOBJ invocations to module description.
42603         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
42604         invocations from here...
42605         * modules/strndup (configure.ac): ... to here.
42606         (Depends-on): Update conditions.
42608 2011-05-22  Bruno Haible  <bruno@clisp.org>
42610         strncat: Move AC_LIBOBJ invocations to module description.
42611         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
42612         invocations from here...
42613         * modules/strncat (configure.ac): ... to here.
42615 2011-05-22  Bruno Haible  <bruno@clisp.org>
42617         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
42618         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
42619         invocations from here...
42620         * modules/strdup (configure.ac): ... to here.
42621         * modules/strdup-posix (configure.ac): ... and here.
42623 2011-05-22  Bruno Haible  <bruno@clisp.org>
42625         strcspn: Move AC_LIBOBJ invocations to module description.
42626         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
42627         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
42628         here...
42629         * modules/strcspn (configure.ac): ... to here.
42631 2011-05-22  Bruno Haible  <bruno@clisp.org>
42633         strchrnul: Move AC_LIBOBJ invocations to module description.
42634         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
42635         gl_PREREQ_STRCHRNUL invocations from here...
42636         * modules/strchrnul (configure.ac): ... to here.
42638 2011-05-22  Bruno Haible  <bruno@clisp.org>
42640         strcasestr*: Move AC_LIBOBJ invocations to module description.
42641         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
42642         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
42643         * modules/strcasestr-simple (configure.ac): ... to here.
42644         * modules/strcasestr (configure.ac): ... and here.
42646 2011-05-22  Bruno Haible  <bruno@clisp.org>
42648         strcase: Move AC_LIBOBJ invocations to module description.
42649         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
42650         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
42651         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
42652         gl_PREREQ_STRNCASECMP invocations from here...
42653         * modules/strcase (configure.ac): ... to here.
42655 2011-05-22  Bruno Haible  <bruno@clisp.org>
42657         stpncpy: Move AC_LIBOBJ invocations to module description.
42658         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
42659         here...
42660         * modules/stpncpy (configure.ac): ... to here.
42662 2011-05-22  Bruno Haible  <bruno@clisp.org>
42664         stpcpy: Move AC_LIBOBJ invocations to module description.
42665         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
42666         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
42667         here...
42668         * modules/stpcpy (configure.ac): ... to here.
42670 2011-05-21  Bruno Haible  <bruno@clisp.org>
42672         stat: Move AC_LIBOBJ invocations to module description.
42673         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
42674         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
42675         here...
42676         * modules/stat (configure.ac): ... to here.
42678 2011-05-21  Bruno Haible  <bruno@clisp.org>
42680         sleep: Move AC_LIBOBJ invocations to module description.
42681         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
42682         * modules/sleep (configure.ac): ... to here.
42684 2011-05-21  Bruno Haible  <bruno@clisp.org>
42686         signbit: Move AC_LIBOBJ invocations to module description.
42687         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
42688         * modules/signbit (configure.ac): ... to here.
42690 2011-05-21  Bruno Haible  <bruno@clisp.org>
42692         sigprocmask: Move AC_LIBOBJ invocations to module description.
42693         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
42694         gl_PREREQ_SIGPROMASK invocations from here...
42695         * modules/sigprocmask (configure.ac): ... to here.
42697 2011-05-21  Bruno Haible  <bruno@clisp.org>
42699         sigaction: Move AC_LIBOBJ invocations to module description.
42700         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
42701         gl_PREREQ_SIGACTION invocations from here...
42702         * modules/sigaction (configure.ac): ... to here.
42704 2011-05-21  Bruno Haible  <bruno@clisp.org>
42706         sig2str: Move AC_LIBOBJ invocations to module description.
42707         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
42708         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
42709         here...
42710         * modules/sig2str (configure.ac): ... to here.
42712 2011-05-21  Bruno Haible  <bruno@clisp.org>
42714         setlocale: Move AC_LIBOBJ invocations to module description.
42715         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
42716         gl_PREREQ_SETLOCALE invocations from here...
42717         * modules/setlocale (configure.ac): ... to here.
42719 2011-05-21  Bruno Haible  <bruno@clisp.org>
42721         unsetenv: Move AC_LIBOBJ invocations to module description.
42722         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
42723         and gl_PREREQ_UNSETENV invocations from here...
42724         * modules/unsetenv (configure.ac): ... to here.
42725         (Depends-on): Update.
42727 2011-05-21  Bruno Haible  <bruno@clisp.org>
42729         setenv: Move AC_LIBOBJ invocations to module description.
42730         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
42731         here...
42732         * modules/setenv (configure.ac): ... to here.
42734 2011-05-21  Bruno Haible  <bruno@clisp.org>
42736         selinux-h: Move AC_LIBOBJ invocations to module description.
42737         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
42738         AC_LIBOBJ invocation from here...
42739         * modules/selinux-h (configure.ac): ... to here.
42741 2011-05-21  Bruno Haible  <bruno@clisp.org>
42743         select: Respect rules for use of AC_LIBOBJ.
42744         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
42745         here...
42746         * modules/select (configure.ac): ... to here.
42748 2011-05-21  Bruno Haible  <bruno@clisp.org>
42750         scandir: Move AC_LIBOBJ invocations to module description.
42751         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
42752         invocations from here...
42753         * modules/scandir (configure.ac): ... to here.
42755 2011-05-21  Bruno Haible  <bruno@clisp.org>
42757         rpmatch: Move AC_LIBOBJ invocations to module description.
42758         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
42759         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
42760         here...
42761         * modules/rpmatch (configure.ac): ... to here.
42763 2011-05-21  Bruno Haible  <bruno@clisp.org>
42765         rmdir: Respect rules for use of AC_LIBOBJ.
42766         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
42767         * modules/rmdir (configure.ac): ... to here.
42769 2011-05-21  Bruno Haible  <bruno@clisp.org>
42771         renameat: Move AC_LIBOBJ invocations to module description.
42772         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
42773         here...
42774         * modules/renameat (configure.ac): ... to here.
42776 2011-05-21  Bruno Haible  <bruno@clisp.org>
42778         rename: Respect rules for use of AC_LIBOBJ.
42779         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
42780         here...
42781         * modules/rename (configure.ac): ... to here.
42783 2011-05-21  Bruno Haible  <bruno@clisp.org>
42785         remove: Move AC_LIBOBJ invocations to module description.
42786         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
42787         here...
42788         * modules/remove (configure.ac): ... to here.
42790 2011-05-21  Bruno Haible  <bruno@clisp.org>
42792         relocatable-lib: Move AC_LIBOBJ invocations to module description.
42793         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
42794         macro.
42795         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
42796         * modules/relocatable-lib (configure.ac): ... to here.
42797         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42798         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
42800 2011-05-21  Bruno Haible  <bruno@clisp.org>
42802         relocatable-prog: Move AC_LIBOBJ invocations to module description.
42803         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
42804         here...
42805         * modules/relocatable-prog (configure.ac): ... to here.
42807 2011-05-21  Bruno Haible  <bruno@clisp.org>
42809         regex: Move AC_LIBOBJ invocations to module description.
42810         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
42811         invocations from here...
42812         * modules/regex (configure.ac): ... to here.
42814 2011-05-21  Bruno Haible  <bruno@clisp.org>
42816         realloc-*: Move AC_LIBOBJ invocations to module description.
42817         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
42818         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
42819         AC_LIBOBJ invocations from here...
42820         * modules/realloc-gnu (configure.ac): ... to here.
42821         * modules/realloc-posix (configure.ac): ... and here.
42823 2011-05-21  Bruno Haible  <bruno@clisp.org>
42825         readutmp: Move AC_LIBOBJ invocations to module description.
42826         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
42827         * modules/readutmp (configure.ac): ... to here.
42829 2011-05-21  Bruno Haible  <bruno@clisp.org>
42831         readlinkat: Move AC_LIBOBJ invocations to module description.
42832         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
42833         here...
42834         * modules/readlinkat (configure.ac): ... to here.
42836 2011-05-21  Bruno Haible  <bruno@clisp.org>
42838         readlink: Move AC_LIBOBJ invocations to module description.
42839         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
42840         gl_PREREQ_READLINK invocations from here...
42841         * modules/readlink (configure.ac): ... to here.
42843 2011-05-21  Bruno Haible  <bruno@clisp.org>
42845         readline: Move AC_LIBOBJ invocations to module description.
42846         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
42847         gl_PREREQ_READLINE invocations from here...
42848         * modules/readline (configure.ac): ... to here.
42850 2011-05-21  Bruno Haible  <bruno@clisp.org>
42852         read: Move AC_LIBOBJ invocations to module description.
42853         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
42854         * modules/read (configure.ac): ... to here.
42856 2011-05-21  Bruno Haible  <bruno@clisp.org>
42858         rawmemchr: Move AC_LIBOBJ invocations to module description.
42859         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
42860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
42861         from here...
42862         * modules/rawmemchr (configure.ac): ... to here.
42864 2011-05-21  Bruno Haible  <bruno@clisp.org>
42866         random_r: Move AC_LIBOBJ invocations to module description.
42867         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
42868         gl_PREREQ_RANDOM_R invocations from here...
42869         * modules/random_r (configure.ac): ... to here.
42871 2011-05-21  Bruno Haible  <bruno@clisp.org>
42873         pwrite: Move AC_LIBOBJ invocations to module description.
42874         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
42875         * modules/pwrite (configure.ac): ... to here.
42877 2011-05-21  Bruno Haible  <bruno@clisp.org>
42879         putenv: Move AC_LIBOBJ invocations to module description.
42880         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
42881         * modules/putenv (configure.ac): ... to here.
42883 2011-05-21  Bruno Haible  <bruno@clisp.org>
42885         login_tty: Move AC_LIBOBJ invocations to module description.
42886         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
42887         * modules/login_tty (configure.ac): ... to here.
42889 2011-05-21  Bruno Haible  <bruno@clisp.org>
42891         openpty: Move AC_LIBOBJ invocations to module description.
42892         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
42893         * modules/openpty (configure.ac): ... to here.
42895 2011-05-21  Bruno Haible  <bruno@clisp.org>
42897         forkpty: Move AC_LIBOBJ invocations to module description.
42898         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
42899         * modules/forkpty (configure.ac): ... to here.
42901 2011-05-21  Bruno Haible  <bruno@clisp.org>
42903         ptsname: Move AC_LIBOBJ invocations to module description.
42904         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
42905         invocations from here...
42906         * modules/ptsname (configure.ac): ... to here.
42908 2011-05-21  Bruno Haible  <bruno@clisp.org>
42910         pread: Move AC_LIBOBJ invocations to module description.
42911         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
42912         * modules/pread (configure.ac): ... to here.
42914 2011-05-21  Bruno Haible  <bruno@clisp.org>
42916         posix_spawn*: Move AC_LIBOBJ invocations to module description.
42917         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
42918         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
42919         * modules/posix_spawn (configure.ac): ... to here.
42920         * modules/posix_spawnp (configure.ac): ... and here.
42922 2011-05-21  Bruno Haible  <bruno@clisp.org>
42924         popen: Move AC_LIBOBJ invocations to module description.
42925         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
42926         invocations from here...
42927         * modules/popen (configure.ac): ... to here.
42929 2011-05-21  Bruno Haible  <bruno@clisp.org>
42931         poll: Move AC_LIBOBJ invocations to module description.
42932         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
42933         invocations from here...
42934         * modules/poll (configure.ac): ... to here.
42936 2011-05-21  Bruno Haible  <bruno@clisp.org>
42938         pipe-posix: Move AC_LIBOBJ invocations to module description.
42939         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
42940         * modules/pipe-posix (configure.ac): ... to here.
42942 2011-05-21  Bruno Haible  <bruno@clisp.org>
42944         openat: Respect rules for use of AC_LIBOBJ.
42945         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
42946         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
42947         * modules/openat (configure.ac): ... to here.
42949 2011-05-21  Bruno Haible  <bruno@clisp.org>
42951         obstack-printf*: Move AC_LIBOBJ invocations to module description.
42952         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
42953         invocation from here...
42954         * modules/obstack-printf (configure.ac): ... to here.
42955         * modules/obstack-printf-posix (configure.ac): ... and here.
42957 2011-05-21  Bruno Haible  <bruno@clisp.org>
42959         nl_langinfo: Move AC_LIBOBJ invocations to module description.
42960         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
42961         from here...
42962         * modules/nl_langinfo (configure.ac): ... to here.
42964 2011-05-21  Bruno Haible  <bruno@clisp.org>
42966         nanosleep: Move AC_LIBOBJ invocations to module description.
42967         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
42968         gl_PREREQ_NANOSLEEP invocations from here...
42969         * modules/nanosleep (configure.ac): ... to here.
42971 2011-05-21  Bruno Haible  <bruno@clisp.org>
42973         mountlist: Move AC_LIBOBJ invocations to module description.
42974         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
42975         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
42976         * modules/mountlist (configure.ac): ... to here.
42978 2011-05-21  Bruno Haible  <bruno@clisp.org>
42980         mktime: Respect rules for use of AC_LIBOBJ.
42981         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
42982         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
42983         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
42984         (gl_FUNC_MKTIME_INTERNAL): ... and here...
42985         * modules/mktime (configure.ac): ... to here.
42986         * modules/mktime-internal (configure.ac): ... and here.
42987         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
42989 2011-05-21  Bruno Haible  <bruno@clisp.org>
42991         mkstemps: Move AC_LIBOBJ invocations to module description.
42992         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
42993         here...
42994         * modules/mkstemps (configure.ac): ... to here.
42996 2011-05-21  Bruno Haible  <bruno@clisp.org>
42998         mkstemp: Move AC_LIBOBJ invocations to module description.
42999         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
43000         gl_PREREQ_MKSTEMP invocations from here...
43001         * modules/mkstemp (configure.ac): ... to here.
43003 2011-05-21  Bruno Haible  <bruno@clisp.org>
43005         mkostemps: Move AC_LIBOBJ invocations to module description.
43006         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
43007         here...
43008         * modules/mkostemps (configure.ac): ... to here.
43010 2011-05-21  Bruno Haible  <bruno@clisp.org>
43012         mkostemp: Move AC_LIBOBJ invocations to module description.
43013         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
43014         gl_PREREQ_MKOSTEMP invocations from here...
43015         * modules/mkostemp (configure.ac): ... to here.
43017 2011-05-21  Bruno Haible  <bruno@clisp.org>
43019         mknod: Move AC_LIBOBJ invocations to module description.
43020         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
43021         * modules/mknod (configure.ac): ... to here.
43023 2011-05-21  Bruno Haible  <bruno@clisp.org>
43025         mkfifoat: Move AC_LIBOBJ invocations to module description.
43026         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
43027         here...
43028         * modules/mkfifoat (configure.ac): ... to here.
43030 2011-05-21  Bruno Haible  <bruno@clisp.org>
43032         mkfifo: Respect rules for use of AC_LIBOBJ.
43033         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
43034         here...
43035         * modules/mkfifo (configure.ac): ... to here.
43037 2011-05-21  Bruno Haible  <bruno@clisp.org>
43039         mkdtemp: Move AC_LIBOBJ invocations to module description.
43040         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
43041         invocations from here...
43042         * modules/mkdtemp (configure.ac): ... to here.
43044 2011-05-21  Bruno Haible  <bruno@clisp.org>
43046         mkdir: Move AC_LIBOBJ invocations to module description.
43047         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
43048         * modules/mkdir (configure.ac): ... to here.
43050 2011-05-21  Bruno Haible  <bruno@clisp.org>
43052         memset: Move AC_LIBOBJ invocations to module description.
43053         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
43054         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
43055         here...
43056         * modules/memset (configure.ac): ... to here.
43058 2011-05-21  Bruno Haible  <bruno@clisp.org>
43060         memrchr: Move AC_LIBOBJ invocations to module description.
43061         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
43062         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
43063         here...
43064         * modules/memrchr (configure.ac): ... to here.
43066 2011-05-21  Bruno Haible  <bruno@clisp.org>
43068         mempcpy: Move AC_LIBOBJ invocations to module description.
43069         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
43070         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
43071         here...
43072         * modules/mempcpy (configure.ac): ... to here.
43074 2011-05-21  Bruno Haible  <bruno@clisp.org>
43076         memmove: Move AC_LIBOBJ invocations to module description.
43077         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
43078         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
43079         here...
43080         * modules/memmove (configure.ac): ... to here.
43082 2011-05-21  Bruno Haible  <bruno@clisp.org>
43084         memmem*: Move AC_LIBOBJ invocations to module description.
43085         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
43086         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
43087         here...
43088         (gl_FUNC_MEMMEM): ... and here...
43089         * modules/memmem-simple (configure.ac): ... to here.
43090         * modules/memmem (configure.ac): ... and here.
43092 2011-05-21  Bruno Haible  <bruno@clisp.org>
43094         memcpy: Move AC_LIBOBJ invocations to module description.
43095         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
43096         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
43097         here...
43098         * modules/memcpy (configure.ac): ... to here.
43100 2011-05-21  Bruno Haible  <bruno@clisp.org>
43102         memcmp: Simplify autoconf macro.
43103         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
43104         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
43105         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
43107 2011-05-21  Bruno Haible  <bruno@clisp.org>
43109         memcmp: Move AC_LIBOBJ invocations to module description.
43110         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
43111         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
43112         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
43113         * modules/memcmp (configure.ac): ... to here.
43114         (Depends-on): Update conditions.
43116 2011-05-21  Bruno Haible  <bruno@clisp.org>
43118         memchr: Respect rules for use of AC_LIBOBJ.
43119         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
43120         invocations from here...
43121         * modules/memchr (configure.ac): ... to here.
43123 2011-05-21  Bruno Haible  <bruno@clisp.org>
43125         mbtowc: Move AC_LIBOBJ invocations to module description.
43126         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
43127         invocations from here...
43128         * modules/mbtowc (configure.ac): ... to here.
43130 2011-05-21  Bruno Haible  <bruno@clisp.org>
43132         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
43133         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
43134         gl_PREREQ_MBSRTOWCS invocations from here...
43135         * modules/mbsrtowcs (configure.ac): ... to here.
43137 2011-05-21  Bruno Haible  <bruno@clisp.org>
43139         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
43140         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
43141         gl_PREREQ_MBSNRTOWCS invocations from here...
43142         * modules/mbsnrtowcs (configure.ac): ... to here.
43144 2011-05-21  Bruno Haible  <bruno@clisp.org>
43146         mbsinit: Move AC_LIBOBJ invocations to module description.
43147         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
43148         invocations from here...
43149         * modules/mbsinit (configure.ac): ... to here.
43151 2011-05-21  Bruno Haible  <bruno@clisp.org>
43153         mbrlen: Move AC_LIBOBJ invocations to module description.
43154         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
43155         invocations from here...
43156         * modules/mbrlen (configure.ac): ... to here.
43158 2011-05-21  Bruno Haible  <bruno@clisp.org>
43160         mbrtowc: Respect rules for use of AC_LIBOBJ.
43161         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
43162         invocations from here...
43163         * modules/mbrtowc (configure.ac): ... to here.
43165 2011-05-21  Bruno Haible  <bruno@clisp.org>
43167         malloc-*: Move AC_LIBOBJ invocations to module description.
43168         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
43169         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
43170         AC_LIBOBJ invocations from here...
43171         * modules/malloc-gnu (configure.ac): ... to here.
43172         * modules/malloc-posix (configure.ac): ... and here.
43174 2011-05-21  Bruno Haible  <bruno@clisp.org>
43176         lstat, openat: Respect rules for use of AC_LIBOBJ.
43177         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
43178         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
43179         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
43180         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
43181         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
43182         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
43183         here.
43184         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
43186 2011-05-21  Bruno Haible  <bruno@clisp.org>
43188         lseek: Move AC_LIBOBJ invocations to module description.
43189         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
43190         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
43191         * modules/lseek (configure.ac): ... to here.
43193 2011-05-21  Bruno Haible  <bruno@clisp.org>
43195         linkat: Move AC_LIBOBJ invocations to module description.
43196         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
43197         here...
43198         * modules/linkat (configure.ac): ... to here.
43200 2011-05-21  Bruno Haible  <bruno@clisp.org>
43202         link: Respect rules for use of AC_LIBOBJ.
43203         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
43204         * modules/link (configure.ac): ... to here.
43206 2011-05-21  Bruno Haible  <bruno@clisp.org>
43208         lchown: Move AC_LIBOBJ invocations to module description.
43209         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
43210         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
43211         * modules/lchown (configure.ac): ... to here.
43213 2011-05-21  Bruno Haible  <bruno@clisp.org>
43215         iswctype: Move AC_LIBOBJ invocations to module description.
43216         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
43217         here...
43218         * modules/iswctype (configure.ac): ... to here.
43220 2011-05-21  Bruno Haible  <bruno@clisp.org>
43222         iswblank: Move AC_LIBOBJ invocations to module description.
43223         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
43224         here...
43225         * modules/iswblank (configure.ac): ... to here.
43227 2011-05-21  Bruno Haible  <bruno@clisp.org>
43229         atanl: Move AC_LIBOBJ invocations to module description.
43230         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
43231         * modules/atanl (configure.ac): ... to here.
43233 2011-05-21  Bruno Haible  <bruno@clisp.org>
43235         acosl: Move AC_LIBOBJ invocations to module description.
43236         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
43237         * modules/acosl (configure.ac): ... to here.
43239 2011-05-21  Bruno Haible  <bruno@clisp.org>
43241         asinl: Respect rules for use of AC_LIBOBJ.
43242         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
43243         * modules/asinl (configure.ac): ... to here.
43245 2011-05-21  Bruno Haible  <bruno@clisp.org>
43247         tanl: Move AC_LIBOBJ invocations to module description.
43248         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
43249         * modules/tanl (configure.ac): ... to here.
43251 2011-05-21  Bruno Haible  <bruno@clisp.org>
43253         cosl: Move AC_LIBOBJ invocations to module description.
43254         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
43255         * modules/cosl (configure.ac): ... to here.
43257 2011-05-21  Bruno Haible  <bruno@clisp.org>
43259         sinl: Move AC_LIBOBJ invocations to module description.
43260         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
43261         * modules/sinl (configure.ac): ... to here.
43263 2011-05-21  Bruno Haible  <bruno@clisp.org>
43265         logl: Move AC_LIBOBJ invocations to module description.
43266         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
43267         * modules/logl (configure.ac): ... to here.
43269 2011-05-21  Bruno Haible  <bruno@clisp.org>
43271         expl: Move AC_LIBOBJ invocations to module description.
43272         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
43273         * modules/expl (configure.ac): ... to here.
43275 2011-05-21  Bruno Haible  <bruno@clisp.org>
43277         roundl: Move AC_LIBOBJ invocations to module description.
43278         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
43279         * modules/roundl (configure.ac): ... to here.
43281 2011-05-21  Bruno Haible  <bruno@clisp.org>
43283         round: Move AC_LIBOBJ invocations to module description.
43284         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
43285         * modules/round (configure.ac): ... to here.
43287 2011-05-21  Bruno Haible  <bruno@clisp.org>
43289         roundf: Move AC_LIBOBJ invocations to module description.
43290         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
43291         * modules/roundf (configure.ac): ... to here.
43293 2011-05-21  Bruno Haible  <bruno@clisp.org>
43295         truncl: Move AC_LIBOBJ invocations to module description.
43296         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
43297         * modules/truncl (configure.ac): ... to here.
43299 2011-05-21  Bruno Haible  <bruno@clisp.org>
43301         trunc: Move AC_LIBOBJ invocations to module description.
43302         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
43303         * modules/trunc (configure.ac): ... to here.
43305 2011-05-21  Bruno Haible  <bruno@clisp.org>
43307         truncf: Move AC_LIBOBJ invocations to module description.
43308         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
43309         * modules/truncf (configure.ac): ... to here.
43311 2011-05-21  Bruno Haible  <bruno@clisp.org>
43313         ceill: Move AC_LIBOBJ invocations to module description.
43314         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
43315         * modules/ceill (configure.ac): ... to here.
43317 2011-05-21  Bruno Haible  <bruno@clisp.org>
43319         ceil: Move AC_LIBOBJ invocations to module description.
43320         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
43321         * modules/ceil (configure.ac): ... to here.
43323 2011-05-21  Bruno Haible  <bruno@clisp.org>
43325         ceilf: Move AC_LIBOBJ invocations to module description.
43326         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
43327         * modules/ceilf (configure.ac): ... to here.
43329 2011-05-21  Bruno Haible  <bruno@clisp.org>
43331         floorl: Respect rules for use of AC_LIBOBJ.
43332         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
43333         * modules/floorl (configure.ac): ... to here.
43335 2011-05-21  Bruno Haible  <bruno@clisp.org>
43337         floor: Respect rules for use of AC_LIBOBJ.
43338         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
43339         * modules/floor (configure.ac): ... to here.
43341 2011-05-21  Bruno Haible  <bruno@clisp.org>
43343         floorf: Move AC_LIBOBJ invocations to module description.
43344         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
43345         * modules/floorf (configure.ac): ... to here.
43347 2011-05-20  Bruno Haible  <bruno@clisp.org>
43349         sqrtl: Respect rules for use of AC_LIBOBJ.
43350         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
43351         * modules/sqrtl (configure.ac): ... to here.
43353 2011-05-20  Bruno Haible  <bruno@clisp.org>
43355         ldexpl: Respect rules for use of AC_LIBOBJ.
43356         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
43357         * modules/ldexpl (configure.ac): ... to here.
43359 2011-05-20  Bruno Haible  <bruno@clisp.org>
43361         frexpl*: Respect rules for use of AC_LIBOBJ.
43362         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
43363         invocation from here...
43364         * modules/frexpl (configure.ac): ... to here.
43365         * modules/frexpl-nolibm (configure.ac): ... and here.
43367 2011-05-20  Bruno Haible  <bruno@clisp.org>
43369         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
43370         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
43371         invocation from here...
43372         * modules/frexp (configure.ac): ... to here.
43373         * modules/frexp-nolibm (configure.ac): ... and here.
43375 2011-05-20  Bruno Haible  <bruno@clisp.org>
43377         isnan: Respect rules for use of AC_LIBOBJ.
43378         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
43379         invocations here.
43380         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
43381         REPLACE_ISNAN.
43382         * modules/isnand (configure.ac): Likewise.
43383         * modules/isnanl (configure.ac): Likewise.
43385 2011-05-20  Bruno Haible  <bruno@clisp.org>
43387         isnanl*: Respect rules for use of AC_LIBOBJ.
43388         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
43389         invocation from here...
43390         * modules/isnanl (configure.ac): ... to here.
43391         * modules/isnanl-nolibm (configure.ac): ... and here.
43393 2011-05-20  Bruno Haible  <bruno@clisp.org>
43395         isnand*: Move AC_LIBOBJ invocations to module description.
43396         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
43397         invocation from here...
43398         * modules/isnand (configure.ac): ... to here.
43399         * modules/isnand-nolibm (configure.ac): ... and here.
43401 2011-05-20  Bruno Haible  <bruno@clisp.org>
43403         isnanf*: Move AC_LIBOBJ invocations to module description.
43404         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
43405         invocation from here...
43406         * modules/isnanf (configure.ac): ... to here.
43407         * modules/isnanf-nolibm (configure.ac): ... and here.
43409 2011-05-20  Bruno Haible  <bruno@clisp.org>
43411         isnan*: Separate the AC_LIBOBJ invocations.
43412         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
43413         AC_LIBOBJ invocation.
43414         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
43415         here.
43416         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
43417         AC_LIBOBJ invocation.
43418         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
43419         here.
43420         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
43421         AC_LIBOBJ invocation.
43422         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
43423         here.
43424         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
43426 2011-05-08  Bruno Haible  <bruno@clisp.org>
43428         isinf: Move AC_LIBOBJ invocations to module description.
43429         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
43430         * modules/isinf (configure.ac): ... to here.
43432 2011-05-08  Bruno Haible  <bruno@clisp.org>
43434         isfinite: Move AC_LIBOBJ invocations to module description.
43435         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
43436         * modules/isfinite (configure.ac): ... to here.
43438 2011-05-08  Bruno Haible  <bruno@clisp.org>
43440         isblank: Move AC_LIBOBJ invocations to module description.
43441         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
43442         here...
43443         * modules/isblank (configure.ac): ... to here.
43445 2011-05-08  Bruno Haible  <bruno@clisp.org>
43447         isapipe: Move AC_LIBOBJ invocations to module description.
43448         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
43449         gl_PREREQ_ISAPIPE invocations from here...
43450         * modules/isapipe (configure.ac): ... to here.
43451         (Depends-on): Update condition.
43453 2011-05-08  Bruno Haible  <bruno@clisp.org>
43455         ioctl: Move AC_LIBOBJ invocations to module description.
43456         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
43457         invocations from here...
43458         * modules/ioctl (configure.ac): ... to here.
43459         (Depends-on): Update condition.
43461 2011-05-08  Bruno Haible  <bruno@clisp.org>
43463         imaxdiv: Move AC_LIBOBJ invocations to module description.
43464         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
43465         invocations from here...
43466         * modules/imaxdiv (configure.ac): ... to here.
43468 2011-05-08  Bruno Haible  <bruno@clisp.org>
43470         imaxabs: Move AC_LIBOBJ invocations to module description.
43471         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
43472         invocations from here...
43473         * modules/imaxabs (configure.ac): ... to here.
43475 2011-05-08  Bruno Haible  <bruno@clisp.org>
43477         getaddrinfo: Move AC_LIBOBJ invocations to module description.
43478         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
43479         AC_LIBOBJ invocations from here...
43480         * modules/getaddrinfo (configure.ac): ... to here.
43481         (Depends-on): Add conditions.
43483 2011-05-08  Bruno Haible  <bruno@clisp.org>
43485         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
43486         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
43487         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
43488         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
43489         (gl_PREREQ_INET_PTON): ... from here.
43490         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
43491         gl_PREREQ_INET_PTON here.
43492         (Depends-on): Update condition.
43494 2011-05-08  Bruno Haible  <bruno@clisp.org>
43496         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
43497         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
43498         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
43499         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
43500         (gl_PREREQ_INET_NTOP): ... from here.
43501         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
43502         gl_PREREQ_INET_NTOP here.
43503         (Depends-on): Update condition.
43505 2011-05-08  Bruno Haible  <bruno@clisp.org>
43507         iconv_open: Move AC_LIBOBJ invocations to module description.
43508         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
43509         AC_LIBOBJ invocations from here...
43510         * modules/iconv_open (configure.ac): ... to here.
43512 2011-05-08  Bruno Haible  <bruno@clisp.org>
43514         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
43515         If module 'iconv_open' is among the main modules and module
43516         'iconv_open-utf' is among the tests dependencies, then
43517         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
43518         return the special iconv_t values. Therefore iconv() and iconv_close()
43519         must support these special iconv_t values, already in lib, not only in
43520         tests.
43521         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
43522         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
43523         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
43524         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
43525         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
43526         (Depends-on): Add the dependencies of iconv_open-utf.
43527         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
43528         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
43529         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
43531 2011-05-08  Bruno Haible  <bruno@clisp.org>
43533         group-member: Move AC_LIBOBJ invocations to module description.
43534         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
43535         gl_PREREQ_GROUP_MEMBER invocations from here...
43536         * modules/group-member (configure.ac): ... to here.
43538 2011-05-08  Bruno Haible  <bruno@clisp.org>
43540         grantpt: Move AC_LIBOBJ invocations to module description.
43541         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
43542         invocations from here...
43543         * modules/grantpt (configure.ac): ... to here.
43545 2011-05-08  Bruno Haible  <bruno@clisp.org>
43547         glob: Move AC_LIBOBJ invocations to module description.
43548         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
43549         from here...
43550         * modules/glob (configure.ac): ... to here.
43552 2011-05-08  Bruno Haible  <bruno@clisp.org>
43554         getusershell: Move AC_LIBOBJ invocations to module description.
43555         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
43556         Move AC_LIBOBJ invocation from here...
43557         * modules/getusershell (configure.ac): ... to here.
43558         (Depends-on): Update condition.
43560 2011-05-08  Bruno Haible  <bruno@clisp.org>
43562         gettimeofday: Move AC_LIBOBJ invocations to module description.
43563         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
43564         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
43565         gl_PREREQ_GETTIMEOFDAY invocations from here...
43566         * modules/gettimeofday (configure.ac): ... to here.
43568 2011-05-08  Bruno Haible  <bruno@clisp.org>
43570         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
43571         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
43572         just gl_FUNC_TZSET.
43573         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
43574         (gl_FUNC_TZSET_CLOBBER): Remove actions.
43575         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
43576         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
43578 2011-05-08  Bruno Haible  <bruno@clisp.org>
43580         getsubopt: Move AC_LIBOBJ invocations to module description.
43581         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
43582         gl_PREREQ_GETSUBOPT invocations from here...
43583         * modules/getsubopt (configure.ac): ... to here.
43585 2011-05-08  Bruno Haible  <bruno@clisp.org>
43587         getpass-gnu: Move AC_LIBOBJ invocations to module description.
43588         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
43589         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
43590         * modules/getpass-gnu (configure.ac): ... to here.
43592 2011-05-08  Bruno Haible  <bruno@clisp.org>
43594         getpass: Move AC_LIBOBJ invocations to module description.
43595         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
43596         gl_PREREQ_GETPASS invocations from here...
43597         * modules/getpass (configure.ac): ... to here.
43599 2011-05-08  Bruno Haible  <bruno@clisp.org>
43601         getpagesize: Move AC_LIBOBJ invocations to module description.
43602         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
43603         from here...
43604         * modules/getpagesize (configure.ac): ... to here.
43606 2011-05-08  Bruno Haible  <bruno@clisp.org>
43608         getopt: Move AC_LIBOBJ invocations to module description.
43609         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
43610         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
43611         invocations from here...
43612         * modules/getopt-gnu (configure.ac): ... to here.
43613         * modules/getopt-posix (configure.ac): ... and here.
43614         (Depends-on): Update condition.
43616 2011-05-08  Bruno Haible  <bruno@clisp.org>
43618         getopt, argp: Respect rules for use of AC_LIBOBJ.
43619         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
43620         (gl_REPLACE_GETOPT_ALWAYS): New macro.
43621         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
43622         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
43624 2011-05-08  Bruno Haible  <bruno@clisp.org>
43626         getlogin_r: Move AC_LIBOBJ invocations to module description.
43627         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
43628         gl_PREREQ_GETLOGIN_R invocations from here...
43629         * modules/getlogin_r (configure.ac): ... to here.
43631 2011-05-08  Bruno Haible  <bruno@clisp.org>
43633         getlogin: Move AC_LIBOBJ invocations to module description.
43634         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
43635         here...
43636         * modules/getlogin (configure.ac): ... to here.
43638 2011-05-08  Bruno Haible  <bruno@clisp.org>
43640         getloadavg: Move AC_LIBOBJ invocations to module description.
43641         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
43642         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
43643         * modules/getloadavg (configure.ac): ... to here.
43645 2011-05-08  Bruno Haible  <bruno@clisp.org>
43647         gethrxtime: Move AC_LIBOBJ invocations to module description.
43648         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
43649         LIB_GETHRXTIME from here...
43650         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
43651         invocations from here...
43652         * modules/gethrxtime (configure.ac): ... to here.
43654 2011-05-08  Bruno Haible  <bruno@clisp.org>
43656         gethostname: Move AC_LIBOBJ invocations to module description.
43657         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
43658         gl_PREREQ_GETHOSTNAME invocations from here...
43659         * modules/gethostname (configure.ac): ... to here.
43661 2011-05-08  Bruno Haible  <bruno@clisp.org>
43663         getgroups: Move AC_LIBOBJ invocations to module description.
43664         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
43665         here...
43666         * modules/getgroups (configure.ac): ... to here.
43668 2011-05-08  Bruno Haible  <bruno@clisp.org>
43670         getdtablesize: Move AC_LIBOBJ invocations to module description.
43671         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
43672         invocation from here...
43673         * modules/getdtablesize (configure.ac): ... to here.
43675 2011-05-08  Bruno Haible  <bruno@clisp.org>
43677         getdomainname: Move AC_LIBOBJ invocations to module description.
43678         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
43679         gl_PREREQ_GETDOMAINNAME invocations from here...
43680         * modules/getdomainname (configure.ac): ... to here.
43682 2011-05-08  Bruno Haible  <bruno@clisp.org>
43684         getline: Move AC_LIBOBJ invocations to module description.
43685         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
43686         invocations from here...
43687         * modules/getline (configure.ac): ... to here.
43689 2011-05-08  Bruno Haible  <bruno@clisp.org>
43691         getline: Simplify.
43692         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
43693         It's already handled through the module dependency.
43695 2011-05-08  Bruno Haible  <bruno@clisp.org>
43697         getdelim: Move AC_LIBOBJ invocations to module description.
43698         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
43699         and gl_PREREQ_GETDELIM invocations from here...
43700         * modules/getdelim (configure.ac): ... to here.
43701         (Depends-on): Fix condition.
43703 2011-05-08  Bruno Haible  <bruno@clisp.org>
43705         getcwd: Move AC_LIBOBJ invocations to module description.
43706         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
43707         invocations from here...
43708         * modules/getcwd (configure.ac): ... to here.
43710 2011-05-08  Bruno Haible  <bruno@clisp.org>
43712         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
43713         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
43714         here...
43715         * modules/getcwd-lgpl (configure.ac): ... to here.
43717 2011-05-07  Bruno Haible  <bruno@clisp.org>
43719         crypto/gc: Move AC_LIBOBJ invocations to module description.
43720         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
43721         * modules/crypto/gc (configure.ac): ... to here.
43723 2011-05-07  Bruno Haible  <bruno@clisp.org>
43725         fwriting: Move AC_LIBOBJ invocations to module description.
43726         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
43727         here...
43728         * modules/fwriting (configure.ac): ... to here.
43730 2011-05-07  Bruno Haible  <bruno@clisp.org>
43732         fwritable: Move AC_LIBOBJ invocations to module description.
43733         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
43734         here...
43735         * modules/fwritable (configure.ac): ... to here.
43737 2011-05-07  Bruno Haible  <bruno@clisp.org>
43739         futimens: Move AC_LIBOBJ invocations to module description.
43740         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
43741         here...
43742         * modules/futimens (configure.ac): ... to here.
43744 2011-05-07  Bruno Haible  <bruno@clisp.org>
43746         ftruncate: Move AC_LIBOBJ invocations to module description.
43747         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
43748         gl_PREREQ_FTRUNCATE invocations from here...
43749         * modules/ftruncate (configure.ac): ... to here.
43751 2011-05-07  Bruno Haible  <bruno@clisp.org>
43753         fsync: Move AC_LIBOBJ invocations to module description.
43754         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
43755         invocations from here...
43756         * modules/fsync (configure.ac): ... to here.
43758 2011-05-07  Bruno Haible  <bruno@clisp.org>
43760         fsusage: Move AC_LIBOBJ invocations to module description.
43761         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
43762         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
43763         * modules/fsusage (configure.ac): ... to here.
43765 2011-05-07  Bruno Haible  <bruno@clisp.org>
43767         freopen: Move AC_LIBOBJ invocations to module description.
43768         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
43769         invocations from here...
43770         * modules/freopen (configure.ac): ... to here.
43772 2011-05-07  Bruno Haible  <bruno@clisp.org>
43774         free: Move AC_LIBOBJ invocations to module description.
43775         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
43776         invocations from here...
43777         * modules/free (configure.ac): ... to here.
43779 2011-05-07  Bruno Haible  <bruno@clisp.org>
43781         freadable: Move AC_LIBOBJ invocations to module description.
43782         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
43783         here...
43784         * modules/freadable (configure.ac): ... to here.
43786 2011-05-07  Bruno Haible  <bruno@clisp.org>
43788         fpurge: Move AC_LIBOBJ invocations to module description.
43789         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
43790         invocations from here...
43791         * modules/fpurge (configure.ac): ... to here.
43793 2011-05-07  Bruno Haible  <bruno@clisp.org>
43795         fpending: Move AC_LIBOBJ invocations to module description.
43796         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
43797         gl_FUNC_FPENDING.
43798         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
43799         invocations from here...
43800         * modules/fpending (configure.ac): ... to here.
43802 2011-05-07  Bruno Haible  <bruno@clisp.org>
43804         fopen: Move AC_LIBOBJ invocations to module description.
43805         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
43806         invocations from here...
43807         * modules/fopen (configure.ac): ... to here.
43809 2011-05-07  Bruno Haible  <bruno@clisp.org>
43811         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
43812         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
43813         gl_FUNC_FNMATCH_POSIX.
43814         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
43815         invocations from here...
43816         * modules/fnmatch (configure.ac): ... to here.
43817         * modules/fnmatch-gnu (configure.ac): ... and here.
43819 2011-05-07  Bruno Haible  <bruno@clisp.org>
43821         flock: Move AC_LIBOBJ invocations to module description.
43822         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
43823         invocations from here...
43824         * modules/flock (configure.ac): ... to here.
43826 2011-05-07  Bruno Haible  <bruno@clisp.org>
43828         fileblocks: Move AC_LIBOBJ invocations to module description.
43829         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
43830         gl_PREREQ_FILEBLOCKS invocations from here...
43831         * modules/fileblocks (configure.ac): ... to here.
43833 2011-05-06  Bruno Haible  <bruno@clisp.org>
43835         fflush: Move AC_LIBOBJ invocations to module description.
43836         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
43837         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
43838         invocations from here...
43839         * modules/fflush (configure.ac): ... to here.
43841 2011-05-06  Bruno Haible  <bruno@clisp.org>
43843         fdopendir: Move AC_LIBOBJ invocations to module description.
43844         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
43845         here...
43846         * modules/fdopendir (configure.ac): ... to here.
43847         (Depends-on): Improve conditions.
43849 2011-05-06  Bruno Haible  <bruno@clisp.org>
43851         _Exit: Move AC_LIBOBJ invocations to module description.
43852         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
43853         invocations from here...
43854         * modules/_Exit (configure.ac): ... to here.
43856 2011-05-21  Bruno Haible  <bruno@clisp.org>
43858         euidaccess: Respect rules for use of AC_LIBOBJ.
43859         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
43860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
43861         from here...
43862         * modules/euidaccess (configure.ac): ... to here.
43864 2011-05-06  Bruno Haible  <bruno@clisp.org>
43866         error: Move AC_LIBOBJ invocations to module description.
43867         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
43868         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
43869         invocations from here...
43870         * modules/error (configure.ac): ... to here.
43872 2011-05-06  Bruno Haible  <bruno@clisp.org>
43874         duplocale: Move AC_LIBOBJ invocations to module description.
43875         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
43876         gl_PREREQ_DUPLOCALE invocations from here...
43877         * modules/duplocale (configure.ac): ... to here.
43879 2011-05-05  Bruno Haible  <bruno@clisp.org>
43881         dirfd: Move AC_LIBOBJ invocations to module description.
43882         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
43883         gl_FUNC_DIRFD.
43884         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
43885         here...
43886         * modules/dirfd (configure.ac): ... to here.
43887         (Depends-on): Fix condition.
43889 2011-05-05  Bruno Haible  <bruno@clisp.org>
43891         chown: Respect rules for use of AC_LIBOBJ.
43892         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
43893         * modules/chown (configure.ac): ... to here.
43895 2011-05-05  Bruno Haible  <bruno@clisp.org>
43897         chdir-long: Move AC_LIBOBJ invocations to module description.
43898         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
43899         gl_PREREQ_CHDIR_LONG invocations from here...
43900         * modules/chdir-long (configure.ac): ... to here.
43902 2011-05-05  Bruno Haible  <bruno@clisp.org>
43904         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
43905         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
43906         from here...
43907         * modules/canonicalize-lgpl (configure.ac): ... to here.
43909 2011-05-05  Bruno Haible  <bruno@clisp.org>
43911         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
43912         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
43913         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
43914         REPLACE_CALLOC.
43915         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
43916         * modules/calloc-gnu (configure.ac): Likewise.
43918 2011-05-05  Bruno Haible  <bruno@clisp.org>
43920         btowc: Move AC_LIBOBJ invocations to module description.
43921         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
43922         invocations from here...
43923         * modules/btowc (configure.ac): ... to here.
43925 2011-05-21  Bruno Haible  <bruno@clisp.org>
43927         atexit: Move AC_LIBOBJ invocations to module description.
43928         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
43929         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
43930         here...
43931         * modules/atexit (configure.ac): ... to here.
43933 2011-05-05  Bruno Haible  <bruno@clisp.org>
43935         atoll: Move AC_LIBOBJ invocations to module description.
43936         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
43937         invocations from here...
43938         * modules/atoll (configure.ac): ... to here.
43940 2011-05-05  Bruno Haible  <bruno@clisp.org>
43942         argz: Move AC_LIBOBJ invocations to module description.
43943         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
43944         * modules/argz (configure.ac): ... to here.
43946 2011-05-05  Bruno Haible  <bruno@clisp.org>
43948         alphasort: Move AC_LIBOBJ invocations to module description.
43949         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
43950         gl_PREREQ_ALPHASORT invocations from here...
43951         * modules/alphasort (configure.ac): ... to here.
43953 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
43955         verify: new macro verify_expr; verify_true deprecated
43956         * NEWS: Mention this.
43957         * doc/verify.texi (Compile-time Assertions): Document this.
43958         * lib/verify.h (verify_true): Deprecate.
43959         (verify_expr): New macro.
43960         * tests/test-verify.c (function): Test verify_expr.
43962 2011-06-14  Jim Meyering  <meyering@redhat.com>
43964         init.sh: give more portable redirection-related advice in a comment
43965         * tests/init.sh (stderr_fileno_): Update the advice in comments.
43966         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
43967         for lots of discussion.  Stefano Lattarini suggested the solution
43968         of putting "9>&2" after the command.  Reported by Bruno Haible.
43970 2011-06-13  Bruno Haible  <bruno@clisp.org>
43972         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
43973         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
43974         'none'.
43976 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
43978         ftoastr: use strtof only if HAVE_STRTOF
43979         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
43980         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
43981         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
43982         * modules/ftoastr (configure.ac): Check for strtof.
43984 2011-06-13  Bruno Haible  <bruno@clisp.org>
43986         gnulib-tool: Addendum to 2011-06-08 commit.
43987         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
43988         and --witness-c-macro have been given, augment AM_CPPFLAGS.
43990 2011-06-13  Bruno Haible  <bruno@clisp.org>
43992         fseeko: Provide a non-inline replacement of fseek().
43993         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
43994         * modules/fseeko (Depends-on): Add fseek.
43995         * modules/fseek (License): Change to LGPLv2+.
43997 2011-06-13  Bruno Haible  <bruno@clisp.org>
43999         ftello: Provide a non-inline replacement of ftell().
44000         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
44001         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
44002         not have ftello() (such as on mingw).
44003         * modules/ftello (Depends-on): Add ftell.
44004         * modules/ftell (License): Change to LGPLv2+.
44006 2011-05-07  Bruno Haible  <bruno@clisp.org>
44008         ftell: Move AC_LIBOBJ invocations to module description.
44009         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
44010         * modules/ftell (configure.ac): ... to here.
44012 2011-05-07  Bruno Haible  <bruno@clisp.org>
44014         ftello: Respect rules for use of AC_LIBOBJ.
44015         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
44016         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
44017         here...
44018         * modules/ftello (configure.ac): ... to here.
44020 2011-05-07  Bruno Haible  <bruno@clisp.org>
44022         fseeko: Simplify.
44023         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
44024         (gl_FUNC_FSEEKO): Inline it here.
44026 2011-05-07  Bruno Haible  <bruno@clisp.org>
44028         fseek: Move AC_LIBOBJ invocations to module description.
44029         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
44030         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
44031         * modules/fseek (configure.ac): ... to here.
44033 2011-05-07  Bruno Haible  <bruno@clisp.org>
44035         fseek: Respect rules for use of AC_LIBOBJ.
44036         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
44037         here...
44038         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
44040 2011-05-07  Bruno Haible  <bruno@clisp.org>
44042         fseeko: Respect rules for use of AC_LIBOBJ.
44043         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
44044         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
44045         here...
44046         * modules/fseeko (configure.ac): ... to here.
44048 2011-06-13  Bruno Haible  <bruno@clisp.org>
44050         gnulib-tool: Allow comments in the 'Depends-on' section.
44051         * doc/gnulib.texi (Module description): Mention comment syntax in the
44052         Depends-on section.
44053         * gnulib-tool (func_get_dependencies): Filter out comment lines.
44055 2011-06-13  Bruno Haible  <bruno@clisp.org>
44057         file-set.h: guard __attibute__ use, now that it's not always defined
44058         * lib/file-set.h (record_file): Use __attribute__ only with compiler
44059         versions that support it.  This fixes a coreutils build failure with
44060         the vendor cc on HP-UX 11.31.
44062 2011-06-12  Bruno Haible  <bruno@clisp.org>
44064         acl: Add support for HP-UX >= 11.11 JFS ACLs.
44065         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
44066         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
44067         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
44068         (acl, aclsort): New declarations.
44069         (aclv_nontrivial): New declaration.
44070         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
44071         (file_has_acl): Read also the second kind of HP-UX ACLs.
44072         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
44073         kind of HP-UX ACLs if the first kind fails.
44074         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
44075         second kind of HP-UX ACLs.
44076         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
44077         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
44078         agree.
44079         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
44080         hpuxjfs.
44081         Handle hpuxjfs.
44082         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
44083         hpuxjfs.
44084         Handle hpuxjfs.
44085         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
44086         (func_test_same_acls): Use both lsacl and getacl.
44087         Handle hpuxjfs.
44088         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
44089         (func_test_same_acls): Use both lsacl and getacl.
44090         Handle hpuxjfs.
44092 2011-06-12  Bruno Haible  <bruno@clisp.org>
44094         acl: Complete the 2010-08-10 fix.
44095         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
44096         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
44097         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
44098         explicitly.
44099         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
44100         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
44102 2011-06-12  Bruno Haible  <bruno@clisp.org>
44104         spawn-pipe tests: Comments.
44105         * tests/test-spawn-pipe-child.c (main): Update comment.
44106         Reported by James Youngman <jay@gnu.org>.
44108 2011-06-11  James Youngman  <jay@gnu.org>
44110         New module 'stat-size'.
44111         * modules/stat-size: New module.  Provides macros for accessing
44112         file size information in instances of struct stat.  Depends on the
44113         fileblocks module because it calls st_blocks.
44114         * lib/stat-size.h: New file, adapted from coreutils' system.h.
44115         * doc/gnulib.texi: Include stat-size.texi.
44116         * doc/stat-size.texi: Documentation for this module.
44117         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
44118         * m4/fileblocks.m4: Mention that stat-size depends on the call to
44119         AC_STRUCT_ST_BLOCKS.
44121 2011-06-09  Bruno Haible  <bruno@clisp.org>
44123         thread: Support pthreads-win32.
44124         * lib/glthread/thread.h (gl_thread_self): Define differently on
44125         pthreads-win32.
44126         (gl_null_thread): New declaration.
44127         (gl_thread_self_pointer): New macro.
44128         * lib/glthread/thread.c (gl_null_thread): New constant.
44129         * tests/test-lock.c: Use gl_thread_self_pointer instead of
44130         gl_thread_self.
44131         * tests/test-tls.c: Likewise.
44132         Suggested by Paul Eggert. Reported by Eric Blake.
44134 2011-06-09  Bruno Haible  <bruno@clisp.org>
44136         thread: Fix confusion between NULL and 0.
44137         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
44138         Reported by Paul Eggert.
44140 2011-06-09  Bruno Haible  <bruno@clisp.org>
44142         spawn-pipe tests: Avoid test failure on HP-UX 11.
44143         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
44144         is closed.
44146 2011-06-09  Bruno Haible  <bruno@clisp.org>
44148         acl tests: Fix compilation error on HP-UX 11.
44149         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
44151 2011-06-09  Bruno Haible  <bruno@clisp.org>
44153         rmdir: Avoid test failure on HP-UX 10.20.
44154         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
44155         EEXIST.
44157 2011-06-08  Eric Blake  <eblake@redhat.com>
44159         perror: fix test on mingw
44160         * modules/perror-tests (Depends-on): Add dup2.
44162         strerror_r-posix: fix on MacOS
44163         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
44164         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
44165         logic bug.
44166         * lib/strerror_r.c (strerror_r): Fix the bug.
44167         * lib/strerror.c (strerror): Likewise.
44168         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
44169         problem.
44170         * doc/posix-functions/strerror.texi (strerror): Likewise.
44171         * doc/posix-functions/perror.texi (perror): Likewise.
44172         * tests/test-strerror.c (main): Enhance test.
44173         * tests/test-strerror_r.c (main): Likewise.
44175 2011-06-08  Bruno Haible  <bruno@clisp.org>
44177         gnulib-tool: Better isolation between different gnulib-tool invocations.
44178         * gnulib-tool: New option --witness-c-macro.
44179         (witness_c_macro): New variable.
44180         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
44181         AM_CPPFLAGS define it as a C macro.
44182         (func_emit_tests_Makefile_am): Likewise.
44183         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
44184         read it from there.
44185         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
44186         m4_define, not AC_DEFUN.
44187         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
44188         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
44189         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
44190         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
44191         s|...|...|, to substitute the values of the GNULIB_* module indicator
44192         variables.
44193         * modules/dirent (Makefile.am): Likewise.
44194         * modules/fcntl-h (Makefile.am): Likewise.
44195         * modules/iconv-h (Makefile.am): Likewise.
44196         * modules/langinfo (Makefile.am): Likewise.
44197         * modules/locale (Makefile.am): Likewise.
44198         * modules/math (Makefile.am): Likewise.
44199         * modules/netdb (Makefile.am): Likewise.
44200         * modules/poll-h (Makefile.am): Likewise.
44201         * modules/pty (Makefile.am): Likewise.
44202         * modules/search (Makefile.am): Likewise.
44203         * modules/signal (Makefile.am): Likewise.
44204         * modules/spawn (Makefile.am): Likewise.
44205         * modules/stdio (Makefile.am): Likewise.
44206         * modules/stdlib (Makefile.am): Likewise.
44207         * modules/string (Makefile.am): Likewise.
44208         * modules/sys_ioctl (Makefile.am): Likewise.
44209         * modules/sys_select (Makefile.am): Likewise.
44210         * modules/sys_socket (Makefile.am): Likewise.
44211         * modules/sys_stat (Makefile.am): Likewise.
44212         * modules/sys_times (Makefile.am): Likewise.
44213         * modules/sys_utsname (Makefile.am): Likewise.
44214         * modules/sys_wait (Makefile.am): Likewise.
44215         * modules/termios (Makefile.am): Likewise.
44216         * modules/time (Makefile.am): Likewise.
44217         * modules/unistd (Makefile.am): Likewise.
44218         * modules/wchar (Makefile.am): Likewise.
44220 2011-06-08  Eric Blake  <eblake@redhat.com>
44222         strerror: simplify replacement
44223         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
44224         * modules/strerror (configure.ac): No prereqs needed here...
44225         * modules/strerror-override (configure.ac): ...but this needs it.
44226         (Files): Add file for needed prereq macro.
44228 2011-06-08  Bruno Haible  <bruno@clisp.org>
44230         strerror_r-posix: Tweaks.
44231         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
44232         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
44233         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
44234         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
44235         (gl_FUNC_STRERROR_R): ... to here.
44236         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
44238 2011-06-07  Eric Blake  <eblake@redhat.com>
44240         perror: document fixed bugs
44241         * doc/posix-functions/perror.texi (perror): Document recent
44242         patches.
44244 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
44246         stat-time: get_stat_birthtime failure is better-defined
44247         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
44248         return a timestamp whose tv_sec and tv_nsec values are both -1.
44249         Previously, the spec said only that the tv_nsec value was negative.
44250         This upward-compatible change simplifies GNU tar a bit.
44252 2011-06-07  Eric Blake  <eblake@redhat.com>
44254         strerror_r-posix: work around cygwin 1.7.9
44255         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
44256         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
44257         bug without replacing strerror_r.
44258         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
44259         strerror_r is buggy, but without requiring strerror_r compilation.
44260         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
44262         test-perror: relax test to ignore cygwin bug
44263         * tests/test-perror2.c (main): Relax test on requiring detection
44264         of stream errors, and use unbuffered stream.
44265         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
44266         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
44267         * doc/posix-functions/fputc.texi (fputc): Likewise.
44268         * doc/posix-functions/fputs.texi (fputs): Likewise.
44269         * doc/posix-functions/fputws.texi (fputws): Likewise.
44270         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
44271         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
44272         * doc/posix-functions/getopt.texi (getopt): Likewise.
44273         * doc/posix-functions/perror.texi (perror): Likewise.
44274         * doc/posix-functions/printf.texi (printf): Likewise.
44275         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
44276         * doc/posix-functions/psignal.texi (psignal): Likewise.
44277         * doc/posix-functions/putc.texi (putc): Likewise.
44278         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
44279         Likewise.
44280         * doc/posix-functions/putchar.texi (putchar): Likewise.
44281         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
44282         Likewise.
44283         * doc/posix-functions/puts.texi (puts): Likewise.
44284         * doc/posix-functions/putwc.texi (putwc): Likewise.
44285         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
44286         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
44287         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44288         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
44289         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44290         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
44291         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
44292         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
44294 2011-05-22  Bruno Haible  <bruno@clisp.org>
44296         strerror: Move AC_LIBOBJ invocations to module description.
44297         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
44298         gl_PREREQ_STRERROR invocations from here...
44299         * modules/strerror (configure.ac): ... to here.
44301 2011-05-21  Bruno Haible  <bruno@clisp.org>
44303         perror: Use common idiom.
44304         * modules/perror (configure.ac): Reorder statements.
44306 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
44308         tests: fix usage message in 'mktempd_'
44309         * tests/init.sh (mktempd_): In the usage message, use literal
44310         'mktempd_', not '$ME' (which is even undefined), as the name of
44311         the subroutine.
44313 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
44315         tests init: new function 'fatal_', for hard errors
44316         Before this patch, the only way offered by tests/init.sh to
44317         properly signal a hard error was the `framework_failure_'
44318         function.  But the error message issued by that function,
44319         as its name would suggest, refers to a set-up failure in the
44320         testsuite, while hard errors can obviously also be due to
44321         other reasons.  The best way to fix this inconsistency is to
44322         introduce a new function with a more general error message.
44323         * tests/init.sh (fatal_): New function.
44325 2011-06-06  Eric Blake  <eblake@redhat.com>
44327         canonicalize-lgpl: use common idiom
44328         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
44329         over newer POSIX -Rf.
44330         Reported by Bruno Haible.
44332         canonicalize-lgpl: work around AIX realpath bug
44333         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
44334         * doc/posix-functions/realpath.texi (realpath): Document it.
44335         Reported by Bruno Haible.
44337         strerror: work around FreeBSD bug
44338         * lib/strerror.c (strerror): Special case 0.
44339         Reported by Bruno Haible.
44341         strerror-override: avoid bloating errno module
44342         * modules/errno (Files, configure.ac): Move replacement strings...
44343         * modules/strerror-override: ...to new module.
44344         * modules/strerror (Depends-on): Add strerror-override.
44345         * modules/strerror_r-posix (Depends-on): Likewise.
44346         * MODULES.html.sh: Document new module.
44347         Reported by Bruno Haible.
44349 2011-06-06  Bruno Haible  <bruno@clisp.org>
44351         spawn-pipe tests: Rename program.
44352         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
44353         * tests/test-spawn-pipe-child.c: Update comment.
44354         * tests/test-spawn-pipe.sh: Update.
44355         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
44357         spawn-pipe tests: Link the child program only against libc.
44358         * tests/test-spawn-pipe-child.c: New file, extracted from
44359         tests/test-spawn-pipe.c.
44360         (main): Expect only one argument.
44361         (is_open): New function, copied from tests/test-pipe.c.
44362         * tests/test-spawn-pipe.c: Don't include <errno.h>.
44363         (child_main): Remove function.
44364         (test_pipe): Pass only one argument to the child program.
44365         (main): Remove child process code. Expect the child program's name as
44366         first argument.
44367         * tests/test-spawn-pipe.sh: Pass the child program's name as first
44368         argument.
44369         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
44370         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
44371         test-spawn-pipe-child against no libraries.
44373 2011-06-06  Bruno Haible  <bruno@clisp.org>
44375         careadlinkat: Avoid mismatch between ssize_t and int.
44376         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
44377         * lib/careadlinkat.c (careadlinkatcwd): Define always.
44379 2011-06-06  Jim Meyering  <meyering@redhat.com>
44381         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
44382         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
44383         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
44385 2011-06-05  Bruno Haible  <bruno@clisp.org>
44387         ansi-c++-opt: Interoperability with libtool.
44388         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
44389         set the variable to "no", not to ":".
44390         * NEWS: Mention the change.
44392 2011-06-05  Bruno Haible  <bruno@clisp.org>
44394         acl: Fix test failure on AIX 7.
44395         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
44396         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
44398 2011-06-05  Bruno Haible  <bruno@clisp.org>
44400         pipe-filter-ii: Fix test failure on AIX and IRIX.
44401         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
44402         with EAGAIN, retry with a smaller buffer size.
44404 2011-06-05  Bruno Haible  <bruno@clisp.org>
44406         localename: Fix link dependencies.
44407         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
44408         * modules/localename-tests (Makefile.am): Link test-localename with
44409         $(LIBTHREAD).
44411 2011-06-05  Bruno Haible  <bruno@clisp.org>
44413         error: Avoid gcc warning.
44414         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
44416 2011-06-05  Bruno Haible  <bruno@clisp.org>
44418         unsetenv: Avoid gcc warning.
44419         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
44421 2011-06-05  Bruno Haible  <bruno@clisp.org>
44423         setenv: Avoid gcc warning.
44424         * lib/setenv.c (setenv): Provide declaration if system lacks it.
44426 2011-06-05  Bruno Haible  <bruno@clisp.org>
44428         sys_select: Ensure memset is declared also on AIX 7.
44429         * lib/sys_select.in.h: Include <string.h> also on AIX.
44430         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
44431         self-contained also on AIX 7.1.
44433 2011-06-04  Jim Meyering  <meyering@redhat.com>
44435         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
44436         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
44437         function name, "error".
44438         (_gl_translatable_diag_func_re): New configurable variable.
44440 2011-06-04  Bruno Haible  <bruno@clisp.org>
44442         getopt: Avoid gcc warning.
44443         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
44445 2011-06-04  Bruno Haible  <bruno@clisp.org>
44447         strerror_r: Fix comments.
44448         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
44449         commit.
44451 2011-06-04  Bruno Haible  <bruno@clisp.org>
44453         perror: Fix compilation error.
44454         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
44455         Undefine fprintf, not sprintf.
44456         * modules/perror (Depends-on): Remove intprops, verify.
44458 2011-06-04  Bruno Haible  <bruno@clisp.org>
44460         setlocale: Enable replacement on Cygwin 1.5.
44461         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
44462         Cygwin 1.5.x.
44463         * doc/posix-functions/setlocale.texi: Mention that the problem with the
44464         LC_CTYPE category also exists on Cygwin 1.5.x.
44466 2011-06-04  Bruno Haible  <bruno@clisp.org>
44468         strerror-override: Don't disable symbol renamings.
44469         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
44470         * lib/strerror-override.c: Include config.h.
44471         (strerror_override): Don't undefine.
44473 2011-06-03  Bruno Haible  <bruno@clisp.org>
44475         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
44476         * lib/localename.h: Update copyright header.
44477         * lib/localename.c: Likewise.
44478         * lib/relocatable.h: Likewise.
44479         * lib/relocatable.c: Likewise.
44481 2011-06-02  Bruno Haible  <bruno@clisp.org>
44483         doc: Fix a module name.
44484         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
44486 2011-06-02  Bruno Haible  <bruno@clisp.org>
44488         pipe2: Remove dependency on 'nonblocking' module.
44489         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
44490         O_NONBLOCK is defined by gnulib.
44491         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
44492         is zero.
44493         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
44494         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
44495         defined by gnulib.
44496         (get_nonblocking_flag): New function.
44497         (main): Test O_NONBLOCK flag only if it is nonzero.
44498         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
44500 2011-06-03  Jim Meyering  <meyering@redhat.com>
44502         maint: three new prohibit-header-without-use rules
44503         Prohibit use of cloexec.h, posixver.h, same.h without use.
44504         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
44505         (sc_prohibit_posixver_without_use): Likewise.
44506         (sc_prohibit_same_without_use): Likewise.
44508 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
44510         allocator: 'die' routine is now given requested size
44511         * lib/allocator.h (struct allocator.die): New size arg.
44512         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
44513         If the actual problem is an ssize_t limitation, not a size_t or
44514         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
44516 2011-06-01  Eric Blake  <eblake@redhat.com>
44518         strerror: drop strerror_r dependency
44519         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
44520         * lib/strerror-override.c (strerror_override): ...to new file.
44521         * lib/strerror-override.h: Add prototype.
44522         * lib/strerror-impl.h: Delete.
44523         * lib/strerror.c (strerror): New implementation.
44524         * modules/errno (Files): Add new files.
44525         (configure.ac): Compile new file as appropriate.
44526         * modules/strerror (Files): Drop unused file.
44527         (Depends-on): Drop strerror_r-posix.
44528         * MODULES.html.sh: Document strerror_r-posix.
44529         Requested by Sam Steingold.
44531         perror: call strerror_r directly
44532         * modules/perror (Files): Drop strerror-impl.h.
44533         * lib/perror.c (perror): Use our own stack buffer, rather than
44534         calling a wrapper that uses static storage.
44535         * doc/posix-functions/perror.texi (perror): Document a limitation
44536         of our replacement.
44538         strerror_r: fix includes for FreeBSD
44539         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
44540         since we use abort on some platforms.
44541         Reported by Matthias Bolte.
44543 2011-05-31  Bruno Haible  <bruno@clisp.org>
44545         Fix link errors in tests: openat-die uses gettext-h.
44546         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
44547         against $(LIBINTL).
44548         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
44549         against $(LIBINTL).
44550         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
44551         $(LIBINTL).
44552         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
44553         against $(LIBINTL).
44554         * modules/linkat-tests (Makefile.am): Link test-linkat against
44555         $(LIBINTL).
44556         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
44557         $(LIBINTL).
44558         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
44559         against $(LIBINTL).
44560         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
44561         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
44562         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
44563         $(LIBINTL).
44564         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
44565         $(LIBINTL).
44566         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
44567         $(LIBINTL).
44568         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44570 2011-05-31  Bruno Haible  <bruno@clisp.org>
44572         Fix link errors in tests: wait-process uses gettext-h.
44573         * modules/nonblocking-pipe-tests (Makefile.am): Set
44574         test_nonblocking_pipe_main_LDADD.
44575         * modules/nonblocking-socket-tests (Makefile.am): Link
44576         test-nonblocking-socket-main against $(LIBINTL).
44577         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44579 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
44581         assert-h: work around 'verify' incompatibility
44582         * lib/verify.h: Use @...@ directives, not ifdef.
44583         * modules/assert-h (assert.h): Implement the directives.
44584         (assert.h): Substitute the symbol-prefix more consistently.
44586 2011-05-29  Jim Meyering  <meyering@redhat.com>
44588         trim: remove three superfluous assignments
44589         * lib/trim.c (trim2): Remove three superfluous assignments
44590         and correct brace positioning.
44592 2011-05-29  Bruno Haible  <bruno@clisp.org>
44594         wctype-h: Avoid namespace pollution on Solaris 2.6.
44595         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
44596         identifiers.
44597         * doc/posix-headers/wctype.texi: Mention the problem.
44598         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44600 2011-05-28  Jim Meyering  <meyering@redhat.com>
44602         parse-datetime.y: accommodate -Wstrict-overflow
44603         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
44604         placate -Wstrict-overflow.
44606         trim: avoid a warning from -O2 -Wstrict-overflow
44607         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
44609 2011-05-29  Bruno Haible  <bruno@clisp.org>
44611         gnulib-tool: Fix bug in yesterday's commit.
44612         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
44613         twice.
44615 2011-05-29  Bruno Haible  <bruno@clisp.org>
44617         Allow multiple gnulib generated include files to be combined.
44618         * gnulib-tool (func_compute_include_guard_prefix): New function.
44619         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
44620         ${gl_include_guard_prefix} references.
44621         (func_import, func_create_testdir): Invoke
44622         func_compute_include_guard_prefix.
44623         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
44624         * lib/ctype.in.h: Likewise.
44625         * lib/dirent.in.h: Likewise.
44626         * lib/errno.in.h: Likewise.
44627         * lib/fcntl.in.h: Likewise.
44628         * lib/float.in.h: Likewise.
44629         * lib/getopt.in.h: Likewise.
44630         * lib/iconv.in.h: Likewise.
44631         * lib/langinfo.in.h: Likewise.
44632         * lib/locale.in.h: Likewise.
44633         * lib/math.in.h: Likewise.
44634         * lib/netdb.in.h: Likewise.
44635         * lib/netinet_in.in.h: Likewise.
44636         * lib/poll.in.h: Likewise.
44637         * lib/pthread.in.h: Likewise.
44638         * lib/pty.in.h: Likewise.
44639         * lib/sched.in.h: Likewise.
44640         * lib/se-selinux.in.h: Likewise.
44641         * lib/search.in.h: Likewise.
44642         * lib/signal.in.h: Likewise.
44643         * lib/spawn.in.h: Likewise.
44644         * lib/stdarg.in.h: Likewise.
44645         * lib/stddef.in.h: Likewise.
44646         * lib/stdint.in.h: Likewise.
44647         * lib/stdio.in.h: Likewise.
44648         * lib/stdlib.in.h: Likewise.
44649         * lib/string.in.h: Likewise.
44650         * lib/strings.in.h: Likewise.
44651         * lib/sys_file.in.h: Likewise.
44652         * lib/sys_ioctl.in.h: Likewise.
44653         * lib/sys_select.in.h: Likewise.
44654         * lib/sys_socket.in.h: Likewise.
44655         * lib/sys_stat.in.h: Likewise.
44656         * lib/sys_time.in.h: Likewise.
44657         * lib/sys_times.in.h: Likewise.
44658         * lib/sys_uio.in.h: Likewise.
44659         * lib/sys_utsname.in.h: Likewise.
44660         * lib/sys_wait.in.h: Likewise.
44661         * lib/sysexits.in.h: Likewise.
44662         * lib/termios.in.h: Likewise.
44663         * lib/time.in.h: Likewise.
44664         * lib/unistd.in.h: Likewise.
44665         * lib/wchar.in.h: Likewise.
44666         * lib/wctype.in.h: Likewise.
44667         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
44668         * modules/ctype (Makefile.am): Likewise.
44669         * modules/dirent (Makefile.am): Likewise.
44670         * modules/errno (Makefile.am): Likewise.
44671         * modules/fcntl-h (Makefile.am): Likewise.
44672         * modules/float (Makefile.am): Likewise.
44673         * modules/getopt-posix (Makefile.am): Likewise.
44674         * modules/iconv-h (Makefile.am): Likewise.
44675         * modules/langinfo (Makefile.am): Likewise.
44676         * modules/locale (Makefile.am): Likewise.
44677         * modules/math (Makefile.am): Likewise.
44678         * modules/netdb (Makefile.am): Likewise.
44679         * modules/netinet_in (Makefile.am): Likewise.
44680         * modules/poll-h (Makefile.am): Likewise.
44681         * modules/pthread (Makefile.am): Likewise.
44682         * modules/pty (Makefile.am): Likewise.
44683         * modules/sched (Makefile.am): Likewise.
44684         * modules/search (Makefile.am): Likewise.
44685         * modules/selinux-h (Makefile.am): Likewise.
44686         * modules/signal (Makefile.am): Likewise.
44687         * modules/spawn (Makefile.am): Likewise.
44688         * modules/stdarg (Makefile.am): Likewise.
44689         * modules/stddef (Makefile.am): Likewise.
44690         * modules/stdint (Makefile.am): Likewise.
44691         * modules/stdio (Makefile.am): Likewise.
44692         * modules/stdlib (Makefile.am): Likewise.
44693         * modules/string (Makefile.am): Likewise.
44694         * modules/strings (Makefile.am): Likewise.
44695         * modules/sys_file (Makefile.am): Likewise.
44696         * modules/sys_ioctl (Makefile.am): Likewise.
44697         * modules/sys_select (Makefile.am): Likewise.
44698         * modules/sys_socket (Makefile.am): Likewise.
44699         * modules/sys_stat (Makefile.am): Likewise.
44700         * modules/sys_time (Makefile.am): Likewise.
44701         * modules/sys_times (Makefile.am): Likewise.
44702         * modules/sys_uio (Makefile.am): Likewise.
44703         * modules/sys_utsname (Makefile.am): Likewise.
44704         * modules/sys_wait (Makefile.am): Likewise.
44705         * modules/sysexits (Makefile.am): Likewise.
44706         * modules/termios (Makefile.am): Likewise.
44707         * modules/time (Makefile.am): Likewise.
44708         * modules/unistd (Makefile.am): Likewise.
44709         * modules/wchar (Makefile.am): Likewise.
44710         * modules/wctype-h (Makefile.am): Likewise.
44711         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
44713 2011-05-29  Bruno Haible  <bruno@clisp.org>
44715         assert-h: Allow multiple gnulib generated replacements to coexist.
44716         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
44718 2011-05-29  Bruno Haible  <bruno@clisp.org>
44720         argp: Allow coexistence with strerror_r-posix module.
44721         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
44722         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
44723         by gnulib's <string.h> replacement), assume it has the POSIX signature,
44724         not the glibc signature.
44726 2011-05-28  Bruno Haible  <bruno@clisp.org>
44728         gnulib-tool: Alternative structure of testdirs, similar to --import.
44729         * gnulib-tool: New option --single-configure.
44730         (func_usage): Document it.
44731         (single_configure): New variable.
44732         (func_modules_transitive_closure_separately,
44733         func_modules_transitive_closure_separately,
44734         func_determine_use_libtests, func_modules_add_dummy_separately,
44735         func_modules_to_filelist_separately): New functions, extracted from
44736         func_import.
44737         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
44738         (func_import): Use the new functions.
44739         (func_create_testdir): Set final_modules. Handle $single_configure =
44740         true case.
44742 2011-05-28  Bruno Haible  <bruno@clisp.org>
44744         getloadavg: Remove an unreliable safety check.
44745         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
44746         getloadavg.c is in place.
44747         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
44748         Reported by Sam Steingold <sds@gnu.org>.
44750 2011-05-28  Bruno Haible  <bruno@clisp.org>
44752         doc: Cleanup yet another file produced by texinfo.tex.
44753         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
44755 2011-05-28  Bruno Haible  <bruno@clisp.org>
44757         Finish the conditional dependencies mechanism.
44758         * gnulib-tool: New option --no-conditional-dependencies.
44759         (func_usage): Document it. Don't mark --conditional-dependencies as
44760         experimental.
44761         (cond_dependencies): The possible values can now be true, false, empty.
44762         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
44763         (func_import): Store setting in gnulib-cache.m4 and read it from there.
44764         * doc/gnulib-tool.texi (Conditional dependencies): New section.
44766 2011-05-28  Bruno Haible  <bruno@clisp.org>
44768         doc: Use a recent texinfo.tex.
44769         * doc/Makefile (tex_opts): New variable.
44770         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
44772 2011-05-28  Jim Meyering  <meyering@redhat.com>
44774         intprops.h: adjust comment to match code change
44775         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
44776         only once, it *may* have side effects.  Also fix an unrelated typo.
44777         (_GL_INT_SIGNED): Likewise.
44779 2011-05-26  Simon Josefsson  <simon@josefsson.org>
44781         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
44783 2011-05-26  Bruno Haible  <bruno@clisp.org>
44785         mbsrchr: Avoid collision with system function on Interix.
44786         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
44787         Reported by Markus Duft <mduft@gentoo.org>.
44789 2011-05-15  James Youngman  <jay@gnu.org>
44791         getopt: for ambiguous options, enumerate the possibilities.
44792         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
44793         the ambiguous options when an ambiguous prefix is given. This was
44794         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
44795         glibc change was
44796         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
44798 2011-05-25  Eric Blake  <eblake@redhat.com>
44800         getcwd: work around mingw bug
44801         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
44802         * doc/posix-functions/getcwd.texi (getcwd): Document it.
44803         Reported by Matthias Bolte.
44805 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
44807         test-intprops: disable -Wtype-limits diagnostics
44808         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
44809         diagnostics.  Otherwise, the integer overflow macros generate many
44810         diagnostics.  Reported by Jim Meyering in
44811         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
44813         intprops: shorten, to pacify gcc -Woverlength-strings
44814         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
44815         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
44816         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
44817         likely to run afoul of C compiler limits for string constant lengths.
44818         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
44820 2011-05-24  Eric Blake  <eblake@redhat.com>
44822         docs: document recently fixed glibc printf bug
44823         * doc/posix-functions/fprintf.texi (fprintf): Document it.
44824         * doc/posix-functions/printf.texi (printf): Likewise.
44825         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44826         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44828         closein-tests: convert to init.sh
44829         * modules/closein-tests (Files): Add init.sh
44830         * tests/test-closein.sh Use it.
44832         yesno-tests: convert to init.sh
44833         * modules/yesno-tests (Files): Add init.sh.
44834         * tests/test-yesno.sh: Use it.
44836         atexit-tests: ensure reliable exit status
44837         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
44838         Reported by Bruno Haible.
44840 2011-05-24  Bruno Haible  <bruno@clisp.org>
44842         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
44843         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
44844         gl_PREREQ_STRERROR_R invocations from here...
44845         * modules/strerror_r-posix (configure.ac): ... to here.
44847 2011-05-24  Eric Blake  <eblake@redhat.com>
44849         strerror_r: fix missing header
44850         * lib/strerror_r.c: Avoid compiler warning about snprintf.
44852         strerror_r: fix AIX test failures
44853         * lib/strerror_r.c (strerror_r): Convert silent truncation to
44854         ERANGE failure.
44856         strerror_r: fix Solaris test failures
44857         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
44858         failures.
44859         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
44861         strerror_r: enforce POSIX recommendations
44862         * lib/strerror_r.c (safe_copy): New helper method.
44863         (strerror_r): Guarantee a non-empty string.
44864         * tests/test-strerror_r.c (main): Enhance tests to incorporate
44865         recent POSIX rulings and to match our strerror guarantees.
44866         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
44868 2011-05-24  Jim Meyering  <meyering@redhat.com>
44870         test-perror2.c: avoid warning about unused variable
44871         * tests/test-perror2.c (main): Remove declaration of unused "fp".
44873 2011-05-24  Eric Blake  <eblake@redhat.com>
44875         perror: avoid spurious test failure on HP-UX
44876         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
44878         tests: fix logic bug in init.sh
44879         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
44880         shell.
44882 2011-05-24  Jim Meyering  <meyering@redhat.com>
44884         utimensat: do not reference an out-of-scope buffer
44885         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
44886         declared in an inner scope, yet "times" would be dereferenced outside
44887         the scope in which "ts" was valid.
44888         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
44889         of ts[2] "out/up", so that the use of aliased "times" (via
44890         "times = ts;") does not end up referencing an out-of-scope "ts"
44892         opendir-safer.c: don't clobber errno; don't close negative FD
44893         * lib/opendir-safer.c (opendir_safer):
44894         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
44895         file descriptor, and more importantly, don't clobber the
44896         offending errno value with EINVAL.  Before, upon failure
44897         of dup_safer, we would pass the negative file descriptor to
44898         fdopendir, which would clobber errno.
44900 2011-05-23  Bruno Haible  <bruno@clisp.org>
44902         idcache: Fix module description.
44903         * modules/idcache (Include): Set to "idcache.h".
44905 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
44907         gnulib-tool: fix portability problem with MacOS sed
44908         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
44909         before the "}".  Problem reported by Leo in
44910         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
44911         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
44912         sed_extract_condition1, sed_extract_condition2.
44914 2011-05-23  Bruno Haible  <bruno@clisp.org>
44916         hash: Simplify autoconf macro.
44917         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
44919 2011-05-23  Bruno Haible  <bruno@clisp.org>
44921         getugroups: Fix module description.
44922         * modules/getugroups (Include): Set to "getugroups.h".
44924 2011-05-23  Bruno Haible  <bruno@clisp.org>
44926         linkat: Simplify autoconf macro.
44927         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
44929 2011-05-23  Bruno Haible  <bruno@clisp.org>
44930             Eric Blake  <eblake@redhat.com>
44932         linkat, renameat: Update dependencies.
44933         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
44934         * modules/linkat (Depends-on): Likewise. Remove also readlink,
44935         symlinkat.
44937 2011-05-23  Jim Meyering  <meyering@redhat.com>
44939         maint.mk: more tight_scope improvements
44940         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
44941         (_gl_TS_headers): Define only in if-0'd block.
44942         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
44943         sometimes we must *not* use it.  Adjust uses accordingly.
44944         (sc_tight_scope): Use much simpler grep-based test to determine
44945         whether we skip this rule.
44947         maint.mk: generalize/improve the tight-scope rule
44948         * top/maint.mk: Emit a warning when the test is skipped.
44949         (_gl_TS_dir): Add $(srcdir)/ prefix.
44950         (_gl_TS_function_match): Simplify, rather than trying
44951         to enumerate common types.  Otherwise, it would fail to match an
44952         "extern unsigned char const *" declaration in idutils.
44953         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
44954         a way to support use of that type of macro.
44955         (_gl_TS_var_match): Simplify regexp.
44956         (_gl_TS_obj_files): New configurable variable.
44957         (_gl_TS_headers): Likewise.
44959 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
44961         verify: fix bug when gnulib <assert.h> is also included
44962         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
44963         is defined, not if _GL_STATIC_ASSERT_H is not defined.
44964         Perhaps there's a better way, but this fixes the immediate problem.
44965         Problem reported by Bruno Haible in
44966         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
44968 2011-05-22  Bruno Haible  <bruno@clisp.org>
44970         xgetcwd: Simplify autoconf macro.
44971         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
44973 2011-05-22  Bruno Haible  <bruno@clisp.org>
44975         New module 'mktime-internal'.
44976         * modules/mktime-internal: New file.
44977         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
44978         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
44979         mktime_internal as a C macro if libc has __mktime_internal.
44980         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
44981         conditions.
44982         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
44984 2011-05-22  Bruno Haible  <bruno@clisp.org>
44986         timegm: Correct mktime replacement statements.
44987         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
44988         defining mktime as a C macro. This completes a 2009-07-28 commit.
44990 2011-05-22  Bruno Haible  <bruno@clisp.org>
44992         timegm: Simplify autoconf macro.
44993         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
44995 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
44997         clock-time: change to LGPLv2+.
44998         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
44999         BSD-like but we have no mark for that; this is good enough for now.
45001 2011-05-21  Bruno Haible  <bruno@clisp.org>
45003         strerror_r: Fix comments.
45004         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
45006 2011-05-21  Bruno Haible  <bruno@clisp.org>
45008         relocatable-prog-wrapper: Fix possible link error.
45009         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
45010         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
45011         (gl_FUNC_SETENV): ... to here.
45012         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
45013         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
45015 2011-05-21  Bruno Haible  <bruno@clisp.org>
45017         relocatable-prog-wrapper: Assume strerror() exists.
45018         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
45019         m4/strerror.m4.
45020         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
45021         * lib/relocwrapper.c: Remove mention of strerror module.
45022         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
45023         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
45024         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
45025         C macro.
45027 2011-05-21  Bruno Haible  <bruno@clisp.org>
45029         select: Simplify replacement idiom.
45030         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
45031         Win32 platforms.
45032         * lib/sys_select.in.h (select): Simplify accordingly.
45033         * modules/select (Depends-on): Likewise.
45035 2011-05-21  Bruno Haible  <bruno@clisp.org>
45037         mkdir-p: Simplify autoconf macro.
45038         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
45039         gl_FUNC_LCHOWN.
45041 2011-05-21  Eric Blake  <eblake@redhat.com>
45043         strerror_r: avoid clobbering strerror on cygwin
45044         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
45045         fall back instead to sys_errlist.
45046         * modules/strerror (configure.ac): Add witness.
45047         * tests/test-strerror_r.c (main): Enhance test.
45048         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
45049         * tests/test-perror2.c (main): Free memory before exit.
45051 2011-05-21  Bruno Haible  <bruno@clisp.org>
45053         mkdtemp: Use gnulib naming conventions.
45054         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
45055         * modules/mkdtemp (configure.ac): Update.
45057 2011-05-20  Eric Blake  <eblake@redhat.com>
45059         strerror_r: avoid corrupting errno on Solaris
45060         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
45061         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
45063         strerror_r: avoid compiler warning
45064         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
45066         strerror_r: simplify AIX code
45067         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
45069         test-perror: avoid spurious failure on FreeBSD
45070         * modules/perror-tests (Depends-on): Add strerror, now that
45071         strerror_r no longer pulls it in.
45073 2011-05-20  Bruno Haible  <bruno@clisp.org>
45075         strerror_r-posix: Remove unused dependencies.
45076         * modules/strerror_r-posix (Depends-on): Remove strerror.
45077         Reported by Eric Blake.
45079 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
45081         intprops: remove assumption about A|B representation
45082         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
45083         is a valid integer if both A and B are.  Although this is true for
45084         all known practical hosts, the C standard doesn't guarantee it,
45085         and the code need not assume it.  Also, this change may work around
45086         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
45087         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
45089 2011-05-20  Eric Blake  <eblake@redhat.com>
45091         perror: work around FreeBSD bug
45092         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
45093         is broken.  Move AC_LIBOBJ...
45094         * modules/perror (configure.ac): Here.
45095         * doc/posix-functions/perror.texi (perror): Document this.
45096         * tests/test-perror2.c (main): Enhance test.
45098         test-perror: check for strerror interactions
45099         * tests/macros.h (STREQ): Add macro.
45100         * modules/perror-tests (Files): Add second test.
45101         * tests/test-perror2.c (main): New file.
45102         * doc/posix-functions/perror.texi (perror): Document glibc bug.
45104         test-perror: rewrite to use init script
45105         * modules/perror-tests (Files): Add init.sh.
45106         * tests/test-perror.sh: Use temporary directory.
45108 2011-05-20  Jim Meyering  <meyering@redhat.com>
45110         maint: replace misused "a" with "an"
45111         * doc/intprops.texi: "a integer"
45112         * doc/regex.texi: "a explanation"
45113         * lib/alignof.h: "a object"
45114         * lib/argmatch.h: "a explanation"
45115         * lib/argp-help.c: "a option" and "a OPTION_DOC"
45116         * lib/stdint.in.h: "a integer"
45117         * lib/userspec.c: "a owner"
45118         * doc/gnulib.texi: Fix "a idea", and reword.
45120 2011-05-19  Jim Meyering  <meyering@redhat.com>
45122         maint: correct misuse of "a" and "an"
45123         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
45124         * lib/argp-help.c: "an docum...": s/an/a/
45125         * lib/argp-parse.c: "An vector": s/An/A/
45126         * lib/execute.c: "an native": s/an/a/
45127         * lib/spawn-pipe.c: Likewise.
45128         * lib/gc.h: "an Gc_rc": s/an/a/
45129         * lib/unigbrk.in.h: "an grapheme": s/an/a/
45130         * lib/fts.c: "an stat.st_dev": s/an/a/
45132 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45134         intprops-tests: work around HP-UX 11.23 cc bug with constants
45135         * tests/test-intprops.c (VERIFY): New macro.
45136         (main): Use it, instead of verify, to work around the compiler bug; see
45137         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
45139         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
45140         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
45141         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
45142         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
45143         (_GL_REMAINDER_OVERFLOW): Use it.
45145         intprops-tests: revert unsigned part of previous change
45146         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
45147         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
45148         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
45149         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
45151 2011-05-19  Bruno Haible  <bruno@clisp.org>
45153         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
45154         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
45155         strerror_r() returned without filling the buffer.
45156         Reported by Eric Blake.
45158 2011-05-19  Eric Blake  <eblake@redhat.com>
45160         strerror_r: guarantee unchanged errno
45161         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
45162         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
45163         failure.
45164         * tests/test-strerror_r.c (main): Enhance test.
45166 2011-05-19  Bruno Haible  <bruno@clisp.org>
45168         strerror_r: Reorder #if blocks.
45169         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
45170         for consistency with the previous commit.
45172 2011-05-19  Bruno Haible  <bruno@clisp.org>
45174         perror: Avoid clobbering the strerror buffer when possible.
45175         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
45176         * lib/strerror.c: Include it.
45177         * modules/strerror (Files): Add lib/strerror-impl.h.
45178         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
45179         (my_strerror): New function, defined through lib/strerror-impl.h.
45180         (perror): Use it instead of strerror.
45181         * modules/perror (Files): Add lib/strerror-impl.h.
45182         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
45184 2011-05-19  Eric Blake  <eblake@redhat.com>
45186         strerror_r: fix on newer cygwin
45187         * lib/strerror_r.c (strerror_r): Cygwin now has
45188         __xpg_strerror_r, use it.
45190 2011-05-19  Bruno Haible  <bruno@clisp.org>
45192         strerror_r: Avoid clobbering the strerror buffer when possible.
45193         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
45194         (sys_nerr, sys_errlist): New declarations.
45195         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
45196         HP-UX, native Win32, IRIX, and 32-bit Solaris.
45197         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
45199 2011-05-19  Bruno Haible  <bruno@clisp.org>
45201         strerror_r: Fix test failure on mingw.
45202         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
45203         EXTEND_STRERROR_R.
45204         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
45205         macros from errno.in.h instead.
45207 2011-05-19  Eric Blake  <eblake@redhat.com>
45209         strerror: relax test for Solaris
45210         * tests/test-strerror.c (main): Permit Solaris behavior.
45211         * tests/test-strerror_r.c (main): Likewise.
45213         strerror: enforce POSIX ruling on strerror(0)
45214         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
45215         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
45216         * lib/strerror_r.c (rpl_strerror_r): Work around it.
45217         * doc/posix-functions/strerror.texi (strerror): Document it.
45218         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
45219         * tests/test-strerror.c (main): Strengthen test.
45220         * tests/test-strerror_r.c (main): Likewise.
45222 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45224         intprop-tests: port to older and more-pedantic compilers
45225         * modules/intprops-tests (Files): Add tests/macros.h.
45226         * tests/test-intprops.c: Include macros.h.
45227         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
45228         it's no longer documented to expand to an integer constant expression.
45229         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
45230         argument is floating point, as it's no longer documented to expand
45231         to an integer constant expression in that case.
45232         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
45233         compiler bugs reported by Bruno Haible.  See
45234         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
45235         (U0, U1): New constants, to work around the same bugs.  Also,
45236         in tests, use e.g., "(unsigned int) 39" rather than "39u".
45238         intprops: work around C compiler bugs
45239         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
45240         bug in Sun C 5.11 2010/08/13 and other compilers; see
45241         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
45243         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
45244         * doc/intprops.texi (Integer Type Determination): Fix
45245         documentation for TYPE_IS_INTEGER: it returns an constant
45246         expression, not an integer constant expression.  Fix doc for
45247         TYPE_SIGNED: it returns an integer constant expression only if its
45248         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
45249         hardly worth documented that way....)
45251 2011-05-18  Bruno Haible  <bruno@clisp.org>
45253         strerror_r: Avoid clobbering the strerror buffer when possible.
45254         * lib/strerror_r.c (strerror_r): Merge the three implementations.
45255         Handle gnulib defined errno values here. When strerror() returns NULL
45256         or an empty string, return EINVAL.
45257         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
45258         gnulib defined errno values here.
45259         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
45261 2011-05-18  Eric Blake  <eblake@redhat.com>
45263         fnmatch: avoid compiler warning
45264         * lib/fnmatch_loop.c (FCT): Use correct type.
45265         Reported by Matthias Bolte.
45267 2011-05-13  Jim Meyering  <meyering@redhat.com>
45269         maint.mk: three new prohibit_<HDR>_without_use rules
45270         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
45271         (sc_prohibit_stdio-safer_without_use): Likewise.
45272         (sc_prohibit_xfreopen_without_use): Likewise.
45274 2011-05-17  Jim Meyering  <meyering@redhat.com>
45276         announce-gen: fail if the NEWS delta is empty
45277         If there's nothing noteworthy in NEWS, then either you forgot
45278         or you shouldn't be releasing.
45279         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
45281 2011-05-17  Pádraig Brady  <P@draigBrady.com>
45283         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
45284         reserved symbols starting with double underscore from the check.
45286 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
45288         intprops: add doc
45289         * doc/intprops.texi: New file, documenting intprops.
45290         * doc/gnulib.texi (Particular Modules): Include it.
45292         verify: add doc to gnulib manual and fix example
45293         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
45294         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
45295         (Compile-time Assertions): Fix example so it can't overflow.
45297 2011-05-17  Jim Meyering  <meyering@redhat.com>
45299         warnings.m4: don't usurp save_CPPFLAGS variable name
45300         * m4/warnings.m4: Prefix local temporary variable name with gl_.
45302         doc: fix typo
45303         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
45305 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
45306             Bruno Haible  <bruno@clisp.org>
45308         doc: Tweak recent change.
45309         * README (Portability guidelines): Tweak new text.
45310         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
45311         Interix 6.1.
45313 2011-05-16  Eric Blake  <eblake@redhat.com>
45315         inttypes: avoid autoconf warning
45316         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
45317         * m4/stdint.m4 (gl_STDINT_H): Likewise.
45319 2011-05-16  Sam Steingold  <sds@gnu.org>
45320         and Eric Blake  <eblake@redhat.com>
45322         vc-list-files: accept multiple directory operands
45323         * build-aux/vc-list-files: Iterate over all remaining operands.
45325 2011-05-16  Bruno Haible  <bruno@clisp.org>
45327         Fix confusion regarding deprecated modules.
45328         * modules/calloc (Status, Notice): Mark module as deprecated, not
45329         obsolete.
45330         * modules/fnmatch-posix (Status, Notice): Likewise.
45331         * modules/getdate (Status, Notice): Likewise.
45332         * modules/getopt (Status, Notice): Likewise.
45333         * modules/malloc (Status, Notice): Likewise.
45334         * modules/pipe (Status, Notice): Likewise.
45335         * modules/realloc (Status, Notice): Likewise.
45336         * modules/rename-dest-slash (Status, Notice): Likewise.
45337         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
45338         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
45339         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
45340         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
45341         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
45343 2011-05-16  Bruno Haible  <bruno@clisp.org>
45345         doc: List the target platforms.
45346         * doc/gnulib-intro.texi (Target Platforms): New section.
45347         * doc/gnulib.texi (Introduction): Update menu.
45348         * README (Portability guidelines): Refer to the new section. Update
45349         statement about oldest supported environment. Remove rationale why
45350         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
45351         unportable C89 function.
45352         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
45353         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
45355 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
45357         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
45359 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
45361         intprops-tests: new module
45362         * modules/intprops-tests, tests/test-intprops.c: New files.
45364         intprops: add safe, portable integer overflow checking
45365         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
45366         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
45367         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
45368         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
45369         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
45370         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
45371         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
45372         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
45373         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
45374         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
45375         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
45377 2011-05-12  James Youngman  <jay@gnu.org>
45379         Add a test for glibc's Bugzilla bug #12378.
45380         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
45381         doesn't allow the literal matching of a lone "[" (which is
45382         required by POSIX).
45383         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
45385 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
45387         Sync glibc change fixing Bugzilla bug #12378.
45388         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
45389         beginning and fall back to matching as normal character if the
45390         string ends before the matching ']' is found.  This is what POSIX
45391         requires.
45393 2011-05-13  Eric Blake  <eblake@redhat.com>
45395         getcwd-lgpl: relax test for FreeBSD
45396         * doc/posix-functions/getcwd.texi (getcwd): Document portability
45397         issue.
45398         * tests/test-getcwd-lgpl.c (main): Relax test.
45399         Reported by Matthias Bolte.
45401 2011-05-11  Eric Blake  <eblake@redhat.com>
45403         test-fflush: silence compiler warning
45404         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
45406 2011-05-11  Bruno Haible  <bruno@clisp.org>
45408         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
45409         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
45410         * modules/canonicalize (Depends-on): Add 'nocrash'.
45411         * modules/canonicalize-lgpl (Depends-on): Likewise.
45412         * doc/posix-functions/realpath.texi: Update platforms list.
45413         Reported by Ryan Schmidt <ryandesign@macports.org>.
45415 2011-05-11  Bruno Haible  <bruno@clisp.org>
45417         group-member: Declare function in <unistd.h>.
45418         * lib/unistd.in.h (group_member): New declaration.
45419         * lib/group-member.h: Remove file.
45420         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
45421         * tests/test-unistd-c++.cc: Check signature of group_member.
45422         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
45423         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
45424         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
45425         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
45426         HAVE_GROUP_MEMBER.
45427         * modules/group-member (Files): Remove lib/group-member.h.
45428         (Depends-on): Add unistd. Specify conditions.
45429         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45430         (Include): Change to <unistd.h>.
45431         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
45432         HAVE_GROUP_MEMBER.
45433         * NEWS: Mention the change.
45434         * lib/euidaccess.c: Don't include group-member.h.
45436 2011-05-11  Bruno Haible  <bruno@clisp.org>
45438         group-member: Document module.
45439         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
45440         module.
45442 2011-05-11  Bruno Haible  <bruno@clisp.org>
45444         fclose: Fix mistake earlier today.
45445         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
45447 2011-05-11  Eric Blake  <eblake@redhat.com>
45449         fclose: preserve fflush errors
45450         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
45451         Reported by Jim Meyering.
45453         bootstrap: support a prereq of 'rpcgen -' on RHEL5
45454         * build-aux/bootstrap (check_versions): When no specific version
45455         is required, merely check that the app produces an exit status
45456         that indicates its existence.
45458         maint.mk: drop redundant check
45459         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
45460         the same but better.
45462 2011-05-11  Bruno Haible  <bruno@clisp.org>
45464         fclose: Fix possible link error.
45465         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
45466         unregister_shadow_fd. Improve comments.
45467         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
45468         Eric Blake.
45470 2011-05-11  Jim Meyering  <meyering@redhat.com>
45472         maint.mk: improve "can not" detection and generalize rule name
45473         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
45474         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
45475         Use the same technique as in sc_prohibit_doubled_word, so that
45476         we recognize "can not" also when the words are separated by a newline.
45477         Suggested by Eric Blake.
45478         (perl_filename_lineno_text_): Define.  Factored out of...
45479         (prohibit_doubled_word_): ...here.  Use the new definition.
45480         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
45481         (prohibit_undesirable_word_seq_RE_): New overridable variable.
45482         (ignore_undesirable_word_sequence_RE_): New overridable variable.
45484 2011-05-10  Eric Blake  <eblake@redhat.com>
45486         fclose: avoid double close race when possible
45487         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
45488         all but WINDOWS_SOCKETS.
45490 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
45492         openat: correct new comment
45493         * lib/openat-proc.c (openat_proc_name): Correct the comment.
45495 2011-05-10  Jim Meyering  <meyering@redhat.com>
45497         openat: add comments
45498         * lib/openat-proc.c (openat_proc_name): Add comments,
45499         mostly from Eric Blake.
45501 2011-05-09  Eric Blake  <eblake@redhat.com>
45503         openat: reduce syscalls in first probe of /proc
45504         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
45505         be a directory.  Simplify the probe for .. bugs.
45506         * modules/openat (Depends-on): Drop same-inode.
45507         Reported by Bastien ROUCARIES.
45509 2011-05-09  Jim Meyering  <meyering@redhat.com>
45511         maint.mk: change semantics/name of tight_scope variables
45512         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
45513         Rename variables to align with semantics that make them more useful.
45515         maint.mk: tweak new rule's name not to impinge
45516         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
45517         (sc_tight_scope): Use new rule name rather than $@-0.
45519         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
45520         * top/maint.mk (sc_tight_scope): New rule.
45521         (sc_tight_scope-0): New rule, ifdef'd out.
45522         (_gl_TS_dir): Default.
45523         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
45524         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
45526 2011-05-09  Simon Josefsson  <simon@josefsson.org>
45528         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
45529         Haible <bruno@clisp.org>.
45531 2011-05-08  Bruno Haible  <bruno@clisp.org>
45533         Comments.
45534         * m4/isnanf.m4: Add comment.
45535         * m4/isnanl.m4: Likewise.
45537 2011-05-08  Bruno Haible  <bruno@clisp.org>
45539         glob: Remove obsolete macro.
45540         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
45542 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
45544         intprops: Sun C 5.11 supports __typeof__
45545         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
45546         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
45547         which is new.
45548         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
45550         intprops: switch to usual gnulib indenting and naming
45551         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
45552         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
45554         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
45556 2011-05-08  Jim Meyering  <meyering@redhat.com>
45558         maint.mk: suppress "Entering/Leaving directory" diag in announcement
45559         * top/maint.mk (release-prep): Use make's --no-print-directory
45560         option when generating the announcement.  This eliminates the
45561         pesky "make[2]: Entering/Leaving directory" diagnostics in the
45562         generated announcement template.
45564 2011-05-08  Bruno Haible  <bruno@clisp.org>
45566         tzset: Fix gettimeofday wrapper on Solaris 2.6.
45567         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
45568         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
45570 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
45572         ignore-value, verify: Omit include files from lib_SOURCES.
45573         * modules/ignore-value, modules/verify (Makefile.am):
45574         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
45575         that leads Automake to duplicate use of am__objects_... variables
45576         in Makefile.in.  See
45577         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
45579 2011-05-07  Bruno Haible  <bruno@clisp.org>
45581         fclose: Simplify autoconf macro.
45582         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
45583         defined.
45585 2011-05-07  Bruno Haible  <bruno@clisp.org>
45587         canonicalize-lgpl: Fix autoconf macro ordering bug.
45588         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
45589         gl_STDLIB_H_DEFAULTS.
45591 2011-05-06  Eric Blake  <eblake@redhat.com>
45593         maintainer-makefile: make sc_po_check easier to tune
45594         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
45595         to probe for strings, such as an alternate location for gnulib.
45597         fclose: guarantee behavior on seekable stdin
45598         * modules/fclose (Depends-on): Add fflush.
45599         * doc/posix-functions/fclose.texi (fclose): Document this.
45600         * tests/test-fclose.c (main): Make test for this unconditional.
45602 2011-05-06  Bruno Haible  <bruno@clisp.org>
45604         fflush, fpurge: Relicense under LGPLv2+.
45605         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
45606         * modules/fpurge (License): Likewise.
45607         With permission from Eric Blake and Jim Meyering.
45608         Suggested by Eric Blake.
45610 2011-05-06  Karl Berry  <karl@gnu.org>
45612         * MODULES.html.sh (func_all_modules): remove exit.
45614 2011-05-06  Jim Meyering  <meyering@redhat.com>
45616         maint.mk: use info-gnu@ as the default only for a stable release
45617         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
45618         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
45619         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
45620         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
45622 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
45624         assert-h: new module, which supports C1X-style static_assert
45625         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
45626         * lib/verify.h: Revamp so that this can be copied into assert.h,
45627         while retaining the ability to use it standalone as before.
45628         Rename private identifiers so as not to encroach on the
45629         standard C namespace, since this is now used by assert.h.
45630         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
45631         the old verify_true.
45632         (_GL_VERIFY_TRUE): New macro, with much of the contents of
45633         the old verify_true.  Use _GL_VERIFY_TYPE.
45634         (_GL_VERIFY): New macro, with much of the contents of the old verify.
45635         (static_assert): New macro, if _GL_STATIC_ASSERT_H
45636         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
45637         defined when this file is copied into the replacement assert.h.
45638         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
45639         and _Static_assert is not built in.
45640         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
45641         defined, and use the new macros mentioned above.
45642         * doc/posix-headers/assert.texi: Document this.
45644 2011-05-05  Bruno Haible  <bruno@clisp.org>
45646         fclose, fflush: Respect rules for use of AC_LIBOBJ.
45647         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
45648         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
45649         gl_REPLACE_FCLOSE here.
45650         * modules/fflush (Depends-on): Remove fclose.
45651         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
45652         combination with module 'fclose'.
45654 2011-05-05  Bruno Haible  <bruno@clisp.org>
45656         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
45657         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
45658         gl_FUNC_FFLUSH.
45659         (gl_FUNC_FFLUSH): Use it.
45660         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
45661         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
45662         gl_REPLACE_FSEEKO here.
45664 2011-05-05  Bruno Haible  <bruno@clisp.org>
45666         tzset: Relicense under LGPL.
45667         * modules/tzset (License): Change to LGPL.
45668         No agreement needed; it's a no-op.
45670         strtoimax, strtoumax: Relicense under LGPL.
45671         * modules/strtoimax (License): Change to LGPL.
45672         * modules/strtoumax (License): Likewise.
45673         With permission from Jim Meyering, Paul Eggert:
45674         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
45675         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
45677         getgroups: Relicense under LGPL.
45678         * modules/getgroups (License): Change to LGPL.
45679         With permission from Jim Meyering, Paul Eggert, Eric Blake:
45680         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
45681         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
45682         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
45684         nanosleep: Relicense under LGPL.
45685         * modules/nanosleep (License): Change to LGPL.
45686         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
45687         Haible:
45688         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
45689         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
45690         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
45691         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
45693         futimens: Relicense under LGPL.
45694         * modules/futimens (License): Change to LGPL.
45695         With permission from Eric Blake:
45696         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
45698         fflush: Relicense under LGPL.
45699         * modules/fflush (License): Change to LGPL.
45700         With permission from Eric Blake, Bruno Haible, Jim Meyering:
45701         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
45702         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
45703         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
45705         tmpfile: Relicense under LGPL.
45706         * modules/tmpfile (License): Change to LGPL.
45707         With permission from Ben Pfaff:
45708         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
45710         isfinite: Relicense under LGPL.
45711         * modules/isfinite (License): Change to LGPL.
45712         With permission from Ben Pfaff, Bruno Haible:
45713         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
45714         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
45716         acosl..tanl: Relicense under LGPL.
45717         * modules/acosl (License): Change to LGPL.
45718         * modules/asinl (License): Likewise.
45719         * modules/atanl (License): Likewise.
45720         * modules/cosl (License): Likewise.
45721         * modules/expl (License): Likewise.
45722         * modules/logl (License): Likewise.
45723         * modules/sinl (License): Likewise.
45724         * modules/sqrtl (License): Likewise.
45725         * modules/tanl (License): Likewise.
45726         Source code originally from glibc and Paolo Bonzini. Agreements:
45727         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
45728         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
45730 2011-05-05  Bruno Haible  <bruno@clisp.org>
45732         signal: Define sighandler_t.
45733         * lib/signal.in.h (sighandler_t): New type.
45734         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
45735         whether sighandler_t is defined.
45736         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
45737         * modules/signal (Depends-on): Add extensions.
45738         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
45739         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
45740         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
45742 2011-05-05  Eric Blake  <eblake@redhat.com>
45744         maint: remove useless REPLACE_*_H macros
45745         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
45746         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
45747         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
45748         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
45749         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
45750         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
45751         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
45752         * m4/btowc.m4: Update callers.
45753         * m4/dirfd.m4: Likewise.
45754         * m4/duplocale.m4: Likewise.
45755         * m4/fchdir.m4: Likewise.
45756         * m4/fdopendir.m4: Likewise.
45757         * m4/inet_ntop.m4: Likewise.
45758         * m4/inet_pton.m4: Likewise.
45759         * m4/ioctl.m4: Likewise.
45760         * m4/mbrlen.m4: Likewise.
45761         * m4/mbrtowc.m4: Likewise.
45762         * m4/mbsinit.m4: Likewise.
45763         * m4/mbsnrtowcs.m4: Likewise.
45764         * m4/mbsrtowcs.m4: Likewise.
45765         * m4/poll.m4: Likewise.
45766         * m4/setlocale.m4: Likewise.
45767         * m4/wcrtomb.m4: Likewise.
45768         * m4/wcsnrtombs.m4: Likewise.
45769         * m4/wcsrtombs.m4: Likewise.
45770         * m4/wctob.m4: Likewise.
45771         * m4/wcwidth.m4: Likewise.
45772         * modules/posix_spawn: Likewise.
45773         * modules/posix_spawn_file_actions_addclose: Likewise.
45774         * modules/posix_spawn_file_actions_adddup2: Likewise.
45775         * modules/posix_spawn_file_actions_addopen: Likewise.
45776         * modules/posix_spawn_file_actions_destroy: Likewise.
45777         * modules/posix_spawn_file_actions_init: Likewise.
45778         * modules/posix_spawnattr_destroy: Likewise.
45779         * modules/posix_spawnattr_getflags: Likewise.
45780         * modules/posix_spawnattr_getpgroup: Likewise.
45781         * modules/posix_spawnattr_getschedparam: Likewise.
45782         * modules/posix_spawnattr_getschedpolicy: Likewise.
45783         * modules/posix_spawnattr_getsigdefault: Likewise.
45784         * modules/posix_spawnattr_getsigmask: Likewise.
45785         * modules/posix_spawnattr_init: Likewise.
45786         * modules/posix_spawnattr_setflags: Likewise.
45787         * modules/posix_spawnattr_setpgroup: Likewise.
45788         * modules/posix_spawnattr_setschedparam: Likewise.
45789         * modules/posix_spawnattr_setschedpolicy: Likewise.
45790         * modules/posix_spawnattr_setsigdefault: Likewise.
45791         * modules/posix_spawnattr_setsigmask: Likewise.
45792         * modules/posix_spawnp: Likewise.
45794 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
45796         Add option to do-release-commit-and-tag to specify branch.
45797         * build-aux/do-release-commit-and-tag: Add --branch.
45799 2011-05-03  Bruno Haible  <bruno@clisp.org>
45801         Avoid unnecessary compilation units, through conditional dependencies.
45802         * modules/accept (Depends-on): Add conditions to the dependencies.
45803         * modules/acosl (Depends-on): Likewise.
45804         * modules/argz (Depends-on): Likewise.
45805         * modules/asinl (Depends-on): Likewise.
45806         * modules/atanl (Depends-on): Likewise.
45807         * modules/atoll (Depends-on): Likewise.
45808         * modules/bind (Depends-on): Likewise.
45809         * modules/btowc (Depends-on): Likewise.
45810         * modules/canonicalize-lgpl (Depends-on): Likewise.
45811         * modules/ceil (Depends-on): Likewise.
45812         * modules/ceilf (Depends-on): Likewise.
45813         * modules/ceill (Depends-on): Likewise.
45814         * modules/chdir-long (Depends-on): Likewise.
45815         * modules/chown (Depends-on): Likewise.
45816         * modules/close (Depends-on): Likewise.
45817         * modules/connect (Depends-on): Likewise.
45818         * modules/cosl (Depends-on): Likewise.
45819         * modules/dirfd (Depends-on): Likewise.
45820         * modules/dprintf (Depends-on): Likewise.
45821         * modules/dprintf-posix (Depends-on): Likewise.
45822         * modules/error (Depends-on): Likewise.
45823         * modules/euidaccess (Depends-on): Likewise.
45824         * modules/expl (Depends-on): Likewise.
45825         * modules/faccessat (Depends-on): Likewise.
45826         * modules/fchdir (Depends-on): Likewise.
45827         * modules/fclose (Depends-on): Likewise.
45828         * modules/fcntl (Depends-on): Likewise.
45829         * modules/fdopendir (Depends-on): Likewise.
45830         * modules/fflush (Depends-on): Likewise.
45831         * modules/floor (Depends-on): Likewise.
45832         * modules/floorf (Depends-on): Likewise.
45833         * modules/floorl (Depends-on): Likewise.
45834         * modules/fnmatch (Depends-on): Likewise.
45835         * modules/fopen (Depends-on): Likewise.
45836         * modules/fprintf-posix (Depends-on): Likewise.
45837         * modules/frexp (Depends-on): Likewise.
45838         * modules/frexp-nolibm (Depends-on): Likewise.
45839         * modules/frexpl (Depends-on): Likewise.
45840         * modules/frexpl-nolibm (Depends-on): Likewise.
45841         * modules/fseek (Depends-on): Likewise.
45842         * modules/fsusage (Depends-on): Likewise.
45843         * modules/ftell (Depends-on): Likewise.
45844         * modules/ftello (Depends-on): Likewise.
45845         * modules/futimens (Depends-on): Likewise.
45846         * modules/getcwd (Depends-on): Likewise.
45847         * modules/getcwd-lgpl (Depends-on): Likewise.
45848         * modules/getdelim (Depends-on): Likewise.
45849         * modules/getdomainname (Depends-on): Likewise.
45850         * modules/getgroups (Depends-on): Likewise.
45851         * modules/gethostname (Depends-on): Likewise.
45852         * modules/getline (Depends-on): Likewise.
45853         * modules/getlogin_r (Depends-on): Likewise.
45854         * modules/getopt-posix (Depends-on): Likewise.
45855         * modules/getpeername (Depends-on): Likewise.
45856         * modules/getsockname (Depends-on): Likewise.
45857         * modules/getsockopt (Depends-on): Likewise.
45858         * modules/getsubopt (Depends-on): Likewise.
45859         * modules/getusershell (Depends-on): Likewise.
45860         * modules/glob (Depends-on): Likewise.
45861         * modules/grantpt (Depends-on): Likewise.
45862         * modules/iconv_open (Depends-on): Likewise.
45863         * modules/iconv_open-utf (Depends-on): Likewise.
45864         * modules/inet_ntop (Depends-on): Likewise.
45865         * modules/inet_pton (Depends-on): Likewise.
45866         * modules/ioctl (Depends-on): Likewise.
45867         * modules/isapipe (Depends-on): Likewise.
45868         * modules/isfinite (Depends-on): Likewise.
45869         * modules/isinf (Depends-on): Likewise.
45870         * modules/lchown (Depends-on): Likewise.
45871         * modules/ldexpl (Depends-on): Likewise.
45872         * modules/link (Depends-on): Likewise.
45873         * modules/linkat (Depends-on): Likewise.
45874         * modules/listen (Depends-on): Likewise.
45875         * modules/logl (Depends-on): Likewise.
45876         * modules/lstat (Depends-on): Likewise.
45877         * modules/mbrlen (Depends-on): Likewise.
45878         * modules/mbrtowc (Depends-on): Likewise.
45879         * modules/mbsinit (Depends-on): Likewise.
45880         * modules/mbsnrtowcs (Depends-on): Likewise.
45881         * modules/mbsrtowcs (Depends-on): Likewise.
45882         * modules/mbtowc (Depends-on): Likewise.
45883         * modules/memcmp (Depends-on): Likewise.
45884         * modules/mkdir (Depends-on): Likewise.
45885         * modules/mkdtemp (Depends-on): Likewise.
45886         * modules/mkfifo (Depends-on): Likewise.
45887         * modules/mkfifoat (Depends-on): Likewise.
45888         * modules/mknod (Depends-on): Likewise.
45889         * modules/mkostemp (Depends-on): Likewise.
45890         * modules/mkostemps (Depends-on): Likewise.
45891         * modules/mkstemp (Depends-on): Likewise.
45892         * modules/mkstemps (Depends-on): Likewise.
45893         * modules/mktime (Depends-on): Likewise.
45894         * modules/nanosleep (Depends-on): Likewise.
45895         * modules/open (Depends-on): Likewise.
45896         * modules/openat (Depends-on): Likewise.
45897         * modules/perror (Depends-on): Likewise.
45898         * modules/poll (Depends-on): Likewise.
45899         * modules/popen (Depends-on): Likewise.
45900         * modules/posix_spawn (Depends-on): Likewise.
45901         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
45902         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45903         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45904         * modules/posix_spawnp (Depends-on): Likewise.
45905         * modules/pread (Depends-on): Likewise.
45906         * modules/printf-posix (Depends-on): Likewise.
45907         * modules/ptsname (Depends-on): Likewise.
45908         * modules/putenv (Depends-on): Likewise.
45909         * modules/pwrite (Depends-on): Likewise.
45910         * modules/readline (Depends-on): Likewise.
45911         * modules/readlink (Depends-on): Likewise.
45912         * modules/readlinkat (Depends-on): Likewise.
45913         * modules/recv (Depends-on): Likewise.
45914         * modules/recvfrom (Depends-on): Likewise.
45915         * modules/regex (Depends-on): Likewise.
45916         * modules/remove (Depends-on): Likewise.
45917         * modules/rename (Depends-on): Likewise.
45918         * modules/renameat (Depends-on): Likewise.
45919         * modules/rmdir (Depends-on): Likewise.
45920         * modules/round (Depends-on): Likewise.
45921         * modules/roundf (Depends-on): Likewise.
45922         * modules/roundl (Depends-on): Likewise.
45923         * modules/rpmatch (Depends-on): Likewise.
45924         * modules/select (Depends-on): Likewise.
45925         * modules/send (Depends-on): Likewise.
45926         * modules/sendto (Depends-on): Likewise.
45927         * modules/setenv (Depends-on): Likewise.
45928         * modules/setlocale (Depends-on): Likewise.
45929         * modules/setsockopt (Depends-on): Likewise.
45930         * modules/shutdown (Depends-on): Likewise.
45931         * modules/sigaction (Depends-on): Likewise.
45932         * modules/signbit (Depends-on): Likewise.
45933         * modules/sigprocmask (Depends-on): Likewise.
45934         * modules/sinl (Depends-on): Likewise.
45935         * modules/sleep (Depends-on): Likewise.
45936         * modules/snprintf (Depends-on): Likewise.
45937         * modules/snprintf-posix (Depends-on): Likewise.
45938         * modules/socket (Depends-on): Likewise.
45939         * modules/sprintf-posix (Depends-on): Likewise.
45940         * modules/sqrtl (Depends-on): Likewise.
45941         * modules/stat (Depends-on): Likewise.
45942         * modules/strchrnul (Depends-on): Likewise.
45943         * modules/strdup-posix (Depends-on): Likewise.
45944         * modules/strerror (Depends-on): Likewise.
45945         * modules/strerror_r-posix (Depends-on): Likewise.
45946         * modules/strndup (Depends-on): Likewise.
45947         * modules/strnlen (Depends-on): Likewise.
45948         * modules/strptime (Depends-on): Likewise.
45949         * modules/strsep (Depends-on): Likewise.
45950         * modules/strsignal (Depends-on): Likewise.
45951         * modules/strstr-simple (Depends-on): Likewise.
45952         * modules/strtod (Depends-on): Likewise.
45953         * modules/strtoimax (Depends-on): Likewise.
45954         * modules/strtok_r (Depends-on): Likewise.
45955         * modules/strtoumax (Depends-on): Likewise.
45956         * modules/symlink (Depends-on): Likewise.
45957         * modules/symlinkat (Depends-on): Likewise.
45958         * modules/tanl (Depends-on): Likewise.
45959         * modules/tcgetsid (Depends-on): Likewise.
45960         * modules/tmpfile (Depends-on): Likewise.
45961         * modules/trunc (Depends-on): Likewise.
45962         * modules/truncf (Depends-on): Likewise.
45963         * modules/truncl (Depends-on): Likewise.
45964         * modules/uname (Depends-on): Likewise.
45965         * modules/unlink (Depends-on): Likewise.
45966         * modules/unlockpt (Depends-on): Likewise.
45967         * modules/unsetenv (Depends-on): Likewise.
45968         * modules/usleep (Depends-on): Likewise.
45969         * modules/utimensat (Depends-on): Likewise.
45970         * modules/vasprintf (Depends-on): Likewise.
45971         * modules/vdprintf (Depends-on): Likewise.
45972         * modules/vdprintf-posix (Depends-on): Likewise.
45973         * modules/vfprintf-posix (Depends-on): Likewise.
45974         * modules/vprintf-posix (Depends-on): Likewise.
45975         * modules/vsnprintf (Depends-on): Likewise.
45976         * modules/vsnprintf-posix (Depends-on): Likewise.
45977         * modules/vsprintf-posix (Depends-on): Likewise.
45978         * modules/wcrtomb (Depends-on): Likewise.
45979         * modules/wcscasecmp (Depends-on): Likewise.
45980         * modules/wcscspn (Depends-on): Likewise.
45981         * modules/wcsdup (Depends-on): Likewise.
45982         * modules/wcsncasecmp (Depends-on): Likewise.
45983         * modules/wcsnrtombs (Depends-on): Likewise.
45984         * modules/wcspbrk (Depends-on): Likewise.
45985         * modules/wcsrtombs (Depends-on): Likewise.
45986         * modules/wcsspn (Depends-on): Likewise.
45987         * modules/wcsstr (Depends-on): Likewise.
45988         * modules/wcstok (Depends-on): Likewise.
45989         * modules/wcswidth (Depends-on): Likewise.
45990         * modules/wctob (Depends-on): Likewise.
45991         * modules/wctomb (Depends-on): Likewise.
45992         * modules/wctype (Depends-on): Likewise.
45993         * modules/wcwidth (Depends-on): Likewise.
45994         * modules/write (Depends-on): Likewise.
45996 2011-05-03  Bruno Haible  <bruno@clisp.org>
45998         Support for conditional dependencies.
45999         * doc/gnulib.texi (Module description): Document the syntax of
46000         conditional dependencies.
46001         * gnulib-tool: New option --conditional-dependencies.
46002         (func_usage): Document it.
46003         (cond_dependencies): New variable.
46004         (func_get_automake_snippet_conditional,
46005         func_get_automake_snippet_unconditional): New functions, extracted from
46006         func_get_automake_snippet.
46007         (func_get_automake_snippet): Use them.
46008         (sed_first_32_chars): New variable.
46009         (func_module_shellfunc_name): New function.
46010         (func_module_shellvar_name): New function.
46011         (func_module_conditional_name): New function.
46012         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
46013         func_cond_module_condition): New functions.
46014         (func_modules_transitive_closure): Add support for conditional
46015         dependencies.
46016         (func_emit_lib_Makefile_am): For a conditional module, enclose the
46017         conditional automake snippet in an automake conditional.
46018         (func_emit_autoconf_snippets): Emit shell functions that contain the
46019         code for conditional modules.
46020         (func_import, func_create_testdir): Update specification.
46022 2011-05-03  Eric Blake  <eblake@redhat.com>
46024         test-getaddrinfo: report error information
46025         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
46027 2011-05-03  Jim Meyering  <meyering@redhat.com>
46029         bootstrap: avoid build failure when $GZIP is set
46030         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
46031         program name.  If defined at all, it is supposed to list gzip options.
46032         Reported by Alan Curry in http://debbugs.gnu.org/8609
46034 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
46036         readme-release: new module with release instructions
46037         * modules/readme-release: New module.
46038         * top/README-release: New file, from coreutils, grep, diffutils.
46039         * MODULES.html.sh (Support for maintaining and releasing): Add it.
46041 2011-05-02  Eric Blake  <eblake@redhat.com>
46043         fflush: also replace fclose when fixing fflush
46044         * modules/fflush (Depends-on): Add fclose.
46045         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
46046         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
46047         memstreams with no backing fd.
46048         * doc/posix-functions/fclose.texi (fclose): Document the use of
46049         fflush module to fix the bug.
46050         * tests/test-fclose.c (main): Relax test when fclose is used in
46051         isolation.
46053         fclose: add some tests
46054         * modules/fclose-tests: New test module.
46055         * tests/test-fclose.c: New file.
46056         * doc/posix-functions/fclose.texi (fclose): Document the bug.
46058         fclose: reduced dependencies
46059         * modules/fclose (Depends-on): Switch from fflush/fseeko to
46060         simpler lseek.
46061         * lib/fclose.c (rpl_fclose): Likewise.
46062         Reported by Simon Josefsson.
46064         exit: drop remaining clients
46065         * modules/argmatch (Depends-on): Replace exit with stdlib.
46066         * modules/copy-file (Depends-on): Likewise.
46067         * modules/execute (Depends-on): Likewise.
46068         * modules/exitfail (Depends-on): Likewise.
46069         * modules/obstack (Depends-on): Likewise.
46070         * modules/pagealign_alloc (Depends-on): Likewise.
46071         * modules/pipe-filter-gi (Depends-on): Likewise.
46072         * modules/pipe-filter-ii (Depends-on): Likewise.
46073         * modules/savewd (Depends-on): Likewise.
46074         * modules/spawn-pipe (Depends-on): Likewise.
46075         * modules/wait-process (Depends-on): Likewise.
46076         * modules/xsetenv (Depends-on): Likewise.
46077         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
46078         * modules/git-merge-changelog (Depends-on): Likewise.
46079         * modules/long-options (Depends-on): Likewise.
46080         * modules/pt_chown (Depends-on): Likewise.
46081         * modules/sysexits (Depends-on): Likewise.
46083         freading: relax license from LGPLv3+ to LGPLv2+
46084         * modules/freading (License): Relax LGPL version.
46086 2011-05-02  Bruno Haible  <bruno@clisp.org>
46088         fchdir: Remove unused dependencies.
46089         * modules/fchdir (Depends-on): Remove include_next.
46091 2011-05-02  Bruno Haible  <bruno@clisp.org>
46093         gnulib-tool: Refactor.
46094         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
46095         from func_emit_autoconf_snippets.
46096         (func_emit_autoconf_snippets): Use it.
46098 2011-05-02  Simon Josefsson  <simon@josefsson.org>
46100         * NEWS: Document removal of 'exit'.
46101         * modules/exit: Remove file.
46103 2011-05-01  Bruno Haible  <bruno@clisp.org>
46105         Update DEPENDENCIES.
46106         * DEPENDENCIES (gettext): Recommend the newest release.
46107         Reported by Simon Josefsson.
46109 2011-05-01  Bruno Haible  <bruno@clisp.org>
46111         gnulib-tool: Reduce code duplication.
46112         * gnulib-tool (func_emit_autoconf_snippets): New function.
46113         (func_import, func_create_testdir): Use it.
46115 2011-04-30  Eric Blake  <eblake@redhat.com>
46117         fclose: don't fail on non-seekable input stream
46118         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
46119         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
46120         since fflush is allowed to fail in that case.
46122 2011-04-30  Bruno Haible  <bruno@clisp.org>
46124         dup3: cleanup
46125         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
46127 2011-04-30  Bruno Haible  <bruno@clisp.org>
46129         netdb: Make it work in C++ mode.
46130         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
46131         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
46132         module.
46133         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
46134         gl_MODULE_INDICATOR_FOR_TESTS.
46135         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
46136         * modules/netdb-c++-tests: New file.
46137         * tests/test-netdb-c++.cc: New file.
46139 2011-04-30  Bruno Haible  <bruno@clisp.org>
46141         New modules 'vfscanf', 'vscanf'.
46142         * modules/vfscanf: New file.
46143         * modules/vscanf: New file.
46144         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
46145         here.
46146         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
46147         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
46149 2011-04-30  Bruno Haible  <bruno@clisp.org>
46151         passfd: Add comments.
46152         * lib/passfd.c: Add comments about platforms.
46154 2011-04-30  Bruno Haible  <bruno@clisp.org>
46156         sys_uio: Make <sys/uio.h> self-contained.
46157         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
46158         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
46160 2011-04-30  Bruno Haible  <bruno@clisp.org>
46162         sys_socket: Ensure 'struct iovec' definition.
46163         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
46164         <sys/socket.h>.
46165         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
46167 2011-04-30  Bruno Haible  <bruno@clisp.org>
46169         sys_uio: Protect definition of 'struct iovec'.
46170         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
46171         it as a C struct.
46173 2011-04-30  Bruno Haible  <bruno@clisp.org>
46175         manywarnings: fix indentation
46176         * m4/manywarnings.m4: Indent by 2 spaces consistently.
46178 2011-04-30  Pádraig Brady  <P@draigBrady.com>
46180         manywarnings: add -Wno-missing-field-initializers if needed.
46181         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
46182         option if it's needed to allow initialization with { 0, }
46184 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
46186         announce-gen: cosmetic improvement
46187         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
46189 2011-04-29  Jim Meyering  <meyering@redhat.com>
46191         vc-list-files: indent with spaces, not TABs
46192         * build-aux/vc-list-files: Convert leading TABs to spaces,
46193         to match the style of most other files in gnulib.
46195         announce-gen: indent with spaces, not TABs
46196         * build-aux/announce-gen: Convert all TABs to spaces, to match
46197         the style of most other files in gnulib.
46199 2011-04-29  Eric Blake  <eblake@redhat.com>
46201         quotearg: avoid uninitialized variable use
46202         * lib/quotearg.c (quoting_options_from_style): Initialize
46203         remaining fields, and ensure that custom styles are only used via
46204         quoting_options rather than quoting_style.
46206 2011-04-29  Jim Meyering  <meyering@redhat.com>
46208         maint.mk: remove unused VC-tag variable
46209         * top/maint.mk (VC-tag): Remove unused variable.
46211 2011-04-29  Bruno Haible  <bruno@clisp.org>
46213         netdb: fix gai_strerror replacements
46214         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
46215         * modules/netdb: Substitute it.
46217 2011-04-29  Jim Meyering  <meyering@redhat.com>
46219         test-getcwd.c: avoid new set-but-not-used warning
46220         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
46221         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
46222         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
46223         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
46225         test-hash.c: avoid a new shadowing warning
46226         * tests/test-hash.c (main): Don't shadow "dup".
46228 2011-04-28  Eric Blake  <eblake@redhat.com>
46230         getaddrinfo: fix gai_strerror signature
46231         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
46232         and work around mingw with UNICODE defined.
46233         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
46234         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
46235         * modules/netdb (Makefile.am): Substitute it.
46236         * lib/netdb.in.h (gai_strerror): Declare replacement.
46237         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
46238         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
46239         the fix.
46241         getsockopt: avoid compiler warning
46242         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
46243         Reported by Matthias Bolte.
46245         tests: drop unused link dependency
46246         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
46247         * modules/dirent-safer-tests (Makefile.am): Likewise.
46248         * modules/fdopendir-tests (Makefile.am): Likewise.
46249         * modules/mkfifoat-tests (Makefile.am): Likewise.
46250         * modules/openat-safer-tests (Makefile.am): Likewise.
46251         * modules/openat-tests (Makefile.am): Likewise.
46252         * modules/readlinkat-tests (Makefile.am): Likewise.
46253         * modules/symlinkat-tests (Makefile.am): Likewise.
46254         * modules/linkat-tests (Makefile.am): Likewise.
46255         (Depends-on): Switch to filenamecat-lgpl.
46256         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
46257         LIBINTL.
46258         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
46259         * tests/test-linkat.c (main): Don't require xalloc.
46261         hash, mgetgroups: drop xalloc dependency
46262         * lib/hash.c (includes): Adjust includes.
46263         * lib/mgetgroups.c (includes): Likewise.
46264         (xgetgroups): Move...
46265         * lib/xgetgroups.c: ...to new file.
46266         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
46267         * modules/xgetgroups: New file, split from...
46268         * modules/mgetgroups: ...here.
46269         (Depends-on): Add xalloc-oversized.
46270         * modules/hash (Depends-on): Likewise.
46271         * modules/hash-tests (Depends-on): Drop xalloc.
46272         (test_hash_LDADD): Drop unused library.
46273         * tests/test-hash.c (main): Break xalloc dependency.
46274         (includes): Drop unused include.
46276         xalloc-oversized: new module
46277         * modules/xalloc-oversized: New module.
46278         * modules/xalloc (Depends-on): Add it.
46279         * lib/xalloc.h (xalloc_oversized): Move...
46280         * lib/xalloc-oversized.h: ...into new file.
46282         utimecmp: drop dependency on xmalloc
46283         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
46284         due to memory pressure.
46285         * modules/utimecmp (Depends-on): Drop xalloc.
46287 2011-04-27  Eric Blake  <eblake@redhat.com>
46289         getcwd: fix mingw bugs
46290         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
46291         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
46292         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
46294 2011-04-27  Bruno Haible  <bruno@clisp.org>
46296         mkstemps: Ensure declaration on MacOS X 10.5.
46297         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
46298         * doc/glibc-functions/mkstemps.texi: Document header file problem on
46299         MacOS X.
46301 2011-04-27  Bruno Haible  <bruno@clisp.org>
46303         mkstemp: More documentation.
46304         * doc/posix-functions/mkstemp.texi: Document header file problem on
46305         MacOS X.
46307 2011-04-27  Bruno Haible  <bruno@clisp.org>
46309         mkstemp: Tweak configure message when cross-compiling.
46310         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
46311         result as a guess.
46313 2011-04-27  Bruno Haible  <bruno@clisp.org>
46315         clean-temp: Clarify what it does.
46316         * lib/clean-temp.h: Add more comments.
46317         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
46318         module.
46319         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
46320         * doc/glibc-functions/mkstemps.texi: Likewise.
46321         * doc/glibc-functions/mkostemps.texi: Likewise.
46323 2011-04-27  Eric Blake  <eblake@redhat.com>
46325         fchdir: avoid extra chdir and fix test
46326         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
46327         getcwd-lgpl.
46328         * lib/fchdir.c (get_name): Any absolute name will do; it does not
46329         have to be canonical.
46330         (canonicalize_file_name): Drop unused macro.
46331         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
46333         filenamecat-lgpl: fix licence
46334         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
46335         when it was first created.
46337         linkat, renameat: add missing dependency
46338         * modules/linkat (Depends-on): Require getcwd-lgpl.
46339         * modules/renameat (Depends-on): Likewise.
46341         tests: reduce dependencies
46342         * tests/test-linkat.c (main): Use lighter-weight getcwd.
46343         * tests/test-renameat.c (main): Likewise.
46344         * modules/linkat-tests (Depends-on): Relax dependency.
46345         * modules/renameat-tests (Depends-on): Likewise.
46346         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
46347         dependency explicit.
46349         save-cwd: reduce default dependency
46350         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
46351         * lib/save-cwd.c: Update comments.
46352         * NEWS: Document the semantic change.
46354         getcwd: enhance tests
46355         * tests/test-getcwd-lgpl.c: New file, taken from...
46356         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
46357         repeat long path stress tests from m4 probe.
46358         * modules/getcwd-lgpl-tests: New module.
46359         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
46360         * m4/getcwd-abort-bug.m4: Update comment.
46361         * m4/getcwd-path-max.m4: Likewise.
46363         getcwd-lgpl: new module
46364         * modules/getcwd-lgpl: New module.
46365         * lib/getcwd-lgpl.c: New file.
46366         * doc/posix-functions/getcwd.texi (getcwd): Document it.
46367         * MODULES.html.sh (lacking POSIX:2008): Likewise.
46368         * modules/getcwd (configure.ac): Set C witness.
46369         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
46371         getcwd: tweak comments
46372         * m4/getcwd-abort-bug.m4: Fix comments.
46373         * m4/getcwd-path-max.m4: Likewise.
46374         * m4/getcwd.m4: Likewise.
46376 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
46377         and Eric Blake  <eblake@redhat.com>
46379         mkstemp: replace if system version uses wrong permissions
46380         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
46381         read/write mode bits set in file created by mkstemp.
46382         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
46384 2011-04-27  Eric Blake  <eblake@redhat.com>
46386         passfd: avoid compiler warning
46387         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
46388         Reported by Laine Stump.
46390 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
46392         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
46393         required by the NetBSD (and perhaps other 4.4BSD derived) join.
46395 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
46396         and Eric Blake  <eblake@redhat.com>
46398         mkstemp: mention clean-temp module
46399         * lib/mkstemp.c: Add comment.
46400         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
46402 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
46404         inttypes: also provide default values for 32-bit tests
46405         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
46406         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
46408 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46410         strtoumax: remove dependency on strtoimax
46411         This is like the strtoull change of yesterday.
46412         * modules/strtoumax (Files): Add lib/strtoimax.c.
46413         (Depends-on): Remove strtoimax and add verify.
46415         inttypes-incomplete: new module
46416         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
46417         all but the PRI* and SCN* parts of gl_INTTYPES_H.
46418         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
46419         of gl_INTTYPES_H.
46420         (gl_INTTYPES_H): Rewrite in terms of these new macros.
46421         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
46422         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
46423         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
46424         * modules/strtoumax, modules/xstrtol (Depends-on):
46425         Depend on inttypes-incomplete, not inttypes.
46426         * modules/inttypes-incomplete: New module, containing the contents
46427         of the old modules/inttypes module, except that the Files: section
46428         omits m4/inttypes-pri.m4, and the configure.ac section invokes
46429         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
46430         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
46431         (Depends-on): Depend only on inttypes-incomplete.
46432         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
46434         inttypes: omit now-redundant strtoimax and strtoumax work
46435         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
46436         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
46438         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
46439         This supports apps that need pointers to strtoimax and strtoumax,
46440         and ports to HP-UX 11.00 64.bit, which has macros that expand to
46441         nonexistent functions.  See
46442         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
46443         et seq.
46444         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
46445         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
46446         a macro.
46447         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
46449 2011-04-25  Simon Josefsson  <simon@josefsson.org>
46451         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
46453 2011-04-25  Bruno Haible  <bruno@clisp.org>
46455         strtol, strtoul: Mark modules as obsolete.
46456         * modules/strtol (Status, Notice): New sections.
46457         * modules/strtoul (Status, Notice): New sections.
46459 2011-04-25  Bruno Haible  <bruno@clisp.org>
46461         strtod: Remove check for strtod, unless supporting old platforms.
46462         * modules/strtod-obsolete: New file.
46463         * m4/strtod-obsolete.m4: New file.
46464         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
46465         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
46466         * modules/strtod (Depends-on): Add strtod-obsolete.
46467         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
46469 2011-04-25  Bruno Haible  <bruno@clisp.org>
46471         strcase: Make module obsolete.
46472         * modules/strcase (Status, Notice): New sections.
46474 2011-04-25  Bruno Haible  <bruno@clisp.org>
46476         dup2: Remove check for dup2, unless supporting old obsolete platforms.
46477         * modules/dup2-obsolete: New file.
46478         * m4/dup2-obsolete.m4: New file.
46479         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
46480         gl_FUNC_DUP2_OBSOLETE is not also defined.
46481         * modules/dup2 (Depends-on): Add dup2-obsolete.
46482         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
46484 2011-04-25  Bruno Haible  <bruno@clisp.org>
46486         strnlen: Avoid memchr related link error on old obsolete platforms.
46487         * modules/memchr-obsolete: New file.
46488         * m4/memchr-obsolete.m4: New file.
46489         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
46490         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
46491         * modules/memchr (Depends-on): Add memchr-obsolete.
46492         * modules/strnlen (Depends-on): Likewise.
46493         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
46495 2011-04-25  Jim Meyering  <meyering@redhat.com>
46497         maint.mk: makefile_at_at_check extend and clean up
46498         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
46499         in addition to */Makefile.am.
46500         Exempt legitimate uses of @VAR@ notation, e.g.,
46501         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
46502         Remove obsolete coreutils-specific comment.
46503         Prompted by discussion here:
46504         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
46506 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46508         strtoul: remove dependency on strtol
46509         This is so that 'configure' need not check for strtol merely because
46510         the application needs strtoul.
46511         * modules/strtoul (Files): Add lib/strtol.c.
46512         (Depends-on): Remove strtol.
46514         strtoull: remove dependency on strtoul
46515         This is like the strtoll change.
46516         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
46517         (Depends-on): Remove strtoul.
46519         strtoll: remove dependency on strtol
46520         This is so that 'configure' need not check for strtol merely because
46521         the application needs strtoll.
46522         * modules/strtoll (Files): Add lib/strtol.c.
46523         (Depends-on): Remove strtol.
46525 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
46527         inttypes: Move some configure check to module 'imaxdiv'.
46528         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
46529         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
46530         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
46532 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
46534         inttypes: Move some configure check to module 'imaxabs'.
46535         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
46536         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
46537         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
46539 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
46541         inttypes: Remove configure tests that are not needed since 2009-12-31.
46542         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
46543         gl_cv_header_working_inttypes_h.
46545 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
46547         * modules/strnlen (Depends-on): Remove memchr.
46548         The strnlen implementation doesn't need the memchr module's fixes; see
46549         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
46551         strtol: remove dependency on wchar
46552         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
46553         * modules/strtol (Depends-on): Remove wchar.
46555 2011-04-21  Eric Blake  <eblake@redhat.com>
46557         passfd: fix test regression on Linux
46558         * modules/passfd-tests (configure.ac): Correct socketpair check.
46560         passfd: speed up configure and drop unused code
46561         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
46562         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
46563         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
46564         Instead of probing at configure for unix_scm_rights_bsd44_way,
46565         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
46566         check to a struct member probe.
46567         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
46568         (sendfd, recvfd): Update preprocessor checks.
46569         * modules/passfd (Files): Reflect rename, and drop unused file.
46570         (Depends-on): Drop unused dependency.
46572         passfd: allow compilation on mingw
46573         * modules/sys_socket (Depends-on): Add sys_uio.
46574         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
46575         iovec and a minimal struct msghdr.
46576         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
46577         * tests/test-sys_socket.c (main): Enhance test.
46578         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
46579         guaranteed to provide what we need.
46580         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
46581         * modules/passfd-tests (Depends-on): Add sys_wait.
46582         * tests/test-passfd.c (main): Skip test on mingw, for now.
46583         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
46584         partial 'struct msghdr' implementation.
46586         sys_uio: new module
46587         * modules/sys_uio: New module.
46588         * modules/sys_uio-tests: Likewise.
46589         * lib/sys_uio.in.h: New file.
46590         * m4/sys_uio_h.m4: Likewise.
46591         * tests/test-sys_uio.c: Likewise.
46592         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
46593         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
46595 2011-04-20  Jim Meyering  <meyering@redhat.com>
46597         useless-if-before-free: avoid false-positive
46598         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
46599         disjunct so that it too requires a terminating ";".  Without that,
46600         this script would identify as useless one statement from gcc that
46601         was not:
46602           if (aligned_ptr)
46603             free (((void **) aligned_ptr) [-1]);
46605 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
46607         doc: update users.txt.
46608         * users.txt: Add barcode.
46610 2011-04-19  Bruno Haible  <bruno@clisp.org>
46612         ioctl: Remove link dependency on native Windows.
46613         * lib/fd-hook.h: Renamed from lib/close-hook.h.
46614         (gl_close_fn, gl_ioctl_fn): New types.
46615         (struct fd_hook): Renamed from struct close_hook. Change type of
46616         private_close_fn field. Add private_ioctl_fn field.
46617         (close_hook_fn): Add parameter for primary close method.
46618         (execute_close_hooks, execute_all_close_hooks): Likewise.
46619         (ioctl_hook_fn): New type.
46620         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
46621         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
46622         argument.
46623         (unregister_fd_hook): Renamed from unregister_close_hook.
46624         * lib/fd-hook.c: Renamed from lib/close-hook.c.
46625         Don't include <unistd.h>.
46626         (close): Remove undef.
46627         (anchor): Update.
46628         (execute_close_hooks): Add argument for primary close method.
46629         (execute_all_close_hooks): Likewise.
46630         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
46631         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
46632         argument. Allow each argument to be NULL.
46633         (unregister_fd_hook): Renamed from unregister_close_hook.
46634         * lib/close.c (rpl_close): Pass 'close' function pointer to
46635         execute_all_close_hooks.
46636         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
46637         (primary_ioctl): New function.
46638         (ioctl): Don't call ioctlsocket here. Instead, call
46639         execute_all_ioctl_hooks.
46640         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
46641         close method.
46642         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
46643         (fd_sockets_hook): Renamed from close_sockets_hook.
46644         (gl_sockets_startup, gl_sockets_cleanup): Update.
46645         * modules/fd-hook: Renamed from modules/close-hook. Update.
46646         * modules/close (Depends-on): Add fd-hook, remove close-hook.
46647         * modules/sockets (Depends-on): Likewise.
46648         * modules/ioctl (Depends-on): Add fd-hook.
46649         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
46650         GNULIB_SOCKET.
46652 2011-04-19  Bruno Haible  <bruno@clisp.org>
46654         Move the support of O_NONBLOCK in open() to the 'open' module.
46655         * modules/nonblocking (Depends-on): Remove 'open'.
46656         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
46657         gl_cv_have_open_O_NONBLOCK.
46658         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
46659         O_NONBLOCK support.
46660         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
46662 2011-04-17  Bruno Haible  <bruno@clisp.org>
46664         pipe2: Simplify code.
46665         * lib/pipe2.c (pipe2): Reduce code duplication.
46667 2011-04-17  Bruno Haible  <bruno@clisp.org>
46669         nonblocking: Add comment.
46670         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
46672 2011-04-17  Bruno Haible  <bruno@clisp.org>
46674         nonblocking: Add tests for sockets.
46675         * tests/test-nonblocking-socket.sh: New file.
46676         * tests/test-nonblocking-socket-main.c: New file.
46677         * tests/test-nonblocking-socket-child.c: New file.
46678         * tests/test-nonblocking-socket.h: New file.
46679         * tests/socket-server.h: New file.
46680         * tests/socket-client.h: New file.
46681         * modules/nonblocking-socket-tests: New file.
46682         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
46684 2011-04-17  Bruno Haible  <bruno@clisp.org>
46686         nonblocking: Add tests for pipes.
46687         * tests/test-nonblocking-pipe.sh: New file.
46688         * tests/test-nonblocking-pipe-main.c: New file.
46689         * tests/test-nonblocking-pipe-child.c: New file.
46690         * tests/test-nonblocking-pipe.h: New file.
46691         * tests/test-nonblocking-writer.h: New file.
46692         * tests/test-nonblocking-reader.h: New file.
46693         * tests/test-nonblocking-misc.h: New file.
46694         * modules/nonblocking-pipe-tests: New file.
46695         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
46697 2011-04-16  Bruno Haible  <bruno@clisp.org>
46699         gettext: Clarify the needed programmer actions.
46700         * modules/gettext (Notice): New field.
46701         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
46703 2011-04-16  Bruno Haible  <bruno@clisp.org>
46705         strchrnul: Tweak last commit.
46706         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
46707         bug.
46708         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
46709         as in _GL_FUNCDECL_SYS.
46710         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
46711         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
46713 2011-04-15  Eric Blake  <eblake@redhat.com>
46715         strchrnul: work around cygwin bug
46716         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
46717         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
46718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
46719         * modules/string (Makefile.am): Substitute it.
46720         * lib/string.in.h (strchrnul): Use it.
46722 2011-04-15  Bruno Haible  <bruno@clisp.org>
46724         Don't require lib/stdio-write.c when only module 'stdio' is used.
46725         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
46726         invocation.
46727         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
46729 2011-04-14  Bruno Haible  <bruno@clisp.org>
46731         Support non-blocking pipe I/O in read() on native Windows.
46732         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
46733         (read): New declaration.
46734         * lib/read.c: New file.
46735         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
46736         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
46737         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
46738         vscanf): New declarations.
46739         * lib/stdio-read.c: New file.
46740         * m4/read.m4: New file.
46741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
46742         REPLACE_READ.
46743         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
46744         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
46745         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
46746         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
46747         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
46748         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
46749         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
46750         * modules/read: New file.
46751         * modules/nonblocking (Files): Add lib/stdio-read.c.
46752         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
46753         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
46754         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
46755         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
46756         * modules/pread (Depends-on): Add read.
46757         * modules/safe-read (Depends-on): Likewise.
46758         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
46759         gets, scanf, vfscanf, vscanf): Verify signatures.
46760         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
46761         problem with non-blocking pipes.
46762         * doc/posix-functions/fgetc.texi: Likewise.
46763         * doc/posix-functions/fgets.texi: Likewise.
46764         * doc/posix-functions/fread.texi: Likewise.
46765         * doc/posix-functions/fscanf.texi: Likewise.
46766         * doc/posix-functions/getc.texi: Likewise.
46767         * doc/posix-functions/getchar.texi: Likewise.
46768         * doc/posix-functions/gets.texi: Likewise.
46769         * doc/posix-functions/scanf.texi: Likewise.
46770         * doc/posix-functions/vfscanf.texi: Likewise.
46771         * doc/posix-functions/vscanf.texi: Likewise.
46773 2011-04-14  Bruno Haible  <bruno@clisp.org>
46775         Support non-blocking pipe I/O in write() on native Windows.
46776         * lib/write.c (rpl_write): Split a write request that failed merely
46777         because the byte count was larger than the pipe buffer's size.
46778         * doc/posix-functions/write.texi: Mention the problem with large byte
46779         counts.
46781 2011-04-14  Bruno Haible  <bruno@clisp.org>
46783         wchar: Ensure that wchar_t gets defined on uClibc.
46784         * lib/wchar.in.h: On uClibc, include <stddef.h>.
46785         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
46787 2011-04-13  Bruno Haible  <bruno@clisp.org>
46789         safe-write, full-read: Avoid unnecessary compilation units.
46790         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
46791         (Depends-on): Remove safe-read. Add ssize_t.
46792         * modules/full-read (Files): Add lib/full-write.c.
46793         (Depends-on): Add full-write.
46795 2011-04-13  Bruno Haible  <bruno@clisp.org>
46797         Support non-blocking pipe I/O and SIGPIPE in pwrite().
46798         * modules/pwrite (Depends-on): Add 'write'.
46800 2011-04-13  Bruno Haible  <bruno@clisp.org>
46802         Support non-blocking pipe I/O in write() on native Windows.
46803         * lib/unistd.in.h (write): Enable replacement also if
46804         GNULIB_UNISTD_H_NONBLOCKING is 1.
46805         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
46806         (rpl_write): When failing to write on a non-blocking pipe, change
46807         errno from ENOSPC to EAGAIN.
46808         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
46809         putchar, puts, vfprintf, vprintf): Enable replacement also if
46810         GNULIB_STDIO_H_NONBLOCKING is 1.
46811         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
46812         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
46813         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
46814         CALL_WITH_SIGPIPE_EMULATION.
46815         (CALL_WITH_SIGPIPE_EMULATION): Use them.
46816         * m4/nonblocking.m4: New file.
46817         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
46818         for non-blocking I/O support.
46819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46820         GNULIB_UNISTD_H_NONBLOCKING.
46821         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
46822         required for non-blocking I/O support.
46823         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
46824         * modules/nonblocking (Files): Add m4/nonblocking.m4,
46825         lib/stdio-write.c, m4/asm-underscore.m4.
46826         (Depends-on): Add stdio, unistd.
46827         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
46828         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
46829         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
46830         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
46831         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
46832         problem with non-blocking pipes.
46833         * doc/posix-functions/fputc.texi: Likewise.
46834         * doc/posix-functions/fputs.texi: Likewise.
46835         * doc/posix-functions/fwrite.texi: Likewise.
46836         * doc/posix-functions/printf.texi: Likewise.
46837         * doc/posix-functions/putc.texi: Likewise.
46838         * doc/posix-functions/putchar.texi: Likewise.
46839         * doc/posix-functions/puts.texi: Likewise.
46840         * doc/posix-functions/vfprintf.texi: Likewise.
46841         * doc/posix-functions/vprintf.texi: Likewise.
46842         * doc/posix-functions/write.texi: Likewise.
46844 2011-04-10  Jim Meyering  <meyering@redhat.com>
46846         maint.mk: prohibit doubled words
46847         Detect them also when they're separated by a newline.
46848         There are 3 ways to customize it:
46849           - disable the test on a per file basis, as usual with rules using
46850             $(VC_LIST_EXCEPT)
46851           - replace the default doubled-word-selecting regexp (affects all files)
46852           - ignore a particular file-vs-doubled-word match
46853         I nearly used that last one to ignore the "is is" match in
46854         coreutils' NEWS file, since the text was "ls -is is ..."
46855         To do that, I would have added this line to cfg.mk:
46856           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
46857         but it would have ignored any "is is" match in NEWS.
46858         Low probability, but still...
46859         Instead, I changed the text, slightly:
46860           -  ls -is is now consistent with ls -lis in ignoring values returned
46861           +  "ls -is" is now consistent with ls -lis in ignoring values returned
46862         * top/maint.mk (prohibit_double_word_RE_): Provide default.
46863         (prohibit_doubled_word_): Define.
46864         (sc_prohibit_doubled_word): New rule.
46865         (sc_prohibit_the_the): Remove.  Subsumed by the above.
46867 2011-04-10  Jim Meyering  <meyering@redhat.com>
46869         maint: fix doubled-word typo in comment
46870         * m4/gethostname.m4: s/is is/it is/
46871         * m4/getdomainname.m4: Likewise.
46873 2011-04-10  Jim Meyering  <meyering@redhat.com>
46875         maint: remove doubled word: s/it it/it/
46876         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
46878 2011-04-10  Jim Meyering  <meyering@redhat.com>
46880         maint.mk: remove useless semicolon and backslash
46881         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
46882         semicolon and backslash.
46884 2011-04-10  Bruno Haible  <bruno@clisp.org>
46886         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
46887         * modules/stdint-tests (Depends-on): Add wchar.
46889 2011-04-10  Jim Meyering  <meyering@redhat.com>
46891         maint: remove doubled words in comments, e.g., s/a a/a/
46892         * lib/strptime.c (day_of_the_week): s/the the/the/
46893         * tests/test-chown.h (test_chown): s/a a/a/
46895         test-chown.h: correct a cast
46896         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
46897         when the destination is a stat.st_gid.
46899 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
46901         getaddrinfo: Fix test for sa_len member.
46902         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
46903         include <sys/types.h> before <sys/socket.h>.
46905 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46907         maint: change "can not" to "cannot"
46908         * doc/posix-functions/iconv.texi (iconv): This one crossed line
46909         boundaries.
46911 2011-04-09  Jim Meyering  <meyering@redhat.com>
46913         maint: change "a a" to "a"
46914         * tests/test-lchown.h (test_lchown): s/a a/a/
46916         maint.mk: prohibit \<the the\>
46917         * top/maint.mk (sc_prohibit_the_the): New rule.
46919         maint: fix "the the" in comment
46920         * lib/count-one-bits.h: s/the the/the/
46922         maint: change "can not" to "cannot"
46923         But do not change the occurrences in maintain.texi or in
46924         build-aux/po/Makefile.in.in, which I presume comes from gettext.
46925         * doc/gnulib-tool.texi: s/can not/cannot/
46926         * doc/posix-functions/accept.texi (accept): Likewise.
46927         * doc/posix-functions/socket.texi (socket): Likewise.
46928         * lib/mbrtowc.c: Likewise.
46930         maint.mk: prohibit use of "can not"
46931         * top/maint.mk (sc_prohibit_can_not): New rule.
46932         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
46934 2011-04-09  Bruno Haible  <bruno@clisp.org>
46936         careadlinkat: Guard against misuse of careadlinkatcwd.
46937         * lib/careadlinkat.c: Include <stdlib.h>.
46938         (careadlinkatcwd): Check that the fd argument is as expected.
46940 2011-04-09  Bruno Haible  <bruno@clisp.org>
46942         careadlinkat: Use common coding style.
46943         * lib/careadlinkat.c: Move gnulib includes after system includes.
46945 2011-04-09  Bruno Haible  <bruno@clisp.org>
46947         careadlinkat: Clarify specification.
46948         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
46949         (careadlinkatcwd): Add comment.
46950         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
46952 2011-04-09  Bruno Haible  <bruno@clisp.org>
46954         areadlinkat: Avoid link error on many platforms.
46955         * modules/areadlinkat (Depends-on): Add areadlink.
46957 2011-04-09  Bruno Haible  <bruno@clisp.org>
46959         allocator, careadlinkat: Fix double-inclusion guard.
46960         * lib/allocator.h: Fix double-inclusion guard.
46961         * lib/careadlinkat.h: Likewise.
46963 2011-04-09  Bruno Haible  <bruno@clisp.org>
46965         relocatable-prog-wrapper: Update after module 'areadlink' changed.
46966         * lib/relocwrapper.c: Update dependencies hierarchy.
46967         * build-aux/install-reloc: Update list of files to be compiled.
46968         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
46969         lib/allocator.[hc].
46971 2011-04-08  Eric Blake  <eblake@redhat.com>
46973         strftime: silence gnulib-tool warning
46974         * modules/strftime-tests (Depends-on): Drop automatic dependency.
46976 2011-04-08  Bruno Haible  <bruno@clisp.org>
46978         verify: Fix syntax error with GCC 4.6 in C++ mode.
46979         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
46980         (HAVE_STATIC_ASSERT): New macro.
46981         (verify_true, verify): Use 'static_assert' if it is supported and
46982         '_Static_assert' is not supported.
46984 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
46986         allocator: New module.
46987         * modules/allocator, lib/allocator.c: New files.
46988         * lib/allocator.h (stdlib_allocator): New decl.
46989         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
46990         Remove.  Do not include <stdlib.h>.
46991         (careadlinkat): Use stdlib_allocator instead of rolling our own.
46992         * modules/careadlinkat (Files): Remove lib/allocator.h.
46993         (Depends-on): Add allocator.
46995         stdlib: let modules use system malloc, realloc
46996         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
46997         if !_GL_USE_STDLIB_ALLOC.
46998         (malloc, realloc): Limit this change to a smaller scope.
47000         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
47001         (malloc, realloc): Don't #undef; no longer needed.
47002         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
47003         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
47004         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
47005         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
47006         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
47007         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
47008         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
47009         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
47011         careadlinkat: rename members to avoid problem
47012         * lib/allocator.h (struct allocator): Rename members from
47013         malloc/realloc to allocate/reallocate, to avoid problems if malloc
47014         and realloc are #define'd.  Reported by Eric Blake in
47015         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
47016         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
47018 2011-04-08  Eric Blake  <eblake@redhat.com>
47020         nonblocking: reduce dependency
47021         * tests/test-nonblocking.c: Only test sockets when in use.
47022         * modules/nonblocking-tests (Depends-on): Drop socket.
47023         (Makefile.am): Link even if sockets are not present.
47024         * modules/pipe2-tests (Makefile.am): Likewise.
47025         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
47027         pipe2: fix O_NONBLOCK support on mingw
47028         * modules/pipe2 (Depends-on): Add nonblocking.
47029         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
47030         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
47031         * tests/test-nonblocking.c (main): Likewise.
47032         * modules/pipe2-tests (Makefile.am): Avoid link failure.
47034         fcntl-h: fix O_ACCMODE on cygwin
47035         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
47036         * lib/fcntl.in.h (O_ACCMODE): Fix it.
47038         pipe-filter: drop O_NONBLOCK workarounds
47039         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
47040         * modules/pipe-filter-ii (Depends-on): Likewise.
47041         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
47043         nonblocking: provide O_NONBLOCK for mingw
47044         * modules/nonblocking (Depends-on): Add open.
47045         (configure.ac): Set new witness macro.
47046         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
47047         * modules/fcntl-h (Makefile.am): Substitute it.
47048         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
47049         nonblocking module is in use.
47050         * lib/nonblocking.c: Adjust portability test.
47051         * lib/open.c (open): Don't let native open see gnulib flag.
47052         * tests/test-fcntl-h.c (main): Enhance test.
47053         * tests/test-open.h (test_open): Likewise.
47054         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
47056         careadlinkat: fix compilation error on mingw
47057         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
47058         within struct allocator.
47060 2011-04-06  Eric Blake  <eblake@redhat.com>
47062         binary-io: relicense under LGPLv2+
47063         * modules/binary-io (License): Relax to LGPLv2+.
47064         Requested for libvirt, and required by pipe2.
47066 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
47068         verify: use _Static_assert if available
47069         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
47070         (verify_true, verify): Use it if available.  This generates better
47071         diagnostics with GCC 4.6.0 and later.
47073 2011-04-05  Bruno Haible  <bruno@clisp.org>
47075         Remove leftover generated .h files after config.status changed.
47077         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
47078         GL_GENERATE_ALLOCA_H.
47079         * modules/alloca-opt (Makefile.am): Remove alloca.h if
47080         GL_GENERATE_ALLOCA_H evaluates to false.
47082         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
47083         GL_GENERATE_ARGZ_H.
47084         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
47085         evaluates to false.
47087         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
47088         GL_GENERATE_BYTESWAP_H.
47089         * modules/byteswap (Makefile.am): Remove byteswap.h if
47090         GL_GENERATE_BYTESWAP_H evaluates to false.
47092         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
47093         GL_GENERATE_ERRNO_H.
47094         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
47095         evaluates to false.
47097         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
47098         GL_GENERATE_FLOAT_H.
47099         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
47100         evaluates to false.
47102         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
47103         GL_GENERATE_FNMATCH_H.
47104         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
47105         GL_GENERATE_FNMATCH_H evaluates to false.
47107         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
47108         GL_GENERATE_GLOB_H.
47109         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
47110         evaluates to false.
47112         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
47113         automake conditional GL_GENERATE_ICONV_H.
47114         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
47115         evaluates to false.
47117         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
47118         GL_GENERATE_NETINET_IN_H.
47119         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
47120         GL_GENERATE_NETINET_IN_H evaluates to false.
47122         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
47123         conditional GL_GENERATE_PTHREAD_H.
47124         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
47125         * modules/pthread (Makefile.am): Remove pthread.h if
47126         GL_GENERATE_PTHREAD_H evaluates to false.
47128         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
47129         GL_GENERATE_SCHED_H.
47130         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
47131         evaluates to false.
47133         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
47134         conditional GL_GENERATE_SELINUX_CONTEXT_H.
47135         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
47136         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
47138         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
47139         GL_GENERATE_STDARG_H.
47140         * modules/stdarg (Makefile.am): Remove stdarg.h if
47141         GL_GENERATE_STDARG_H evaluates to false.
47143         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
47144         GL_GENERATE_STDBOOL_H.
47145         * modules/stdbool (Makefile.am): Remove stdbool.h if
47146         GL_GENERATE_STDBOOL_H evaluates to false.
47148         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
47149         conditional GL_GENERATE_STDDEF_H.
47150         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
47151         * modules/stddef (Makefile.am): Remove stddef.h if
47152         GL_GENERATE_STDDEF_H evaluates to false.
47154         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
47155         GL_GENERATE_STDINT_H.
47156         * modules/stdint (Makefile.am): Remove stdint.h if
47157         GL_GENERATE_STDINT_H evaluates to false.
47159         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
47160         GL_GENERATE_SYSEXITS_H.
47161         * modules/sysexits (Makefile.am): Remove sysexits.h if
47162         GL_GENERATE_SYSEXITS_H evaluates to false.
47164         Reported by Karl Berry and Ralf Wildenhues.
47166 2011-04-05  Bruno Haible  <bruno@clisp.org>
47168         Ensure to rebuild generated .h files when config.status has changed.
47169         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
47170         config.status.
47171         * modules/ctype (Makefile.am): Likewise.
47172         * modules/dirent (Makefile.am): Likewise.
47173         * modules/errno (Makefile.am): Likewise.
47174         * modules/fcntl-h (Makefile.am): Likewise.
47175         * modules/float (Makefile.am): Likewise.
47176         * modules/getopt-posix (Makefile.am): Likewise.
47177         * modules/glob (Makefile.am): Likewise.
47178         * modules/iconv-h (Makefile.am): Likewise.
47179         * modules/inttypes (Makefile.am): Likewise.
47180         * modules/langinfo (Makefile.am): Likewise.
47181         * modules/locale (Makefile.am): Likewise.
47182         * modules/math (Makefile.am): Likewise.
47183         * modules/netdb (Makefile.am): Likewise.
47184         * modules/netinet_in (Makefile.am): Likewise.
47185         * modules/poll-h (Makefile.am): Likewise.
47186         * modules/pthread (Makefile.am): Likewise.
47187         * modules/pty (Makefile.am): Likewise.
47188         * modules/sched (Makefile.am): Likewise.
47189         * modules/search (Makefile.am): Likewise.
47190         * modules/selinux-h (Makefile.am): Likewise.
47191         * modules/signal (Makefile.am): Likewise.
47192         * modules/spawn (Makefile.am): Likewise.
47193         * modules/stdarg (Makefile.am): Likewise.
47194         * modules/stdbool (Makefile.am): Likewise.
47195         * modules/stddef (Makefile.am): Likewise.
47196         * modules/stdint (Makefile.am): Likewise.
47197         * modules/stdio (Makefile.am): Likewise.
47198         * modules/stdlib (Makefile.am): Likewise.
47199         * modules/string (Makefile.am): Likewise.
47200         * modules/strings (Makefile.am): Likewise.
47201         * modules/sys_file (Makefile.am): Likewise.
47202         * modules/sys_ioctl (Makefile.am): Likewise.
47203         * modules/sys_select (Makefile.am): Likewise.
47204         * modules/sys_socket (Makefile.am): Likewise.
47205         * modules/sys_stat (Makefile.am): Likewise.
47206         * modules/sys_time (Makefile.am): Likewise.
47207         * modules/sys_times (Makefile.am): Likewise.
47208         * modules/sys_utsname (Makefile.am): Likewise.
47209         * modules/sys_wait (Makefile.am): Likewise.
47210         * modules/sysexits (Makefile.am): Likewise.
47211         * modules/termios (Makefile.am): Likewise.
47212         * modules/time (Makefile.am): Likewise.
47213         * modules/unistd (Makefile.am): Likewise.
47214         * modules/wchar (Makefile.am): Likewise.
47215         * modules/wctype-h (Makefile.am): Likewise.
47216         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
47218 2011-04-05  Bruno Haible  <bruno@clisp.org>
47220         pipe2: Relicense under LGPLv2+.
47221         * modules/pipe2 (License): Change to LGPLv2+.
47222         Requested by Eric Blake, for libvirt.
47224 2011-04-05  Bruce Korb  <bkorb@gnu.org>
47226         bootstrap: compute gnulib_extra_files after updating build_aux
47227         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
47228         change build_aux or also supply gnulib_extra_files.  Handle correctly.
47230 2011-04-05  Eric Blake  <eblake@redhat.com>
47232         bootstrap: preserve git whitelist item sorting
47233         * build-aux/bootstrap (sort_patterns): New function.
47234         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
47236 2011-04-05  Simon Josefsson  <simon@josefsson.org>
47238         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
47239         sc_space_tab check.
47241 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
47243         areadlink, areadlinkat: rewrite in terms of careadlinkat
47244         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
47245         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
47246         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
47247         (malloc, realloc): Remove #undefs.
47248         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
47249         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
47250         readlink, ssize_t, stdint, unistd.
47251         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
47252         areadlink, stdint.
47254         careadlinkat: new module
47255         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
47256         * modules/careadlinkat: New files, written by me with
47257         a review and feedback from Ben Pfaff in
47258         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
47260 2011-04-01  Bruno Haible  <bruno@clisp.org>
47262         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
47263         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
47264         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
47265         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
47266         Reported by Bruce Korb <bruce.korb@gmail.com>.
47268 2011-04-01  Bruno Haible  <bruno@clisp.org>
47270         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
47271         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
47272         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
47273         * modules/wcpcpy (Depends-on): Add extensions.
47274         * modules/wcpncpy (Depends-on): Likewise.
47275         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
47276         systems.
47277         * doc/posix-functions/wcpncpy.texi: Likewise.
47278         * doc/posix-functions/wcwidth.texi: Likewise.
47280 2011-03-31  Eric Blake  <eblake@redhat.com>
47282         nonblocking: fix mingw test failures
47283         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
47284         non-blocking flag on regular file.
47285         (get_nonblocking_flag): Set errno on invalid fd.
47286         * tests/test-nonblocking.c (main): Avoid test failure on
47287         directories if fchdir is not active.
47288         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
47290 2011-03-31  Bruno Haible  <bruno@clisp.org>
47292         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
47293         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
47294         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
47295         Reported by Simon Josefsson <simon@josefsson.org>.
47297 2011-03-31  Bruno Haible  <bruno@clisp.org>
47298         and Eric Blake  <eblake@redhat.com>
47300         nonblocking: new module
47301         * modules/nonblocking: New module.
47302         * modules/nonblocking-tests: Likewise.
47303         * lib/nonblocking.h: New file.
47304         * lib/nonblocking.c: Likewise.
47305         * tests/test-nonblocking.c: New test.
47306         * lib/ioctl.c (ioctl) [mingw]: Update comment.
47308 2011-03-30  Bruno Haible  <bruno@clisp.org>
47310         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
47311         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
47312         instead of 'printf' format for GCC >= 4.4.
47313         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
47314         (fprintf, printf, vfprintf, vprintf): Declare with
47315         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
47316         the system's vfprintf() function.
47317         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
47319 2011-03-30  Eric Blake  <eblake@redhat.com>
47321         passfd: fix scoping bug
47322         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
47323         before sendmsg/recvmsg.
47325         passfd: standardize coding conventions
47326         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
47327         can be learned at compile time.
47328         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
47329         ifdefs.
47330         (sendfd, recvfd): Follow gnulib code conventions.
47332         passfd: fix incorrect sendmsg arguments
47333         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
47334         incorrect msg_controllen value.
47335         * modules/passfd-tests (Depends-on): Check for alarm.
47336         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
47337         Reported by Bastien ROUCARIES.
47339 2011-03-30  Bruno Haible  <bruno@clisp.org>
47341         c-strcasestr: Relicense under LGPLv2+.
47342         * modules/c-strcasestr (License): Change to LGPLv2+.
47343         Requested by Eric Blake, for libvirt.
47345 2011-03-30  Simon Josefsson  <simon@josefsson.org>
47347         * users.txt: Add libidn2.  Fix libtasn1 link.
47349 2011-03-30  Jim Meyering  <meyering@redhat.com>
47351         tests: readlink* ("",... fails with EINVAL on newer kernels
47352         readlink and readlinkat have typically failed with ENOENT for
47353         the invalid, empty file name,  "".  However, with the advent
47354         of linux-2.6.39, they fail with EINVAL.
47355         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
47356         when operating on the empty file name.
47357         * tests/test-readlink.h (test_readlink): Likewise.
47359 2011-03-29  Bruno Haible  <bruno@clisp.org>
47361         Relicense some modules under LGPLv2+, for libidn2.
47362         * modules/array-mergesort (License): Change to LGPLv2+.
47363         * modules/c-strcaseeq (License): Likewise.
47364         * modules/striconveh (License): Likewise.
47365         * modules/striconveha (License): Likewise.
47366         * modules/uniconv/base (License): Likewise.
47367         * modules/uniconv/u8-conv-from-enc (License): Likewise.
47368         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
47369         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
47370         * modules/unictype/base (License): Likewise.
47371         * modules/unictype/bidiclass-of (License): Likewise.
47372         * modules/unictype/category-M (License): Likewise.
47373         * modules/unictype/category-none (License): Likewise.
47374         * modules/unictype/category-of (License): Likewise.
47375         * modules/unictype/category-test (License): Likewise.
47376         * modules/unictype/category-test-withtable (License): Likewise.
47377         * modules/unictype/combining-class (License): Likewise.
47378         * modules/unictype/joiningtype-of (License): Likewise.
47379         * modules/unictype/scripts (License): Likewise.
47380         * modules/uninorm/base (License): Likewise.
47381         * modules/uninorm/canonical-decomposition (License): Likewise.
47382         * modules/uninorm/composition (License): Likewise.
47383         * modules/uninorm/decompose-internal (License): Likewise.
47384         * modules/uninorm/decomposition-table (License): Likewise.
47385         * modules/uninorm/nfc (License): Likewise.
47386         * modules/uninorm/nfd (License): Likewise.
47387         * modules/uninorm/u32-normalize (License): Likewise.
47388         * modules/unistr/base (License): Likewise.
47389         * modules/unistr/u32-cpy (License): Likewise.
47390         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
47391         * modules/unistr/u32-to-u8 (License): Likewise.
47392         * modules/unistr/u32-uctomb (License): Likewise.
47393         * modules/unistr/u8-check (License): Likewise.
47394         * modules/unistr/u8-mblen (License): Likewise.
47395         * modules/unistr/u8-mbtouc (License): Likewise.
47396         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
47397         * modules/unistr/u8-mbtoucr (License): Likewise.
47398         * modules/unistr/u8-prev (License): Likewise.
47399         * modules/unistr/u8-strlen (License): Likewise.
47400         * modules/unistr/u8-to-u32 (License): Likewise.
47401         * modules/unistr/u8-uctomb (License): Likewise.
47402         * modules/unitypes (License): Likewise.
47403         Requested by Simon Josefsson.
47405 2011-03-29  Simon Josefsson  <simon@josefsson.org>
47407         lib-symbol-visibility: Add a notice.
47408         * modules/lib-symbol-visibility (Notice): New field.
47410 2011-03-29  Bruno Haible  <bruno@clisp.org>
47412         getaddrinfo: Doc fix.
47413         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
47414         section "fixed in Gnulib".
47416 2011-03-28  Simon Josefsson  <simon@josefsson.org>
47418         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
47419         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
47421 2011-03-26  Bruno Haible  <bruno@clisp.org>
47423         unictype/property-byname: Reduce the number of load-time relocations.
47424         * lib/unictype/pr_byname.c: Include <stdlib.h>.
47425         (UC_PROPERTY_INDEX_*): New enumeration values.
47426         (uc_property_byname): Convert an index from the lookup table to an
47427         uc_property_t.
47428         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
47429         values.
47431 2011-03-26  Bruno Haible  <bruno@clisp.org>
47433         unictype/property-byname: Allow omitted word separators and aliases.
47434         * lib/unictype/pr_byname.gperf: Add property names without word
47435         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
47436         for 'space'.
47438 2011-03-26  Bruno Haible  <bruno@clisp.org>
47440         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
47441         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
47442         also hyphens to space.
47443         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
47444         without spaces.
47445         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
47447 2011-03-26  Bruno Haible  <bruno@clisp.org>
47449         unictype/joiningtype-byname: Recognize long names as well.
47450         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
47451         a long name.
47452         * lib/unictype/joiningtype_byname.c: Include <string.h>,
47453         unictype/joiningtype_byname.h.
47454         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
47455         * lib/unictype/joiningtype_byname.gperf: New file.
47456         * modules/unictype/joiningtype-byname (Files): Add
47457         lib/unictype/joiningtype_byname.gperf.
47458         (Depends-on): Add gperf.
47459         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
47460         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
47461         long names.
47463         Tests for module 'unictype/joiningtype-longname'.
47464         * modules/unictype/joiningtype-longname-tests: New file.
47465         * tests/unictype/test-joiningtype_longname.c: New file.
47467         New module 'unictype/joiningtype-longname'.
47468         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
47469         * lib/unictype/joiningtype_longname.c: New file.
47470         * modules/unictype/joiningtype-longname: New file.
47471         * modules/unictype/joiningtype-all (Depends-on): Add
47472         unictype/joiningtype-longname.
47474 2011-03-26  Bruno Haible  <bruno@clisp.org>
47476         unictype/bidiclass-byname: Recognize long names as well.
47477         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
47478         name.
47479         * lib/unictype/bidi_byname.c: Include <string.h>,
47480         unictype/bidi_byname.h.
47481         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
47482         * lib/unictype/bidi_byname.gperf: New file.
47483         * modules/unictype/bidiclass-byname (Files): Add
47484         lib/unictype/bidi_byname.gperf.
47485         (Depends-on): Add gperf.
47486         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
47487         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
47488         long names.
47490         Tests for module 'unictype/bidiclass-longname'.
47491         * modules/unictype/bidiclass-longname-tests: New file.
47492         * tests/unictype/test-bidi_longname.c: New file.
47494         New module 'unictype/bidiclass-longname'.
47495         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
47496         * lib/unictype/bidi_longname.c: New file.
47497         * modules/unictype/bidiclass-longname: New file.
47498         * modules/unictype/bidiclass-all (Depends-on): Add
47499         unictype/bidiclass-longname.
47501 2011-03-26  Bruno Haible  <bruno@clisp.org>
47503         unictype/bidi*: Rename modules.
47504         * modules/unictype/bidiclass-all: Renamed from
47505         modules/unictype/bidicategory-all.
47506         * modules/unictype/bidiclass-name: Renamed from
47507         modules/unictype/bidiclass-name.
47508         (Description): Update.
47509         * modules/unictype/bidiclass-name-tests: Renamed from
47510         modules/unictype/bidicategory-name-tests.
47511         * modules/unictype/bidiclass-byname: Renamed from
47512         modules/unictype/bidicategory-byname.
47513         (Description): Update.
47514         * modules/unictype/bidiclass-byname-tests: Renamed from
47515         modules/unictype/bidicategory-byname-tests.
47516         * modules/unictype/bidiclass-of: Renamed from
47517         modules/unictype/bidicategory-of.
47518         (Description): Update.
47519         * modules/unictype/bidiclass-of-tests: Renamed from
47520         modules/unictype/bidicategory-of-tests.
47521         * modules/unictype/bidiclass-test: Renamed from
47522         modules/unictype/bidicategory-test.
47523         (Description): Update.
47524         * modules/unictype/bidiclass-test-tests: Renamed from
47525         modules/unictype/bidicategory-test-tests.
47526         * modules/unictype/bidicategory-all: New file, a simple redirection.
47527         * modules/unictype/bidicategory-name: Likewise.
47528         * modules/unictype/bidicategory-byname: Likewise.
47529         * modules/unictype/bidicategory-of: Likewise.
47530         * modules/unictype/bidicategory-test: Likewise.
47531         * modules/unictype/property-bidi-* (Dependencies): Update.
47532         * lib/unictype/bidi_*.c: Update comment.
47534 2011-03-26  Bruno Haible  <bruno@clisp.org>
47536         unictype/bidi*: Rename functions, part 2.
47537         * modules/unictype/bidicategory-name (configure.ac): Update required
47538         libunistring version.
47539         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
47541 2011-03-25  Bruno Haible  <bruno@clisp.org>
47543         New module 'unictype/combining-class-all'.
47544         * modules/unictype/combining-class-all: New file.
47546         Tests for module 'unictype/combining-class-byname'.
47547         * modules/unictype/combining-class-byname-tests: New file.
47548         * tests/unictype/test-combiningclass_byname.c: New file.
47550         New module 'unictype/combining-class-byname'.
47551         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
47552         * lib/unictype/combiningclass_byname.c: New file.
47553         * lib/unictype/combiningclass_byname.gperf: New file.
47554         * modules/unictype/combining-class-byname: New file.
47556         Tests for module 'unictype/combining-class-longname'.
47557         * modules/unictype/combining-class-longname-tests: New file.
47558         * tests/unictype/test-combiningclass_longname.c: New file.
47560         New module 'unictype/combining-class-longname'.
47561         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
47562         * lib/unictype/combiningclass_longname.c: New file.
47563         * modules/unictype/combining-class-longname: New file.
47565         Tests for module 'unictype/combining-class-name'.
47566         * modules/unictype/combining-class-name-tests: New file.
47567         * tests/unictype/test-combiningclass_name.c: New file.
47569         New module 'unictype/combining-class-name'.
47570         * lib/unictype.in.h (uc_combining_class_name): New declaration.
47571         * lib/unictype/combiningclass_name.c: New file.
47572         * modules/unictype/combining-class-name: New file.
47574 2011-03-25  Bruno Haible  <bruno@clisp.org>
47576         unictype/combining-class: Rename source files.
47577         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
47578         of unictype/combining.h.
47579         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
47580         Update.
47581         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
47582         * modules/unictype/combining-class (Description): Fix.
47583         (Files, Makefile.am): Update.
47584         * tests/unictype/test-combiningclass.c: Renamed from
47585         tests/unictype/test-combining.c.
47586         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
47588 2011-03-25  Bruno Haible  <bruno@clisp.org>
47590         unictype: Update list of canonical combining classes.
47591         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
47593 2011-03-25  Bruno Haible  <bruno@clisp.org>
47595         unictype/category-byname: Recognize long names as well.
47596         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
47597         a long name.
47598         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
47599         unictype/categ_byname.h.
47600         (UC_CATEGORY_INDEX_*): New enumeration values.
47601         (uc_general_category_byname): Use uc_general_category_lookup and
47602         convert from index to value.
47603         * lib/unictype/categ_byname.gperf: New file.
47604         * modules/unictype/category-byname (Files): Add
47605         lib/unictype/categ_byname.gperf.
47606         (Depends-on): Add gperf.
47607         (Makefile.am): Add rule for generating unictype/categ_byname.h.
47608         * tests/unictype/test-categ_byname.c (main): Test the recognition of
47609         long names.
47611         Tests for module 'unictype/category-longname'.
47612         * modules/unictype/category-longname-tests: New file.
47613         * tests/unictype/test-categ_longname.c: New file.
47615         New module 'unictype/category-longname'.
47616         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
47617         * lib/unictype/categ_longname.c: New file.
47618         * modules/unictype/category-longname: New file.
47619         * modules/unictype/category-all (Depends-on): Add it.
47621 2011-03-25  Bruno Haible  <bruno@clisp.org>
47623         Tests for module 'unictype/category-LC'.
47624         * modules/unictype/category-LC-tests: New file.
47625         * tests/unictype/test-categ_LC.c: New file, automatically generated.
47627         New module 'unictype/category-LC'.
47628         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
47629         (UC_CATEGORY_LC): New declaration.
47630         (UC_CASED_LETTER): New macro.
47631         * lib/gen-uni-tables.c (is_category_LC): New function.
47632         (output_categories): Also handle category LC.
47633         (UC_CATEGORY_MASK_LC): New enumeration value.
47634         (general_category_byname): Also handle category LC.
47635         * lib/unictype/categ_LC.c: New file.
47636         * lib/unictype/categ_LC.h: New file, automatically generated.
47637         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
47638         category LC.
47639         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
47640         * modules/unictype/category-LC: New file.
47641         * modules/unictype/category-byname (Depends-on): Add
47642         unictype/category-LC.
47643         * modules/unictype/category-all (Depends-on): Likewise.
47645 2011-03-25  Eric Blake  <eblake@redhat.com>
47647         xmalloc: revert yesterday's regression
47648         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
47649         realloc's underlying behavior (allowing allocation of zero-size
47650         objects, especially if malloc-gnu is also in use).
47652 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
47654         maint.mk: add missing version to VC-tag
47655         * top/maint.mk: git tag was missing actual tag name; add it.
47657         valgrind: do leak checking, and exit with code 1 on error (not 0)
47658         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
47659         to VALGRIND.
47661 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
47663         posix-modules: say what it does.
47664         * posix-modules: Add a line to the --help output saying what it does.
47666 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
47668         xmalloc: Do not leak if underlying realloc is C99 compatible.
47669         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
47670         This avoids a leak on C99-based systems.  See
47671         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
47673 2011-03-24  Eric Blake  <eblake@redhat.com>
47675         realloc: document portability problem
47676         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
47677         passing 0 size to realloc.
47679 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
47681         doc: update users.txt
47682         * users.txt: Add cvsps, tmpwatch
47684 2011-03-23  Matt Rice  <ratmice@gmail.com>
47686         doc: update users.txt
47687         * users.txt: Add gdb.
47689 2011-03-23  Jim Meyering  <meyering@redhat.com>
47691         doc: update users.txt
47692         Looking through matches up to the following URL (there are still
47693         several more pages), I found several projects that use gnulib:
47694         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
47695         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
47696         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
47698 2011-03-22  Bruno Haible  <bruno@clisp.org>
47700         unictype/bidi*: Rename functions.
47701         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
47702         uc_bidi_class, uc_is_bidi_class): New declarations.
47703         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
47704         uc_bidi_category_byname.
47705         (uc_bidi_category_byname): New function.
47706         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
47707         u_bidi_category_name.
47708         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
47709         (uc_bidi_category_name): New function.
47710         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
47711         uc_bidi_category.
47712         (uc_bidi_category): New function.
47713         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
47714         uc_is_bidi_category. Invoke uc_bidi_class.
47715         (uc_is_bidi_category): New function.
47716         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
47717         instead of uc_bidi_category_byname.
47718         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
47719         instead of uc_bidi_category_name.
47720         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
47721         uc_bidi_category.
47722         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
47723         instead of uc_is_bidi_category.
47725 2011-03-21  Bruno Haible  <bruno@clisp.org>
47727         New module 'unictype/joininggroup-all'.
47728         * modules/unictype/joininggroup-all: New file.
47730         Tests for module 'unictype/joininggroup-of'.
47731         * modules/unictype/joininggroup-of-tests: New file.
47732         * tests/unictype/test-joininggroup_of.c: New file.
47733         * tests/unictype/test-joininggroup_of.h: New file, automatically
47734         generated by gen-uni-tables.
47736         New module 'unictype/joininggroup-of'.
47737         * modules/unictype/joininggroup-of: New file.
47738         * lib/unictype/joininggroup_of.c: New file.
47739         * lib/unictype/joininggroup_of.h: New file, automatically generated by
47740         gen-uni-tables.
47742         Tests for module 'unictype/joininggroup-byname'.
47743         * modules/unictype/joininggroup-byname-tests: New file.
47744         * tests/unictype/test-joininggroup_byname.c: New file.
47746         New module 'unictype/joininggroup-byname'.
47747         * modules/unictype/joininggroup-byname: New file.
47748         * lib/unictype/joininggroup_byname.c: New file.
47749         * lib/unictype/joininggroup_byname.gperf: New file.
47751         Tests for module 'unictype/joininggroup-name'.
47752         * modules/unictype/joininggroup-name-tests: New file.
47753         * tests/unictype/test-joininggroup_name.c: New file.
47755         New module 'unictype/joininggroup-name'.
47756         * modules/unictype/joininggroup-name: New file.
47757         * lib/unictype/joininggroup_name.c: New file.
47758         * lib/unictype/joininggroup_name.h: New file.
47760         New module 'unictype/joiningtype-all'.
47761         * modules/unictype/joiningtype-all: New file.
47763         Tests for module 'unictype/joiningtype-of'.
47764         * modules/unictype/joiningtype-of-tests: New file.
47765         * tests/unictype/test-joiningtype_of.c: New file.
47766         * tests/unictype/test-joiningtype_of.h: New file, automatically
47767         generated by gen-uni-tables.
47769         New module 'unictype/joiningtype-of'.
47770         * modules/unictype/joiningtype-of: New file.
47771         * lib/unictype/joiningtype_of.c: New file.
47772         * lib/unictype/joiningtype_of.h: New file, automatically generated by
47773         gen-uni-tables.
47775         Tests for module 'unictype/joiningtype-byname'.
47776         * modules/unictype/joiningtype-byname-tests: New file.
47777         * tests/unictype/test-joiningtype_byname.c: New file.
47779         New module 'unictype/joiningtype-byname'.
47780         * modules/unictype/joiningtype-byname: New file.
47781         * lib/unictype/joiningtype_byname.c: New file.
47783         Tests for module 'unictype/joiningtype-name'.
47784         * modules/unictype/joiningtype-name-tests: New file.
47785         * tests/unictype/test-joiningtype_name.c: New file.
47787         New module 'unictype/joiningtype-name'.
47788         * modules/unictype/joiningtype-name: New file.
47789         * lib/unictype/joiningtype_name.c: New file.
47791         unictype: Add support for Arabic shaping properties.
47792         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
47793         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
47794         declarations.
47795         (UC_JOINING_GROUP_*): New enumeration values.
47796         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
47797         declarations.
47798         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
47799         (unicode_joining_type): New variable.
47800         (UC_JOINING_GROUP_*): New enumeration values.
47801         (unicode_joining_group): New variable.
47802         (fill_arabicshaping, joining_type_as_c_identifier,
47803         output_joining_type_test, output_joining_type,
47804         joining_group_as_c_identifier, output_joining_group_test,
47805         output_joining_group): New functions.
47806         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
47807         fill_arabicshaping and output_joining_type_test, output_joining_type,
47808         output_joining_group_test, output_joining_group.
47809         Reported by Simon Josefsson.
47811 2011-03-21  Jim Meyering  <meyering@redhat.com>
47813         strftime: fix a bug in yesterday's change
47814         * lib/strftime.c (add): Accommodate width's initial value of -1.
47815         Otherwise, nstrftime would copy uninitialized data into
47816         the result buffer.
47818 2011-03-21  Jim Meyering  <meyering@redhat.com>
47820         tests: add strftime-tests module
47821         * tests/test-strftime.c: New file.
47822         * modules/strftime-tests: New module.
47824 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
47826         strftime: don't assume a byte count fits in 'int'
47827         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
47828         found this problem by static analysis, using gcc -Wstrict-overflow
47829         (GCC 4.5.2, x86-64).  This reported an optimization that depended
47830         on an integer overflow having undefined behavior, but it turns out
47831         that the argument is a size, which might not fit in 'int' anyway,
47833 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
47835         stdio: don't require ignore_value around fwrite
47837         This patch works around libc bug 11959
47838         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
47839         Without this patch, applications must often write
47840         ignore_value (fwrite (...)) even though the ignore_value is
47841         not helpful here.  It's common to write many objects, using
47842         fwrite/printf/etc., and then use ferror to detect output error.
47844         I considered making this patch optional, but decided against it,
47845         because libc is obviously being inconsistent here: there is no
47846         reason libc should insist that user code must inspect fwrite
47847         return's value without also insisting that it inspect printf's,
47848         putchar's, etc.  If user code wants to have a strict style where
47849         all these functions' values are checked (so that ferror need not
47850         be checked), we could add support for that style in a new gnulib
47851         module, but in the meantime it's better to be consistent and to
47852         support common usage.
47854         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
47855         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
47856         that we are compiling in checking mode, and if not C++, and
47857         if not already wrapping fwrite for some other reason.
47858         (fwrite): #define to rpl_fwrite if the latter is defined.
47860 2011-03-20  Bruno Haible  <bruno@clisp.org>
47862         verror: Fix compilation error introduced on 2011-02-13.
47863         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
47864         instead of __attribute__.
47865         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47867 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
47868             Bruno Haible  <bruno@clisp.org>
47870         socklen: do not depend on sys_socket
47871         While trying to modify Emacs to use gnulib's socklen module,
47872         I discovered a circular dependency: socklen depends on sys_socket
47873         and vice versa.  Emacs can use socklen, but it does not need
47874         sys_socket because it has its own substitute for sys/socket.h.
47875         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
47876         gl_TYPE_SOCKLEN_T.
47877         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
47878         gl_PREREQ_SYS_H_SOCKET.
47879         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
47880         gl_PREREQ_SYS_H_SOCKET.
47881         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
47882         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
47883         * modules/socklen (Depends-on): Do not depend on sys_socket.
47884         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
47886 2011-03-20  Jim Meyering  <meyering@redhat.com>
47888         maint.mk: sort file names *after* new transformation
47889         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
47890         prefix would have led to an unwarranted failure in GNU parted.
47891         Sort after that transformation.
47893 2011-03-19  Jim Meyering  <meyering@redhat.com>
47895         maint.mk: fix po-file syntax-check rule
47896         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
47897         Patch by Bruno Haible.
47899 2011-03-19  Bruno Haible  <bruno@clisp.org>
47901         socklen: Update comment.
47902         * m4/socklen.m4: Update comment about platforms.
47904 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47905             Bruno Haible  <bruno@clisp.org>
47907         inet_ntop, inet_pton: Simplify.
47908         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
47909         documented to provide socklen_t and we already depend on sys_socket.
47910         * modules/inet_pton (Depends-on): Likewise.
47911         * lib/arpa_inet.in.h: Adjust comment.
47913 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47914             Bruno Haible  <bruno@clisp.org>
47916         netdb: Simplify.
47917         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
47918         documented to provide socklen_t and we already depend on sys_socket.
47919         * lib/netdb.in.h: Adjust comment.
47921 2011-03-19  Bruno Haible  <bruno@clisp.org>
47923         sys_socket, netdb: Document problem with socklen_t.
47924         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
47925         platforms.
47926         * doc/posix-headers/netdb.texi: Likewise.
47928 2011-03-18  Eric Blake  <eblake@redhat.com>
47930         maint.mk: let po check work in VPATH build
47931         * top/maint.mk (po_file): Allow cfg.mk override.
47932         (sc_po_check): Allow VPATH use.
47933         Reported by Jiri Denemark.
47935 2011-03-16  Jim Meyering  <meyering@redhat.com>
47937         maint.mk: allow fine-grained syntax-check exclusion via Make variables
47938         Before, you would have had to create one .x-sc_ file per rule in order
47939         to exempt offending files.  Now, you may instead use a Make variable --
47940         usually defined in cfg.mk -- whose name identifies the affected rule.
47941         * top/maint.mk (_sc_excl): Define.
47942         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
47943         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
47945 2011-03-13  Bruno Haible  <bruno@clisp.org>
47947         ignore-value tests: Avoid warnings.
47948         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
47949         empty for gcc < 3.4.
47951 2011-03-13  Bruno Haible  <bruno@clisp.org>
47953         passfd: Fix link error on Solaris.
47954         * modules/passfd (Description): Correct.
47955         (Depends-on): Add socketlib.
47956         (Link): New section.
47957         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
47959 2011-03-13  Bruno Haible  <bruno@clisp.org>
47961         passfd: Fix link error on AIX 5.2.
47962         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
47964 2011-03-13  Bruno Haible  <bruno@clisp.org>
47966         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
47967         * lib/sys_socket.in.h: Include <stddef.h>.
47968         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
47969         CMSG_FIRSTHDR. Remove unused variable.
47971 2011-03-13  Bruno Haible  <bruno@clisp.org>
47973         passfd: Fix compilation error on OpenBSD.
47974         * lib/passfd.c: Include <sys/uio.h>.
47976 2011-03-13  Bruno Haible  <bruno@clisp.org>
47978         passfd test: Fix warnings.
47979         * tests/test-passfd.c: Include <sys/wait.h>.
47980         (main): Fix typo.
47982 2011-03-13  Bruno Haible  <bruno@clisp.org>
47984         passfd module, part 4, tweaks.
47985         * tests/test-passfd.c: Reorder includes.
47986         (main): Fix perror and printf calls.
47988 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
47990         passfd module, part 4.
47991         * modules/passfd-tests: New file.
47992         * tests/test-passfd.c: New file.
47994 2011-03-13  Jim Meyering  <meyering@redhat.com>
47996         Makefile: rely on GNU make; derive syntax-check rule names
47997         Rather than requiring that each sc_ rule be listed as a dependent
47998         of "check", use features of GNU make to derive the list.
47999         * Makefile (syntax-check-rules): Define.
48000         (check): Depend on the new variable, not the hard-coded list.
48002 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
48003             Bruno Haible  <bruno@clisp.org>
48005         passfd module, part 3.
48006         * lib/passfd.h (recvfd): Add a flags argument.
48007         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
48008         (recvfd): Add a flags argument.
48009         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
48010         exists.
48011         * modules/passfd (Depends-on): Add cloexec.
48012         Suggested by Eric Blake.
48014 2011-03-13  Bruno Haible  <bruno@clisp.org>
48016         passfd module, part 2, tweaks.
48017         * modules/passfd (Files): Reorder.
48018         (Depends-on): Remove errno.
48019         (Include): Remove <sys/socket.h>, <sys/un.h>.
48020         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
48021         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
48022         specification header. Include <sys/socket.h> always. Don't include
48023         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
48024         (sendfd): Clarify that it sets errno when it fails.
48025         (recvfd): Fix specification.
48027 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
48029         passfd module, part 2.
48030         * modules/passfd: New file.
48031         * lib/passfd.h: New file.
48032         * lib/passfd.c: New file.
48034 2011-03-12  Bruno Haible  <bruno@clisp.org>
48036         wcswidth, mbswidth: Avoid integer overflow.
48037         * lib/wcswidth.c: Include <limits.h>.
48038         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
48039         * lib/mbswidth.c: Include <limits.h>.
48040         (mbsnwidth): Avoid 'int' overflow.
48041         Reported by Jim Meyering.
48043 2011-03-12  Bruno Haible  <bruno@clisp.org>
48045         futimens, utimensat: Avoid endless recursion on Solaris 10.
48046         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
48047         Solaris.
48048         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
48049         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
48051 2011-03-11  Jim Meyering  <meyering@redhat.com>
48053         maint.mk: relax a regexp to accommodate other formatting styles
48054         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
48055         between "ngettext" and the following "(".
48057 2011-03-11  Pádraig Brady  <P@draigBrady.com>
48059         maint.mk: suppress a false positive warning
48060         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
48061         diagnostics are marked with ngettext.
48063 2011-03-10  Eric Blake  <eblake@redhat.com>
48065         wchar: add explicit dependencies, for Tru64
48066         * modules/mbmemcasecoll (Depends-on): Add wchar.
48067         * modules/mbtowc (Depends-on): Likewise.
48068         * modules/vasnprintf (Depends-on): Likewise.
48069         * modules/unistdio/u-printf-args (Depends-on): Likewise.
48070         * modules/wctomb (Depends-on): Likewise.
48071         Reported by Peter O'Gorman.
48073 2011-03-08  Bruno Haible  <bruno@clisp.org>
48075         passfd module, part 1, tweaks.
48076         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
48077         Improve indentation. Improve AC_MSG_CHECKING messages.
48078         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
48079         gl_SOCKET_FAMILIES.
48081 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
48083         passfd module, part 1.
48084         * m4/afunix.m4: New file.
48085         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
48086         sockets.
48088 2011-03-08  Bruno Haible  <bruno@clisp.org>
48090         regex-quote: New API.
48091         * lib/regex-quote.h: Include <stdbool.h>.
48092         (struct regex_quote_spec): New type.
48093         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
48094         New declarations.
48095         (regex_quote_length, regex_quote_copy, regex_quote): Take a
48096         'const struct regex_quote_spec *' argument.
48097         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
48098         (pcre_special): New constant.
48099         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
48100         New functions.
48101         (regex_quote_length, regex_quote_copy, regex_quote): Take a
48102         'const struct regex_quote_spec *' argument.
48103         * modules/regex-quote (Depends-on): Add stdbool.
48104         * tests/test-regex-quote.c (check): Update for new API. Add test for
48105         anchored results.
48106         * NEWS: Mention the API change.
48107         Reported by Reuben Thomas and Eric Blake.
48109 2011-03-06  Bruno Haible  <bruno@clisp.org>
48111         regex-quote: Fix creation of POSIX extended regular expressions.
48112         * lib/regex-quote.c (ere_special): Add grouping and alternation
48113         operators.
48115 2011-03-05  Bruno Haible  <bruno@clisp.org>
48117         doc: Improve doc regarding autopoint vs. gnulib.
48118         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
48119         disable autopoint while running autoreconf.
48120         Suggested by Ralf Wildenhues.
48122 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48124         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
48125         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
48127 2011-03-03  Bruce Korb  <bkorb@gnu.org>
48129         parse-duration: remove xalloc.h dependency
48130         * lib/parse-duration.c (parse_period): handle NULL return from
48131         strdup instead of calling xstrdup().
48132         * modules/parse-duration: remove "xalloc" dependency
48134 2011-03-03  Matthew Booth  <mbooth@redhat.com>
48136         bootstrap: honor m4_base when running aclocal
48137         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
48139 2011-03-02  Jim Meyering  <meyering@redhat.com>
48141         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
48142         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
48143         on request from Matt Booth.
48145 2011-03-01  Eric Blake  <eblake@redhat.com>
48147         test-link: work on Hurd
48148         * tests/test-link.h (test_link): Hurd rejects linking directories
48149         with EISDIR instead of the POSIX-mandated EPERM.
48151 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
48153         stdio: simplify by moving files to printf-posix, sigpipe
48154         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
48155         since this symbol is needed only if printf is replaced.
48156         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
48157         Require gl_ASM_SYMBOL_PREFIX.
48158         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
48159         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
48160         (Depends-on): Add 'raise'.
48161         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
48162         * modules/stdio (Files): Remove lib/stdio-write.c,
48163         m4/asm-underscore.m4.
48164         (Depends-on): Remove 'raise'.
48166         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
48167         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
48168         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
48169         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
48171 2011-02-28  Bruno Haible  <bruno@clisp.org>
48173         localcharset: Assume ANSI C behaviour of free().
48174         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
48175         calling free().
48176         Suggested by Simon Josefsson <simon@josefsson.org>.
48178 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
48179             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
48180             Bruno Haible  <bruno@clisp.org>  (tiny change)
48182         On Cygwin, use /proc file system instead of win32 API.
48183         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
48184         Win32 file names.
48185         (DllMain): Simplify by removing Cygwin specific code.
48186         (find_shared_library_fullname): Use Linux specific implementation also
48187         for Cygwin.
48188         (get_shared_library_fullname): Update accordingly.
48189         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
48190         Win32 file names.
48191         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
48192         Cygwin specific code.
48194 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
48195             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
48197         Fix OpenMP flag detection for various Fortran compilers.
48198         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
48199         OpenMP-conditional compilation construct, to force compile
48200         failure with missing OpenMP flag.
48201         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
48203 2011-02-25  Eric Blake  <eblake@redhat.com>
48205         strstr: expand test coverage
48206         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
48207         compilation.
48208         * tests/test-memmem.c (main): Duplicate tests.
48209         * tests/test-strcasestr.c (main): Likewise.
48210         * tests/test-c-strcasestr.c (main): Likewise.
48212 2011-02-25  Jim Meyering  <meyering@redhat.com>
48214         maint.mk: detect missing-NL-at-EOF, too
48215         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
48216         it also detects when a file lacks a newline at EOF.
48217         (require_exactly_one_NL_at_EOF_): Renamed from
48218         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
48219         since people may well have .x-sc_... file names tied to the
48220         existing name.  Suggested by Eric Blake.
48222 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
48224         dirname: move m4/dos.m4 functionality into lib/dosname.h
48226         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
48227         extracts symbols from it, puts them into config.h; but it's much
48228         easier to use the symbols directly.  filename.h already does this,
48229         but it disagrees with dos.m4 in some respects.  This patch
48230         introduces a different include file dosname.h that packages up
48231         dos.m4, and then later we can work on merging filename.h and
48232         dosname.h.  Applications that need only the easy-to-configure
48233         symbols should consider including dosname.h rather than dirname.h.
48234         * NEWS: Mention incompatible changes.
48235         * m4/dos.m4: Remove.
48236         * lib/dosname.h, modules/dosname: New files.
48237         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
48238         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
48239         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
48240         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
48241         Include dosname.h, not dirname.h.
48242         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
48243         Include dosname.h, for definitions of symbols like ISSLASH
48244         that used to be in config.h.
48245         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
48246         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
48247         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
48248         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
48249         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
48250         * modules/rmdir (Files): Likewise.
48251         * modules/stat (Files): Likewise.
48252         * modules/unlink (Files): Likewise.
48253         * modules/dirname-lgpl (Depends-on): Add dosname.
48254         * modules/lstat (Depends-on): Likewise.
48255         * modules/openat (Depends-on): Likewise.
48256         * modules/rmdir (Depends-on): Likewise.
48257         * modules/savewd (Depends-on): Likewise.
48258         * modules/stat (Depends-on): Likewise.
48259         * modules/unlink (Depends-on): Likewise.
48260         * modules/openat (Depends-on): Remove dirname-lgpl.
48261         * modules/savewd (Depends-on): Likewise.
48262         * tests/test-dirname.c: Do not use removed symbols like
48263         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
48264         the remaining symbols, e.g., ISSLASH ('\\').
48266 2011-02-25  Eric Blake  <eblake@redhat.com>
48268         strstr: revert patches that introduced bug and pessimization
48269         * lib/str-two-way.h: Add another reference.
48270         (two_way_short_needle, two_way_long_needle): Revert changes from
48271         2011-02-24; they pessimize search speed.
48272         (critical_factorization): Partially revert changes from
48273         2010-06-22; they violate the requirement that the left half of the
48274         needle be smaller than the period of the needle.
48276 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48278         filenamecat: remove unnecessary dependency on dirname-lgpl
48279         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
48280         is no direct dependency, just an indirect one via filenamecat-lgpl.
48282         remove: remove unnecessary use of m4/dos.m4
48283         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
48284         * modules/remove (FILES): Remove m4/dos.m4.
48286         * lib/openat-proc.c: Don't include dirname.h; not needed.
48288         backupfile: remove unnecessary use of m4/dos.m4
48289         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
48290         of its symbols are used by the backupfile code.  backupfile.c does
48291         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
48292         for the rare case of programs that want all their backup file
48293         names to live within 8+3 limits, and dos.m4 doesn't address that.
48294         * modules/backupfile (Files): Remove m4/dos.m4.
48296 2011-02-24  Jim Meyering  <meyering@redhat.com>
48298         strstr: fix a bug whereby strstr would mistakenly return NULL
48299         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
48300         in period calculation.
48301         (two_way_long_needle): Likewise.
48302         The original problem was reported by Mike Stump in
48303         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
48304         Ralf Wildenhues provided the short needle and haystack.
48305         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
48306         Add a more involved test to trigger the bug in two_way_long_needle.
48308 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
48310         gnulib-tool: remove use of bold display in help screen
48311         * gnulib-tool (func_usage): Do not use bold display anymore in the
48312         help screen.  That was just meant to be a temporary emphasis for a
48313         backward-incompatible change.
48315 2011-02-23  Bruno Haible  <bruno@clisp.org>
48317         Fix misindentation of preprocessor directives.
48318         * lib/argp-namefrob.h: Reindent preprocessor directives.
48319         * lib/getopt_int.h (struct _getopt_data): Likewise.
48320         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
48321         * lib/vasnprintf.c (decode_long_double): Likewise.
48322         * tests/test-argmatch.c: Insert blank lines, for clarity.
48323         * tests/test-exclude.c: Likewise.
48325 2011-02-22  Bruno Haible  <bruno@clisp.org>
48327         ioctl: Fix for MacOS X in 64-bit mode.
48328         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
48329         value.
48330         Suggested by Eric Blake.
48331         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
48333 2011-02-22  Jim Meyering  <meyering@redhat.com>
48335         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
48336         * Makefile (sc_cpp_indent_check): Don't limit the check to files
48337         in lib/.
48339 2011-02-22  Eric Blake  <eblake@redhat.com>
48341         maint: avoid any CDPATH issue
48342         * Makefile (sc_cpp_indent_check): Anchor cd argument.
48344         maint: adjust cpp indentation for my modules, as well
48345         * Makefile (sc_cpp_indent_check): Add my name.
48346         * lib/fbufmode.c: Filter through cppi.
48347         * lib/fpurge.c: Likewise.
48348         * lib/freadable.c: Likewise.
48349         * lib/freading.c: Likewise.
48350         * lib/fwritable.c: Likewise.
48351         * lib/fwriting.c: Likewise.
48352         * lib/sigaction.c: Likewise.
48354 2011-02-22  Jim Meyering  <meyering@redhat.com>
48356         maint: adjust cpp indentation to reflect nesting depth
48357         I.e., in a block of code that begins with an unnested "#if",
48358         put one space between the "#" in column 1 and following token.
48359         For example,
48360         -#include <sys/vfs.h>
48361         +# include <sys/vfs.h>
48362         Do this only in .c files that are part of a module I maintain.
48363         * lib/linkat.c: Filter through cppi.
48364         * lib/nanosleep.c: Likewise.
48365         * lib/openat.c: Likewise.
48366         * lib/openat-die.c: Likewise.
48367         * lib/dup3.c: Likewise.
48368         * lib/fchownat.c: Likewise.
48369         * lib/flock.c: Likewise.
48370         * lib/fsync.c: Likewise.
48371         * lib/fts.c: Likewise.
48372         * lib/getpass.c: Likewise.
48373         * lib/gettimeofday.c: Likewise.
48374         * lib/userspec.c: Likewise.
48375         * Makefile (sc_cpp_indent_check): New rule, to check this.
48377 2011-02-22  Bruno Haible  <bruno@clisp.org>
48379         New module 'wctomb'.
48380         * lib/stdlib.in.h (wctomb): New declaration.
48381         * lib/wctomb.c: New file.
48382         * lib/wctomb-impl.h: New file.
48383         * m4/wctomb.m4: New file.
48384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
48385         REPLACE_WCTOMB.
48386         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
48387         REPLACE_WCTOMB.
48388         * modules/wctomb: New file.
48389         * tests/test-stdlib-c++.cc: Test signature of wctomb.
48390         * doc/posix-functions/wctomb.texi: Mention the new module.
48391         * modules/wctob (Depends-on): Add wctomb.
48393 2011-02-22  Bruno Haible  <bruno@clisp.org>
48395         New module 'mbtowc'.
48396         * lib/stdlib.in.h (mbtowc): New declaration.
48397         * lib/mbtowc.c: New file.
48398         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
48399         * m4/mbtowc.m4: New file.
48400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
48401         REPLACE_MBTOWC.
48402         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
48403         REPLACE_MBTOWC.
48404         * modules/mbtowc: New file.
48405         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
48406         * doc/posix-functions/mbtowc.texi: Mention the new module.
48407         * modules/btowc (Depends-on): Add mbtowc.
48409 2011-02-22  Bruno Haible  <bruno@clisp.org>
48411         wcrtomb: Add more tests for native Windows platforms.
48412         * tests/test-wcrtomb-w32-1.sh: New file.
48413         * tests/test-wcrtomb-w32-2.sh: New file.
48414         * tests/test-wcrtomb-w32-3.sh: New file.
48415         * tests/test-wcrtomb-w32-4.sh: New file.
48416         * tests/test-wcrtomb-w32-5.sh: New file.
48417         * tests/test-wcrtomb-w32.c: New file.
48418         * modules/wcrtomb-tests (Files): Add them.
48419         (Makefile.am): Arrange to run these tests.
48420         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
48421         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
48423 2011-02-20  Bruno Haible  <bruno@clisp.org>
48425         wcrtomb: Enhance test.
48426         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
48428 2011-02-20  Bruno Haible  <bruno@clisp.org>
48430         mbrtowc: Tiny optimization.
48431         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
48433 2011-02-20  Jim Meyering  <meyering@redhat.com>
48435         test-exclude.c: remove unmatched #endif
48436         * tests/test-exclude.c: Remove stray #endif, left over from
48437         the change of a week ago.
48439 2011-02-19  Jim Meyering  <meyering@redhat.com>
48441         git-version-gen: skip "-dirty" check when appropriate
48442         * build-aux/git-version-gen: Don't run any git commands when the
48443         version string comes from .tarball-version.  Prior to this, we
48444         would run git update-index --refresh even from a just-unpacked
48445         tarball directory, and that could affect a .git/ directory in a
48446         parent of the build directory.  Reported by Mike Frysinger.
48448 2011-02-19  Bruno Haible  <bruno@clisp.org>
48450         unictype/property-byname: Reduce the size of the 'data' segment.
48451         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
48453 2011-02-19  Bruno Haible  <bruno@clisp.org>
48455         unictype/scripts: Reduce the size of the 'data' segment.
48456         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
48457         '%pic'.
48458         * lib/unictype/scripts_byname.gperf: Regenerated.
48460 2011-02-19  Bruno Haible  <bruno@clisp.org>
48462         stdint: Update documentation.
48463         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
48465 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
48467         stdint: omit redundant check for wchar.h
48468         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
48469         always tests whether wchar.h exists, so remove the now-redundant test.
48471 2011-02-18  Bruno Haible  <bruno@clisp.org>
48473         stdint: Cut dependency to module 'wchar'.
48474         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
48475         include the necessary prerequisites.
48476         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
48477         * modules/stdint (Depends-on): Remove wchar.
48478         (Makefile.am): Substitute HAVE_WCHAR_H.
48479         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
48481 2011-02-18  Eric Blake  <eblake@redhat.com>
48483         longlong: skip, rather than fail, on cross-compilation
48484         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
48485         when cross-compiling; regression from 2011-02-16.
48487 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
48489         * NEWS: Mention 2011-02-08 change to stdlib.
48491 2011-02-17  Bruno Haible  <bruno@clisp.org>
48493         getloadavg: Add comments about platforms.
48494         * m4/getloadavg.m4: Add comment.
48495         * lib/getloadavg.c: Likewise.
48497 2011-02-17  Bruno Haible  <bruno@clisp.org>
48499         getloadavg: Fix link error on Solaris 2.6.
48500         * modules/getloadavg (Link): New section.
48501         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
48502         linking test-getloadavg.
48503         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
48504         getloadavg.
48506 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
48508         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
48509         It was 'int', but this doesn't match the IRIX 6.5 manual.
48510         Suggested by Bruno Haible in
48511         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
48513 2011-02-17  Bruno Haible  <bruno@clisp.org>
48515         havelib: Fix comments.
48516         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
48517         change.
48519 2011-02-17  Bruno Haible  <bruno@clisp.org>
48521         havelib: Update config.rpath.
48522         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
48524 2011-02-17  Bruno Haible  <bruno@clisp.org>
48526         getloadavg test: Add some plausibility checks.
48527         * tests/test-getloadavg.c (check_avg): Print a warning when the value
48528         is improbable.
48530 2011-02-16  Eric Blake  <eblake@redhat.com>
48532         maintainer-makefile: make syntax-check a no-op from tarballs
48533         * top/maint.mk (no-vc-detected): New rule.
48534         (local-checks-available): Use it to avoid hanging if someone tries
48535         'make syntax-check' from a tarball.  Also append to any non-syntax
48536         checks already defined in cfg.mk.
48538 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
48540         longlong: tune, particularly for common case of c99
48542         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
48543         or running anything if c99, or if unsigned long long int does not
48544         work.  In either case, we know the answer without further tests.
48545         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
48546         it at most once, and use its results for both long long int and
48547         unsigned long long int.  This is more likely to be efficient in
48548         the common case where the program wants to check for both long
48549         long int and unsigned long long int.
48550         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
48551         since the answer is already known.
48553 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
48555         getloadavg: set errno
48556         * lib/getloadavg.c: Set errno when returning -1.  If no other
48557         error number looks appropriate, set it to ENOSYS if the getloadavg
48558         looks like it can't possibly ever work, ENOTSUP otherwise.
48559         Suggested by Bruno Haible in
48560         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
48562         getloadavg: trim unused parts and speed up 'configure'
48563         * NEWS: Document this.
48564         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
48565         always compiled if getloadavg is absent.
48566         Move test code to ...
48567         * tests/test-getloadavg.c: New file, containing previous
48568         contents of test from lib/getloadavg.c.  It also contains
48569         suggestions by Bruno Haible in
48570         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
48571         * modules/getloadavg-tests: New file.
48572         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
48573         Do tests in the same order as they're needed for getloadavg.c.
48574         Omit setgid-related tests that generate symbols KMEM_GROUP,
48575         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
48576         Do only the tests that are needed to see whether the system has
48577         getloadavg, moving the other tests into ...
48578         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
48579         NLIST_NAME_UNION; nobody should be using it.  Do not define
48580         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
48581         relevant, as the user of this module shouldn't care how getloadavg
48582         is implemented.
48584         getloadavg: omit unused var
48585         * lib/getloadavg.c (getloadavg): Omit unused local variable.
48587 2011-02-15  Jim Meyering  <meyering@redhat.com>
48589         doc: update users.txt
48590         * users.txt: Update iwhd's URL.
48592 2011-02-13  Bruno Haible  <bruno@clisp.org>
48594         Consistent macro naming for macros that use GCC __attribute__.
48595         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
48596         _ATTRIBUTE_NONNULL_.
48597         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
48598         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
48599         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
48600         ATTRIBUTE_DEPRECATED.
48601         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
48602         ATTRIBUTE_NORETURN.
48603         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
48604         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
48605         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
48606         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
48607         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
48608         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
48609         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
48610         ATTRIBUTE_SENTINEL.
48611         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
48612         ATTRIBUTE_RETURN_CHECK.
48613         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
48614         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
48615         ATTRIBUTE_NORETURN.
48616         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
48617         Reported by Paul Eggert.
48619 2011-02-13  Bruno Haible  <bruno@clisp.org>
48621         Don't interfere with a program's definition of __attribute__.
48622         * lib/argp.h (__attribute__): Remove definition.
48623         (_GL_ATTRIBUTE_FORMAT): New macro.
48624         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
48625         * lib/argp-fmtstream.h (__attribute__): Remove definition.
48626         (_GL_ATTRIBUTE_FORMAT): New macro.
48627         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
48628         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
48629         GCC 3 or newer.
48630         * lib/error.h (__attribute__): Remove definition.
48631         (_GL_ATTRIBUTE_FORMAT): New macro.
48632         (error, error_at_line): Use it.
48633         * lib/hash.h (__attribute__): Remove definition.
48634         (ATTRIBUTE_WUR): Update definition. Define always.
48635         * lib/openat.h (__attribute__): Remove definition.
48636         (ATTRIBUTE_NORETURN): Update definition. Define always.
48637         * lib/sigpipe-die.h (__attribute__): Remove definition.
48638         (ATTRIBUTE_NORETURN): Update definition. Define always.
48639         * lib/vasnprintf.h (__attribute__): Remove definition.
48640         (_GL_ATTRIBUTE_FORMAT): New macro.
48641         (asnprintf, vasnprintf): Use it.
48642         * lib/xalloc.h (__attribute__): Remove definition.
48643         (ATTRIBUTE_NORETURN): Update definition. Define always.
48644         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
48645         * lib/xmemdup0.h (__attribute__): Remove definition.
48646         (ATTRIBUTE_NORETURN): Update definition. Define always.
48647         * lib/xprintf.h (__attribute__): Remove definition.
48648         (_GL_ATTRIBUTE_FORMAT): New macro.
48649         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
48650         * lib/xstrtol.h (__attribute__): Remove definition.
48651         (ATTRIBUTE_NORETURN): Update definition. Define always.
48652         * lib/xvasprintf.h (__attribute__): Remove definition.
48653         (_GL_ATTRIBUTE_FORMAT): New macro.
48654         (xasprintf, xvasprintf): Use it.
48655         * tests/test-argmatch.c (__attribute__): Remove definition.
48656         (ATTRIBUTE_NORETURN): Update definition. Define always.
48657         * tests/test-exclude.c (__attribute__): Remove definition.
48658         (ATTRIBUTE_NORETURN): Update definition. Define always.
48659         Reported by Paul Eggert.
48661 2011-02-13  Bruno Haible  <bruno@clisp.org>
48663         mbrtowc: Add more tests for native Windows platforms.
48664         * tests/test-mbrtowc-w32-1.sh: New file.
48665         * tests/test-mbrtowc-w32-2.sh: New file.
48666         * tests/test-mbrtowc-w32-3.sh: New file.
48667         * tests/test-mbrtowc-w32-4.sh: New file.
48668         * tests/test-mbrtowc-w32-5.sh: New file.
48669         * tests/test-mbrtowc-w32.c: New file.
48670         * modules/mbrtowc-tests (Files): Add them.
48671         (Makefile.am): Arrange to run these tests.
48672         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
48673         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
48675 2011-02-13  Bruno Haible  <bruno@clisp.org>
48677         mbrtowc: Work around native Windows bug.
48678         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
48679         guess when no suitable locale for testing was found.
48680         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
48682 2011-02-13  Bruno Haible  <bruno@clisp.org>
48684         mbsinit: Work around mingw bug.
48685         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
48686         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
48687         Windows.
48688         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
48690 2011-02-13  Bruno Haible  <bruno@clisp.org>
48692         mbsinit: Don't crash for a NULL argument.
48693         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
48694         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
48696 2011-02-13  Bruno Haible  <bruno@clisp.org>
48698         Don't interfere with a program's definition of __attribute__.
48699         * lib/stdio.in.h (__attribute__): Remove definition.
48700         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
48701         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
48702         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
48703         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
48704         * lib/string.in.h (__attribute__): Remove definition.
48705         Reported by Paul Eggert.
48707 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48709         stdlib: don't get in the way of non-GCC __attribute__
48710         See thread starting at
48711         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
48712         Revert previous stdlib change, installing the following instead:
48713         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
48714         to get in the way of a non-GCC compiler that supports __attribute__.
48715         (_GL_ATTRIBUTE_RETURN): New macro.
48716         (_Exit): Use it instead of __attribute__.
48718 2011-02-12  Bruno Haible  <bruno@clisp.org>
48720         quotearg test: Avoid test failure on mingw.
48721         * tests/test-quotearg.sh: Convert the locale identifier from native
48722         Windows syntax to Unix syntax.
48724 2011-02-12  Bruno Haible  <bruno@clisp.org>
48726         setlocale: Prefer gnulib's override over libintl's override.
48727         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
48728         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
48729         GNULIB_defined_setlocale is set.
48731 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48733         stdlib: support non-GCC __attribute__
48735         Fix a serious and tricky problem encountered when attempting to
48736         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
48737         5.5, but it crashed due to memory corruption on Solaris 10 with
48738         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
48739         bits that are otherwise zero.  This tagging is optional inside
48740         Emacs but is preferred and is used when __attribute__ ((__aligned
48741         (8))) works, as it does with both recent-enough GCC and with Sun C
48742         5.11.  However, Sun C 5.11 is not GCC and does not #define
48743         __GNUC__ and __GNUC_MINOR__.
48745         When I added the getloadavg module to Emacs, it brought in
48746         stdlib.in.h, which contained this fragment:
48748            #ifndef __attribute__
48749            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
48750            #  define __attribute__(Spec)   /* empty */
48751            # endif
48752            #endif
48754         When files that include <stdlib.h> were compiled with Sun C 5.11,
48755         the above code disabled __attribute__ ((__aligned (8))), which
48756         caused variables to not be properly aligned, which eventually led
48757         to the pointer corruption mentioned above.  (This was a bit hard
48758         to diagnose, unfortunately.)
48760         Several "#define __attribute__(X) /* empty */" code snippets need
48761         to be eradicated from Gnulib to work with non-GCC compilers that
48762         support __attribute__.  The Autoconf way to do this is to test for
48763         each kind of attribute that we want support for, and selectively
48764         enable that in source code.
48766         Fix this problem just for stdlib.h, by adding a test for the
48767         __noreturn__ attribute, and change stdlib.in.h to use that test
48768         when needed.  This technique can be easily generalized to the
48769         other *.in.h files and attributes, and a similar technique can be
48770         used for *.h and *.c files.  This patch is enough to solve the
48771         problem for Emacs + getloadavg, and I thought I'd publish it for
48772         feedback before undertaking further, similar fixes in other
48773         modules.
48775         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
48776         because it's not needed for stdlib.h.  It merely substitutes the
48777         value directly into stdlib.h.  We may well need to #define it, or
48778         similar symbols, for other modules, but it's nice to also have an
48779         option to not #define it for applications like Emacs that do not
48780         need it.
48782         * lib/stdlib.in.h (__attribute__): Do not #define.
48783         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
48784         be defined only if the _Exit module is also used.
48785         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
48786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
48787         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
48788         platforms.
48789         * modules/_Exit (Files): Add m4/attribute.m4.
48790         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
48791         * m4/attribute.m4: New file.
48793 2011-02-12  Bruno Haible  <bruno@clisp.org>
48795         wcsrtombs: Work around bug on native Windows.
48796         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
48797         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
48798         instead of len.
48799         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
48801 2011-02-12  Bruno Haible  <bruno@clisp.org>
48803         mbsrtowcs: Work around bug on native Windows.
48804         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
48805         against mingw bug.
48806         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
48808 2011-02-12  Bruno Haible  <bruno@clisp.org>
48810         Avoid setlocale bugs in tests.
48811         * modules/btowc (Dependencies): Add setlocale.
48812         * modules/c-strcase (Dependencies): Likewise.
48813         * modules/mbmemcasecmp (Dependencies): Likewise.
48814         * modules/mbmemcasecoll (Dependencies): Likewise.
48815         * modules/mbrtowc (Dependencies): Likewise.
48816         * modules/mbscasecmp (Dependencies): Likewise.
48817         * modules/mbscasestr (Dependencies): Likewise.
48818         * modules/mbschr (Dependencies): Likewise.
48819         * modules/mbscspn (Dependencies): Likewise.
48820         * modules/mbsinit (Dependencies): Likewise.
48821         * modules/mbsncasecmp (Dependencies): Likewise.
48822         * modules/mbsnrtowcs (Dependencies): Likewise.
48823         * modules/mbspbrk (Dependencies): Likewise.
48824         * modules/mbspcasecmp (Dependencies): Likewise.
48825         * modules/mbsrchr (Dependencies): Likewise.
48826         * modules/mbsrtowcs (Dependencies): Likewise.
48827         * modules/mbsspn (Dependencies): Likewise.
48828         * modules/mbsstr (Dependencies): Likewise.
48829         * modules/nl_langinfo (Dependencies): Likewise.
48830         * modules/quotearg (Dependencies): Likewise.
48831         * modules/unicase/locale-language (Dependencies): Likewise.
48832         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
48833         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
48834         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
48835         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
48836         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
48837         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
48838         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
48839         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
48840         * modules/vasnprintf-posix (Dependencies): Likewise.
48841         * modules/wcrtomb (Dependencies): Likewise.
48842         * modules/wcsnrtombs (Dependencies): Likewise.
48843         * modules/wcsrtombs (Dependencies): Likewise.
48845 2011-02-12  Bruno Haible  <bruno@clisp.org>
48847         setlocale: Workaround native Windows bug.
48848         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
48849         succeeds but sets LC_CTYPE to "C", report a failure.
48850         * tests/test-setlocale2.sh: New file.
48851         * tests/test-setlocale2.c: New file.
48852         * modules/setlocale-tests (Files): Add the new files.
48853         (Makefile.am): Enable test-setlocale2.sh test.
48854         * doc/posix-functions/setlocale.texi: Mention workaround.
48856 2011-02-11  Bruno Haible  <bruno@clisp.org>
48858         Tests for module 'setlocale'.
48859         * modules/setlocale-tests: New file.
48860         * tests/test-setlocale1.sh: New file.
48861         * tests/test-setlocale1.c: New file.
48863         New module 'setlocale'.
48864         * lib/locale.in.h (setlocale): New declaration.
48865         * lib/setlocale.c: New file, based on
48866         gettext/gettext-runtime/intl/setlocale.c.
48867         * m4/setlocale.m4: New file.
48868         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
48869         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
48870         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
48871         REPLACE_SETLOCALE.
48872         * modules/setlocale: New file.
48873         * tests/test-locale-c++.cc: Test the declaration of setlocale.
48874         * doc/posix-functions/setlocale.texi: Mention the new module.
48876 2011-02-11  Bruno Haible  <bruno@clisp.org>
48878         Prepare for locale dependent tests on mingw.
48879         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
48880         because it has the wrong locale encoding.
48881         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
48882         French_France.1252 instead of "fr".
48883         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
48884         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
48885         because it has the wrong locale encoding.
48886         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
48887         native Windows, try Turkish_Turkey.65001.
48888         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
48889         Chinese_China.54936.
48891         Prepare for locale dependent tests on mingw.
48892         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
48893         differently.
48894         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
48895         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
48896         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48897         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48899 2011-02-11  Eric Blake  <eblake@redhat.com>
48901         strptime: avoid compiler warnings
48902         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
48903         compiler warnings about dead code.
48904         Reported by Daniel P. Berrange.
48906 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
48908         doc: update users.txt
48909         * users.txt: Add rcs.
48911 2011-02-10  John W. Eaton  <jwe@gnu.org>
48913         doc: update users.txt
48914         * users.txt: Add octave.
48916 2011-02-10  Jim Meyering  <meyering@redhat.com>
48918         doc: update users.txt
48919         * users.txt: Add iwhd.
48921 2011-02-09  Bruno Haible  <bruno@clisp.org>
48923         gnulib-tool: Make copyright notice adjustment more robust.
48924         * gnulib-tool (func_import): In sed_transform_main_lib_file,
48925         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
48926         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
48927         License".
48928         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
48930 2011-02-06  Bruno Haible  <bruno@clisp.org>
48932         New module 'towctrans'.
48933         * modules/towctrans: New file.
48934         * lib/wctype.in.h (towctrans): New declaration.
48935         * lib/towctrans.c: New file.
48936         * lib/towctrans-impl.h: New file.
48937         * m4/towctrans.m4: New file.
48938         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
48939         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
48940         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
48941         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
48942         * doc/posix-functions/towctrans.texi: Mention the new module.
48944 2011-02-06  Bruno Haible  <bruno@clisp.org>
48946         New module 'wctrans'.
48947         * modules/wctrans: New file.
48948         * lib/wctype.in.h (wctrans): New declaration.
48949         * lib/wctrans.c: New file.
48950         * lib/wctrans-impl.h: New file.
48951         * m4/wctrans.m4: New file.
48952         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
48953         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
48954         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
48955         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
48956         * doc/posix-functions/wctrans.texi: Mention the new module.
48958 2011-02-06  Bruno Haible  <bruno@clisp.org>
48960         New module 'iswctype'.
48961         * modules/iswctype: New file.
48962         * lib/wctype.in.h (iswctype): New declaration.
48963         * lib/iswctype.c: New file.
48964         * lib/iswctype-impl.h: New file.
48965         * m4/iswctype.m4: New file.
48966         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
48967         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
48968         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
48969         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
48970         * doc/posix-functions/iswctype.texi: Mention the new module and the
48971         HP-UX 11.00 problem.
48973 2011-02-06  Bruno Haible  <bruno@clisp.org>
48975         New module 'wctype'.
48976         * modules/wctype: Change to represent the wctype() substitute.
48977         * lib/wctype.in.h (wctype): New declaration.
48978         * lib/wctype.c: New file.
48979         * lib/wctype-impl.h: New file.
48980         * m4/wctype.m4: New file.
48981         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
48982         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
48983         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
48984         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
48985         * doc/posix-functions/wctype.texi: Mention the new module and the
48986         HP-UX 11.00 problem.
48988 2011-02-06  Bruno Haible  <bruno@clisp.org>
48990         wctype-h: Ensure wctype_t and wctrans_t are defined.
48991         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
48992         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
48993         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
48994         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
48995         HAVE_WCTRANS_T.
48996         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
48998 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
49000         flock: fix license typo
49002         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
49003         omitted.
49005 2011-02-08  Bruno Haible  <bruno@clisp.org>
49007         Split large sed scripts, for HP-UX sed.
49008         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
49009         to avoid HP-UX limit of 99 commands, in the near future.
49010         * modules/stdlib (Makefile.am): Likewise.
49011         * modules/unistd (Makefile.am): Likewise.
49012         * modules/wchar (Makefile.am): Likewise.
49013         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49014         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
49015         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
49017 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
49018             Bruno Haible  <bruno@clisp.org>
49020         stdlib: improve random_r modularization
49021         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
49022         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
49023         you also need the random_r module to get this material right.
49024         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
49025         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
49026         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
49028 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
49030         stdlib: don't depend on stdint
49031         * lib/stdlib.in.h: Don't include <stdint.h> merely because
49032         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
49033         be independent of whether stdint.h is needed.
49034         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
49035         here, instead of ...
49036         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
49037         struct random_data should be using the random_r module, not just
49038         the stdlib module (which wouldn't make sense: what package needs
49039         just struct random_data without also needing random_r?).
49040         * modules/stdlib (Depends-on): Remove stdint.
49042         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
49043         See the thread rooted at
49044         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
49045         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
49046         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
49047         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
49048         __VMS)); previously it was always included (via fcntl--.h).
49049         (getloadavg): Do not use c_strtod.  Instead, approximate it by
49050         hand; this is good enough for load averages.  Also, do not use
49051         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
49052         flags directly if available and don't bother otherwise.  (Packages
49053         that need the extra reliability should use the modules that define
49054         these flags on older platforms that lack them.)
49055         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
49056         fcntl-safer.
49058 2011-02-08  Jim Meyering  <meyering@redhat.com>
49060         di-set.h, ino-map.h: add multiple-inclusion guard
49061         Technically, the guard is required only for ino-map.h, due to its
49062         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
49063         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
49064         * lib/ino-map.h: Likewise.
49066 2011-02-06  Bruno Haible  <bruno@clisp.org>
49068         iswblank: Ensure declaration on glibc systems.
49069         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
49070         * modules/iswblank (Dependencies): Add 'extensions'.
49071         * doc/posix-functions/iswblank.texi: Document the glibc problem.
49073 2011-02-06  Bruno Haible  <bruno@clisp.org>
49075         New module 'iswblank'.
49076         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
49077         * modules/iswblank: New file.
49078         * modules/wctype-h (Files): Remove lib/iswblank.c.
49079         (Makefile.am): Substitute GNULIB_ISWBLANK.
49080         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
49081         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
49082         (gl_WCTYPE_H_DEFAULTS): New macro.
49083         (gl_WCTYPE_H): Require it. Remove iswblank related code.
49084         * modules/iswblank-tests: New file.
49085         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
49086         * tests/test-wctype-h.c (main): Remove iswblank tests.
49087         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
49088         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
49089         of 'wctype-h'.
49090         * NEWS: Mention the change.
49091         * modules/mbchar (Depends-on): Add iswblank.
49093 2011-02-08  Bruno Haible  <bruno@clisp.org>
49095         di-set tests: Refactor.
49096         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
49097         unnecessary includes.
49098         (ASSERT): Remove macro.
49099         (main): Make C90 compliant by avoiding variable declaration after
49100         statement.
49101         * modules/di-set-tests (Files): Add tests/macros.h.
49103 2011-02-08  Bruno Haible  <bruno@clisp.org>
49105         ino-map tests: Refactor.
49106         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
49107         unnecessary includes.
49108         (ASSERT): Remove macro.
49109         (main): Make C90 compliant by avoiding variable declaration after
49110         statement.
49111         * modules/ino-map-tests (Files): Add tests/macros.h.
49113 2011-02-08  Jim Meyering  <meyering@redhat.com>
49115         di-set: add "const" to a cast
49116         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
49117         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
49119 2011-02-06  Bruno Haible  <bruno@clisp.org>
49121         Rename module 'wctype' to 'wctype-h'.
49122         * modules/wctype-h: Renamed from modules/wctype.
49123         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
49124         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
49125         (Files, Depends-on, Makefile.am): Update.
49126         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
49127         (Files, Makefile.am): Update.
49128         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
49129         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
49130         * doc/posix-headers/wctype.texi: Update.
49131         * doc/posix-functions/iswalnum.texi: Update.
49132         * doc/posix-functions/iswalpha.texi: Update.
49133         * doc/posix-functions/iswblank.texi: Update.
49134         * doc/posix-functions/iswcntrl.texi: Update.
49135         * doc/posix-functions/iswdigit.texi: Update.
49136         * doc/posix-functions/iswgraph.texi: Update.
49137         * doc/posix-functions/iswlower.texi: Update.
49138         * doc/posix-functions/iswprint.texi: Update.
49139         * doc/posix-functions/iswpunct.texi: Update.
49140         * doc/posix-functions/iswspace.texi: Update.
49141         * doc/posix-functions/iswupper.texi: Update.
49142         * doc/posix-functions/iswxdigit.texi: Update.
49143         * doc/posix-functions/towlower.texi: Update.
49144         * doc/posix-functions/towupper.texi: Update.
49145         * NEWS: Mention the change.
49146         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
49147         * modules/mbchar (Dependencies): Likewise.
49148         * modules/mbswidth (Dependencies): Likewise.
49149         * modules/quotearg (Dependencies): Likewise.
49150         * modules/regex (Dependencies): Likewise.
49151         * modules/wcscasecmp (Dependencies): Likewise.
49152         * modules/wcsncasecmp (Dependencies): Likewise.
49153         * modules/wcwidth (Dependencies): Likewise.
49155 2011-02-06  Bruno Haible  <bruno@clisp.org>
49157         New module 'wcswidth'.
49158         * modules/wcswidth: New file.
49159         * lib/wchar.in.h (wcswidth): New declaration.
49160         * lib/wcswidth.c: New file.
49161         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
49162         * m4/wcswidth.m4: New file.
49163         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
49164         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
49165         REPLACE_WCSWIDTH.
49166         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
49167         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
49168         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
49169         * doc/posix-functions/wcswidth.texi: Mention the new module.
49171 2011-02-06  Bruno Haible  <bruno@clisp.org>
49173         New module 'wcstok'.
49174         * modules/wcstok: New file.
49175         * lib/wchar.in.h (wcstok): New declaration.
49176         * lib/wcstok.c: New file.
49177         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
49178         * m4/wcstok.m4: New file.
49179         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
49180         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
49181         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
49182         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
49183         * doc/posix-functions/wcstok.texi: Mention the new module.
49185 2011-02-06  Bruno Haible  <bruno@clisp.org>
49187         New module 'wcsstr'.
49188         * modules/wcsstr: New file.
49189         * lib/wchar.in.h (wcsstr): New declaration.
49190         * lib/wcsstr.c: New file.
49191         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
49192         * m4/wcsstr.m4: New file.
49193         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
49194         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
49195         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
49196         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
49197         * doc/posix-functions/wcsstr.texi: Mention the new module.
49199 2011-02-06  Bruno Haible  <bruno@clisp.org>
49201         New module 'wcspbrk'.
49202         * modules/wcspbrk: New file.
49203         * lib/wchar.in.h (wcspbrk): New declaration.
49204         * lib/wcspbrk.c: New file.
49205         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
49206         * m4/wcspbrk.m4: New file.
49207         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
49208         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
49209         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
49210         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
49211         * doc/posix-functions/wcspbrk.texi: Mention the new module.
49213 2011-02-06  Bruno Haible  <bruno@clisp.org>
49215         New module 'wcsspn'.
49216         * modules/wcsspn: New file.
49217         * lib/wchar.in.h (wcsspn): New declaration.
49218         * lib/wcsspn.c: New file.
49219         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
49220         * m4/wcsspn.m4: New file.
49221         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
49222         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
49223         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
49224         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
49225         * doc/posix-functions/wcsspn.texi: Mention the new module.
49227 2011-02-06  Bruno Haible  <bruno@clisp.org>
49229         New module 'wcscspn'.
49230         * modules/wcscspn: New file.
49231         * lib/wchar.in.h (wcscspn): New declaration.
49232         * lib/wcscspn.c: New file.
49233         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
49234         * m4/wcscspn.m4: New file.
49235         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
49236         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
49237         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
49238         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
49239         * doc/posix-functions/wcscspn.texi: Mention the new module.
49241 2011-02-06  Bruno Haible  <bruno@clisp.org>
49243         New module 'wcsrchr'.
49244         * modules/wcsrchr: New file.
49245         * lib/wchar.in.h (wcsrchr): New declaration.
49246         * lib/wcsrchr.c: New file.
49247         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
49248         * m4/wcsrchr.m4: New file.
49249         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
49250         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
49251         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
49252         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
49253         * doc/posix-functions/wcsrchr.texi: Mention the new module.
49255 2011-02-06  Bruno Haible  <bruno@clisp.org>
49257         New module 'wcschr'.
49258         * modules/wcschr: New file.
49259         * lib/wchar.in.h (wcschr): New declaration.
49260         * lib/wcschr.c: New file.
49261         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
49262         * m4/wcschr.m4: New file.
49263         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
49264         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
49265         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
49266         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
49267         * doc/posix-functions/wcschr.texi: Mention the new module.
49269 2011-02-06  Bruno Haible  <bruno@clisp.org>
49271         New module 'wcsdup'.
49272         * modules/wcsdup: New file.
49273         * lib/wchar.in.h (wcsdup): New declaration.
49274         * lib/wcsdup.c: New file.
49275         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
49276         * m4/wcsdup.m4: New file.
49277         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
49278         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
49279         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
49280         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
49281         * doc/posix-functions/wcsdup.texi: Mention the new module.
49283 2011-02-06  Bruno Haible  <bruno@clisp.org>
49285         New module 'wcsxfrm'.
49286         * modules/wcsxfrm: New file.
49287         * lib/wchar.in.h (wcsxfrm): New declaration.
49288         * lib/wcsxfrm.c: New file.
49289         * lib/wcsxfrm-impl.h: New file.
49290         * m4/wcsxfrm.m4: New file.
49291         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
49292         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
49293         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
49294         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
49295         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
49297 2011-02-06  Bruno Haible  <bruno@clisp.org>
49299         New module 'wcscoll'.
49300         * modules/wcscoll: New file.
49301         * lib/wchar.in.h (wcscoll): New declaration.
49302         * lib/wcscoll.c: New file.
49303         * lib/wcscoll-impl.h: New file.
49304         * m4/wcscoll.m4: New file.
49305         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
49306         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
49307         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
49308         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
49309         * doc/posix-functions/wcscoll.texi: Mention the new module.
49311 2011-02-06  Bruno Haible  <bruno@clisp.org>
49313         New module 'wcsncasecmp'.
49314         * modules/wcsncasecmp: New file.
49315         * lib/wchar.in.h (wcsncasecmp): New declaration.
49316         * lib/wcsncasecmp.c: New file.
49317         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
49318         * m4/wcsncasecmp.m4: New file.
49319         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
49320         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
49321         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
49322         HAVE_WCSNCASECMP.
49323         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
49324         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
49326 2011-02-06  Bruno Haible  <bruno@clisp.org>
49328         New module 'wcscasecmp'.
49329         * modules/wcscasecmp: New file.
49330         * lib/wchar.in.h (wcscasecmp): New declaration.
49331         * lib/wcscasecmp.c: New file.
49332         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
49333         * m4/wcscasecmp.m4: New file.
49334         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
49335         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
49336         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
49337         HAVE_WCSCASECMP.
49338         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
49339         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
49341 2011-02-05  Bruno Haible  <bruno@clisp.org>
49343         New module 'wcsncmp'.
49344         * modules/wcsncmp: New file.
49345         * lib/wchar.in.h (wcsncmp): New declaration.
49346         * lib/wcsncmp.c: New file.
49347         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
49348         * m4/wcsncmp.m4: New file.
49349         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
49350         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
49351         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
49352         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
49353         * doc/posix-functions/wcsncmp.texi: Mention the new module.
49355 2011-02-05  Bruno Haible  <bruno@clisp.org>
49357         New module 'wcscmp'.
49358         * modules/wcscmp: New file.
49359         * lib/wchar.in.h (wcscmp): New declaration.
49360         * lib/wcscmp.c: New file.
49361         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
49362         * m4/wcscmp.m4: New file.
49363         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
49364         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
49365         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
49366         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
49367         * doc/posix-functions/wcscmp.texi: Mention the new module.
49369 2011-02-05  Bruno Haible  <bruno@clisp.org>
49371         New module 'wcsncat'.
49372         * modules/wcsncat: New file.
49373         * lib/wchar.in.h (wcsncat): New declaration.
49374         * lib/wcsncat.c: New file.
49375         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
49376         * m4/wcsncat.m4: New file.
49377         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
49378         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
49379         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
49380         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
49381         * doc/posix-functions/wcsncat.texi: Mention the new module.
49383 2011-02-05  Bruno Haible  <bruno@clisp.org>
49385         New module 'wcscat'.
49386         * modules/wcscat: New file.
49387         * lib/wchar.in.h (wcscat): New declaration.
49388         * lib/wcscat.c: New file.
49389         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
49390         * m4/wcscat.m4: New file.
49391         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
49392         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
49393         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
49394         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
49395         * doc/posix-functions/wcscat.texi: Mention the new module.
49397 2011-02-05  Bruno Haible  <bruno@clisp.org>
49399         New module 'wcpncpy'.
49400         * modules/wcpncpy: New file.
49401         * lib/wchar.in.h (wcpncpy): New declaration.
49402         * lib/wcpncpy.c: New file.
49403         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
49404         * m4/wcpncpy.m4: New file.
49405         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
49406         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
49407         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
49408         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
49409         * doc/posix-functions/wcpncpy.texi: Mention the new module.
49411 2011-02-05  Bruno Haible  <bruno@clisp.org>
49413         New module 'wcsncpy'.
49414         * modules/wcsncpy: New file.
49415         * lib/wchar.in.h (wcsncpy): New declaration.
49416         * lib/wcsncpy.c: New file.
49417         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
49418         * m4/wcsncpy.m4: New file.
49419         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
49420         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
49421         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
49422         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
49423         * doc/posix-functions/wcsncpy.texi: Mention the new module.
49425 2011-02-05  Bruno Haible  <bruno@clisp.org>
49427         New module 'wcpcpy'.
49428         * modules/wcpcpy: New file.
49429         * lib/wchar.in.h (wcpcpy): New declaration.
49430         * lib/wcpcpy.c: New file.
49431         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
49432         * m4/wcpcpy.m4: New file.
49433         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
49434         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
49435         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
49436         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
49437         * doc/posix-functions/wcpcpy.texi: Mention the new module.
49439 2011-02-05  Bruno Haible  <bruno@clisp.org>
49441         New module 'wcscpy'.
49442         * modules/wcscpy: New file.
49443         * lib/wchar.in.h (wcscpy): New declaration.
49444         * lib/wcscpy.c: New file.
49445         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
49446         * m4/wcscpy.m4: New file.
49447         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
49448         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
49449         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
49450         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
49451         * doc/posix-functions/wcscpy.texi: Mention the new module.
49453 2011-02-05  Bruno Haible  <bruno@clisp.org>
49455         New module 'wcsnlen'.
49456         * modules/wcsnlen: New file.
49457         * lib/wchar.in.h (wcsnlen): New declaration.
49458         * lib/wcsnlen.c: New file.
49459         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
49460         * m4/wcsnlen.m4: New file.
49461         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
49462         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
49463         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
49464         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
49465         * doc/posix-functions/wcsnlen.texi: Mention the new module.
49467 2011-02-05  Bruno Haible  <bruno@clisp.org>
49469         New module 'wcslen'.
49470         * modules/wcslen: New file.
49471         * lib/wchar.in.h (wcslen): New declaration.
49472         * lib/wcslen.c: New file.
49473         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
49474         * m4/wcslen.m4: New file.
49475         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
49476         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
49477         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
49478         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
49479         * doc/posix-functions/wcslen.texi: Mention the new module.
49481 2011-02-05  Bruno Haible  <bruno@clisp.org>
49483         New module 'wmemset'.
49484         * modules/wmemset: New file.
49485         * lib/wchar.in.h (wmemset): New declaration.
49486         * lib/wmemset.c: New file.
49487         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
49488         * m4/wmemset.m4: New file.
49489         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
49490         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
49491         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
49492         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
49493         * doc/posix-functions/wmemset.texi: Mention the new module.
49495 2011-02-05  Bruno Haible  <bruno@clisp.org>
49497         New module 'wmemmove'.
49498         * modules/wmemmove: New file.
49499         * lib/wchar.in.h (wmemmove): New declaration.
49500         * lib/wmemmove.c: New file.
49501         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
49502         * m4/wmemmove.m4: New file.
49503         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
49504         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
49505         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
49506         HAVE_WMEMMOVE.
49507         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
49508         * doc/posix-functions/wmemmove.texi: Mention the new module.
49510 2011-02-05  Bruno Haible  <bruno@clisp.org>
49512         New module 'wmemcpy'.
49513         * modules/wmemcpy: New file.
49514         * lib/wchar.in.h (wmemcpy): New declaration.
49515         * lib/wmemcpy.c: New file.
49516         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
49517         * m4/wmemcpy.m4: New file.
49518         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
49519         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
49520         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
49521         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
49522         * doc/posix-functions/wmemcpy.texi: Mention the new module.
49524 2011-02-05  Bruno Haible  <bruno@clisp.org>
49526         New module 'wmemcmp'.
49527         * modules/wmemcmp: New file.
49528         * lib/wchar.in.h (wmemcmp): New declaration.
49529         * lib/wmemcmp.c: New file.
49530         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
49531         * m4/wmemcmp.m4: New file.
49532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
49533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
49534         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
49535         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
49536         * doc/posix-functions/wmemcmp.texi: Mention the new module.
49538 2011-02-07  Jim Meyering  <meyering@redhat.com>
49540         di-set, ino-map: new modules, from coreutils
49541         * lib/di-set.c: New file.
49542         * lib/di-set.h: Likewise.
49543         * lib/ino-map.c: Likewise.
49544         * lib/ino-map.h: Likewise.
49545         * modules/di-set: Likewise.
49546         * modules/di-set-tests: Likewise.
49547         * modules/ino-map: Likewise.
49548         * modules/ino-map-tests: Likewise.
49549         * tests/test-di-set.c: Likewise.
49550         * tests/test-ino-map.c: Likewise.
49552 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
49554         getloadavg: merge minor changes from Emacs
49556         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
49557         (getloadavg): Use memset, not bzero.
49559         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
49560         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
49561         clash (bug#86).
49563 2010-11-14  Bruno Haible  <bruno@clisp.org>
49565         Allow multiple gnulib generated replacements to coexist.
49566         * lib/getopt.in.h (struct option): Avoid identical redefinition.
49567         * lib/inttypes.in.h (imaxdiv_t): Likewise.
49568         * lib/langinfo.in.h (nl_item): Likewise.
49569         * lib/math.in.h (_NaN, NAN): Likewise.
49570         * lib/netdb.in.h (struct addrinfo): Likewise.
49571         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
49572         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
49573         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
49574         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
49575         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
49576         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
49577         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
49578         pthread_mutexattr_init, pthread_mutexattr_settype,
49579         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
49580         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
49581         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
49582         pthread_spin_trylock, pthread_spin_unlock): Likewise.
49583         * lib/sched.in.h (struct sched_param): Likewise.
49584         * lib/se-selinux.in.h (security_class_t, security_context_t,
49585         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
49586         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
49587         lsetfilecon, fsetfilecon, security_check_context,
49588         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
49589         Likewise.
49590         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
49591         Likewise.
49592         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
49593         _gl_function_taking_int_returning_void_t, union sigval,
49594         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
49595         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
49596         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
49597         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
49598         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
49599         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
49600         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
49601         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
49602         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
49603         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
49604         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
49605         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
49606         socklen_t, rpl_fd_isset): Likewise.
49607         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
49608         * lib/sys_time.in.h (struct timeval): Likewise.
49609         * lib/sys_times.in.h (struct tms): Likewise.
49610         * lib/sys_utsname.in.h (struct utsname):
49611         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
49612         * lib/unistd.in.h (getpagesize): Likewise.
49613         * lib/wchar.in.h (mbstate_t): Likewise.
49614         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49615         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
49616         towlower, towupper): Likewise.
49617         Reported by Sam Steingold <sds@gnu.org>.
49619 2011-02-05  Eric Blake  <eblake@redhat.com>
49621         unsetenv: work around Haiku issues
49622         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
49623         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
49625 2010-12-30  Bruce Korb  <bkorb@gnu.org>
49627         libposix: avoid calling error() within libposix
49628         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
49629         is defined.
49631 2011-02-05  Eric Blake  <eblake@redhat.com>
49633         strerror_r-posix: port to cygwin
49634         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
49635         implementation.
49636         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
49637         * tests/test-strerror_r.c (main): Fix test.
49638         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
49639         issue.
49641 2011-02-05  Bruno Haible  <bruno@clisp.org>
49643         New module 'wmemchr'.
49644         * modules/wmemchr: New file.
49645         * lib/wchar.in.h (wmemchr): New declaration.
49646         * lib/wmemchr.c: New file.
49647         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
49648         * m4/wmemchr.m4: New file.
49649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
49650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
49651         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
49652         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
49653         * doc/posix-functions/wmemchr.texi: Mention the new module.
49655 2011-02-04  Eric Blake  <eblake@redhat.com>
49657         fdopendir: detect FreeBSD bug
49658         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
49659         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
49661 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49663         stdbool: do not define HAVE_STDBOOL_H
49664         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
49665         AC_HEADER_STDBOOL.  All uses changed.  Do not define
49666         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
49667         imported from the latest Autoconf git.  It was motivated by Emacs,
49668         which uses gnulib but does not need HAVE_STDBOOL_H.
49670 2011-02-04  Bruno Haible  <bruno@clisp.org>
49672         wcsnrtombs: Prepare for new module wwcsnrtombs.
49673         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
49674         * lib/wcsnrtombs.c: Include it.
49675         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
49677         wcsrtombs: Prepare for new module wwcsrtombs.
49678         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
49679         * lib/wcsrtombs.c: Include it.
49680         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
49682         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
49683         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
49684         * lib/mbsnrtowcs.c: Include it.
49685         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
49687         mbsrtowcs: Prepare for new module mbsrtowwcs.
49688         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
49689         * lib/mbsrtowcs.c: Include it.
49690         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
49692 2011-02-04  Bruno Haible  <bruno@clisp.org>
49694         vasnprintf: Reduce use of malloc for small format strings.
49695         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
49696         (arguments): Add room for the first 7 arguments.
49697         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
49698         (char_directives, u8_directives, u16_directives, u32_directives): Add
49699         room for the first 7 directives.
49700         * lib/printf-parse.c: Include <string.h>.
49701         (PRINTF_PARSE): Change memory handling code so that it uses the first
49702         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
49703         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
49704         Reported by Pádraig Brady <P@draigbrady.com>.
49706 2011-01-31  Eric Blake  <eblake@redhat.com>
49708         dup2: work around Haiku bug
49709         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
49710         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
49711         * doc/posix-functions/dup2.texi (dup2): Document the bug.
49712         * tests/test-dup2.c (main): Enhance test.
49714 2011-01-31  Simon Josefsson  <simon@josefsson.org>
49716         doc: off_t is not available in eglibc 2.11.2 stdio.h.
49717         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
49718         declared by eglibc 2.11.2.
49719         * lib/stdio.in.h: Likewise.
49721 2011-01-31  Eric Blake  <eblake@redhat.com>
49723         ignore-value: add missing test dependency
49724         * tests/test-ignore-value.c: Revert previous change; stdio.h
49725         provides off_t.
49726         * modules/ignore-value-tests (Depends-on): Add missing dependency.
49728 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
49730         mktime: clarify long_int width checking
49731         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
49732         the top level, to make it clearer that the assumption about
49733         long_int width is being checked.  See
49734         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
49736 2011-01-30  Simon Josefsson  <simon@josefsson.org>
49738         ignore-value: Fix self-test.
49739         * tests/test-ignore-value.c: Include sys/types.h for off_t.
49741 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
49743         TYPE_MAXIMUM: avoid theoretically undefined behavior
49744         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
49745         negative number, which the C Standard says has undefined behavior.
49746         In practice this is not a problem, but might as well do it by the book.
49747         Reported by Rich Felker and Eric Blake; see
49748         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
49749         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
49750         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
49751         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
49752         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
49753         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49754         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
49756         mktime: #undef mktime before #defining it
49757         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
49759         mktime: systematically normalize tm_isdst comparisons
49760         * lib/mktime.c (isdst_differ): New function.
49761         (__mktime_internal): Use it systematically for all isdst comparisons.
49762         This completes the fix for libc BZ #6723, and removes the need for
49763         normalizing tm_isdst.  See
49764         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
49765         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
49767         mktime: fix some integer overflow issues and sidestep the rest
49769         This was prompted by a bug report by Benjamin Lindner for MinGW
49770         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
49771         His bug is due to signed integer overflow (0 - INT_MIN), and I
49772         I scanned through mktime.c looking for other integer overflow
49773         problems, fixing all the bugs I found.
49775         Although the C Standard says the resulting code is still not safe
49776         in the presence of integer overflow, in practice it should be good
49777         enough for all real-world two's-complement implementations, except
49778         for debugging environments that deliberately trap on integer
49779         overflow (e.g., gcc -ftrapv).
49781         * lib/mktime.c (WRAPV): New macro.
49782         (SHR): Also check that long_int and time_t shift right in the
49783         usual way, before using the fast-but-unportable method.
49784         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
49785         used.  The code already assumed two's complement, so there's
49786         no need to test for alternatives.  All uses removed.
49787         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
49788         the C standard.  Problem reported by Rich Felker in
49789         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
49790         (twos_complement_arithmetic): Also check long_int and time_t.
49791         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
49792         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
49793         (__mktime_internal): Avoid integer overflow with unary subtraction
49794         in two instances where -1 - X is an adequate replacement for -X,
49795         since the calculations are approximate.
49797 2011-01-29  Eric Blake  <eblake@redhat.com>
49799         mktime: avoid infinite loop
49800         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
49801         type; behavior is still undefined but portable to all known targets.
49802         Reported by Rich Felker.
49804 2011-01-29  Simon Josefsson  <simon@josefsson.org>
49806         rename, unlink, same-inode: Relicense.
49807         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
49808         * modules/unlink (License): Likewise.
49809         * modules/same-inode (License): Likewise.
49811 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49813         mktime: avoid problems on NetBSD 5 / i386
49814         * lib/mktime.c (long_int): New type.  This works around a problem
49815         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
49816         but time_t is 64 bits, and where I expect the existing code is
49817         wrong in some cases.
49818         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
49819         (ydhms_diff): Bring back the compile-time check for wide-enough
49820         year and yday.
49822         mktime: fix misspelling in comment
49823         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
49824         This merges all recent glibc changes of importance.
49826 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49828         move-if-change: cope with concurrent mv of identical file.
49829         * build-aux/move-if-change (CMPPROG): Accept environment
49830         variable as an override for `cmp'.
49831         (usage): Document CMPPROG.
49832         Adjust comparison to drop stdout.  Cope with failure of mv if
49833         the target file exists and is identical to the source, for
49834         parallel builds.
49835         Report from H.J. Lu against binutils in PR binutils/12283.
49837 2011-01-28  Bruce Korb  <bkorb@gnu.org>
49839         * users.txt: Mention sharutils.
49841 2011-01-28  Simon Josefsson  <simon@josefsson.org>
49843         * users.txt: Mention OATH Toolkit.
49845 2011-01-27  Bruno Haible  <bruno@clisp.org>
49847         Prepare for supporting FreeBSD 10.
49848         * build-aux/config.libpath: Remove handling of freebsd1*.
49850 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
49852         Prepare for supporting FreeBSD 10.
49853         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
49854         match FreeBSD 10.0.
49856 2011-01-27  Bruno Haible  <bruno@clisp.org>
49858         vma-iter, get-rusage-as: Add OpenBSD support.
49859         * modules/vma-iter (configure.ac): Test for mquery.
49860         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
49861         * lib/vma-iter.c: Include <sys/mman.h>.
49862         (vma_iterate): Add an implementation based on mquery().
49863         * lib/resource-ext.h (get_rusage_as): Update comments.
49864         * lib/get-rusage-as.c: Likewise.
49865         * lib/get-rusage-data.c: Likewise.
49867 2011-01-26  Karl Berry  <karl@gnu.org>
49869         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
49870         variables to make it easier to override the makeinfo program used.
49872 2011-01-26  Eric Blake  <eblake@redhat.com>
49874         fcntl: work around Haiku F_DUPFD bugs
49875         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
49876         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
49877         cloexec bit on duplication.
49878         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
49880 2011-01-26  Bruno Haible  <bruno@clisp.org>
49882         Enable memory leak tests on AIX.
49883         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
49884         * tests/test-fprintf-posix3.c (main): Likewise.
49886 2011-01-26  Bruno Haible  <bruno@clisp.org>
49888         Tests for module 'get-rusage-data'.
49889         * modules/get-rusage-data-tests: New file.
49890         * tests/test-get-rusage-data.c: New file.
49892         New module 'get-rusage-data'.
49893         * lib/resource-ext.h (get_rusage_data): New declaration.
49894         * lib/get-rusage-data.c: New file.
49895         * modules/get-rusage-data: New file.
49897 2011-01-25  Bruno Haible  <bruno@clisp.org>
49899         get-rusage-as: Allow for easier testing.
49900         * lib/resource-ext.h (get_rusage_as): Add comment.
49901         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
49902         (main): New function for interactive testing.
49904 2011-01-25  Bruno Haible  <bruno@clisp.org>
49906         vma-iter: Treat Haiku like BeOS.
49907         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
49908         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
49910 2011-01-25  Eric Blake  <eblake@redhat.com>
49912         c-stack: fix regression on cygwin when libsigsegv is present
49913         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
49915 2011-01-24  Bruno Haible  <bruno@clisp.org>
49917         vma-iter: Avoid empty intervals.
49918         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
49919         on an empty interval.
49921 2011-01-24  Jim Meyering  <meyering@redhat.com>
49923         u64: remove unnecessary #include
49924         * lib/u64.h: Don't include <stddef.h>.  It was not used.
49926 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49928         Allow the user to avoid the HAVE_RAW_DECL_* macros.
49929         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
49931 2011-01-23  Bruno Haible  <bruno@clisp.org>
49933         New module 'vma-iter'.
49934         * lib/vma-iter.h: New file.
49935         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
49936         * modules/vma-iter: New file.
49937         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
49938         for get_rusage_as_via_iterator.
49939         (vma_iterate_callback): New function.
49940         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
49941         * modules/get-rusage-as (Depends-on): Add vma-iter.
49943 2011-01-23  Bruno Haible  <bruno@clisp.org>
49945         uninorm: Tweak includes.
49946         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
49947         Reported by Jim Meyering.
49949 2011-01-23  Bruno Haible  <bruno@clisp.org>
49951         get-rusage-as: Improve on NetBSD.
49952         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
49953         /proc, like on FreeBSD.
49955 2011-01-23  Jim Meyering  <meyering@redhat.com>
49957         xreadlink.h: remove unnecessary #include
49958         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
49960         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
49961         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
49963 2011-01-23  Bruno Haible  <bruno@clisp.org>
49965         get-rusage-as: Fix bug.
49966         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
49967         original limit when aborting the first loop.
49969 2011-01-23  Bruno Haible  <bruno@clisp.org>
49971         wctype: Ensure valid C syntax.
49972         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
49973         unconditionally, instead of gl_NEXT_HEADERS conditionally.
49975 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
49977         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
49978         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
49979         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
49980         as they are needed only for configure's test case.
49981         This removes two unnecessary symbols from config.h.
49983         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
49984         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
49985         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
49986         AC_CHECK_HEADERS_ONCE on a header that we also invoke
49987         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
49988         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
49989         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
49990         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
49991         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49992         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49993         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
49994         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49995         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
49996         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49997         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
49998         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49999         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
50000         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
50002 2011-01-21  Eric Blake  <eblake@redhat.com>
50004         maintainer-makefile: work with older git for submodule check
50005         * top/maint.mk (public-submodule-commit): Rewrite to avoid
50006         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
50007         Reported by Matthias Bolte.
50009         bootstrap: minor portability fixes
50010         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
50011         (usage): Omit leading capital and trailing . on help phrases, per
50012         GNU Coding Standards.
50013         (check_versions, top level): Prefix messages with script name.
50015 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
50017         bootstrap: support --no-git option
50018         * build-aux/bootstrap: Add --no-git option, to be used when
50019         --gnulib-srcdir points to the exact desired checkout.
50021 2011-01-21  Eric Blake  <eblake@redhat.com>
50023         strerror_r-posix: work with glibc 2.13
50024         * lib/strerror_r.c (strerror_r): Fix return type.
50026 2011-01-21  Pádraig Brady  <P@draigBrady.com>
50027             Bruno Haible  <bruno@clisp.org>
50029         uN_strstr: New unit tests.
50030         * modules/unistr/u8-strstr-tests: New file.
50031         * modules/unistr/u16-strstr-tests: New file.
50032         * modules/unistr/u32-strstr-tests: New file.
50033         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
50034         * tests/unistr/test-u8-strstr.c: New file.
50035         * tests/unistr/test-u16-strstr.c: New file.
50036         * tests/unistr/test-u32-strstr.c: New file.
50038 2011-01-21  Pádraig Brady  <P@draigBrady.com>
50039             Bruno Haible  <bruno@clisp.org>
50041         Make uN_strstr functions O(n) worst-case.
50042         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
50043         16-bit and 32-bit unit cases, use the unibyte algorithm from
50044         lib/mbsstr.c.
50045         * lib/unistr/u8-strstr.c: Include <string.h>.
50046         (UNIT_IS_UINT8_T): New macro.
50047         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
50048         (U_STRLEN, U_STRNLEN): New macros.
50049         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
50050         (U_STRLEN, U_STRNLEN): New macros.
50051         * modules/unistr/u8-strstr (Depends-on): Add strstr.
50052         (configure.ac): Update required libunistring version.
50053         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
50054         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
50055         malloca.
50056         (configure.ac): Update required libunistring version.
50057         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
50058         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
50059         malloca.
50060         (configure.ac): Update required libunistring version.
50062 2011-01-21  Pádraig Brady  <P@draigBrady.com>
50063             Bruno Haible  <bruno@clisp.org>
50065         Prepare for faster uN_strstr functions.
50066         * lib/str-kmp.h: Support definable UNITs.
50067         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
50068         needle_len argument.
50069         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
50070         * lib/mbscasestr.c (mbscasestr): Likewise.
50072 2011-01-21  Pádraig Brady  <P@draigBrady.com>
50074         malloca-tests: make faster by unsetting MALLOC_PERTURB_
50075         * tests/test-malloca.c (main): Unset the environment variable
50076         to greatly speed up the test.
50077         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
50078         * modules/malloca-tests: Depend on unsetenv.
50080 2011-01-21  Pádraig Brady  <P@draigBrady.com>
50082         ignore-value: remove stdint dependency
50083         * lib/ignore-value.h: Remove <stdint.h>
50084         * modules/ignore-value: Remove stdint dependency.
50086 2011-01-21  Jim Meyering  <meyering@redhat.com>
50088         maint.mk: adjust variable name to be consistent with other gl_ vars
50089         * top/maint.mk (gl_public_submodule_commit): Rename the variable
50090         to be lower case.
50092 2011-01-20  Jim Meyering  <meyering@redhat.com>
50094         maint.mk: make "check" depend on public-submodule-commit by default
50095         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
50097 2011-01-20  Bruno Haible  <bruno@clisp.org>
50099         mbfile, mbiter: Complete change from 2008-12-21.
50100         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
50101         * m4/mbiter.m4 (gl_MBITER): Likewise.
50103 2011-01-20  Jim Meyering  <meyering@redhat.com>
50105         init.sh: insert space between each function name and "()"
50106         * tests/init.sh: Make it a little easier to see that a function's
50107         name is "warn_", and not "warn" when looking at the first part of
50108         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
50110 2011-01-20  Jim Meyering  <meyering@redhat.com>
50112         mountlist: clean up code formatting
50113         * lib/mountlist.c (read_file_system_list): Split a long line,
50114         correct bracing style, use NULL in place of "(struct statfs *)0",
50115         don't parenthesize return value, add spaces around "=" and after
50116         ";-in-for-stmt".
50118 2011-01-14  Markus Duft  <mduft@gentoo.org>
50120         mountlist: add support for Interix
50121         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
50122         Apply statvfs to all entries of /dev/fs.
50123         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
50124         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
50126 2011-01-20  Jim Meyering  <meyering@redhat.com>
50128         maint.mk: improve the public-submodule-commit rule
50129         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
50130         to suppress printing of its commands... unless V=1.
50131         Add git submodule's --quiet option to suppress printing of e.g.,
50132         "Entering gnulib" output.
50133         "cd" into $(srcdir) before running git submodule.
50135 2011-01-20  Bruno Haible  <bruno@clisp.org>
50137         include_next: Fix bug introduced on 2011-01-18.
50138         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
50139         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
50140         ac_cv_header_... variable if the second argument is not 'check'.
50141         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
50142         gl_NEXT_HEADERS_INTERNAL.
50144 2011-01-20  Bruno Haible  <bruno@clisp.org>
50146         Allow the user to avoid the GNULIB_TEST_* macros.
50147         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
50148         Suggested by Paul Eggert.
50150 2011-01-14  Jim Meyering  <meyering@redhat.com>
50152         bootstrap: avoid failure when there is no .gitmodules file
50153         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
50154         has been assigned to, even when its value is the empty string.
50155         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
50156         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
50157         Reported by John W. Eaton <jwe@gnu.org>.
50159 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
50161         assume <ctype.h>, ..., <time.h> exist
50162         For years gnulib has been assuming the existence of the headers
50163         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
50164         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
50165         them, since they don't appear to be needed.
50166         * README (Portability guidelines): Document this.
50167         * lib/flock.c: Assume <fcntl.h> exists.
50168         * lib/regex_internal.h: Assume <locale.h> exists.
50169         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
50170         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
50171         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
50172         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
50173         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
50174         * m4/regex.m4 (gl_REGEX): Likewise.
50175         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
50176         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
50177         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
50178         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
50179         * tests/test-argp.c: Likewise.
50180         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
50182         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
50183         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
50184         AA_APPLE_UNIVERSAL_BUILD.  See
50185         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
50186         * NEWS: Document this.
50188 2011-01-19  Eric Blake  <eblake@redhat.com>
50190         c-stack: assume stack overflow if SA_SIGINFO unsupported
50191         * lib/c-stack.c (SIGACTION_WORKS): Rename...
50192         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
50193         sigaction will work.
50194         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
50195         behavior match Linux.
50196         * tests/test-c-stack.c (main): Prefer NULL for pointers.
50198         stdbool-tests: accommodate Haiku
50199         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
50201         binary-io: fix O_TEXT on Haiku
50202         * modules/binary-io (Depends-on): Add fcntl-h.
50203         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
50204         than blindly undefining O_TEXT.
50205         Reported by Scott McCreary.
50207 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
50209         include_next: do not check for standard headers like stddef.h
50211         I found this problem when modifying Emacs to use gnulib.
50212         I noticed that it added HAVE_STDDEF_H to config.h, even though
50213         gnulib always assumes <stddef.h> exists as per README and this
50214         symbol is unnecessary.
50215         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
50216         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
50217         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
50218         faster for headers like stddef.h that are known to exist.
50219         (gl_CHECK_NEXT_HEADERS): Use it.
50220         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
50221         rather than gl_CHECK_NEXT_HEADERS.
50222         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
50223         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
50225 2011-01-18  Eric Blake  <eblake@redhat.com>
50227         ansi-c++-opt: skip C++ dependency style if C++ is unused
50228         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
50229         tests when we know C++ compilation is not desired.
50230         Reported by Scott McCreary.
50232 2011-01-18  Bruno Haible  <bruno@clisp.org>
50234         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
50235         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
50236         (main): Perform test also when getrlimit and setrlimit don't exist or
50237         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
50238         limiting the address space size using setrlimit, compare the address
50239         space size before and after the test.
50240         * tests/test-dprintf-posix2.c: Likewise.
50241         * tests/test-fprintf-posix3.sh: Update skip messages.
50242         * tests/test-dprintf-posix2.sh: Likewise.
50243         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
50244         * modules/dprintf-posix-tests (Depends-on): Likewise.
50245         Reported by Bruce Korb <bkorb@gnu.org> and
50246         Gary V. Vaughan <gary@gnu.org>.
50248 2011-01-18  Bruno Haible  <bruno@clisp.org>
50250         get-rusage-as: Improvement for Cygwin.
50251         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
50252         areas that are merely reserved.
50254 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
50256         strftime: remove dependencies on multibyte modules
50258         strftime depended on mbrlen, mbsinit, and wchar, but these modules
50259         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
50260         only if __osf__ is defined, and I suspect OSF doesn't need these
50261         other modules.  If my guess is wrong, we'll need to come up with a
50262         variant of strftime that doesn't need the multibyte modules.
50264         I discovered this problem when attempting modify Emacs to use the
50265         strftime module.  With the previous gnulib, this caused Emacs to
50266         need 31 new files, ranging from lib/config.charset to
50267         m4/wint_t.m4.  This was overkill and I expect would be offputting
50268         to the Emacs maintainers.  After this change, only 6 new files are
50269         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
50270         stdbool.m4, and tm_gmtoff.m4.
50272         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
50273         Suggested by Bruno Haible in
50274         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
50275         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
50276         and do not check for wchar.h.
50277         * modules/strftime (Files): Remove m4/mbstate_t.m4.
50278         (Depends-on): Remove mbrlen, mbsinit, wchar.
50280 2011-01-18  Bruno Haible  <bruno@clisp.org>
50282         Tests for module 'get-rusage-as'.
50283         * modules/get-rusage-as-tests: New file.
50284         * tests/test-get-rusage-as.c: New file.
50286         New module 'get-rusage-as'.
50287         * modules/get-rusage-as: New file.
50288         * lib/resource-ext.h: New file.
50289         * lib/get-rusage-as.c: New file.
50291 2011-01-17  Eric Blake  <eblake@redhat.com>
50293         sigaction: relax license from LGPLv3+ to LGPLv2+
50294         * modules/sigaction (License): Relax to LGPLv2+.
50296 2011-01-14  Bruno Haible  <bruno@clisp.org>
50298         filemode: Make function declarations usable in C++ mode.
50299         * lib/filemode.h: Enclose function declarations in extern "C" block.
50300         Reported by John W. Eaton <jwe@gnu.org>.
50302 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
50304         save-cwd: no longer include "xgetcwd.h"
50305         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
50306         This avoids a compilation failure in projects that use save-cwd
50307         without also using the xgetcwd module.
50309 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
50311         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
50312         This is so that a program like Emacs, which needs only dtoastr,
50313         does not have to bother with distributing and compiling ftoastr
50314         and ldtoastr.
50315         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
50316         * modules/dtoastr, modules/ldtoastr: New files.
50317         * modules/ftoastr: Now works just for 'float'.
50318         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
50319         (Makefile.am): Remove ftoastr.h (not needed and no effect),
50320         dtoastr.c, ldtoastr.c.
50322 2011-01-11  Jim Meyering  <meyering@redhat.com>
50324         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
50325         There is no need to work around the lack of the fchdir function,
50326         since gnulib can now provide a replacement when required.
50327         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
50328         * modules/save-cwd (Depends-on): Add fchdir.
50330 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
50332         openat, save-cwd: avoid xmalloc
50334         This removes a direct (but undocumented) dependency of openat on
50335         xalloc, along with an indirect dependency via save-cwd.  It also
50336         removes a dependency of save-cwd on xgetcwd, and thereby
50337         indirectly on xalloc.  This change causes the openat substitute
50338         to fall back on save_cwd when memory is tight, and for save_cwd to
50339         fail instead of dying when memory is tight, but that's good enough.
50340         Problem and initial idea for fix reported by Bastien Roucaries in
50341         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
50343         * lib/openat-proc.c: Include stdlib.h (for malloc), not
50344         xalloc.h (for xmalloc).
50345         (openat_proc_name): Use malloc, not xmalloc.
50346         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
50347         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
50349         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
50350         This avoids heap allocation for file names whose lengths are in
50351         the range 512..1023, with the upper bound increasing to at most
50352         4031 depending on the platform's PATH_MAX.  (We do not want
50353         pathmax.h here as it might supply a non-constant PATH_MAX.)
50354         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
50355         Perhaps they should be moved to malloca.h?
50356         (OPENAT_BUFFER_SIZE): Use them.
50358 2011-01-10  Bruno Haible  <bruno@clisp.org>
50360         doc: Update users.txt.
50361         * users.txt: Add recutils.
50363 2011-01-09  Karl Berry  <karl@gnu.org>
50365         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
50367         * doc/configmake.texi: New file.
50368         * doc/gnulib.texi: Include it.
50369         * modules/configmake: Move documentation from here.
50371 2011-01-09  Bruno Haible  <bruno@clisp.org>
50373         Update to Unicode 6.0.0.
50374         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
50375         (get_lbp): Update for Unicode 6.0.0.
50376         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
50377         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
50378         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
50379         U+11001, U+11038..U+11046. Remove U+06DE.
50380         (uc_width): Fix bounds of planes.
50381         * tests/uniwidth/test-uc_width2.sh: Same updates as in
50382         lib/uniwidth/width.c.
50383         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
50384         trailing whitespace removed.
50385         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
50386         without comments, but with the original copyright notice.
50387         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
50388         * lib/unicase/ignorable.h: Likewise.
50389         * lib/unicase/tocasefold.h: Likewise.
50390         * lib/unicase/tolower.h: Likewise.
50391         * lib/unicase/totitle.h: Likewise.
50392         * lib/unicase/toupper.h: Likewise.
50393         * lib/unictype/bidi_of.h: Likewise.
50394         * lib/unictype/blocks.h: Likewise.
50395         * lib/unictype/categ_C.h: Likewise.
50396         * lib/unictype/categ_Cn.h: Likewise.
50397         * lib/unictype/categ_L.h: Likewise.
50398         * lib/unictype/categ_Ll.h: Likewise.
50399         * lib/unictype/categ_Lm.h: Likewise.
50400         * lib/unictype/categ_Lo.h: Likewise.
50401         * lib/unictype/categ_Lu.h: Likewise.
50402         * lib/unictype/categ_M.h: Likewise.
50403         * lib/unictype/categ_Mc.h: Likewise.
50404         * lib/unictype/categ_Me.h: Likewise.
50405         * lib/unictype/categ_Mn.h: Likewise.
50406         * lib/unictype/categ_N.h: Likewise.
50407         * lib/unictype/categ_Nd.h: Likewise.
50408         * lib/unictype/categ_No.h: Likewise.
50409         * lib/unictype/categ_P.h: Likewise.
50410         * lib/unictype/categ_Po.h: Likewise.
50411         * lib/unictype/categ_S.h: Likewise.
50412         * lib/unictype/categ_Sc.h: Likewise.
50413         * lib/unictype/categ_Sk.h: Likewise.
50414         * lib/unictype/categ_Sm.h: Likewise.
50415         * lib/unictype/categ_So.h: Likewise.
50416         * lib/unictype/categ_of.h: Likewise.
50417         * lib/unictype/combining.h: Likewise.
50418         * lib/unictype/ctype_alnum.h: Likewise.
50419         * lib/unictype/ctype_alpha.h: Likewise.
50420         * lib/unictype/ctype_graph.h: Likewise.
50421         * lib/unictype/ctype_lower.h: Likewise.
50422         * lib/unictype/ctype_print.h: Likewise.
50423         * lib/unictype/ctype_punct.h: Likewise.
50424         * lib/unictype/ctype_upper.h: Likewise.
50425         * lib/unictype/decdigit.h: Likewise.
50426         * lib/unictype/digit.h: Likewise.
50427         * lib/unictype/numeric.h: Likewise.
50428         * lib/unictype/pr_alphabetic.h: Likewise.
50429         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50430         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50431         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50432         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50433         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50434         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50435         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50436         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50437         * lib/unictype/pr_case_ignorable.h: Likewise.
50438         * lib/unictype/pr_cased.h: Likewise.
50439         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
50440         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
50441         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
50442         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
50443         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
50444         * lib/unictype/pr_combining.h: Likewise.
50445         * lib/unictype/pr_composite.h: Likewise.
50446         * lib/unictype/pr_currency_symbol.h: Likewise.
50447         * lib/unictype/pr_decimal_digit.h: Likewise.
50448         * lib/unictype/pr_deprecated.h: Likewise.
50449         * lib/unictype/pr_format_control.h: Likewise.
50450         * lib/unictype/pr_grapheme_base.h: Likewise.
50451         * lib/unictype/pr_grapheme_extend.h: Likewise.
50452         * lib/unictype/pr_grapheme_link.h: Likewise.
50453         * lib/unictype/pr_id_continue.h: Likewise.
50454         * lib/unictype/pr_id_start.h: Likewise.
50455         * lib/unictype/pr_ideographic.h: Likewise.
50456         * lib/unictype/pr_lowercase.h: Likewise.
50457         * lib/unictype/pr_math.h: Likewise.
50458         * lib/unictype/pr_numeric.h: Likewise.
50459         * lib/unictype/pr_other_alphabetic.h: Likewise.
50460         * lib/unictype/pr_other_id_continue.h: Likewise.
50461         * lib/unictype/pr_other_math.h: Likewise.
50462         * lib/unictype/pr_punctuation.h: Likewise.
50463         * lib/unictype/pr_sentence_terminal.h: Likewise.
50464         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50465         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50466         * lib/unictype/pr_unified_ideograph.h: Likewise.
50467         * lib/unictype/pr_uppercase.h: Likewise.
50468         * lib/unictype/pr_xid_continue.h: Likewise.
50469         * lib/unictype/pr_xid_start.h: Likewise.
50470         * lib/unictype/scripts.h: Likewise.
50471         * lib/unictype/scripts_byname.gperf: Likewise.
50472         * lib/unictype/sy_java_ident.h: Likewise.
50473         * lib/unigbrk/gbrkprop.h: Likewise.
50474         * lib/unilbrk/lbrkprop1.h: Likewise.
50475         * lib/unilbrk/lbrkprop2.h: Likewise.
50476         * lib/uninorm/decomposition-table2.h: Likewise.
50477         * lib/uniwbrk/wbrkprop.h: Likewise.
50478         * tests/unicase/test-cased.c: Likewise.
50479         * tests/unicase/test-ignorable.c: Likewise.
50480         * tests/unicase/test-uc_tolower.c: Likewise.
50481         * tests/unicase/test-uc_totitle.c: Likewise.
50482         * tests/unicase/test-uc_toupper.c: Likewise.
50483         * tests/unictype/test-categ_C.c: Likewise.
50484         * tests/unictype/test-categ_Cn.c: Likewise.
50485         * tests/unictype/test-categ_L.c: Likewise.
50486         * tests/unictype/test-categ_Ll.c: Likewise.
50487         * tests/unictype/test-categ_Lm.c: Likewise.
50488         * tests/unictype/test-categ_Lo.c: Likewise.
50489         * tests/unictype/test-categ_Lu.c: Likewise.
50490         * tests/unictype/test-categ_M.c: Likewise.
50491         * tests/unictype/test-categ_Mc.c: Likewise.
50492         * tests/unictype/test-categ_Me.c: Likewise.
50493         * tests/unictype/test-categ_Mn.c: Likewise.
50494         * tests/unictype/test-categ_N.c: Likewise.
50495         * tests/unictype/test-categ_Nd.c: Likewise.
50496         * tests/unictype/test-categ_No.c: Likewise.
50497         * tests/unictype/test-categ_P.c: Likewise.
50498         * tests/unictype/test-categ_Po.c: Likewise.
50499         * tests/unictype/test-categ_S.c: Likewise.
50500         * tests/unictype/test-categ_Sc.c: Likewise.
50501         * tests/unictype/test-categ_Sk.c: Likewise.
50502         * tests/unictype/test-categ_Sm.c: Likewise.
50503         * tests/unictype/test-categ_So.c: Likewise.
50504         * tests/unictype/test-ctype_alnum.c: Likewise.
50505         * tests/unictype/test-ctype_alpha.c: Likewise.
50506         * tests/unictype/test-ctype_graph.c: Likewise.
50507         * tests/unictype/test-ctype_lower.c: Likewise.
50508         * tests/unictype/test-ctype_print.c: Likewise.
50509         * tests/unictype/test-ctype_punct.c: Likewise.
50510         * tests/unictype/test-ctype_upper.c: Likewise.
50511         * tests/unictype/test-decdigit.h: Likewise.
50512         * tests/unictype/test-digit.h: Likewise.
50513         * tests/unictype/test-numeric.h: Likewise.
50514         * tests/unictype/test-pr_alphabetic.c: Likewise.
50515         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50516         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50517         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50518         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50519         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50520         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50521         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50522         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50523         * tests/unictype/test-pr_case_ignorable.c: Likewise.
50524         * tests/unictype/test-pr_cased.c: Likewise.
50525         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
50526         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
50527         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
50528         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
50529         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
50530         * tests/unictype/test-pr_combining.c: Likewise.
50531         * tests/unictype/test-pr_composite.c: Likewise.
50532         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50533         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50534         * tests/unictype/test-pr_deprecated.c: Likewise.
50535         * tests/unictype/test-pr_format_control.c: Likewise.
50536         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50537         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50538         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50539         * tests/unictype/test-pr_id_continue.c: Likewise.
50540         * tests/unictype/test-pr_id_start.c: Likewise.
50541         * tests/unictype/test-pr_ideographic.c: Likewise.
50542         * tests/unictype/test-pr_lowercase.c: Likewise.
50543         * tests/unictype/test-pr_math.c: Likewise.
50544         * tests/unictype/test-pr_numeric.c: Likewise.
50545         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50546         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50547         * tests/unictype/test-pr_other_math.c: Likewise.
50548         * tests/unictype/test-pr_punctuation.c: Likewise.
50549         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50550         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50551         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50552         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50553         * tests/unictype/test-pr_uppercase.c: Likewise.
50554         * tests/unictype/test-pr_xid_continue.c: Likewise.
50555         * tests/unictype/test-pr_xid_start.c: Likewise.
50556         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
50557         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
50558         changes.
50559         * lib/unictype/categ_Cc.h: Likewise.
50560         * lib/unictype/categ_Cf.h: Likewise.
50561         * lib/unictype/categ_Co.h: Likewise.
50562         * lib/unictype/categ_Cs.h: Likewise.
50563         * lib/unictype/categ_Lt.h: Likewise.
50564         * lib/unictype/categ_Nl.h: Likewise.
50565         * lib/unictype/categ_Pc.h: Likewise.
50566         * lib/unictype/categ_Pd.h: Likewise.
50567         * lib/unictype/categ_Pe.h: Likewise.
50568         * lib/unictype/categ_Pf.h: Likewise.
50569         * lib/unictype/categ_Pi.h: Likewise.
50570         * lib/unictype/categ_Ps.h: Likewise.
50571         * lib/unictype/categ_Z.h: Likewise.
50572         * lib/unictype/categ_Zl.h: Likewise.
50573         * lib/unictype/categ_Zp.h: Likewise.
50574         * lib/unictype/categ_Zs.h: Likewise.
50575         * lib/unictype/ctype_blank.h: Likewise.
50576         * lib/unictype/ctype_cntrl.h: Likewise.
50577         * lib/unictype/ctype_digit.h: Likewise.
50578         * lib/unictype/ctype_space.h: Likewise.
50579         * lib/unictype/ctype_xdigit.h: Likewise.
50580         * lib/unictype/mirror.h: Likewise.
50581         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50582         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50583         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50584         * lib/unictype/pr_bidi_control.h: Likewise.
50585         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50586         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50587         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50588         * lib/unictype/pr_bidi_pdf.h: Likewise.
50589         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50590         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50591         * lib/unictype/pr_dash.h: Likewise.
50592         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50593         * lib/unictype/pr_diacritic.h: Likewise.
50594         * lib/unictype/pr_extender.h: Likewise.
50595         * lib/unictype/pr_hex_digit.h: Likewise.
50596         * lib/unictype/pr_hyphen.h: Likewise.
50597         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50598         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50599         * lib/unictype/pr_ignorable_control.h: Likewise.
50600         * lib/unictype/pr_iso_control.h: Likewise.
50601         * lib/unictype/pr_join_control.h: Likewise.
50602         * lib/unictype/pr_left_of_pair.h: Likewise.
50603         * lib/unictype/pr_line_separator.h: Likewise.
50604         * lib/unictype/pr_logical_order_exception.h: Likewise.
50605         * lib/unictype/pr_non_break.h: Likewise.
50606         * lib/unictype/pr_not_a_character.h: Likewise.
50607         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50608         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50609         * lib/unictype/pr_other_id_start.h: Likewise.
50610         * lib/unictype/pr_other_lowercase.h: Likewise.
50611         * lib/unictype/pr_other_uppercase.h: Likewise.
50612         * lib/unictype/pr_paired_punctuation.h: Likewise.
50613         * lib/unictype/pr_paragraph_separator.h: Likewise.
50614         * lib/unictype/pr_pattern_syntax.h: Likewise.
50615         * lib/unictype/pr_pattern_white_space.h: Likewise.
50616         * lib/unictype/pr_private_use.h: Likewise.
50617         * lib/unictype/pr_quotation_mark.h: Likewise.
50618         * lib/unictype/pr_radical.h: Likewise.
50619         * lib/unictype/pr_soft_dotted.h: Likewise.
50620         * lib/unictype/pr_space.h: Likewise.
50621         * lib/unictype/pr_titlecase.h: Likewise.
50622         * lib/unictype/pr_variation_selector.h: Likewise.
50623         * lib/unictype/pr_white_space.h: Likewise.
50624         * lib/unictype/pr_zero_width.h: Likewise.
50625         * lib/unictype/sy_c_ident.h: Likewise.
50626         * lib/unictype/sy_c_whitespace.h: Likewise.
50627         * lib/unictype/sy_java_whitespace.h: Likewise.
50628         * lib/uninorm/composition-table.gperf: Likewise.
50629         * lib/uninorm/decomposition-table1.h: Likewise.
50630         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
50631         LB8.
50632         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50633         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50634         * modules/unictype/*: Bump version number of expected libunistring
50635         version.
50637 2011-01-09  Bruno Haible  <bruno@clisp.org>
50639         Update to Unicode 5.2.0.
50640         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
50641         trailing whitespace removed.
50643 2011-01-09  Bruno Haible  <bruno@clisp.org>
50645         New Unicode character properties, from Unicode 5.2.0.
50646         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
50647         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
50648         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
50649         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
50650         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
50651         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
50652         uc_is_property_cased, uc_is_property_case_ignorable,
50653         uc_is_property_changes_when_lowercased,
50654         uc_is_property_changes_when_uppercased,
50655         uc_is_property_changes_when_titlecased,
50656         uc_is_property_changes_when_casefolded,
50657         uc_is_property_changes_when_casemapped): New declarations.
50658         * lib/unictype/pr_byname.gperf: Add the new properties.
50659         * modules/unictype/property-byname (Depends-on): Depend on the new
50660         properties modules.
50661         * modules/unictype/property-all (Depends-on): Likewise.
50662         * MODULES.html.sh (Unicode string functions): Add
50663         unictype/property-case-ignorable, unictype/property-cased,
50664         unictype/property-changes-when-casefolded,
50665         unictype/property-changes-when-casemapped,
50666         unictype/property-changes-when-lowercased,
50667         unictype/property-changes-when-titlecased,
50668         unictype/property-changes-when-uppercased.
50670         New module 'unictype/property-changes-when-casemapped'.
50671         * modules/unictype/property-changes-when-casemapped: New file.
50672         * lib/unictype/pr_changes_when_casemapped.c: New file.
50673         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
50674         generated by gen-uni-tables.
50675         * modules/unictype/property-changes-when-casemapped-tests: New file.
50676         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
50677         automatically generated by gen-uni-tables.
50679         New module 'unictype/property-changes-when-casefolded'.
50680         * modules/unictype/property-changes-when-casefolded: New file.
50681         * lib/unictype/pr_changes_when_casefolded.c: New file.
50682         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
50683         generated by gen-uni-tables.
50684         * modules/unictype/property-changes-when-casefolded-tests: New file.
50685         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
50686         automatically generated by gen-uni-tables.
50688         New module 'unictype/property-changes-when-titlecased'.
50689         * modules/unictype/property-changes-when-titlecased: New file.
50690         * lib/unictype/pr_changes_when_titlecased.c: New file.
50691         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
50692         generated by gen-uni-tables.
50693         * modules/unictype/property-changes-when-titlecased-tests: New file.
50694         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
50695         automatically generated by gen-uni-tables.
50697         New module 'unictype/property-changes-when-uppercased'.
50698         * modules/unictype/property-changes-when-uppercased: New file.
50699         * lib/unictype/pr_changes_when_uppercased.c: New file.
50700         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
50701         generated by gen-uni-tables.
50702         * modules/unictype/property-changes-when-uppercased-tests: New file.
50703         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
50704         automatically generated by gen-uni-tables.
50706         New module 'unictype/property-changes-when-lowercased'.
50707         * modules/unictype/property-changes-when-lowercased: New file.
50708         * lib/unictype/pr_changes_when_lowercased.c: New file.
50709         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
50710         generated by gen-uni-tables.
50711         * modules/unictype/property-changes-when-lowercased-tests: New file.
50712         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
50713         automatically generated by gen-uni-tables.
50715         New module 'unictype/property-case-ignorable'.
50716         * modules/unictype/property-case-ignorable: New file.
50717         * lib/unictype/pr_case_ignorable.c: New file.
50718         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
50719         by gen-uni-tables.
50720         * modules/unictype/property-case-ignorable-tests: New file.
50721         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
50722         generated by gen-uni-tables.
50724         New module 'unictype/property-cased'.
50725         * modules/unictype/property-cased: New file.
50726         * lib/unictype/pr_cased.c: New file.
50727         * lib/unictype/pr_cased.h: New file, automatically generated by
50728         gen-uni-tables.
50729         * modules/unictype/property-cased-tests: New file.
50730         * tests/unictype/test-pr_cased.c: New file, automatically generated by
50731         gen-uni-tables.
50733 2011-01-09  Bruno Haible  <bruno@clisp.org>
50735         Update to Unicode 5.2.0.
50736         * lib/gen-uni-tables.c (output_predicate, output_category,
50737         output_combclass, output_bidi_category, output_decimal_digit_test,
50738         output_decimal_digit, output_digit_test, output_digit,
50739         output_numeric_test, output_numeric, output_mirror, output_scripts,
50740         output_scripts_byname, output_blocks, output_ident_category): Fix
50741         comment header.
50742         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
50743         get_wbp.
50744         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
50745         items.
50746         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
50747         Changes_When_Lowercased, Changes_When_Uppercased,
50748         Changes_When_Titlecased, Changes_When_Casefolded,
50749         Changes_When_Casemapped.
50750         (is_property_alphabetic, is_property_default_ignorable_code_point):
50751         Update for Unicode 5.2.0.
50752         (is_property_cased, is_property_case_ignorable,
50753         is_property_changes_when_lowercased,
50754         is_property_changes_when_uppercased,
50755         is_property_changes_when_titlecased,
50756         is_property_changes_when_casefolded,
50757         is_property_changes_when_casemapped): New functions.
50758         (output_properties): Output also the properties cased, case_ignorable,
50759         changes_when_lowercased, changes_when_uppercased,
50760         changes_when_titlecased, changes_when_casefolded,
50761         changes_when_casemapped.
50762         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
50763         Unicode TR#11 revision 17 -> 19.
50764         (LBP_CP): New enumeration value.
50765         (LBP_*): Adjust values accordingly.
50766         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
50767         TR#14 revision 22 -> 24.
50768         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
50769         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
50770         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
50771         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
50772         is_WBP_MIDLETTER.
50773         (output_composition_tables): Allow for 24 bits instead of 16 bits in
50774         the code1 and code2 of each composition rule.
50775         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
50776         * lib/unicase/ignorable.h: Likewise.
50777         * lib/unicase/tocasefold.h: Likewise.
50778         * lib/unicase/tolower.h: Likewise.
50779         * lib/unicase/totitle.h: Likewise.
50780         * lib/unicase/toupper.h: Likewise.
50781         * lib/unictype/bidi_of.h: Likewise.
50782         * lib/unictype/blocks.h: Likewise.
50783         * lib/unictype/categ_C.h: Likewise.
50784         * lib/unictype/categ_Cf.h: Likewise.
50785         * lib/unictype/categ_Cn.h: Likewise.
50786         * lib/unictype/categ_L.h: Likewise.
50787         * lib/unictype/categ_Ll.h: Likewise.
50788         * lib/unictype/categ_Lm.h: Likewise.
50789         * lib/unictype/categ_Lo.h: Likewise.
50790         * lib/unictype/categ_Lu.h: Likewise.
50791         * lib/unictype/categ_M.h: Likewise.
50792         * lib/unictype/categ_Mc.h: Likewise.
50793         * lib/unictype/categ_Mn.h: Likewise.
50794         * lib/unictype/categ_N.h: Likewise.
50795         * lib/unictype/categ_Nd.h: Likewise.
50796         * lib/unictype/categ_Nl.h: Likewise.
50797         * lib/unictype/categ_No.h: Likewise.
50798         * lib/unictype/categ_P.h: Likewise.
50799         * lib/unictype/categ_Pd.h: Likewise.
50800         * lib/unictype/categ_Po.h: Likewise.
50801         * lib/unictype/categ_S.h: Likewise.
50802         * lib/unictype/categ_Sc.h: Likewise.
50803         * lib/unictype/categ_So.h: Likewise.
50804         * lib/unictype/categ_of.h: Likewise.
50805         * lib/unictype/combining.h: Likewise.
50806         * lib/unictype/ctype_alnum.h: Likewise.
50807         * lib/unictype/ctype_alpha.h: Likewise.
50808         * lib/unictype/ctype_graph.h: Likewise.
50809         * lib/unictype/ctype_lower.h: Likewise.
50810         * lib/unictype/ctype_print.h: Likewise.
50811         * lib/unictype/ctype_punct.h: Likewise.
50812         * lib/unictype/ctype_upper.h: Likewise.
50813         * lib/unictype/decdigit.h: Likewise.
50814         * lib/unictype/digit.h: Likewise.
50815         * lib/unictype/numeric.h: Likewise.
50816         * lib/unictype/pr_alphabetic.h: Likewise.
50817         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50818         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50819         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50820         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50821         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50822         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50823         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50824         * lib/unictype/pr_combining.h: Likewise.
50825         * lib/unictype/pr_composite.h: Likewise.
50826         * lib/unictype/pr_currency_symbol.h: Likewise.
50827         * lib/unictype/pr_dash.h: Likewise.
50828         * lib/unictype/pr_decimal_digit.h: Likewise.
50829         * lib/unictype/pr_deprecated.h: Likewise.
50830         * lib/unictype/pr_diacritic.h: Likewise.
50831         * lib/unictype/pr_extender.h: Likewise.
50832         * lib/unictype/pr_grapheme_base.h: Likewise.
50833         * lib/unictype/pr_grapheme_extend.h: Likewise.
50834         * lib/unictype/pr_grapheme_link.h: Likewise.
50835         * lib/unictype/pr_id_continue.h: Likewise.
50836         * lib/unictype/pr_id_start.h: Likewise.
50837         * lib/unictype/pr_ideographic.h: Likewise.
50838         * lib/unictype/pr_ignorable_control.h: Likewise.
50839         * lib/unictype/pr_logical_order_exception.h: Likewise.
50840         * lib/unictype/pr_lowercase.h: Likewise.
50841         * lib/unictype/pr_numeric.h: Likewise.
50842         * lib/unictype/pr_other_alphabetic.h: Likewise.
50843         * lib/unictype/pr_punctuation.h: Likewise.
50844         * lib/unictype/pr_sentence_terminal.h: Likewise.
50845         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50846         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50847         * lib/unictype/pr_unified_ideograph.h: Likewise.
50848         * lib/unictype/pr_uppercase.h: Likewise.
50849         * lib/unictype/pr_xid_continue.h: Likewise.
50850         * lib/unictype/pr_xid_start.h: Likewise.
50851         * lib/unictype/pr_zero_width.h: Likewise.
50852         * lib/unictype/scripts.h: Likewise.
50853         * lib/unictype/scripts_byname.gperf: Likewise.
50854         * lib/unictype/sy_java_ident.h: Likewise.
50855         * lib/unigbrk/gbrkprop.h: Likewise.
50856         * lib/unilbrk/lbrkprop1.h: Likewise.
50857         * lib/unilbrk/lbrkprop2.h: Likewise.
50858         * lib/unilbrk/lbrktables.h: Likewise.
50859         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
50860         LBP_CP. Implement rule LB30.
50861         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
50862         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
50863         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
50864         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
50865         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
50866         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
50867         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
50868         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
50869         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
50870         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
50871         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
50872         bits instead of 16 bits in the code1 and code2 of each composition
50873         rule.
50874         (uc_composition): Update for Unicode 5.2.0.
50875         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
50876         * lib/uninorm/decomposition-table2.h: Likewise.
50877         * lib/uniwbrk/wbrkprop.h: Likewise.
50878         * tests/unicase/test-cased.c: Likewise.
50879         * tests/unicase/test-ignorable.c: Likewise.
50880         * tests/unicase/test-uc_tolower.c: Likewise.
50881         * tests/unicase/test-uc_totitle.c: Likewise.
50882         * tests/unicase/test-uc_toupper.c: Likewise.
50883         * tests/unictype/test-categ_C.c: Likewise.
50884         * tests/unictype/test-categ_Cf.c: Likewise.
50885         * tests/unictype/test-categ_Cn.c: Likewise.
50886         * tests/unictype/test-categ_L.c: Likewise.
50887         * tests/unictype/test-categ_Ll.c: Likewise.
50888         * tests/unictype/test-categ_Lm.c: Likewise.
50889         * tests/unictype/test-categ_Lo.c: Likewise.
50890         * tests/unictype/test-categ_Lu.c: Likewise.
50891         * tests/unictype/test-categ_M.c: Likewise.
50892         * tests/unictype/test-categ_Mc.c: Likewise.
50893         * tests/unictype/test-categ_Mn.c: Likewise.
50894         * tests/unictype/test-categ_N.c: Likewise.
50895         * tests/unictype/test-categ_Nd.c: Likewise.
50896         * tests/unictype/test-categ_Nl.c: Likewise.
50897         * tests/unictype/test-categ_No.c: Likewise.
50898         * tests/unictype/test-categ_P.c: Likewise.
50899         * tests/unictype/test-categ_Pd.c: Likewise.
50900         * tests/unictype/test-categ_Po.c: Likewise.
50901         * tests/unictype/test-categ_S.c: Likewise.
50902         * tests/unictype/test-categ_Sc.c: Likewise.
50903         * tests/unictype/test-categ_So.c: Likewise.
50904         * tests/unictype/test-ctype_alnum.c: Likewise.
50905         * tests/unictype/test-ctype_alpha.c: Likewise.
50906         * tests/unictype/test-ctype_graph.c: Likewise.
50907         * tests/unictype/test-ctype_lower.c: Likewise.
50908         * tests/unictype/test-ctype_print.c: Likewise.
50909         * tests/unictype/test-ctype_punct.c: Likewise.
50910         * tests/unictype/test-ctype_upper.c: Likewise.
50911         * tests/unictype/test-decdigit.h: Likewise.
50912         * tests/unictype/test-digit.h: Likewise.
50913         * tests/unictype/test-numeric.h: Likewise.
50914         * tests/unictype/test-pr_alphabetic.c: Likewise.
50915         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50916         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50917         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50918         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50919         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50920         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50921         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50922         * tests/unictype/test-pr_combining.c: Likewise.
50923         * tests/unictype/test-pr_composite.c: Likewise.
50924         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50925         * tests/unictype/test-pr_dash.c: Likewise.
50926         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50927         * tests/unictype/test-pr_deprecated.c: Likewise.
50928         * tests/unictype/test-pr_diacritic.c: Likewise.
50929         * tests/unictype/test-pr_extender.c: Likewise.
50930         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50931         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50932         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50933         * tests/unictype/test-pr_id_continue.c: Likewise.
50934         * tests/unictype/test-pr_id_start.c: Likewise.
50935         * tests/unictype/test-pr_ideographic.c: Likewise.
50936         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50937         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50938         * tests/unictype/test-pr_lowercase.c: Likewise.
50939         * tests/unictype/test-pr_numeric.c: Likewise.
50940         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50941         * tests/unictype/test-pr_punctuation.c: Likewise.
50942         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50943         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50944         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50945         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50946         * tests/unictype/test-pr_uppercase.c: Likewise.
50947         * tests/unictype/test-pr_xid_continue.c: Likewise.
50948         * tests/unictype/test-pr_xid_start.c: Likewise.
50949         * tests/unictype/test-pr_zero_width.c: Likewise.
50950         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
50951         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
50952         changed behaviour: line breaking is now disallowed between a letter
50953         or '=' and '('.
50954         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50955         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50956         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50957         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
50958         * tests/uniwidth/test-uc_width2.sh: Same updates as in
50959         lib/uniwidth/width.c.
50960         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
50961         without comments, but with the original copyright notice.
50962         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
50963         changes.
50964         * lib/unictype/categ_Cc.h: Likewise.
50965         * lib/unictype/categ_Co.h: Likewise.
50966         * lib/unictype/categ_Cs.h: Likewise.
50967         * lib/unictype/categ_Lt.h: Likewise.
50968         * lib/unictype/categ_Me.h: Likewise.
50969         * lib/unictype/categ_Pc.h: Likewise.
50970         * lib/unictype/categ_Pe.h: Likewise.
50971         * lib/unictype/categ_Pf.h: Likewise.
50972         * lib/unictype/categ_Pi.h: Likewise.
50973         * lib/unictype/categ_Ps.h: Likewise.
50974         * lib/unictype/categ_Sk.h: Likewise.
50975         * lib/unictype/categ_Sm.h: Likewise.
50976         * lib/unictype/categ_Z.h: Likewise.
50977         * lib/unictype/categ_Zl.h: Likewise.
50978         * lib/unictype/categ_Zp.h: Likewise.
50979         * lib/unictype/categ_Zs.h: Likewise.
50980         * lib/unictype/ctype_blank.h: Likewise.
50981         * lib/unictype/ctype_cntrl.h: Likewise.
50982         * lib/unictype/ctype_digit.h: Likewise.
50983         * lib/unictype/ctype_space.h: Likewise.
50984         * lib/unictype/ctype_xdigit.h: Likewise.
50985         * lib/unictype/mirror.h: Likewise.
50986         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50987         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50988         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50989         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50990         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50991         * lib/unictype/pr_bidi_control.h: Likewise.
50992         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50993         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50994         * lib/unictype/pr_bidi_pdf.h: Likewise.
50995         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50996         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50997         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50998         * lib/unictype/pr_format_control.h: Likewise.
50999         * lib/unictype/pr_hex_digit.h: Likewise.
51000         * lib/unictype/pr_hyphen.h: Likewise.
51001         * lib/unictype/pr_ids_binary_operator.h: Likewise.
51002         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
51003         * lib/unictype/pr_iso_control.h: Likewise.
51004         * lib/unictype/pr_join_control.h: Likewise.
51005         * lib/unictype/pr_left_of_pair.h: Likewise.
51006         * lib/unictype/pr_line_separator.h: Likewise.
51007         * lib/unictype/pr_math.h: Likewise.
51008         * lib/unictype/pr_non_break.h: Likewise.
51009         * lib/unictype/pr_not_a_character.h: Likewise.
51010         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
51011         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
51012         * lib/unictype/pr_other_id_continue.h: Likewise.
51013         * lib/unictype/pr_other_id_start.h: Likewise.
51014         * lib/unictype/pr_other_lowercase.h: Likewise.
51015         * lib/unictype/pr_other_math.h: Likewise.
51016         * lib/unictype/pr_other_uppercase.h: Likewise.
51017         * lib/unictype/pr_paired_punctuation.h: Likewise.
51018         * lib/unictype/pr_paragraph_separator.h: Likewise.
51019         * lib/unictype/pr_pattern_syntax.h: Likewise.
51020         * lib/unictype/pr_pattern_white_space.h: Likewise.
51021         * lib/unictype/pr_private_use.h: Likewise.
51022         * lib/unictype/pr_quotation_mark.h: Likewise.
51023         * lib/unictype/pr_radical.h: Likewise.
51024         * lib/unictype/pr_soft_dotted.h: Likewise.
51025         * lib/unictype/pr_space.h: Likewise.
51026         * lib/unictype/pr_titlecase.h: Likewise.
51027         * lib/unictype/pr_variation_selector.h: Likewise.
51028         * lib/unictype/pr_white_space.h: Likewise.
51029         * lib/unictype/sy_c_ident.h: Likewise.
51030         * lib/unictype/sy_c_whitespace.h: Likewise.
51031         * lib/unictype/sy_java_whitespace.h: Likewise.
51032         * modules/uni*/*: Bump version number of expected libunistring version.
51033         Reported by Simon Josefsson.
51035 2011-01-09  Karl Heuer  <kwzh@gnu.org>
51037         useless-if-before-free: fix typo in --help and make the internal,
51038         automatic version date update process work once again.
51039         --help output contained a NUL character instead of the
51040         backslash-zero that was intended.  Also, the "must lie within
51041         the first 8 lines" line is on line 9, and hence not getting
51042         automatically updated.
51043         * build-aux/useless-if-before-free: Fix the former by adding a
51044         backslash, and the latter by condensing the three lines of what-it-does
51045         to a single line, leaving one line of slack for the future.
51047 2011-01-09  Bruno Haible  <bruno@clisp.org>
51049         uniwidth/width: Fix width of U+1D173..U+1D17A.
51050         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
51051         symbolic_width, output_width_property_test): New functions.
51052         (main): Invoke output_nonspacing_property, output_width_property_test.
51053         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
51054         U+1D173..U+1D17A.
51055         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
51056         1.
51057         * modules/uniwidth/*: Bump version number of expected libunistring
51058         version.
51059         * modules/unilbrk/*: Likewise.
51061 2011-01-08  Bruno Haible  <bruno@clisp.org>
51063         uninorm tests: Preserve copyright of Unicode data file.
51064         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
51065         Mention modifications.
51067 2011-01-08  Bruno Haible  <bruno@clisp.org>
51069         gen-uni-tables: Prepare for Unicode 5.2.0.
51070         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
51071         (debug_output_lbp, output_lbp): Update.
51073 2011-01-08  Bruno Haible  <bruno@clisp.org>
51075         unilbrk: Clarify gen-uni-tables.c code.
51076         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
51077         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
51078         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
51080 2011-01-07  Bruno Haible  <bruno@clisp.org>
51082         strtod: Restore errno when successfully parsing Infinity or NaN.
51083         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
51084         restore the original errno.
51086 2011-01-07  Bruno Haible  <bruno@clisp.org>
51088         remove test: Avoid failure on HP-UX 11.
51089         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
51091 2011-01-07  Bruno Haible  <bruno@clisp.org>
51093         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
51094         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
51095         error code.
51097 2011-01-07  Pádraig Brady  <P@draigBrady.com>
51099         ignore-value: fixup comments, and add Eric Blake
51100         as an author since he rewrote the macros.
51101         * lib/ignore-value.h (ignore_value):  State that
51102         we now support aggregates.  Also specify exactly
51103         when the GCC warn_unused_result feature was added.
51105 2011-01-06  Eric Blake  <eblake@redhat.com>
51107         ignore-value: support aggregate types
51108         * lib/ignore-value.h (ignore_value): Provide separate gcc
51109         definition.
51110         * modules/ignore-value-tests: New test module.
51111         * tests/test-ignore-value.c: New test.
51113         maint.mk: improve sc_prohibit_strcmp regex
51114         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
51115         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
51116         definition of STRNEQ.
51118         signal: work around Haiku issue with SIGBUS
51119         * lib/siglist.h: Add comment.
51120         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
51121         strsignal's favoring of SIGSEGV.
51122         * tests/test-signal.c (main): Avoid test failure.
51123         * doc/posix-headers/signal.texi (signal.h): Document the issue.
51124         Reported by Scott McCreary.
51126         maint.mk: add pre-release check to ensure submodule commits are public
51127         * top/maint.mk (public-submodule-commit): New rule.
51128         (submodule-checks): New variable.
51129         (alpha beta stable): Depend on the variable.
51131 2011-01-05  Pádraig Brady  <P@draigBrady.com>
51132         and Jim Meyering  <meyering@redhat.com>
51134         ignore-value: make ignore_value more generic; deprecate ignore_ptr
51135         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
51136         (ATTRIBUTE_DEPRECATED): Define.
51137         (_ignore_case): New function.
51138         (ignore_value): New macro, to replace the old function.
51139         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
51140         * modules/ignore-value (Depends-on): Add stdint.
51142 2011-01-04  Eric Blake  <eblake@redhat.com>
51144         doc: regenerate INSTALL
51145         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
51146         @firstparagraphindent support, now that autoconf dropped it.
51147         (INSTALL_PRELUDE): Reinstate old macro.
51148         * doc/install.texi: Resync from autoconf.
51149         * doc/INSTALL: Reflect recent autoconf update.
51150         * doc/INSTALL.ISO: Likewise.
51151         * doc/INSTALL.UTF-8: Likewise.
51152         Reported by Karl Berry.
51154 2011-01-04  Bruce Korb  <address@hidden>
51156         git-version-gen: avoid a sub-shell
51157         * build-aux/git-version-gen: Redirect stderr in `...` via
51158         "exec 2>...", rather than via an added sub-shell.
51160 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
51162         git-version-gen: use (...) rather than sh -c '...'
51163         * build-aux/git-version-gen: Rather than hard-coding a shell's name
51164         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
51166 2011-01-03  Jim Meyering  <meyering@redhat.com>
51168         git-version-gen: convert leading TABs to spaces
51169         * build-aux/git-version-gen: Expand leading TABs.
51171         git-version-gen: handle failed "git rev-list"
51172         * build-aux/git-version-gen: Rather than leaking a "fatal" error
51173         from git and proceeding as if it had succeeded but printed no SHA1
51174         checksums, suppress the diagnostic and handle the failure.
51175         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
51177         git-version-gen: include command name in one more diagnostic
51178         * build-aux/git-version-gen: When the required .tarball-version file
51179         was missing or unreadable, you might see the diagnostic from "cat",
51180         but no trace of the name of the invoking script.  Now, you still see
51181         the diagnostic from cat, but also get one from "git-version-gen: ".
51182         Inspired by a patch from Bruce Korb.
51184         update-copyright: adjust test to match changed code
51185         * tests/test-update-copyright.sh: Change test's expected output
51186         to match new actual output.
51188 2011-01-02  Bruno Haible  <bruno@clisp.org>
51190         getlogin_r: Avoid test failure on HP-UX 11.
51191         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
51192         ERANGE when the second argument is zero.
51193         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
51194         portability problem.
51196 2011-01-02  Bruce Korb  <bkorb@gnu.org>
51198         * build-aux/update-copyright: doc Simon's changes
51200 2011-01-02  Simon Josefsson  <simon@josefsson.org>
51202         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
51203         environment variable.
51205 2011-01-02  Bruno Haible  <bruno@clisp.org>
51207         unigbrk: Avoid gcc warnings.
51208         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
51209         unused variable.
51210         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
51211         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
51212         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
51213         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
51214         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
51215         Change type of first argument to 'const char *'.
51216         (main): Remove unused variable.
51217         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
51218         type of first argument to 'const char *'.
51219         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
51220         Likewise.
51221         (main): Change type of variable 's'.
51222         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
51223         to 'int'.
51225 2011-01-02  Bruno Haible  <bruno@clisp.org>
51227         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
51228         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
51229         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
51230         bug.
51231         * lib/pwrite.c: Undo 2010-12-31 patch.
51232         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
51234 2011-01-02  Bruno Haible  <bruno@clisp.org>
51236         pread: Fix test whether it works.
51237         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
51239 2011-01-02  Bruno Haible  <bruno@clisp.org>
51241         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
51242         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
51243         ends in "6". Don't require a specific month name. Try also the locale
51244         names found on HP-UX 11 and Solaris 7.
51246 2011-01-02  Bruno Haible  <bruno@clisp.org>
51248         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
51249         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
51250         C linkage.
51251         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
51253 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
51255         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
51256         for consistency, since the "cluster" term is not used elsewhere.
51257         * lib/unigbrk.in.h: Update name.
51258         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
51259         * lib/unigbrk/u16-grapheme-next.c: Update name.
51260         * lib/unigbrk/u16-grapheme-prev.c: Update name.
51261         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
51262         * lib/unigbrk/u32-grapheme-next.c: Update name.
51263         * lib/unigbrk/u32-grapheme-prev.c: Update name.
51264         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
51265         * lib/unigbrk/u8-grapheme-next.c: Update name.
51266         * lib/unigbrk/u8-grapheme-prev.c: Update name.
51267         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
51268         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
51269         Suggested by Bruno Haible.
51271 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
51273         Remove module 'u8-grapheme-len' as too redundant with
51274         'u8-grapheme-next'.
51275         * modules/unigbrk/u8-grapheme-len: Delete file.
51276         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
51277         * lib/unigbrk.in.h: Remove prototype for deleted function.
51278         * lib/unigbrk/u8-grapheme-len.c: Delete file.
51279         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
51281         Remove module 'u16-grapheme-len' as too redundant with
51282         'u16-grapheme-next'.
51283         * modules/unigbrk/u16-grapheme-len: Delete file.
51284         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
51285         * lib/unigbrk.in.h: Remove prototype for deleted function.
51286         * lib/unigbrk/u16-grapheme-len.c: Delete file.
51287         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
51289         Remove module 'u32-grapheme-len' as too redundant with
51290         'u32-grapheme-next'.
51291         * modules/unigbrk/u32-grapheme-len: Delete file.
51292         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
51293         * lib/unigbrk.in.h: Remove prototype for deleted function.
51294         * lib/unigbrk/u32-grapheme-len.c: Delete file.
51295         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
51297         Suggested by Bruno Haible.
51299 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
51301         * unigbrk.in.h: Fix typo: "ben" => "been".
51302         Reported by Bruno Haible.
51304 2011-01-01  Jim Meyering  <meyering@redhat.com>
51306         maint: update almost all copyright ranges to include 2011
51307         Run the new "make update-copyright" rule.
51309 2011-01-01  Jim Meyering  <meyering@redhat.com>
51311         maint: update-copyright: exempt doc/INSTALL*
51312         * Makefile (update-copyright): Also exclude doc/INSTALL*,
51313         since they are generated.  Suggested by Bruno Haible.
51315 2011-01-01  Jim Meyering  <meyering@redhat.com>
51317         maint: refine the update-copyright rule
51318         * Makefile (update-copyright): Also exclude any file that includes
51319         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
51320         code that merely generates the comment.
51322 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
51324         New module 'u8-grapheme-len'.
51325         * modules/unigbrk/u8-grapheme-len: New file.
51326         * modules/unigbrk/u8-grapheme-len-tests: New file.
51327         * lib/unigbrk.in.h: Add prototype for new function.
51328         * lib/unigbrk/u8-grapheme-len.c: New file.
51329         * tests/unigbrk/test-u8-grapheme-len.c: New file.
51331         New module 'u16-grapheme-len'.
51332         * modules/unigbrk/u16-grapheme-len: New file.
51333         * modules/unigbrk/u16-grapheme-len-tests: New file.
51334         * lib/unigbrk.in.h: Add prototype for new function.
51335         * lib/unigbrk/u16-grapheme-len.c: New file.
51336         * tests/unigbrk/test-u16-grapheme-len.c: New file.
51338         New module 'u32-grapheme-len'.
51339         * modules/unigbrk/u32-grapheme-len: New file.
51340         * modules/unigbrk/u32-grapheme-len-tests: New file.
51341         * lib/unigbrk.in.h: Add prototype for new function.
51342         * lib/unigbrk/u32-grapheme-len.c: New file.
51343         * tests/unigbrk/test-u32-grapheme-len.c: New file.
51345         New module 'u8-grapheme-next'.
51346         * modules/unigbrk/u8-grapheme-next: New file.
51347         * modules/unigbrk/u8-grapheme-next-tests: New file.
51348         * lib/unigbrk.in.h: Add prototype for new function.
51349         * lib/unigbrk/u8-grapheme-next.c: New file.
51350         * tests/unigbrk/test-u8-grapheme-next.c: New file.
51352         New module 'u16-grapheme-next'.
51353         * modules/unigbrk/u16-grapheme-next: New file.
51354         * modules/unigbrk/u16-grapheme-next-tests: New file.
51355         * lib/unigbrk.in.h: Add prototype for new function.
51356         * lib/unigbrk/u16-grapheme-next.c: New file.
51357         * tests/unigbrk/test-u16-grapheme-next.c: New file.
51359         New module 'u32-grapheme-next'.
51360         * modules/unigbrk/u32-grapheme-next: New file.
51361         * modules/unigbrk/u32-grapheme-next-tests: New file.
51362         * lib/unigbrk.in.h: Add prototype for new function.
51363         * lib/unigbrk/u32-grapheme-next.c: New file.
51364         * tests/unigbrk/test-u32-grapheme-next.c: New file.
51366         New module 'u8-grapheme-prev'.
51367         * modules/unigbrk/u8-grapheme-prev: New file.
51368         * modules/unigbrk/u8-grapheme-prev-tests: New file.
51369         * lib/unigbrk.in.h: Add prototype for new function.
51370         * lib/unigbrk/u8-grapheme-prev.c: New file.
51371         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
51373         New module 'u16-grapheme-prev'.
51374         * modules/unigbrk/u16-grapheme-prev: New file.
51375         * modules/unigbrk/u16-grapheme-prev-tests: New file.
51376         * lib/unigbrk.in.h: Add prototype for new function.
51377         * lib/unigbrk/u16-grapheme-prev.c: New file.
51378         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
51380         New module 'u32-grapheme-prev'.
51381         * modules/unigbrk/u32-grapheme-prev: New file.
51382         * modules/unigbrk/u32-grapheme-prev-tests: New file.
51383         * lib/unigbrk.in.h: Add prototype for new function.
51384         * lib/unigbrk/u32-grapheme-prev.c: New file.
51385         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
51387         New module 'u8-grapheme-breaks'.
51388         * modules/unigbrk/u8-grapheme-breaks: New file.
51389         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
51390         * lib/unigbrk.in.h: Add prototype for new function.
51391         * lib/unigbrk/u8-grapheme-breaks.c: New file.
51392         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
51394         New module 'u16-grapheme-breaks'.
51395         * modules/unigbrk/u16-grapheme-breaks: New file.
51396         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
51397         * lib/unigbrk.in.h: Add prototype for new function.
51398         * lib/unigbrk/u16-grapheme-breaks.c: New file.
51399         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
51401         New module 'u32-grapheme-breaks'.
51402         * modules/unigbrk/u32-grapheme-breaks: New file.
51403         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
51404         * lib/unigbrk.in.h: Add prototype for new function.
51405         * lib/unigbrk/u32-grapheme-breaks.c: New file.
51406         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
51408         New module 'ulc-grapheme-breaks'.
51409         * modules/unigbrk/ulc-grapheme-breaks: New file.
51410         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
51411         * m4/locale-ar.m4: New file.
51412         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
51413         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
51414         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
51416 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
51418         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
51419         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
51420         modified how this file was generated before I initially submitted
51421         the module, but failed to regenerate it.  This meant that several
51422         of the level2 entries were wrong.
51423         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
51424         Remove the division-by-2 that is folded into the table now that
51425         gbrkprop.h has been regenerated properly.  Now -1 entries are
51426         handled correctly.
51428         New module 'unigbrk/uc-gbrk-prop-tests'.
51429         * modules/unigbrk/uc-gbrk-prop-tests: New file.
51430         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
51431         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
51432         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
51434 2011-01-01  Bruno Haible  <bruno@clisp.org>
51436         Avoid use of hexadecimal escapes.
51437         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
51438         instead of hexadecimal escapes.
51440 2011-01-01  Jim Meyering  <meyering@redhat.com>
51442         maint: new rule to update copyright year ranges
51443         * Makefile (update-copyright): New rule.
51445         maint: indent with TABs in Makefile
51446         * Makefile: Expand leading sequences of spaces to TABs
51448         version-etc: update the copyright year it reports
51449         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
51451 2010-12-31  Bruno Haible  <bruno@clisp.org>
51453         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
51454         * lib/isfinite.c (zerof, zerod, zerol): New variables.
51455         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
51456         zero.
51458 2010-12-31  Bruno Haible  <bruno@clisp.org>
51460         pwrite: Work around HP-UX 11.11 bug.
51461         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
51462         works and set REPLACE_PWRITE if not.
51463         * lib/pwrite.c (pwrite): Add an implementation that uses the system
51464         function.
51465         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
51467 2010-12-31  Bruno Haible  <bruno@clisp.org>
51469         pread: Work around HP-UX 11 bugs.
51470         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
51471         and set REPLACE_PREAD if not.
51472         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
51474 2010-12-31  Eric Blake  <eblake@redhat.com>
51476         nl_langinfo: fix YESEXPR on Irix 6.5
51477         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
51478         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
51479         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
51480         it.
51482 2010-12-31  Bruno Haible  <bruno@clisp.org>
51484         iconv: Document HP-UX 11 bug.
51485         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
51487 2010-12-31  Bruno Haible  <bruno@clisp.org>
51489         ldexpl: Fix link error on HP-UX 11.
51490         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
51491         LDEXPL_LIBM, using $ISNANL_LIBM.
51493 2010-12-31  Eric Blake  <eblake@redhat.com>
51495         ftello: avoid compilation failure with SunStudio c89
51496         * lib/ftello.c (ftello): Use lseek, not llseek.
51498         tests: avoid failing coreutils tests on cygwin
51499         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
51500         (create_exe_shims_): Return 0 when skipping.
51502 2010-12-31  Bruno Haible  <bruno@clisp.org>
51504         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
51505         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
51507 2010-12-31  Bruno Haible  <bruno@clisp.org>
51509         waitpid: Fix link error in C++ mode.
51510         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
51512 2010-12-31  Bruno Haible  <bruno@clisp.org>
51514         isnan: Use GCC built-ins when possible.
51515         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
51516         __builtin_isnan.
51517         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
51518         (isnan): Define using GCC built-ins for GCC >= 4.0.
51520 2010-12-31  Bruno Haible  <bruno@clisp.org>
51522         isnand: Fix mistake.
51523         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
51524         __builtin_isnand.
51526 2010-12-31  Bruno Haible  <bruno@clisp.org>
51528         open: Avoid C++ error on HP-UX 11.
51529         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
51531 2010-12-31  Bruno Haible  <bruno@clisp.org>
51533         time_r: Add missing declarations on HP-UX 11.
51534         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
51535         instead of HAVE_LOCALTIME_R.
51536         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
51537         HAVE_LOCALTIME_R always.
51538         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
51539         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
51540         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
51541         HAVE_LOCALTIME_R.
51542         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
51543         * doc/posix-functions/localtime_r.texi: Likewise.
51545 2010-12-29  Eric Blake  <eblake@redhat.com>
51547         mountlist: tweak previous commit
51548         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
51549         Reported by Paul Eggert.
51551         mountlist: fix local drive detection on cygwin
51552         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
51553         that works for cygwin.
51555 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51557         ftoastr, snprintf: ftoastr + snprintf module
51558         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
51559         since the snprintf module now should be good enough here.
51560         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
51561         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
51562         and gl_MODULE_INDICATOR([snprintf]), but the former enables
51563         GNULIB_SNPRINTF only for the test directory, and the latter
51564         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
51565         seems to suffice by itself.
51567 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51569         alloca: one step towards thread-safety
51570         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
51571         need for a static variable.  All callers changed.  This does not
51572         make the alloca replacement thread-safe, but it's one step.
51574         tests: minor indenting change
51575         * tests/init.sh: Sync from coreutils housekeeping patch
51576         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
51577         to keep lines within 80 columns.
51579 2010-12-28  Jim Meyering  <meyering@redhat.com>
51581         regex: don't infloop on persistent failing calloc
51582         * lib/regexec.c (build_trtable): Return failure indication upon
51583         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
51584         In glibc, this was fixed for version 2.13:
51585         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
51587 2010-12-28  Bruno Haible  <bruno@clisp.org>
51588             Paul Eggert <eggert@cs.ucla.edu>
51590         linkat: Make implementation robust against system behaviour variations.
51591         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
51592         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
51593         way, and to -2 if it needs a generic runtime test.
51594         * lib/linkat.c (solaris_optimized_link_immediate,
51595         solaris_optimized_link_follow): New functions.
51596         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
51597         (check_same_link): Use it.
51599 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
51601         New module 'unigbrk/base'.
51602         * modules/unigbrk/base: New file.
51603         * lib/unigbrk.in.h: New file.
51605         New module 'unigbrk/uc-gbrk-prop'.
51606         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
51607         * modules/unigbrk/uc-gbrk-prop: New file.
51608         * lib/unigbrk/gbrkprop.h: New file.
51609         * lib/unigbrk/uc-gbrk-prop.c: New file.
51611         New module 'unigbrk/uc-is-grapheme-break'.
51612         * modules/unigbrk/uc-is-grapheme-break: New file.
51613         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
51614         * lib/unigbrk/uc-is-grapheme-break.c: New file.
51615         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
51616         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
51617         * tests/unigbrk/GraphemeBreakTest.txt: New file.
51619         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
51621 2010-12-27  Bruno Haible  <bruno@clisp.org>
51623         linkat test: Avoid failure on Solaris 11 2010-11.
51624         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
51626 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
51628         utimens: work around glibc rounding bug on more platforms
51629         * lib/utimens.c (fdutimens): Work around rounding bug even if
51630         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
51631         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
51633 2010-12-27  Bruno Haible  <bruno@clisp.org>
51635         select tests: Improve comments.
51636         * tests/test-select.c (do_select): Add comments.
51638 2010-12-27  Bruno Haible  <bruno@clisp.org>
51640         select tests: Safer way of handling timeout.
51641         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
51642         at every invocation.
51644 2010-12-27  Bruno Haible  <bruno@clisp.org>
51646         select tests: Use 'bool' where appropriate.
51647         * tests/test-select.c (connect_to_socket): Change argument type to
51648         'bool'.
51650 2010-12-27  Bruno Haible  <bruno@clisp.org>
51652         select tests: Use existing modules.
51653         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
51654         (configure.ac): Don't test for unistd.h.
51655         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
51656         declared in <unistd.h>.
51658 2010-12-27  Bruno Haible  <bruno@clisp.org>
51660         mbrtowc: Work around a Solaris 7 bug.
51661         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
51662         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
51663         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
51664         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
51665         MBRTOWC_NULL_ARG1_BUG.
51666         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
51667         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
51668         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
51669         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
51671 2010-12-27  Jim Meyering  <meyering@redhat.com>
51673         read-file.c: tweak syntax
51674         * lib/read-file.c (fread_file): Remove space after "*" in function
51675         definitions.
51677 2010-12-27  Bruno Haible  <bruno@clisp.org>
51679         times test: Avoid gcc warnings on OSF/1.
51680         * tests/test-times.c (main): Cast printf arguments from clock_t to
51681         'long int'.
51683 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
51685         utimens: work around glibc rounding bug on older Linux kernels
51686         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
51687         on Linux with a glibc whose utimes might not work, then work
51688         around a longstanding glibc bug involving rounding rather than
51689         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
51690         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
51692 2010-12-26  Bruno Haible  <bruno@clisp.org>
51694         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
51695         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
51696         _GL_CXXALIAS_SYS.
51697         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51699 2010-12-26  Bruno Haible  <bruno@clisp.org>
51701         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
51702         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
51703         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
51704         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
51705         looking for the declaration.
51706         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
51707         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
51708         problem.
51709         * doc/posix-functions/inet_pton.texi: Likewise.
51711 2010-12-26  Bruno Haible  <bruno@clisp.org>
51713         arpa_inet: Use the common idioms with C++ support.
51714         * lib/arpa_inet.in.h: Include c++defs.h.
51715         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
51716         support.
51717         * modules/arpa_inet (Depends-on): Add c++defs.
51718         (Makefile.am): Substitute the contents of c++defs.h.
51719         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
51720         * modules/arpa_inet-c++-tests: New file.
51721         * tests/test-arpa_inet-c++.cc: New file.
51723 2010-12-25  Bruno Haible  <bruno@clisp.org>
51725         Fix more C++ link errors on Solaris 8.
51726         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
51727         $(LIB_EACCESS).
51728         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
51729         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
51730         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
51731         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
51732         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
51734 2010-12-25  Bruno Haible  <bruno@clisp.org>
51736         printf-posix: Fix link error when a non-GCC compiler is used.
51737         * lib/stdio.in.h (printf): When not using GCC, override printf
51738         correctly.
51739         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51741 2010-12-25  Bruno Haible  <bruno@clisp.org>
51743         strerror_r-posix: Update doc.
51744         * doc/posix-functions/strerror_r.texi: Update doc about the return
51745         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
51747 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51749         utimens: simplify the logic of the previous change
51750         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
51751         This should not affect whether the test succeeds or fails.
51753         utimens: configure better on hosts with NFS clock skew
51754         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
51755         uses the clock of the local host.  It might use the clock of the
51756         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
51757         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
51759 2010-12-25  Bruno Haible  <bruno@clisp.org>
51761         ptsname test: Avoid failure on Solaris.
51762         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
51763         open a pseudo-terminal; don't use BSD-style ptys.
51764         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
51766 2010-12-25  Bruno Haible  <bruno@clisp.org>
51768         ptsname: Avoid ERANGE failure on some systems.
51769         * lib/ptsname.c (buffer): Increase size.
51771 2010-12-25  Bruno Haible  <bruno@clisp.org>
51773         rename, renameat: Avoid test failures at NFS mounted locations.
51774         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
51775         so that subsequent mkdir calls succeed.
51777 2010-12-25  Bruno Haible  <bruno@clisp.org>
51779         iswblank: Fix C++ link error on Solaris 8.
51780         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
51781         _GL_FUNCDECL_SYS.
51783 2010-12-25  Bruno Haible  <bruno@clisp.org>
51785         unistd: Fix C++ link error on Solaris 8.
51786         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
51788 2010-12-25  Bruno Haible  <bruno@clisp.org>
51790         readlink doc: Mention an old glibc bug.
51791         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
51793 2010-12-25  Bruno Haible  <bruno@clisp.org>
51795         fcntl-h: Fix for use of C++ on glibc systems.
51796         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
51797         also on glibc systems in C++ mode.
51798         Reported by Gary V. Vaughan <gary@gnu.org>.
51800 2010-12-25  Bruno Haible  <bruno@clisp.org>
51802         roundl-ieee: Make it work on OSF/1 5.1 with cc.
51803         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
51805 2010-12-25  Bruno Haible  <bruno@clisp.org>
51807         truncl-ieee: Make it work on OSF/1 5.1 with cc.
51808         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
51809         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
51810         test whether truncl works according to ISO C 99 with IEC 60559.
51811         * m4/truncl-ieee.m4: New file.
51812         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
51813         m4/signbit.m4.
51814         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
51816 2010-12-25  Bruno Haible  <bruno@clisp.org>
51818         ceill-ieee: Make it work on OSF/1 5.1 with cc.
51819         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
51820         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
51821         test whether ceill works according to ISO C 99 with IEC 60559.
51822         * m4/ceill-ieee.m4: New file.
51823         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
51824         m4/signbit.m4.
51825         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
51827 2010-12-25  Bruno Haible  <bruno@clisp.org>
51829         Ensure all prerequisites of <wchar.h> are included.
51830         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
51831         before <wchar.h>.
51832         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
51833         gl_MBRLEN_NUL_RETVAL): Likewise.
51834         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
51835         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
51836         AC_FUNC_MBRTOWC): Likewise.
51837         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
51838         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51839         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
51840         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
51841         Likewise.
51842         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
51843         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
51844         (gl_WCHAR_H): Improve comments.
51845         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
51847 2010-12-25  Bruno Haible  <bruno@clisp.org>
51849         strtok_r: Fix C syntax error in autoconf macro.
51850         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
51851         characters in test program.
51853 2010-12-24  Bruno Haible  <bruno@clisp.org>
51855         ceil, trunc, round: Fix gcc warnings.
51856         * lib/ceil.c (MIN): Undefine before redefining.
51857         * lib/trunc.c (MIN): Likewise.
51858         * lib/round.c (MIN): Likewise.
51859         Include <math.h> first.
51861 2010-12-24  Bruno Haible  <bruno@clisp.org>
51863         select tests: Avoid failures on OSF/1 5.1.
51864         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
51865         failure of closing the last socket; it may fail with ECONNRESET.
51867 2010-12-24  Eric Blake  <eblake@redhat.com>
51869         stdint: avoid HP-UX 10.20 preprocessor bug
51870         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
51871         than #if.
51872         * tests/test-floor2.c (main): Likewise.
51873         Reported by Peter O'Gorman.
51875         pipe: make obsoletion transition easier
51876         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
51877         * modules/pipe (Files): Include revived file.
51878         (Include): Drop reference, to mirror getdate's behavior.
51880 2010-12-24  Bruno Haible  <bruno@clisp.org>
51882         sys_socket: Hide mismatch of declarations on NonStop Kernel.
51883         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
51884         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
51885         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51887 2010-12-24  Bruno Haible  <bruno@clisp.org>
51889         gethostname: Ensure declaration on NonStop Kernel.
51890         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
51891         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51893 2010-12-24  Bruno Haible  <bruno@clisp.org>
51895         sys_select: Ensure all necessary types on NonStop Kernel.
51896         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
51897         include <sys/time.h>.
51898         * doc/posix-headers/sys_select.texi: Mention that it's missing on
51899         NonStop Kernel.
51900         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51902 2010-12-24  Bruno Haible  <bruno@clisp.org>
51904         sys_select: Remove unneeded include.
51905         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
51906         have <sys/select.h>.
51908 2010-12-24  Bruno Haible  <bruno@clisp.org>
51910         gethostname: Provide a fallback for HOST_NAME_MAX.
51911         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
51912         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
51913         instead.
51914         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51916 2010-12-24  Bruno Haible  <bruno@clisp.org>
51918         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
51919         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
51920         (SA_RESTART): Likewise.
51921         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51923 2010-12-24  Bruno Haible  <bruno@clisp.org>
51925         signal: Define NSIG.
51926         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
51927         * tests/test-signal.c (nsig): New variable.
51928         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51930 2010-12-24  Bruno Haible  <bruno@clisp.org>
51932         rename, renameat: Avoid test failures on OSF/1 5.1.
51933         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
51934         alternative error codes.
51935         * tests/test-renameat.c (main): Likewise.
51937 2010-12-24  Bruno Haible  <bruno@clisp.org>
51939         *printf: Detect large precisions bug on Solaris 10/SPARC.
51940         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
51941         by Paul Eggert.
51942         * tests/test-snprintf-posix.h (test_function): Add this test code here
51943         too.
51944         * tests/test-sprintf-posix.h (test_function): Likewise.
51945         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51946         * tests/test-vasprintf-posix.c (test_function): Likewise.
51947         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
51948         around by gnulib.
51949         * doc/posix-functions/printf.texi: Likewise.
51950         * doc/posix-functions/snprintf.texi: Likewise.
51951         * doc/posix-functions/sprintf.texi: Likewise.
51952         * doc/posix-functions/vfprintf.texi: Likewise.
51953         * doc/posix-functions/vprintf.texi: Likewise.
51954         * doc/posix-functions/vsnprintf.texi: Likewise.
51955         * doc/posix-functions/vsprintf.texi: Likewise.
51956         * doc/posix-functions/dprintf.texi: Undo last commit.
51957         * doc/posix-functions/vdprintf.texi: Likewise.
51959 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51961         tests: port test-fdutimensat.c to Solaris 8
51962         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
51963         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
51964         On Solaris 8, it fails with errno == ENOSYS, because there is no
51965         futimens (so it can't use the fd), and there is no lutimens (so it
51966         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
51968         vsnprintf: make more consistent with snprintf; doc fixes
51970         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
51971         the byte count return problem was promoted from the snprintf-posix
51972         to the snprintf module.
51973         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51974         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
51975         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
51976         * tests/test-snprintf.c (main): Check the byte count returned.
51977         * tests/test-vsnprintf.c (main): Likewise.
51979 2010-12-23  Eric Blake  <eblake@redhat.com>
51981         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
51982         * modules/sigpipe (License): Relax license.
51984 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
51986         doc: document Solaris printf bug with large float precisions
51987         * doc/posix-functions/dprintf.texi (dprintf):
51988         * doc/posix-functions/fprintf.texi (fprintf):
51989         * doc/posix-functions/printf.texi (printf):
51990         * doc/posix-functions/snprintf.texi (snprintf):
51991         * doc/posix-functions/sprintf.texi (sprintf):
51992         * doc/posix-functions/vdprintf.texi (vdprintf):
51993         * doc/posix-functions/vfprintf.texi (vfprintf):
51994         * doc/posix-functions/vprintf.texi (vprintf):
51995         * doc/posix-functions/vsnprintf.texi (vsnprintf):
51996         * doc/posix-functions/vsprintf.texi (vsprintf):
51997         Mention that these functions mishandle large floating point
51998         precisions on Solaris 10.  The same bug is also present in Solaris
51999         8, and I assume earlier.  This causes "cd gnulib-tests; make
52000         check" to fail on Solaris 8 (and I assume, later) when building
52001         the latest coreutils, in test-vasprintf-posix's call to
52002         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
52003         the wide flavors (e.g., wprintf) so this patch just updates the
52004         documentation for the narrow ones.
52006         test-posixtm.c: add two tests
52007         * tests/test-posixtm.c: Add two tests, to highlight the
52008         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
52009         around this bug; this is merely to document it.
52011 2010-12-22  Bruno Haible  <bruno@clisp.org>
52013         getlogin_r: Work around portability problem on OSF/1.
52014         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
52015         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
52016         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
52017         test for a truncated result.
52018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
52019         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
52020         * modules/getlogin_r (Depends-on): Add memchr.
52021         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
52023 2010-12-22  Bruno Haible  <bruno@clisp.org>
52025         ptsname: Avoid test failure on OSF/1 5.1.
52026         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
52027         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
52028         (same_slave): New function.
52029         (main): Use it to compare ptsname's result with the expected file name.
52031 2010-12-22  Bruno Haible  <bruno@clisp.org>
52033         Port extended stdio modules to HP NonStop Kernel.
52034         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
52035         macros.
52036         * lib/fbufmode.c: Update comments.
52037         * lib/fflush.c: Likewise.
52038         * lib/fpurge.c: Likewise.
52039         * lib/freadable.c: Likewise.
52040         * lib/freadahead.c: Likewise.
52041         * lib/freading.c: Likewise.
52042         * lib/freadptr.c: Likewise.
52043         * lib/freadseek.c: Likewise.
52044         * lib/fseeko.c: Likewise.
52045         * lib/fseterr.c: Likewise.
52046         * lib/fwritable.c: Likewise.
52047         * lib/fwriting.c: Likewise.
52048         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
52050 2010-12-22  Bruno Haible  <bruno@clisp.org>
52052         ttyname_r: Work around bug on OSF/1 5.1.
52053         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
52054         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
52055         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
52056         present.
52057         * lib/ttyname_r.c (ttyname_r): Update comments.
52059 2010-12-22  Bruno Haible  <bruno@clisp.org>
52061         round: Implement result sign according to IEEE 754.
52062         * lib/round.c (MIN, MINUS_ZERO): New macros.
52063         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
52064         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
52065         * tests/test-round-ieee.c (main): Likewise.
52066         * tests/test-roundl-ieee.c (main): Likewise.
52068         trunc: Implement result sign according to IEEE 754.
52069         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
52070         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
52071         * tests/test-trunc2.c: Include minus-zero.h.
52072         (MINUS_ZERO): New macro.
52073         (trunc_reference): Keep in sync with lib/trunc.c.
52074         * tests/test-truncf2.c: Include minus-zero.h.
52075         (MINUS_ZERO): New macro.
52076         (truncf_reference): Keep in sync with lib/trunc.c.
52077         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
52078         * tests/test-trunc-ieee.c (main): Likewise.
52079         * tests/test-truncl-ieee.c (main): Likewise.
52081         ceil: Implement result sign according to IEEE 754.
52082         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
52083         (FUNC): Return -0.0 for -1 < x < 0.
52084         * tests/test-ceil2.c: Include minus-zero.h.
52085         (MINUS_ZERO): New macro.
52086         (ceil_reference): Keep in sync with lib/ceil.c.
52087         * tests/test-ceilf2.c: Include minus-zero.h.
52088         (MINUS_ZERO): New macro.
52089         (ceilf_reference): Keep in sync with lib/ceil.c.
52090         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
52091         * tests/test-ceil-ieee.c (main): Likewise.
52092         * tests/test-ceill-ieee.c (main): Likewise.
52094         floor: Implement result sign according to IEEE 754.
52095         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
52096         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
52097         * tests/test-floorf2.c (floorf_reference): Likewise.
52098         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
52099         * tests/test-floor-ieee.c (main): Likewise.
52100         * tests/test-floorl-ieee.c (main): Likewise.
52102 2010-12-22  Bruno Haible  <bruno@clisp.org>
52104         getaddrinfo: Update doc.
52105         * doc/posix-functions/gai_strerror.texi: Return type is also different
52106         on AIX and HP-UX.
52108 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
52110         getaddrinfo, inet_ntop: Update doc for Solaris.
52111         * doc/posix-functions/gai_strerror.texi: Return type is also an
52112         issue on Solaris 9 and earlier.
52113         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
52114         on Solaris 10 and earlier.
52116 2010-12-21  Bruno Haible  <bruno@clisp.org>
52118         New module 'roundl-ieee'.
52119         * modules/roundl-ieee: New file.
52120         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
52121         test whether roundl works according to ISO C 99 with IEC 60559.
52122         * m4/roundl-ieee.m4: New file.
52123         * modules/roundl-ieee-tests: New file.
52124         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
52125         * tests/test-roundl.c (main): Remove signbit tests.
52126         * modules/roundl-tests (Depends-on): Remove signbit.
52127         * doc/posix-functions/roundl.texi: Mention the new module.
52129 2010-12-21  Bruno Haible  <bruno@clisp.org>
52131         New module 'truncl-ieee'.
52132         * modules/truncl-ieee: New file.
52133         * modules/truncl-ieee-tests: New file.
52134         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
52135         * tests/test-truncl.c (main): Remove signbit tests.
52136         * modules/truncl-tests (Depends-on): Remove signbit.
52137         * doc/posix-functions/truncl.texi: Mention the new module.
52139 2010-12-21  Bruno Haible  <bruno@clisp.org>
52141         New module 'ceill-ieee'.
52142         * modules/ceill-ieee: New file.
52143         * modules/ceill-ieee-tests: New file.
52144         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
52145         * tests/test-ceill.c (main): Remove signbit tests.
52146         * modules/ceill-tests (Depends-on): Remove signbit.
52147         * doc/posix-functions/ceill.texi: Mention the new module.
52149 2010-12-21  Bruno Haible  <bruno@clisp.org>
52151         New module 'floorl-ieee'.
52152         * modules/floorl-ieee: New file.
52153         * modules/floorl-ieee-tests: New file.
52154         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
52155         * tests/test-floorl.c (main): Remove signbit tests.
52156         * modules/floorl-tests (Depends-on): Remove signbit.
52157         * doc/posix-functions/floorl.texi: Mention the new module.
52159 2010-12-21  Bruno Haible  <bruno@clisp.org>
52161         New module 'round-ieee'.
52162         * modules/round-ieee: New file.
52163         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
52164         whether round works according to ISO C 99 with IEC 60559.
52165         * m4/round-ieee.m4: New file.
52166         * modules/round-ieee-tests: New file.
52167         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
52168         * tests/test-round1.c (main): Remove signbit tests.
52169         * modules/round-tests (Depends-on): Remove 'signbit'.
52170         * doc/posix-functions/round.texi: Mention the new module.
52172 2010-12-21  Bruno Haible  <bruno@clisp.org>
52174         New module 'trunc-ieee'.
52175         * modules/trunc-ieee: New file.
52176         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
52177         whether trunc works according to ISO C 99 with IEC 60559.
52178         * m4/trunc-ieee.m4: New file.
52179         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
52180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
52181         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
52182         * modules/trunc-ieee-tests: New file.
52183         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
52184         * tests/test-trunc1.c (main): Remove signbit tests.
52185         * modules/trunc-tests (Depends-on): Remove 'signbit'.
52186         * doc/posix-functions/trunc.texi: Mention the new module.
52188 2010-12-21  Bruno Haible  <bruno@clisp.org>
52190         New module 'ceil-ieee'.
52191         * modules/ceil-ieee: New file.
52192         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
52193         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
52194         ISO C 99 with IEC 60559.
52195         * m4/ceil-ieee.m4: New file.
52196         * modules/ceil (Files): Add lib/ceil.c.
52197         (Depends-on): Add 'float'.
52198         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52199         * lib/math.in.h (ceil): New declaration.
52200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
52201         REPLACE_CEIL.
52202         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
52203         * modules/ceil-ieee-tests: New file.
52204         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
52205         * tests/test-math-c++.cc: Check the signature of 'ceil'.
52206         * doc/posix-functions/ceil.texi: Mention the new module.
52208 2010-12-21  Bruno Haible  <bruno@clisp.org>
52210         New module 'floor-ieee'.
52211         * modules/floor-ieee: New file.
52212         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
52213         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
52214         ISO C 99 with IEC 60559.
52215         * m4/floor-ieee.m4: New file.
52216         * modules/floor (Files): Add lib/floor.c.
52217         (Depends-on): Add 'float'.
52218         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52219         * lib/math.in.h (floor): New declaration.
52220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
52221         REPLACE_FLOOR.
52222         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
52223         * modules/floor-ieee-tests: New file.
52224         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
52225         * tests/test-math-c++.cc: Check the signature of 'floor'.
52226         * doc/posix-functions/floor.texi: Mention the new module.
52228 2010-12-21  Bruno Haible  <bruno@clisp.org>
52230         New module 'roundf-ieee'.
52231         * modules/roundf-ieee: New file.
52232         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
52233         test whether roundf works according to ISO C 99 with IEC 60559.
52234         * m4/roundf-ieee.m4: New file.
52235         * modules/roundf-ieee-tests: New file.
52236         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
52237         * tests/test-roundf1.c (main): Remove signbit tests.
52238         * modules/roundf-tests (Depends-on): Remove 'signbit'.
52239         * doc/posix-functions/roundf.texi: Mention the new module.
52241 2010-12-21  Bruno Haible  <bruno@clisp.org>
52243         New module 'truncf-ieee'.
52244         * modules/truncf-ieee: New file.
52245         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
52246         test whether truncf works according to ISO C 99 with IEC 60559.
52247         * m4/truncf-ieee.m4: New file.
52248         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
52249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
52250         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
52251         * modules/truncf-ieee-tests: New file.
52252         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
52253         * tests/test-truncf1.c (main): Remove signbit tests.
52254         * modules/truncf-tests (Depends-on): Remove 'signbit'.
52255         * doc/posix-functions/truncf.texi: Mention the new module.
52257 2010-12-21  Bruno Haible  <bruno@clisp.org>
52259         New module 'ceilf-ieee'.
52260         * modules/ceilf-ieee: New file.
52261         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
52262         test whether ceilf works according to ISO C 99 with IEC 60559.
52263         * m4/ceilf-ieee.m4: New file.
52264         * modules/ceilf-ieee-tests: New file.
52265         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
52266         * tests/test-ceilf1.c (main): Remove signbit tests.
52267         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
52268         * doc/posix-functions/ceilf.texi: Mention the new module.
52270 2010-12-21  Bruno Haible  <bruno@clisp.org>
52272         New module 'floorf-ieee'.
52273         * modules/floorf-ieee: New file.
52274         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
52275         test whether floorf works according to ISO C 99 with IEC 60559.
52276         * m4/floorf-ieee.m4: New file.
52277         * modules/floorf-ieee-tests: New file.
52278         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
52279         * tests/test-floorf1.c (main): Remove signbit tests.
52280         * modules/floorf-tests (Depends-on): Remove 'signbit'.
52281         * doc/posix-functions/floorf.texi: Mention the new module.
52283 2010-12-21  Bruno Haible  <bruno@clisp.org>
52285         Support for minus zero in autoconf macros.
52286         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
52287         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
52288         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
52289         * tests/minus-zero.h: Update comments.
52291 2010-12-21  Bruno Haible  <bruno@clisp.org>
52293         Tests for module 'ceil'.
52294         * modules/ceil-tests: New file.
52295         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
52296         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
52298 2010-12-21  Bruno Haible  <bruno@clisp.org>
52300         Tests for module 'floor'.
52301         * modules/floor-tests: New file.
52302         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
52303         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
52305 2010-12-21  Bruno Haible  <bruno@clisp.org>
52307         math: Fix indentation.
52308         * lib/math.in.h (floorf): Fix indentation.
52310 2010-12-21  Bruno Haible  <bruno@clisp.org>
52312         Fix cross-compilation guesses on Solaris.
52313         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
52314         not match "solaris2.10".
52315         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
52316         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
52317         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
52319 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
52321         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
52322         This fixes a problem observed with the latest coreutils snapshot
52323         that caused a test to fail on Solaris 8.  src/csplit.c's call
52324         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
52325         earlier, instead of returning the number of bytes that would have
52326         been generated; this causes csplit to incorrectly report memory
52327         exhaustion.
52328         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
52329         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
52330         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
52331         comments to match.
52332         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
52333         Fix typo in matching older versions of Solaris: "solaris2.10"
52334         is matched by the shell pattern "solaris2.[0-9]*".  This matters
52335         only for guessing while cross-compiling.
52336         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
52338 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
52340         ftoastr: fix comment again
52341         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
52342         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
52343         Also, simplify example a bit by using flags = 0.
52345 2010-12-20  Bruno Haible  <bruno@clisp.org>
52347         round*, trunc*: Update documentation regarding glibc.
52348         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
52349         * doc/posix-functions/round.texi: Likewise.
52350         * doc/posix-functions/roundl.texi: Likewise.
52351         * doc/posix-functions/truncf.texi: Likewise.
52352         * doc/posix-functions/trunc.texi: Likewise.
52353         * doc/posix-functions/truncl.texi: Likewise.
52355 2010-12-20  Bruno Haible  <bruno@clisp.org>
52357         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
52358         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
52359         * doc/posix-functions/round.texi: Likewise.
52360         * doc/posix-functions/roundl.texi: Likewise.
52362 2010-12-20  Bruno Haible  <bruno@clisp.org>
52364         ttyname_r: Add missing declaration on HP-UX 11.
52365         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
52366         HAVE_TTYNAME_R.
52367         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
52368         declared. Set HAVE_TTYNAME_R always.
52369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52370         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
52371         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
52372         HAVE_TTYNAME_R.
52373         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
52375 2010-12-20  Bruno Haible  <bruno@clisp.org>
52377         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
52378         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
52379         * doc/posix-functions/getlogin_r.texi: Likewise.
52380         * tests/test-getlogin.c: Include <errno.h>.
52381         (main): Avoid test failure on HP-UX 11.11.
52382         * tests/test-getlogin_r.c (main): Likewise.
52384 2010-12-20  Bruno Haible  <bruno@clisp.org>
52386         getlogin_r: Add missing declaration on HP-UX 11.
52387         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
52388         declared also when it exists as a function.
52389         * doc/posix-functions/getlogin_r.texi: Document this workaround.
52391 2010-12-20  Bruno Haible  <bruno@clisp.org>
52393         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
52394         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
52395         through wcrtomb.
52397 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52399         ftoastr: fix comment
52400         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
52401         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
52403 2010-12-19  Bruno Haible  <bruno@clisp.org>
52405         isnan: Ensure it is a macro.
52406         * lib/math.in.h (isnan): Define as a macro if not already a macro.
52407         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
52408         Solaris.
52410 2010-12-19  Bruno Haible  <bruno@clisp.org>
52412         ldexpl test: Fix link error on OSF/1 5.1.
52413         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
52415 2010-12-19  Bruno Haible  <bruno@clisp.org>
52417         wctype: Make it work in C++ mode on OSF/1 5.1.
52418         * lib/wctype.in.h (iswblank): Declare but not define here.
52419         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
52420         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
52421         * modules/wctype (Files): Add lib/iswblank.c.
52423 2010-12-19  Bruno Haible  <bruno@clisp.org>
52425         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
52426         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
52427         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
52429 2010-12-19  Bruno Haible  <bruno@clisp.org>
52431         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
52432         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
52433         _POSIX_PII_SOCKET.
52434         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
52435         * doc/posix-functions/recvfrom.texi: Likewise.
52436         * doc/posix-functions/send.texi: Likewise.
52437         * doc/posix-functions/sendto.texi: Likewise.
52439 2010-12-19  Bruno Haible  <bruno@clisp.org>
52441         tcgetsid: Add missing declaration on OSF/1 5.1.
52442         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
52443         HAVE_TCGETSID.
52444         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
52445         Don't set HAVE_TCGETSID.
52446         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
52447         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
52448         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
52449         HAVE_TCGETSID.
52450         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
52452 2010-12-19  Bruno Haible  <bruno@clisp.org>
52454         stdio: Fix problem with popen() declaration on OSF/1 5.1.
52455         * lib/stdio.in.h: During the include_next statement, let recursive
52456         includes of this file include only the system header file.
52458 2010-12-19  Bruno Haible  <bruno@clisp.org>
52460         iconv_open: Fix regression from 2010-12-04.
52461         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
52462         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
52464 2010-12-19  Bruno Haible  <bruno@clisp.org>
52466         stdbool test: Avoid a gcc warning.
52467         * tests/test-stdbool.c (main): Fail if e1 is false.
52468         Reported by Jim Meyering.
52470 2010-12-19  Jim Meyering  <meyering@redhat.com>
52472         setenv: restore to working order
52473         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
52474         mistakenly removed.
52475         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
52476         HAVE_SETENV.
52477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
52478         HAVE_SETENV.
52480 2010-12-19  Bruno Haible  <bruno@clisp.org>
52482         Document some different function declarations on OSF/1 5.1.
52483         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
52484         * doc/posix-functions/inet_ntop.texi: Likewise.
52485         * doc/posix-functions/gethostname.texi: Likewise.
52486         * lib/unistd.in.h (gethostname): Update comment.
52488 2010-12-19  Bruno Haible  <bruno@clisp.org>
52490         doc: Mention vasprintf-posix module.
52491         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
52492         the 'vasprintf-posix' module.
52493         * doc/glibc-functions/vasprintf.texi: Likewise.
52495 2010-12-19  Bruno Haible  <bruno@clisp.org>
52497         unsetenv: Add missing declaration on OSF/1 5.1.
52498         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
52499         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
52500         Don't set HAVE_UNSETENV. In the test program, set _BSD.
52501         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
52502         not HAVE_UNSETENV.
52503         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
52504         HAVE_UNSETENV.
52505         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
52507 2010-12-19  Bruno Haible  <bruno@clisp.org>
52509         setenv: Add missing declaration on OSF/1 5.1.
52510         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
52511         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
52512         declared. Don't set HAVE_SETENV.
52513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
52514         not HAVE_SETENV.
52515         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
52516         HAVE_SETENV.
52517         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
52519 2010-12-19  Bruno Haible  <bruno@clisp.org>
52521         nl_langinfo tests: Avoid gcc warning.
52522         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
52524 2010-12-19  Bruno Haible  <bruno@clisp.org>
52526         mknod: Avoid error in C++ mode on OSF/1 with GCC.
52527         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
52528         _GL_CXXALIAS_SYS.
52530 2010-12-19  Bruno Haible  <bruno@clisp.org>
52532         stdbool: Relax test.
52533         * tests/test-stdbool.c (e): Don't require that casts from a variable's
52534         address to 'bool' work in static initializer, for compilers other than
52535         GCC.
52537 2010-12-19  Bruno Haible  <bruno@clisp.org>
52539         ftello: Add missing declaration on OSF/1 5.1.
52540         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
52541         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
52542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
52543         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
52544         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
52546 2010-12-19  Bruno Haible  <bruno@clisp.org>
52548         fseeko: Add missing declaration on OSF/1 5.1.
52549         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
52550         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
52551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
52552         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
52553         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
52555 2010-12-19  Bruno Haible  <bruno@clisp.org>
52557         fchdir: Add missing declaration on OSF/1 5.1.
52558         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
52559         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
52560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
52561         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
52562         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
52564 2010-12-19  Bruno Haible  <bruno@clisp.org>
52566         relocatable-prog-wrapper: Separate from relocatable-prog.
52567         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
52568         uninstall-relocwrapper rule here.
52569         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
52570         Reported by Ian Beckwith <ianb@erislabs.net>.
52572 2010-12-19  Bruno Haible  <bruno@clisp.org>
52574         unistr/u8-mbsnlen: Add missing dependency.
52575         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
52576         Reported by Ian Beckwith <ianb@erislabs.net>.
52578 2010-12-19  Bruno Haible  <bruno@clisp.org>
52580         iconv: Make it possible again to use this module without 'iconv-h'.
52581         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
52582         if it is not defined.
52583         Reported by Ian Beckwith <ianb@erislabs.net>.
52585 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52587         acl: port to Solaris 8 when copying from tmpfs to ufs
52588         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
52589         error number.  Problem observed on Solaris 8 with latest
52590         coreutils, with "mv A B", where A is on a tmpfs file system and B
52591         is on a ufs file system.  This caused coreutils' mv/part-symlink
52592         test to fail.
52594         tests: set fail=0 at start
52595         * tests/init.sh (setup_): Move fail=0 initialization here ...
52596         (mktempd_): ... from here, so that tests can rely on fail being
52597         set to 0 initially.  This fixes a problem in coreutils; see:
52598         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
52600 2010-12-18  Bruno Haible  <bruno@clisp.org>
52602         memmem-simple: Stylistic changes.
52603         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
52604         Fix preprocessor directive indentation.
52606 2010-12-15  Pádraig Brady  <P@draigBrady.com>
52608         memmem, memmem-simple: reorganize and expand empty needle check
52609         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
52610         functional checks to memmem-simple so that one has a fully functional
52611         memmem by using just this module.
52612         Restrict the performance only check to the memmem module.
52613         Also expand the empty needle check to ensure the correct
52614         pointer is returned, not just a non NULL pointer.
52615         * doc/glibc-functions/memmem.texi: Rearrange the portability
52616         documentation to correlate with the rearranged checks.
52617         Clarify exactly how the memmem and memmem-simple modules
52618         relate to each other.
52620 2010-12-15  Pádraig Brady  <P@draigBrady.com>
52621             Bruno Haible  <bruno@clisp.org>
52623         Improve cross-compilation guesses for uClibc.
52624         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
52625         that uClibc does not have the glibc bug.
52626         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
52627         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
52629 2010-12-14  Eric Blake  <eblake@redhat.com>
52631         configmake: provide fallbacks for oldest supported autotools
52632         * m4/configmake.m4: New file.
52633         * modules/configmake (Files): Ship it.
52634         (configure.ac): Use it to guarantee fallbacks.
52636 2010-12-13  Pádraig Brady  <P@draigBrady.com>
52638         read-file: Improve handling of large files
52639         * lib/read-file.c (fread_file): Minimize realloc()s
52640         for regular files, and better manage sizes around SIZE_MAX.
52642 2010-12-13  Eric Blake  <eblake@redhat.com>
52644         cloexec, fcntl: relax license
52645         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
52646         consent from all contributors.
52647         * modules/fcntl (License): Likewise.
52649 2010-12-10  Bruno Haible  <bruno@clisp.org>
52651         Tests for module 'pipe-posix'.
52652         * modules/pipe-posix-tests: New file.
52653         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
52655 2010-12-10  Bruno Haible  <bruno@clisp.org>
52657         pipe-posix: Make it work in C++ mode.
52658         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
52659         (pipe): Use common idiom, not a macro definition.
52660         * lib/pipe.c: New file.
52661         * m4/pipe.m4: New file.
52662         * modules/pipe-posix (Description): Enhance.
52663         (Files): Add lib/pipe.c, m4/pipe.m4.
52664         (configure.ac): Invoke gl_FUNC_PIPE.
52665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
52666         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
52667         * tests/test-unistd-c++.cc: Check the signature of pipe.
52669 2010-12-10  Bruno Haible  <bruno@clisp.org>
52671         Rename module 'pipe' to 'spawn-pipe'.
52672         * modules/spawn-pipe: New file, renamed from modules/pipe.
52673         (Files, configure.ac, Makefile.am): Update.
52674         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
52675         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
52676         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
52677         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
52678         "spawn-pipe.h" instead of "pipe.h".
52679         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
52680         to gl_SPAWN_PIPE.
52681         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
52682         (Files, Makefile.am): Update.
52683         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
52684         Update.
52685         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
52686         Include "spawn-pipe.h" instead of "pipe.h".
52687         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
52688         * lib/javacomp.c: Likewise.
52689         * lib/javaversion.c: Likewise.
52690         * lib/pipe-filter-gi.c: Likewise.
52691         * lib/pipe-filter-ii.c: Likewise.
52692         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
52693         * modules/javacomp (Depends-on): Likewise.
52694         * modules/javaversion (Depends-on): Likewise.
52695         * modules/pipe-filter-gi (Depends-on): Likewise.
52696         * modules/pipe-filter-ii (Depends-on): Likewise.
52697         * MODULES.html.sh (Executing programs): Update.
52698         * NEWS: Mention the change.
52700 2010-12-10  Eric Blake  <eblake@redhat.com>
52702         pipe-posix: new module
52703         * modules/pipe-posix: New file.
52704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
52705         (gl_UNISTD_H): Check for declaration.
52706         * modules/unistd (Makefile.am): Substitute it.
52707         * lib/unistd.in.h (pipe): Provide it for mingw.
52708         * doc/posix-functions/pipe.texi (pipe): Update documentation.
52709         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
52711 2010-12-07  Bruno Haible  <bruno@clisp.org>
52713         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
52714         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
52715         u8_strcmp_gnu.
52716         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
52718 2010-12-06  Bruno Haible  <bruno@clisp.org>
52720         Update internal documentation.
52721         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
52723 2010-12-04  Bruno Haible  <bruno@clisp.org>
52725         Put more information about failed tests into the test return codes.
52726         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
52727         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
52728         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
52729         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
52730         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
52731         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52732         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52733         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52734         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
52735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52736         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
52737         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52738         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
52739         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52740         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
52741         returns a bit mask.
52742         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
52743         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
52744         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
52745         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
52746         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
52747         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
52748         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
52749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
52750         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
52751         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
52752         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52753         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
52754         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52755         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
52756         * m4/link.m4 (gl_FUNC_LINK): Likewise.
52757         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
52758         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
52759         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
52760         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
52761         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
52762         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52763         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
52764         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
52765         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
52766         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
52767         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
52768         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
52769         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
52770         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
52771         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
52772         gl_PRINTF_PRECISION): Likewise.
52773         * m4/regex.m4 (gl_REGEX): Likewise.
52774         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
52775         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
52776         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
52777         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
52778         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52779         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52780         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
52781         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
52782         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52783         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52784         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
52785         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
52786         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
52787         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52788         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
52789         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
52790         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
52791         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
52792         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52793         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
52794         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
52795         enumerated value.
52796         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
52798 2010-12-04  Bruno Haible  <bruno@clisp.org>
52800         Update for Solaris 11 2010-11.
52801         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
52802         Express, released in November 2010.
52804 2010-12-04  Bruno Haible  <bruno@clisp.org>
52806         nproc: Relax license.
52807         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
52808         and Paul Eggert.
52809         Requested by Ludovic Courtès <ludo@gnu.org>.
52811 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
52813         utimecmp: fine-grained src to nearby coarse-grained dest
52815         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
52816         and the source is on a file system with higher-resolution time
52817         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
52818         not work, and the time stamps are close together, the algorithm to
52819         determine the exact resolution from the read-back mtime was buggy:
52820         it had a "!=" where it should have had an "==".  This bug has been
52821         in the code ever since it was introduced to gnulib.
52822         Problem reported by Dan Jacobson in
52823         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
52825 2010-11-30  Bruno Haible  <bruno@clisp.org>
52827         strerror_r-posix: Fix autoconf test.
52828         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
52830 2010-11-28  Bruno Haible  <bruno@clisp.org>
52831             Paul Eggert  <eggert@cs.ucla.edu>
52833         Tests for module 'getdomainname'.
52834         * modules/getdomainname-tests: New file.
52835         * tests/test-getdomainname.c: New file, based on
52836         tests/test-gethostname.c.
52838 2010-11-28  Bruno Haible  <bruno@clisp.org>
52839             Paul Eggert  <eggert@cs.ucla.edu>
52841         getdomainname: Use the system function when possible.
52842         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
52843         (getdomainname): Replace if needed. Provide the declaration if it is
52844         missing. Don't use _GL_CXXALIAS_SYS_CAST.
52845         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
52846         (getdomainname): When the system has getdomainname, call the system
52847         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
52848         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52849         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
52850         found in libnsl. Look for the declaration also in <netdb.h>. Replace
52851         the function if its second argument is of type 'int' or if it is found
52852         in libnsl.
52853         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
52854         <sys/systeminfo.h> and sysinfo().
52855         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
52856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52857         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
52858         HAVE_GETDOMAINNAME.
52859         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
52860         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
52861         * doc/glibc-functions/getdomainname.texi: Document the problems with
52862         the getdomainname declaration.
52864 2010-11-28  Bruno Haible  <bruno@clisp.org>
52866         sys_socket: Ensure ss_family field on AIX.
52867         * lib/sys_socket.in.h (ss_family): New macro definition.
52868         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
52869         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
52870         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52871         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
52872         * modules/sys_socket (Makefile.am): Substitute
52873         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
52874         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
52876 2010-11-27  Bruno Haible  <bruno@clisp.org>
52878         readline: Improve configure output.
52879         * m4/readline.m4 (gl_FUNC_READLINE): Make the
52880         "checking for readline..." result understandable.
52882 2010-11-27  Bruno Haible  <bruno@clisp.org>
52884         *printf-posix: Detect a bug on Solaris 10/x86.
52885         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
52886         for floating-point output.
52887         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
52888         directive.
52889         * tests/test-snprintf-posix.h (test_function): Likewise.
52890         * tests/test-sprintf-posix.h (test_function): Likewise.
52891         * tests/test-vasprintf-posix.c (test_function): Likewise.
52892         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
52893         * doc/posix-functions/printf.texi: Likewise.
52894         * doc/posix-functions/snprintf.texi: Likewise.
52895         * doc/posix-functions/sprintf.texi: Likewise.
52896         * doc/posix-functions/vfprintf.texi: Likewise.
52897         * doc/posix-functions/vprintf.texi: Likewise.
52898         * doc/posix-functions/vsnprintf.texi: Likewise.
52899         * doc/posix-functions/vsprintf.texi: Likewise.
52900         * doc/glibc-functions/obstack_printf.texi: Likewise.
52901         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
52903 2010-11-27  Bruno Haible  <bruno@clisp.org>
52905         Fix link error when module libunistring-optional is in use.
52906         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
52907         * modules/striconveha-tests (Makefile.am): Likewise.
52909 2010-11-27  Bruno Haible  <bruno@clisp.org>
52911         regex: Mention link dependencies.
52912         * modules/regex (Link): New section.
52913         * modules/rpmatch (Link): Likewise.
52914         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
52916 2010-11-27  Bruno Haible  <bruno@clisp.org>
52918         ftoastr: Fix compilation error on Solaris.
52919         * lib/ftoastr.c: Include <config.h>.
52921 2010-11-27  Bruno Haible  <bruno@clisp.org>
52923         getloadavg: Update documentation.
52924         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
52926 2010-11-27  Bruno Haible  <bruno@clisp.org>
52928         sys_socket: Fix test whether the functions are declared.
52929         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
52930         not <sys/select.h>.
52932 2010-11-27  Bruno Haible  <bruno@clisp.org>
52934         getpass: Make sure to get system declaration on some platforms.
52935         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
52936         gl_USE_SYSTEM_EXTENSIONS.
52937         * modules/getpass (Depends-on): Add extensions.
52939 2010-11-26  Bruno Haible  <bruno@clisp.org>
52941         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
52942         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
52943         'iconv' module is present.
52944         (ICONV_CONST): New macro.
52945         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
52946         ICONV_CONST.
52947         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
52948         set ICONV_CONST.
52949         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
52950         here.
52951         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
52952         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
52953         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
52954         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
52955         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
52956         present.
52958 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52960         ftoastr: comment fix
52961         * lib/ftoastr.c: "little" -> "little or no" in comment
52963 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
52965         stdint: port to GCC 4.3 + OSX + Octave
52966         On this platform, stdint.h is buggy and defines int64_t to long
52967         long int.  The replacement defined it to long int, causing
52968         problems with C++ style name mangling.  Instead, trust the system
52969         definition if INT64_MAX is defined, and likewise for the unsigned
52970         variant.   Problem reported by Jarno Rajahalme in
52971         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
52972         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
52973         and don't mess with int64_t and INT64_MAX in this case.
52974         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
52976 2010-11-24  Bruno Haible  <bruno@clisp.org>
52978         doc: Corrections regarding MacOS X 10.4 and 10.5.
52979         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
52980         MacOS X.
52981         Reported by Simon Josefsson.
52983 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
52985         Uninstall ".bin" files installed by relocwrapper.
52986         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
52987         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
52988         unless it is already there.
52990 2010-11-21  Bruno Haible  <bruno@clisp.org>
52992         Update for NetBSD 5.0.
52993         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
52994         NetBSD; the test fails on NetBSD 5.0.
52995         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
52996         about NetBSD.
52998 2010-11-21  Bruno Haible  <bruno@clisp.org>
53000         Update for HP-UX 11.23 and HP-UX 11.31.
53001         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
53002         HP-UX.
53004 2010-11-21  Bruno Haible  <bruno@clisp.org>
53006         Update for MacOS X 10.5.
53007         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
53008         MacOS X; the test fails on MacOS X 10.5.8.
53009         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
53010         about MacOS X.
53012 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
53014         bootstrap: add bootstrap_sync option.
53015         See discussion at
53016         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
53017         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
53018         * build-aux/bootstrap: Accept --bootstrap-sync to update
53019         bootstrap if it is not identical to the local gnulib's
53020         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
53021         enable this by default.  Accept --no-bootstrap-sync to disable
53022         it.
53024 2010-11-20  Bruno Haible  <bruno@clisp.org>
53026         Ensure that <features.h> is included before __GLIBC__ is tested.
53027         * lib/printf-parse.h: Include <features.h>.
53028         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
53029         Reported by Mike Frysinger <vapier@gentoo.org>.
53031         Ensure that <features.h> is included before __GLIBC__ is tested.
53032         * lib/wchar.in.h: Include <features.h>.
53033         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
53034         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
53035         Reported by Mike Frysinger <vapier@gentoo.org>.
53037         Ensure that <features.h> is included before __GLIBC__ is tested.
53038         * lib/arpa_inet.in.h: Include <features.h>.
53039         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
53040         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
53041         Reported by Mike Frysinger <vapier@gentoo.org>.
53043         Ensure that <features.h> is included before __GLIBC__ is tested.
53044         * build-aux/link-warning.h: Include <features.h>.
53045         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
53046         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
53047         Reported by Mike Frysinger <vapier@gentoo.org>.
53049         Ensure that <features.h> is included before __GLIBC__ is tested.
53050         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
53051         Reported by Mike Frysinger <vapier@gentoo.org>.
53053 2010-11-20  Bruno Haible  <bruno@clisp.org>
53055         memmem: Fix autoconf test.
53056         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
53058 2010-11-20  Bruno Haible  <bruno@clisp.org>
53060         Port to uClibc.
53061         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
53062         * lib/fcntl.in.h: Likewise.
53063         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
53064         * lib/mbrtowc.c (mbrtowc): Likewise.
53065         * lib/relocatable.c (find_shared_library_fullname): Likewise.
53066         * lib/strerror_r.c: Likewise.
53067         * lib/unistr/u8-strnlen.c: Likewise.
53068         * lib/vasnprintf.c (decimal_point_char): Likewise.
53069         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
53070         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
53071         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
53072         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53073         * tests/test-sigaction.c (handler, main): Likewise.
53074         * lib/freading.h: Treat uClibc like a non-glibc platform.
53075         * lib/freading.c: Likewise.
53076         * lib/gettext.h: Likewise.
53077         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
53078         Likewise.
53079         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
53080         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
53081         * lib/propername.c (proper_name_utf8): Likewise.
53082         * lib/spawn.in.h: Likewise.
53083         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
53084         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
53085         mem_cd_iconveh_internal): Likewise.
53086         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
53087         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
53088         strstr, strcasestr): Likewise.
53089         * lib/unicodeio.c (unicode_to_mb): Likewise.
53090         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
53091         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
53092         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
53093         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
53094         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
53095         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
53096         * lib/unistr/u8-stpncpy.c: Likewise.
53097         * lib/vasnprintf.c (VASNPRINTF): Likewise.
53098         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
53099         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53100         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53101         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53102         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
53103         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
53104         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
53105         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
53106         Likewise.
53107         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
53108         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53109         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
53110         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53111         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53112         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
53113         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
53114         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
53115         * tests/test-getopt.h (OPTIND_MIN): Likewise.
53116         * tests/test-striconveha.c (main): Likewise.
53117         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53118         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
53119         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
53120         * doc/posix-functions/getline.texi: Likewise.
53121         Reported by Mike Frysinger <vapier@gentoo.org>.
53123 2010-11-20  Bruno Haible  <bruno@clisp.org>
53125         nproc: Fix condition.
53126         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
53127         HAVE_PTHREAD_AFFINITY_NP.
53129 2010-11-20  Bruno Haible  <bruno@clisp.org>
53131         Fix a comment.
53132         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
53134 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
53136         ftoastr: don't assume snprintf
53137         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
53138         Implement a subset of snprintf here, by using sprintf safely.
53139         * modules/ftoastr (Depends-on): Remove snprintf.
53141 2010-11-19  Jim Meyering  <meyering@redhat.com>
53143         test-rename.h: fix compilation failure
53144         * tests/test-rename.h (test_rename): Add omitted "}".
53146 2010-11-17  Jim Meyering  <meyering@redhat.com>
53148         maint.mk: add a URL discussing the no-@acronym policy
53149         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
53151 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
53153         ftoastr: depend on snprintf, improve comments
53154         * lib/ftoastr.c: Also mention Loitsch's draft.
53155         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
53156         needed in the current implementation, but it might simplify
53157         speeding up the code later.
53158         * modules/ftoastr: Depend on snprintf; this improves portability.
53159         Suggested by Bruno Haible in the same email.
53161         ftoastr: port to hosts lacking strtof and strtold
53162         Problem reported by Bruno Haible in
53163         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
53164         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
53165         environment and strtold (and presumably strtof) are not available.
53166         * modules/ftoastr (Files): Add m4/c-strtod.m4.
53167         (configure.ac): Require gl_C99_STRTOLD.
53169 2010-11-18  Bruno Haible  <bruno@clisp.org>
53171         c-strtold: Avoid link error on AIX 7.
53172         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
53173         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
53174         (gl_C_STRTOLD): Test whether strtold_l exists.
53175         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53177 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53179         intprops: new macro INT_BITS_STRLEN_BOUND
53180         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
53181         ftoastr.h.  This exposes an internal of intprops.h that was formerly
53182         not exposed.  Also, it uses a slightly tighter bound than before;
53183         though this makes no practical difference, we might as well be as
53184         tight as we easily can.
53186         ftoastr: new module, for lossless conversion of floats to short strings
53187         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
53188         * modules/ftoastr: New files.
53190 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53192         bootstrap: port to Solaris sed
53193         * build-aux/bootstrap (get_version): Port to Solaris sed.
53194         See Ralf Wildenhues's note in
53195         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
53197 2010-11-14  Jim Meyering  <meyering@redhat.com>
53199         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
53200         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
53201         and move definition closer to sole use.
53203 2010-11-13  Jim Meyering  <meyering@redhat.com>
53205         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
53206         Now we require at least autoconf-2.59, which means the work-around
53207         is no longer needed.
53208         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
53209         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
53210         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53211         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
53212         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
53214 2010-11-13  Bruno Haible  <bruno@clisp.org>
53216         rename, renameat: Avoid test failures at NFS mounted locations.
53217         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
53218         functions.
53219         (test_rename): Use assert_nonexistent.
53220         * tests/test-rename.c: Include <dirent.h>.
53221         * tests/test-renameat.c: Likewise.
53222         Reported by Gary V. Vaughan <gary@gnu.org>.
53224         rename, renameat: Document Linux bug with NFS
53225         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
53226         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
53227         * doc/posix-functions/renameat.texi: Likewise.
53228         Suggested by Eric Blake.
53230 2010-11-13  Bruno Haible  <bruno@clisp.org>
53232         rename test: Add comments.
53233         * tests/test-rename.h (test_rename): Add structure and comments.
53235 2010-11-13  Eric Blake  <eblake@redhat.com>
53237         maintainer-makefile: cover a few more files
53238         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
53239         scripts generated within C files, for libvirt.
53241 2010-11-13  Bruno Haible  <bruno@clisp.org>
53243         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
53244         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
53245         character, return the number of bytes that belong together, not always
53246         1.
53247         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
53248         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
53249         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
53250         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
53251         number of bytes of an invalid character.
53252         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
53253         (main): Invoke it.
53254         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
53255         results.
53256         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
53257         malformed byte sequences.
53258         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
53259         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
53260         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
53261         Reported by Ben Pfaff and Paolo Bonzini.
53263 2010-11-13  Bruno Haible  <bruno@clisp.org>
53265         openat: Work around glibc bug with fchownat() and empty file names.
53266         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
53267         (gl_FUNC_FCHOWNAT): Invoke it.
53268         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
53269         * doc/posix-functions/fchownat.texi: Document the glibc bug.
53270         Reported by Gary V. Vaughan <gary@gnu.org>.
53272 2010-11-13  Bruno Haible  <bruno@clisp.org>
53274         openat: Ensure autoconf macro ordering.
53275         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
53276         gl_USE_SYSTEM_EXTENSIONS.
53277         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
53279 2010-11-13  Bruno Haible  <bruno@clisp.org>
53281         Update comments.
53282         * lib/unistr/u8-check.c: Update file name in comments.
53283         * lib/unistr/u8-mblen.c: Likewise.
53284         * lib/unistr/u8-prev.c: Likewise.
53285         * lib/unistr/u8-strmblen.c: Likewise.
53286         * lib/unistr/u8-strmbtouc.c: Likewise.
53288 2010-11-13  Jim Meyering  <meyering@redhat.com>
53290         tests: avoid test failure on Solaris 10 due to lack of PATH export
53291         * tests/test-update-copyright.sh: Don't forget to export PATH.
53293         init.sh: ensure that IFS is defined, just in case...
53294         * tests/init.sh (setup_): Ensure that IFS is defined,
53295         so that saving and restoring it works as expected.  This
53296         appears to be useful at least for an old version of dash
53297         from a long time ago (RH 6).  See here for details:
53298         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
53300         maint.mk: tighten "test a == b" check
53301         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
53302         test to files that contain something like #!/bin/sh.
53303         Without this, coreutils would get two false positives in
53304         the comments of C source files.
53306 2010-11-12  Eric Blake  <eblake@redhat.com>
53308         bootstrap: fix typo in previous attempt
53309         * build-aux/bootstrap (buildreq): Correct the grouping.
53310         Reported by Paul Eggert.
53312         maintainer-makefile: prohibit test x == x
53313         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
53314         Based on a report by Matthias Bolte.
53316         bootstrap: allow FreeBSD gzip
53317         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
53318         which has no '.' and goes to stderr.
53319         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
53320         Reported by Matthias Bolte.
53322         maintainer-makefile: check for i18n setup
53323         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
53324         will likely work.
53326 2010-11-12  Bruno Haible  <bruno@clisp.org>
53328         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
53329         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
53330         * lib/nanosleep.c (nanosleep): Likewise.
53332 2010-11-11  Bruno Haible  <bruno@clisp.org>
53334         fcntl-h: Fix for use of C++ on glibc systems.
53335         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
53336         also on glibc systems in C++ mode.
53337         Reported by Gary V. Vaughan <gary@gnu.org>.
53339 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
53341         mknod: avoid false failure with dash
53342         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
53344 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53346         unlink: Fix "is it should" typo in diagnostic.
53347         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
53348         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
53350 2010-11-11  Bruno Haible  <bruno@clisp.org>
53352         Tests for module 'strerror_r-posix'.
53353         * modules/strerror_r-posix-tests: New file.
53354         * tests/test-strerror_r.c: New file.
53355         * tests/test-string-c++.cc: Check the signature of strerror_r.
53357         New module 'strerror_r-posix'.
53358         * lib/string.in.h (strerror_r): New declaration.
53359         * lib/strerror_r.c: New file.
53360         * m4/strerror_r.m4: New file.
53361         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
53362         of strerror_r.
53363         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
53364         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
53365         * modules/strerror_r-posix: New file.
53366         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
53367         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
53368         * doc/posix-functions/strerror_r.texi: Mention the new module and the
53369         portability problems.
53371 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
53373         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
53374         line is also considered for output. Quoted function name in shell
53375         command, so temporary files for functions like MyClass::operator()
53376         are removed correctly without errors.
53378 2010-11-09  Bruno Haible  <bruno@clisp.org>
53380         * doc/posix-functions/strerror.texi: List more failing platforms.
53382         * doc/posix-functions/strerror.texi: Add a comment.
53384 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53386         fdopendir: fix bug on MacOS X when low on file descriptors
53388         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
53389         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
53390         All callers changed.
53391         (fdopendir): Invoke save_cwd at the top level, not after using
53392         multiple dup() calls to use up file descriptors.  Then retry
53393         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
53394         less than the maximum number of open file descriptors, because
53395         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
53396         on Mac OS X 10.6.4 for tar 1.24
53397         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
53398         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
53399         and for tar 1.25
53400         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
53402 2010-11-07  Bruno Haible  <bruno@clisp.org>
53404         vasnprintf: Support I flag on glibc systems.
53405         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
53406         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
53407         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
53408         snprintf function.
53409         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
53410         glibc systems.
53411         * tests/test-vasnprintf-posix3.c: New file.
53412         * modules/vasnprintf-posix-tests (Files): Add it.
53413         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
53415 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53417         [html] Fix copy/paste bug: Use unique name for compiler warnings.
53418         * MODULES.html.sh: For compiler warnings, use name
53419         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
53421 2010-11-05  Eric Blake  <eblake@redhat.com>
53423         ceil, floor: avoid spurious failure with icc
53424         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
53425         [denormals-as-zero] when optimizing without -mieee-fp option.
53426         * tests/test-floorf2.c (floorf_reference): Likewise.
53427         * tests/test-ceilf1.c (dummy): New function.
53428         (main): Use it to outsmart icc's optimization.
53429         * tests/test-floorf1.c (dummy, main): Likewise.
53431         tests: require working signbit
53432         * modules/ceilf-tests (Depends-on): Add signbit.
53433         * modules/ceill-tests (Depends-on): Likewise.
53434         * modules/floorf-tests (Depends-on): Likewise.
53435         * modules/floorl-tests (Depends-on): Likewise.
53436         * modules/round-tests (Depends-on): Likewise.
53437         * modules/roundf-tests (Depends-on): Likewise.
53438         * modules/roundl-tests (Depends-on): Likewise.
53439         * modules/trunc-tests (Depends-on): Likewise.
53440         * modules/truncf-tests (Depends-on): Likewise.
53441         * modules/truncl-tests (Depends-on): Likewise.
53443         strtod: work around icc bug
53444         * lib/strtod.c (minus_zero): Define to working value.
53445         (strtod): Use it to avoid icc bug.
53447         copysign: enhance tests
53448         * modules/copysign-tests (Files): Add minus-zero.h.
53449         * tests/test-copysign.c (main): Also test zeros.
53451 2010-11-04  Eric Blake  <eblake@redhat.com>
53453         ceil, floor, round, trunc: enhance tests of -0
53454         * tests/test-ceilf1.c (main): Ensure correct sign of result.
53455         * tests/test-ceill.c (main): Likewise.
53456         * tests/test-floorf1.c (main): Likewise.
53457         * tests/test-floorl.c (main): Likewise.
53458         * tests/test-round1.c (main): Likewise.
53459         * tests/test-roundf1.c (main): Likewise.
53460         * tests/test-roundl.c (main): Likewise.
53461         * tests/test-trunc1.c (main): Likewise.
53462         * tests/test-truncf1.c (main): Likewise.
53463         * tests/test-truncl.c (main): Likewise.
53465 2010-11-04  Eric Blake  <eblake@redhat.com>
53467         frexp, tests: work around ICC bug with -zero
53468         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
53469         works with more compilers.
53470         * tests/minus-zero.h: New file.
53471         * modules/ceilf-tests (Files): Include it.
53472         * modules/ceill-tests (Files): Likewise.
53473         * modules/floorf-tests (Files): Likewise.
53474         * modules/floorl-tests (Files): Likewise.
53475         * modules/frexp-nolibm-tests (Files): Likewise.
53476         * modules/frexp-tests (Files): Likewise.
53477         * modules/frexpl-nolibm-tests (Files): Likewise.
53478         * modules/frexpl-tests (Files): Likewise.
53479         * modules/isnan-tests (Files): Likewise.
53480         * modules/isnand-nolibm-tests (Files): Likewise.
53481         * modules/isnand-tests (Files): Likewise.
53482         * modules/isnanf-nolibm-tests (Files): Likewise.
53483         * modules/isnanf-tests (Files): Likewise.
53484         * modules/isnanl-nolibm-tests (Files): Likewise.
53485         * modules/isnanl-tests (Files): Likewise.
53486         * modules/round-tests (Files): Likewise.
53487         * modules/roundf-tests (Files): Likewise.
53488         * modules/roundl-tests (Files): Likewise.
53489         * modules/ldexpl-tests (Files): Likewise.
53490         * modules/signbit-tests (Files): Likewise.
53491         * modules/snprintf-posix-tests (Files): Likewise.
53492         * modules/sprintf-posix-tests (Files): Likewise.
53493         * modules/strtod-tests (Files): Likewise.
53494         * modules/trunc-tests (Files): Likewise.
53495         * modules/truncf-tests (Files): Likewise.
53496         * modules/truncl-tests (Files): Likewise.
53497         * modules/vsnprintf-posix-tests (Files): Likewise.
53498         * modules/vsprintf-posix-tests (Files): Likewise.
53499         * modules/vasnprintf-posix-tests (Files): Likewise.
53500         * modules/vasprintf-posix-tests (Files): Likewise.
53501         * tests/test-ceilf1.c (main): Use it.
53502         * tests/test-ceill.c (main): Likewise.
53503         * tests/test-floorf1.c (main): Likewise.
53504         * tests/test-floorl.c (main): Likewise.
53505         * tests/test-frexp.c (main): Likewise.
53506         * tests/test-frexpl.c (main): Likewise.
53507         * tests/test-isnan.c (main): Likewise.
53508         * tests/test-isnand.h (main): Likewise.
53509         * tests/test-isnanf.h (main): Likewise.
53510         * tests/test-isnanl.h (main): Likewise.
53511         * tests/test-ldexpl.c (main): Likewise.
53512         * tests/test-round.c (main): Likewise.
53513         * tests/test-roundf.c (main): Likewise.
53514         * tests/test-roundl.c (main): Likewise.
53515         * tests/test-signbit.c (test_signbitf, test_signbitd)
53516         (test_signbitl): Likewise.
53517         * tests/test-snprintf-posix.h (test_function): Likewise.
53518         * tests/test-sprintf-posix.h (test_function): Likewise.
53519         * tests/test-strtod.c (main): Likewise.
53520         * tests/test-trunc1.c (main): Likewise.
53521         * tests/test-truncf1.c (main): Likewise.
53522         * tests/test-truncl.c (main): Likewise.
53524         isnanl: work around icc bug
53525         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
53527 2010-11-03  Eric Blake  <eblake@redhat.com>
53529         tests: fix compiler warnings
53530         * tests/test-getopt.h (test_getopt): Fix condition.
53531         * tests/test-getopt_long.h (test_getopt_long): Likewise.
53532         * tests/test-pipe2.c (main): Likewise.
53533         * tests/test-quotearg-simple.c (main): Avoid icc warning.
53535         utimens: fix broken m4 test
53536         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
53538 2010-10-28  Bruno Haible  <bruno@clisp.org>
53540         posix_spawn*, getdtablesize: Relax license.
53541         * modules/posix_spawn (License): Change to LGPLv2+.
53542         * modules/posix_spawnp (License): Likewise.
53543         * modules/posix_spawn-internal (License): Likewise.
53544         * modules/posix_spawnattr_init (License): Likewise.
53545         * modules/posix_spawnattr_getflags (License): Likewise.
53546         * modules/posix_spawnattr_setflags (License): Likewise.
53547         * modules/posix_spawnattr_getpgroup (License): Likewise.
53548         * modules/posix_spawnattr_setpgroup (License): Likewise.
53549         * modules/posix_spawnattr_getschedparam (License): Likewise.
53550         * modules/posix_spawnattr_setschedparam (License): Likewise.
53551         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
53552         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
53553         * modules/posix_spawnattr_getsigdefault (License): Likewise.
53554         * modules/posix_spawnattr_setsigdefault (License): Likewise.
53555         * modules/posix_spawnattr_getsigmask (License): Likewise.
53556         * modules/posix_spawnattr_setsigmask (License): Likewise.
53557         * modules/posix_spawnattr_destroy (License): Likewise.
53558         * modules/posix_spawn_file_actions_init (License): Likewise.
53559         * modules/posix_spawn_file_actions_addclose (License): Likewise.
53560         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
53561         * modules/posix_spawn_file_actions_addopen (License): Likewise.
53562         * modules/posix_spawn_file_actions_destroy (License): Likewise.
53563         * modules/getdtablesize (License): Likewise.
53564         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
53566 2010-10-26  Bruno Haible  <bruno@clisp.org>
53568         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
53569         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
53570         Cygwin and mingw.
53571         Suggested by Eric Blake.
53573 2010-10-26  Bruno Haible  <bruno@clisp.org>
53575         stdio: Work around compilation error due to renameat() on Solaris 10.
53576         * lib/stdio.in.h: Include <unistd.h> on Solaris.
53577         * lib/renameat.c: Don't include <unistd.h> here.
53578         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
53579         Reported by Paul Eggert and Eric Blake.
53581 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
53583         renameat: port to Solaris 10, which declares renameat in unistd.h
53585         * lib/renameat.c: Include unistd.h before stdio.h, because
53586         Solaris 10 declares renameat in unistd.h.  Problem encountered
53587         when building GNU tar 1.24 on Solaris 10.
53589 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
53591         fdopendir: fix C89 compilation
53592         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
53593         compilers.
53595 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
53597         inttostr: simplify by removing unnecessary redundancy
53598         * lib/anytostr.c: Don't include verify.h.
53599         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
53600         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
53601         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
53602         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
53603         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
53604         Likewise.
53605         * modules/inttostr (Depends-on): Remove 'verify'.
53607 2010-10-23  Bruno Haible  <bruno@clisp.org>
53609         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
53610         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
53611         Reported by Eric Blake.
53613 2010-10-23  Bruno Haible  <bruno@clisp.org>
53615         Tests: Fix LOCALE_JA on MirBSD 10.
53616         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
53617         to an UTF-8 locale.
53618         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
53619         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53620         Reported by Eric Blake.
53622 2010-10-21  Bruno Haible  <bruno@clisp.org>
53624         nl_langinfo test: Avoid test failure on NetBSD 5.
53625         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
53626         Reported by Eric Blake.
53628 2010-10-21  Eric Blake  <eblake@redhat.com>
53630         c-stack: work around libsigsegv 2.8 bug
53631         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
53632         overflow on at least PowerPC64.
53634 2010-10-17  Bruno Haible  <bruno@clisp.org>
53636         userspec: Drop redundant file.
53637         * modules/userspec (Files): Remove lib/inttostr.h.
53639 2010-10-17  Bruno Haible  <bruno@clisp.org>
53641         nl_langinfo tests: Silence some warnings.
53642         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
53643         Reported by Jim Meyering.
53645 2010-10-17  Bruno Haible  <bruno@clisp.org>
53647         Make use of GCC's attribute __alloc_size__.
53648         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
53649         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
53650         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
53651         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
53652         __alloc_size__.
53653         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
53654         Suggested by Jim Meyering.
53656 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
53658         bootstrap: anchor .gitignore entries.
53659         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
53660         with...
53661         (insert_vc_ignore): ... this new function, which prepends `/' to
53662         all .gitignore entries before passing them to
53663         insert_sorted_if_absent.
53665 2010-10-16  Bruno Haible  <bruno@clisp.org>
53667         nextafter: Fix configure check.
53668         * modules/nextafter (configure.ac): Correct expected prototype.
53670 2010-10-16  Bruno Haible  <bruno@clisp.org>
53672         termios: Update documentation.
53673         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
53675 2010-10-16  Bruno Haible  <bruno@clisp.org>
53677         tests: Make them compile with TinyCC.
53678         * tests/test-strstr.c (main): Remove parentheses around array
53679         initializer.
53681 2010-10-15  Eric Blake  <eblake@redhat.com>
53683         ignore-value: make header idempotent
53684         * lib/ignore-value.h: Add double-inclusion guards.
53685         Reported by Stefan Berger.
53687 2010-10-15  Jim Meyering  <meyering@redhat.com>
53689         GNUmakefile: handle "stable" target, not "major"
53690         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
53691         lists in maint.mk and announce-gen.  Without this, "make stable"
53692         would fail to ensure that $(VERSION) is up to date.
53694 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
53696         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
53697         & co.
53699 2010-10-14  Bruno Haible  <bruno@clisp.org>
53701         vasnprintf: Don't set errno to 0.
53702         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
53703         block that sets it to 0.
53704         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
53706 2010-10-14  Bruno Haible  <bruno@clisp.org>
53708         socketlib: Fix.
53709         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
53710         gl_PREREQ_SYS_H_WINSOCK2.
53711         Reported by Ian Beckwith <ianb@erislabs.net>.
53713 2010-10-13  Jim Meyering  <meyering@redhat.com>
53715         test-select-stdin.c: avoid warn_unused_result warnings
53716         * tests/test-select-stdin.c: Include "macros.h".
53717         ASSERT that read and fflush succeed.
53719 2010-10-13  Jim Meyering  <meyering@redhat.com>
53721         git-version-gen: do require git-VC'd files in cwd
53722         * build-aux/git-version-gen: Reject a git version string
53723         if there are no commits associated with the current directory.
53724         This avoids an unlikely false-positive (unrelated dir whose parent
53725         repository also contains a tag matching v*), as pointed out
53726         by Giuseppe Scrivano in
53727         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
53729 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
53731         argv-iter: omit nonconforming declaration
53732         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
53733         enum arg_iter_err declaration, which doesn't conform to C99.
53734         Solaris 10 cc warns about this.
53736 2010-10-13  Eric Blake  <eblake@redhat.com>
53738         termios: fix compilation on mingw
53739         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
53740         (gl_TERMIOS_H): Adjust it on mingw.
53741         * modules/termios (Makefile.am): Substitute new key.
53742         * lib/termios.in.h (includes): Make include_next conditional.
53743         * doc/posix-headers/termios.texi (termios.h): Update
53744         documentation.
53745         Reported by Daniel P. Berrange.
53747 2010-10-13  Jim Meyering  <meyering@redhat.com>
53749         git-version-gen: don't require that .git/ be in the current dir
53750         * build-aux/git-version-gen: Adjust this script so that it works
53751         when run from any working directory beneath the top-level .git/-
53752         containing directory.  Inspired by a patch from Giuseppe Scrivano,
53753         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
53755         test-select: avoid warn_unused_result warnings
53756         * tests/test-select.c: Include "macros.h".
53757         ASSERT that each call to read, write, and pipe succeeds.
53758         While not technically required, also check each "close".
53759         * modules/select-tests (Files): Add tests/macros.h.
53761         test-symlinkat: remove declaration of unused local
53762         * tests/test-symlinkat.c (main): Remove unused local, "buf".
53764         test-inttostr: avoid shadowing warnings
53765         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
53766         and use malloc rather than the stack for the same reason as
53767         mentioned in the comment justifying the other allocation.
53769 2010-10-11  Bruno Haible  <bruno@clisp.org>
53771         stdlib: Allow multiple gnulib generated replacements to coexist.
53772         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
53773         Reported by Sam Steingold <sds@gnu.org>.
53775 2010-10-11  Jim Meyering  <meyering@redhat.com>
53777         fix a documentation typo
53778         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
53780 2010-10-11  Eric Blake  <eblake@redhat.com>
53782         futimens: work around Solaris 11 bug
53783         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
53784         * tests/test-futimens.h (test_futimens): Enhance, rather than
53785         weaken test.
53786         * doc/posix-functions/futimens.texi (futimens): Document the bug.
53788 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53790         Indentation.
53791         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
53792         higher-level operators more to the left.
53794 2010-10-11  Jim Meyering  <meyering@redhat.com>
53796         test-futimens: avoid unwarranted test failure on Solaris 5.11
53797         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
53798         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
53799         because it tries to dereference the NULL name argument.
53801 2010-10-11  Bruno Haible  <bruno@clisp.org>
53803         Indentation.
53804         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
53805         indentation.
53807 2010-10-11  Jim Meyering  <meyering@redhat.com>
53809         spawn.in.h: make indentation consistent with parentheses
53810         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
53811         Make indentation consistent with parentheses.
53813 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
53815         Fix mismatched parens in previous commit
53816         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
53817         parens.
53819 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53821         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
53823         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
53824         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
53825         * lib/malloca.c: Include "verify.h".
53826         (verify1): Remove, replacing with a verify call.
53827         * lib/relocwrapper.c (verify1): Likewise.
53828         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
53829         Likewise.
53830         * modules/malloca (Depends-on): Add 'verify'.
53831         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
53832         * modules/vasnprintf (Depends-on): Add 'verify'.
53833         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53834         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53835         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53836         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53837         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53838         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53839         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53841         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
53843         Formerly the style was sometimes 2*X - 1, because the C standard
53844         was wrongly thought to disallow ?: in integral constant expressions.
53845         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
53846         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
53847         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
53848         * lib/stdint.in.h (_verify_intmax_size): Likewise.
53849         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
53850         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
53851         verify that time_t cannot be floating.
53853 2010-10-08  Eric Blake  <eblake@redhat.com>
53855         time: enforce recent POSIX ruling that time_t is integral
53856         * lib/time.in.h (__time_t_must_be_integral): Detect any
53857         problematic systems, allowing the rest of gnulib to assume POSIX.
53859 2010-10-08  Jim Meyering  <meyering@redhat.com>
53861         fdopendir: fix a bug on systems lacking openat and /proc support
53862         OpenBSD 4.7 is one such system.  The most noticeable effect was
53863         failure of any application making nontrivial use of fts: rm, du,
53864         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
53865           ./rm: traversal failed: `a': Bad file descriptor
53866         Debugging that, you see that even though FD 6 was closed just
53867         prior to the opendir call in fd_clone_opendir, its resulting
53868         dir->dd_fd was 8, rather than the expected value of 6:
53870         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
53871         93                close (fd);
53872         (gdb) n
53873         94                dir = fd_clone_opendir (dupfd);
53874         (gdb) n
53875         95                saved_errno = errno;
53876         (gdb) p dir->dd_fd
53877         $11 = 8
53879         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
53880         The problem is that on OpenBSD, fd_clone_opendir has to resort
53881         to using the old-style save/restore CWD mechanism, due to its
53882         lack of openat/proc support, and *that* would steal the FD (6)
53883         that opendir was supposed to use.
53885         The fix is to squirrel away the desired FD so that save_cwd uses a
53886         different one, and then free the dest FD right before calling opendir.
53887         That guarantees opendir will use the required file descriptor.
53889         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
53891 2010-10-08  Bruno Haible  <bruno@clisp.org>
53893         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
53894         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
53896 2010-10-08  Bruno Haible  <bruno@clisp.org>
53898         nanosleep: Make replacement POSIX compliant.
53899         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
53900         is out of range.
53901         Reported by Jim Meyering.
53903 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53905         bootstrap: add hook for altering gnulib.mk, for Bison
53906         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
53907         the Bison bootstrapping process can rewrite file names and variables
53908         in this file before later parts of 'bootstrap' use the file.
53909         Bison wants to include lib/gnulib.mk from the top-level makefile,
53910         so it needs the file names in this file to be relative to the top
53911         level, not relative to lib; plus it needs variable names to be
53912         rewritten.
53913         (slurp): Use the new function.
53915         bootstrap: reformat for readability
53916         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
53918 2010-10-08  Eric Blake  <eblake@redhat.com>
53920         docs: update cygwin progress
53921         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
53922         1.7.7.
53923         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
53924         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
53925         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
53926         * doc/posix-functions/carg.texi (carg): Likewise.
53927         * doc/posix-functions/cargf.texi (cargf): Likewise.
53928         * doc/posix-functions/casin.texi (casin): Likewise.
53929         * doc/posix-functions/casinf.texi (casinf): Likewise.
53930         * doc/posix-functions/casinh.texi (casinh): Likewise.
53931         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
53932         * doc/posix-functions/catan.texi (catan): Likewise.
53933         * doc/posix-functions/catanf.texi (catanf): Likewise.
53934         * doc/posix-functions/catanh.texi (catanh): Likewise.
53935         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
53936         * doc/posix-functions/ccos.texi (ccos): Likewise.
53937         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
53938         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
53939         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
53940         * doc/posix-functions/cexp.texi (cexp): Likewise.
53941         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
53942         * doc/posix-functions/cimag.texi (cimag): Likewise.
53943         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
53944         * doc/posix-functions/clog.texi (clog): Likewise.
53945         * doc/posix-functions/clogf.texi (clogf): Likewise.
53946         * doc/posix-functions/conj.texi (conj): Likewise.
53947         * doc/posix-functions/conjf.texi (conjf): Likewise.
53948         * doc/posix-functions/cpow.texi (cpow): Likewise.
53949         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
53950         * doc/posix-functions/cproj.texi (cproj): Likewise.
53951         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
53952         * doc/posix-functions/creal.texi (creal): Likewise.
53953         * doc/posix-functions/crealf.texi (crealf): Likewise.
53954         * doc/posix-functions/csin.texi (csin): Likewise.
53955         * doc/posix-functions/csinf.texi (csinf): Likewise.
53956         * doc/posix-functions/csinh.texi (csinh): Likewise.
53957         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
53958         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
53959         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
53960         * doc/posix-functions/ctan.texi (ctan): Likewise.
53961         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
53962         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
53963         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
53964         * doc/posix-headers/complex.texi (complex.h): Likewise.
53966 2010-10-07  Jim Meyering  <meyering@redhat.com>
53968         parse-datetime: avoid compilation failure on OpenBSD 4.7
53969         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
53970         This works around a compilation failure on OpenBSD 4.7:
53971         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
53973 2010-10-07  Eric Blake  <eblake@redhat.com>
53975         docs: update cygwin progress
53976         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
53977         1.7.6.
53978         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
53979         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
53980         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
53981         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
53982         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
53983         Likewise.
53984         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
53985         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
53986         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
53987         Likewise.
53988         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
53989         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
53990         Likewise.
53991         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
53992         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
53993         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
53994         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
53995         Likewise.
53996         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
53997         Likewise.
53998         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
54000         docs: update parse-datetime history
54001         * doc/parse-datetime.texi (Authors of parse_datetime): Better
54002         documentation of this function's history and alternatives.
54004         cygwin: use more robust version check
54005         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
54006         exclude an eventual cygwin 1.9.1.
54007         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
54008         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
54009         (gl_FUNC_STRCASESTR): Likewise.
54010         Reported by Bruno Haible.
54012 2010-10-06  Bruno Haible  <bruno@clisp.org>
54014         string, sys_select: Avoid #including large headers unless necessary.
54015         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
54016         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
54017         OSF/1, BeOS, Haiku.
54018         Reported by Jim Meyering.
54020 2010-10-05  Eric Blake  <eblake@redhat.com>
54022         memmem, strstr, strcasestr: fix bug with long periodic needle
54023         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
54024         periodic needle having false positive.
54025         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
54026         and cygwin 1.7.7.
54027         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
54028         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
54029         (gl_FUNC_STRCASESTR): Likewise.
54030         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
54031         * tests/test-memmem.c (main): Expose the bug.
54032         * tests/test-strcasestr.c (main): Likewise.
54033         * tests/test-strstr.c (main): Likewise.
54034         * tests/test-c-strcasestr.c (main): Likewise.
54035         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
54036         * doc/posix-functions/strstr.texi (strstr): Likewise.
54037         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54038         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
54040 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54042         parse-datetime: do some more renaming
54043         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
54044         parse_datetime, not get_date.  Mention the renaming.
54045         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
54046         in comments.
54047         * m4/bison.m4: Likewise.
54049 2010-10-05  Eric Blake  <eblake@redhat.com>
54051         parse-datetime: better name than get_date
54052         * NEWS: Reword the deprecation notice.
54053         * modules/get_date: Rename to modules/parse-datetime.
54054         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
54055         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
54056         * lib/get_date.y: Rename to lib/parse-datetime.y.
54057         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
54058         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
54059         * doc/getdate.texi: Provide fallback wrapper.
54060         * lib/getdate.h: Move guts, and wrap...
54061         * lib/parse-datetime.h: ...new file.
54062         * lib/parse-datetime.y (get_date): Rename...
54063         (parse_datetime): ...to this.
54064         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
54065         (gl_PARSE_DATETIME): ...to this.
54066         * doc/posix-functions/getdate.texi (get_date): Provide fallback
54067         documentation.
54068         * modules/getdate (Files): Provide fallback docs and header.
54069         (Notice, Depends-on): Update references.
54070         * tests/test-parse-datetime.c: Likewise.
54071         * DEPENDENCIES: Likewise.
54072         * MODULES.html.sh (Date and time <time.h>): Likewise.
54073         * doc/parse-datetime.texi (Date input formats)
54074         (Authors of parse_datetime): Likewise.
54075         * modules/parse-datetime (Files, configure.ac, Makefile.am)
54076         (Include): Likewise.
54077         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
54078         * gnulib-tool: Likewise.
54079         * m4/bison.m4 (gl_BISON): Likewise.
54080         Suggested by Bruno Haible.
54082 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54084         more ports to Solaris tr, which needs [] around ranges
54085         * gnulib-tool: Solaris tr needs [] around ranges.
54086         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
54087         * tests/test-pipe-filter-gi1.c (main): Likewise.
54088         * tests/test-pipe-filter-ii1.c (main): Likewise.
54090 2010-10-05  Eric Blake  <eblake@redhat.com>
54092         bootstrap: fix Solaris regression
54093         * build-aux/bootstrap (check_versions): Solaris tr still needs []
54094         around ranges.
54095         Reported by Pádraig Brady.
54097         bootstrap: work with pkg-config
54098         * build-aux/bootstrap (check_versions): Also transliterate - in
54099         prerequisite name.
54100         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
54101         prerequisites that were already found, to avoid confusion.
54102         Reported by Justin Clift.
54104         faccessat: remove unused wrappers
54105         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
54106         presence of these wrappers dragged in -lgen on Solaris.
54107         Reported by Clemens Brogi; fix suggested by Paul Eggert.
54109 2010-10-05  Jim Meyering  <meyering@redhat.com>
54111         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
54112         * Makefile (sc_pragma_columns): New syntax-check rule.
54114 2010-10-04  Bruno Haible  <bruno@clisp.org>
54116         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
54117         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
54118         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
54119         Reported by Bruce Korb and Eric Blake.
54121 2010-10-04  Bruno Haible  <bruno@clisp.org>
54123         threadlib: Make option --with-libpth-prefix work.
54124         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
54125         use $LIBPTH, not just -lpth.
54127 2010-10-04  Bruno Haible  <bruno@clisp.org>
54129         Avoid line length limitation from HP NonStop system header files.
54130         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
54131         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
54132         * lib/ctype.in.h: Likewise.
54133         * lib/dirent.in.h: Likewise.
54134         * lib/errno.in.h: Likewise.
54135         * lib/fcntl.in.h: Likewise.
54136         * lib/float.in.h: Likewise.
54137         * lib/getopt.in.h: Likewise.
54138         * lib/iconv.in.h: Likewise.
54139         * lib/inttypes.in.h: Likewise.
54140         * lib/langinfo.in.h: Likewise.
54141         * lib/locale.in.h: Likewise.
54142         * lib/math.in.h: Likewise.
54143         * lib/netdb.in.h: Likewise.
54144         * lib/netinet_in.in.h: Likewise.
54145         * lib/poll.in.h: Likewise.
54146         * lib/pthread.in.h: Likewise.
54147         * lib/pty.in.h: Likewise.
54148         * lib/sched.in.h: Likewise.
54149         * lib/se-selinux.in.h: Likewise.
54150         * lib/search.in.h: Likewise.
54151         * lib/signal.in.h: Likewise.
54152         * lib/spawn.in.h: Likewise.
54153         * lib/stdarg.in.h: Likewise.
54154         * lib/stddef.in.h: Likewise.
54155         * lib/stdint.in.h: Likewise.
54156         * lib/stdio.in.h: Likewise.
54157         * lib/stdlib.in.h: Likewise.
54158         * lib/string.in.h: Likewise.
54159         * lib/strings.in.h: Likewise.
54160         * lib/sys_file.in.h: Likewise.
54161         * lib/sys_ioctl.in.h: Likewise.
54162         * lib/sys_select.in.h: Likewise.
54163         * lib/sys_socket.in.h: Likewise.
54164         * lib/sys_stat.in.h: Likewise.
54165         * lib/sys_time.in.h: Likewise.
54166         * lib/sys_times.in.h: Likewise.
54167         * lib/sys_utsname.in.h: Likewise.
54168         * lib/sys_wait.in.h: Likewise.
54169         * lib/sysexits.in.h: Likewise.
54170         * lib/termios.in.h: Likewise.
54171         * lib/time.in.h: Likewise.
54172         * lib/unistd.in.h: Likewise.
54173         * lib/wchar.in.h: Likewise.
54174         * lib/wctype.in.h: Likewise.
54175         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
54176         * modules/ctype (Makefile.am): Likewise.
54177         * modules/dirent (Makefile.am): Likewise.
54178         * modules/errno (Makefile.am): Likewise.
54179         * modules/fcntl-h (Makefile.am): Likewise.
54180         * modules/float (Makefile.am): Likewise.
54181         * modules/getopt-posix (Makefile.am): Likewise.
54182         * modules/iconv-h (Makefile.am): Likewise.
54183         * modules/inttypes (Makefile.am): Likewise.
54184         * modules/langinfo (Makefile.am): Likewise.
54185         * modules/locale (Makefile.am): Likewise.
54186         * modules/math (Makefile.am): Likewise.
54187         * modules/netdb (Makefile.am): Likewise.
54188         * modules/netinet_in (Makefile.am): Likewise.
54189         * modules/poll-h (Makefile.am): Likewise.
54190         * modules/pthread (Makefile.am): Likewise.
54191         * modules/pty (Makefile.am): Likewise.
54192         * modules/sched (Makefile.am): Likewise.
54193         * modules/search (Makefile.am): Likewise.
54194         * modules/selinux-h (Makefile.am): Likewise.
54195         * modules/signal (Makefile.am): Likewise.
54196         * modules/spawn (Makefile.am): Likewise.
54197         * modules/stdarg (Makefile.am): Likewise.
54198         * modules/stddef (Makefile.am): Likewise.
54199         * modules/stdint (Makefile.am): Likewise.
54200         * modules/stdio (Makefile.am): Likewise.
54201         * modules/stdlib (Makefile.am): Likewise.
54202         * modules/string (Makefile.am): Likewise.
54203         * modules/strings (Makefile.am): Likewise.
54204         * modules/sys_file (Makefile.am): Likewise.
54205         * modules/sys_ioctl (Makefile.am): Likewise.
54206         * modules/sys_select (Makefile.am): Likewise.
54207         * modules/sys_socket (Makefile.am): Likewise.
54208         * modules/sys_stat (Makefile.am): Likewise.
54209         * modules/sys_time (Makefile.am): Likewise.
54210         * modules/sys_times (Makefile.am): Likewise.
54211         * modules/sys_utsname (Makefile.am): Likewise.
54212         * modules/sys_wait (Makefile.am): Likewise.
54213         * modules/sysexits (Makefile.am): Likewise.
54214         * modules/termios (Makefile.am): Likewise.
54215         * modules/time (Makefile.am): Likewise.
54216         * modules/unistd (Makefile.am): Likewise.
54217         * modules/wchar (Makefile.am): Likewise.
54218         * modules/wctype (Makefile.am): Likewise.
54220 2010-10-04  Bruno Haible  <bruno@clisp.org>
54222         read-file tests: Avoid a test failure on NonStop Kernel.
54223         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
54224         a regular file.
54225         Reported by Joachim Schmitz <schmitz@hp.com>.
54227 2010-10-03  Bruno Haible  <bruno@clisp.org>
54229         gnulib-tool: Fixes for --create-testdir with --libtool.
54230         * gnulib-tool (func_get_automake_snippet): Don't augment
54231         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
54232         an executable.
54233         (func_create_testdir): Handle module 'alloca' like func_import.
54234         Reported by Bruce Korb <bruce.korb@gmail.com>.
54236 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
54238         Avoid some lines longer than 80 characters.
54239         * lib/stdint.in.h: Break long comment lines.
54240         * lib/math.in.h: Likewise.
54241         (_GL_NUM_UINT_WORDS): New macro, for readability.
54242         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
54243         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
54244         * lib/stdlib.in.h: Likewise.
54245         * lib/spawn.in.h: Likewise.
54246         * lib/sys_socket.in.h: Update an URL.
54247         * lib/sys_stat.in.h: Break long line.
54249 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
54251         Improve pmccabe2html.
54252         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
54253         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
54254         when the sources change. Remove the line in the HTML about "Used
54255         ranges" (which implied that there might be other unused ranges),
54256         rename "Resume" to "Summary" (easier to understand for more users).
54257         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
54258         styles, and some unnecessary blank lines.
54260 2010-10-03  Bruno Haible  <bruno@clisp.org>
54261             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
54263         acl: Add support for ACLs on NonStop Kernel.
54264         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
54265         Check whether the function aclsort() exists.
54266         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
54267         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
54268         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
54269         (acl_nontrivial [HAVE_ACLSORT]: New function.
54270         (file_has_acl): Implement for NonStop Kernel.
54271         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
54272         (qset_acl): Implement for NonStop Kernel.
54273         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
54274         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
54275         (main): Implement for NonStop Kernel.
54276         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
54277         Kernel. Handle this flavor.
54278         * tests/test-set-mode-acl.sh: Likewise.
54279         * tests/test-copy-acl.sh: Likewise.
54280         * tests/test-copy-file.sh: Likewise.
54282 2010-10-03  Bruno Haible  <bruno@clisp.org>
54284         Info about ACLs on NonStop Kernel.
54285         * doc/acl-resources.txt: Add info about NonStop Kernel.
54286         References by Joachim Schmitz <schmitz@hp.com>.
54288 2010-10-02  Bruno Haible  <bruno@clisp.org>
54290         Define missing EDQUOT on NonStop Kernel.
54291         * lib/errno.in.h (EDQUOT): Assign a value if missing.
54292         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
54293         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
54294         missing.
54295         * doc/posix-headers/errno.texi: Mention the NSK bug.
54296         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
54297         Reported by Joachim Schmitz <schmitz@hp.com>.
54299 2010-10-02  Bruno Haible  <bruno@clisp.org>
54301         Update doc for POSIX:2008.
54302         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
54303         Update URL of POSIX specification.
54305 2010-10-02  Bruno Haible  <bruno@clisp.org>
54307         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
54308         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
54309         from gnulib, not from Automake.
54311 2010-10-02  Bruno Haible  <bruno@clisp.org>
54313         New module 'system-posix'.
54314         * modules/system-posix: New file.
54315         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
54316         module is present.
54317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54318         GNULIB_SYSTEM_POSIX.
54319         * modules/stdlib (Depends-on): Remove sys_wait.
54320         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
54321         * doc/posix-functions/system.texi: Mention the new module.
54322         * doc/posix-headers/stdlib.texi: Likewise.
54323         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
54324         define test_sys_wait_macros to a no-op.
54325         Reported by Sam Steingold <sds@gnu.org>.
54327 2010-09-30  Bruno Haible  <bruno@clisp.org>
54329         More renaming from 'getdate' to 'get_date'.
54330         * doc/get_date.texi: Renamed from doc/getdate.texi.
54331         * modules/get_date (Files): Update.
54332         * MODULES.html.sh (Date and time <time.h>): Update.
54333         * DEPENDENCIES: Update.
54334         * gnulib-tool: Update comment.
54335         * m4/bison.m4 (gl_BISON): Likewise.
54336         * m4/get_date.m4 (gl_GET_DATE): Likewise.
54338 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
54340         bootstrap: support ACLOCAL_FLAGS during aclocal
54341         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
54342         can add additional -I dir for third-party .m4 files.
54344 2010-09-30  Eric Blake  <eblake@redhat.com>
54346         bootstrap: use glibtoolize on MacOS
54347         * build-aux/bootstrap (check_versions): Convert libtool into
54348         libtoolize.
54349         (tool search): Move libtool check earlier, and look for
54350         glibtoolize for MacOS.
54351         (gnulib_tool_options): Auto-add --libtool when appropriate.
54352         Reported by Justin Clift.
54354         poll: fix typo that broke test on MacOS
54355         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
54356         Reported by Justin Clift.
54358         getdate: rename to get_date
54359         Note: getdate.h is not renamed, to minimize client impact.
54360         * modules/getdate: Mark obsolete.  Move old contents...
54361         * modules/get_date: ...to new module name.
54362         * modules/getdate-tests: Move...
54363         * modules/get_date-tests: ...here.
54364         * m4/getdate.m4: Move...
54365         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
54366         * lib/getdate.y: Move...
54367         * lib/get_date.y: ...here.
54368         * tests/test-getdate.c: Move...
54369         * tests/test-get_date.c: ...here.
54370         * doc/posix-functions/getdate.texi (getdate): Update name.
54371         * NEWS: Mention the change.
54373 2010-09-29  Bruno Haible  <bruno@clisp.org>
54375         Separate the module 'waitpid' from the module 'sys_wait'.
54376         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
54377         present.
54378         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
54379         gl_MODULE_INDICATOR_FOR_TESTS.
54380         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
54381         * modules/sys_wait (Depends-on): Remove waitpid.
54382         (Makefile.am): Substitute GNULIB_WAITPID.
54383         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
54384         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
54385         signature only if the 'waitpid' module is present.
54386         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
54387         * NEWS: Mention the change.
54388         * modules/grantpt (Depends-on): Add waitpid.
54389         * modules/wait-process (Depends-on): Likewise.
54391 2010-09-29  Bruno Haible  <bruno@clisp.org>
54393         More tests for module 'sys_wait'.
54394         * modules/sys_wait-c++-tests: New file.
54395         * tests/test-sys_wait-c++.cc: New file.
54396         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
54397         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
54399 2010-09-29  Bruno Haible  <bruno@clisp.org>
54401         New module 'waitpid'.
54402         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
54403         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
54404         Don't include <process.h>.
54405         (waitpid): Declare only, using modern idiom.
54406         * m4/waitpid.m4: New file.
54407         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
54408         * modules/waitpid: New file.
54409         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
54410         (Makefile.am): Update.
54411         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
54413 2010-09-28  Bruno Haible  <bruno@clisp.org>
54415         poll: Assume ANSI C.
54416         * lib/poll.c (poll): Use an ANSI C declaration.
54418 2010-09-28  Bruno Haible  <bruno@clisp.org>
54420         poll-h: Create poll.h on all platforms.
54421         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
54422         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
54423         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
54424         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
54425         (gl_REPLACE_POLL_H): Don't set POLL_H.
54426         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
54427         * modules/poll-h (Depends-on): Add include_next.
54428         (Makefile.am): Create poll.h unconditionally. Substitute also
54429         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
54431 2010-09-28  Bruno Haible  <bruno@clisp.org>
54433         Tests for module 'poll-h'.
54434         * modules/poll-h-c++-tests: New file.
54435         * tests/test-poll-h-c++.cc: New file.
54437         Tests for module 'poll-h'.
54438         * modules/poll-h-tests: New file.
54439         * tests/test-poll-h.c: New file.
54441 2010-09-28  Bruno Haible  <bruno@clisp.org>
54443         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
54444         * modules/poll-h (Depends-on): Add 'extensions'.
54446 2010-09-28  Bruno Haible  <bruno@clisp.org>
54448         New module 'poll-h'.
54449         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
54450         (poll): Use modern idiom.
54451         * modules/poll-h: New file.
54452         * modules/poll (Files): Remove lib/poll.in.h.
54453         (Depends-on): Add poll-h.
54454         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
54455         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
54456         * m4/poll_h.m4: New file.
54457         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
54458         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
54459         and invoke gl_REPLACE_POLL_H.
54460         * lib/poll.c: Use common idiom.
54461         * tests/test-poll.c: Likewise.
54462         * doc/posix-headers/poll.texi: Mention the poll-h module.
54463         Suggested by Eric Blake.
54465 2010-09-26  Bruno Haible  <bruno@clisp.org>
54467         sys_wait: Implement WSTOPSIG.
54468         * lib/sys_wait.in.h (WSTOPSIG): New macro.
54469         Reported by Simon Josefsson.
54471 2010-09-26  Simon Josefsson  <simon@josefsson.org>
54473         stdlib, sys_wait: Avoid compilation error on mingw.
54474         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
54476 2010-09-26  Bruno Haible  <bruno@clisp.org>
54478         stdlib tests: Avoid code duplication.
54479         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
54480         * modules/sys_wait-tests (Files): Likewise.
54481         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
54482         * tests/test-stdlib.c: Include test-sys_wait.h.
54483         (main): Invoke test_sys_wait_macros.
54484         * tests/test-sys_wait.c: Include test-sys_wait.h.
54485         (main): Invoke test_sys_wait_macros.
54487 2010-09-25  Simon Josefsson  <simon@josefsson.org>
54489         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
54490         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
54491         sure Windows sockets are working before calling getaddrinfo.
54492         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
54493         * doc/gnulib.texi (Windows sockets): Fix typo.
54495 2010-09-25  Bruno Haible  <bruno@clisp.org>
54497         Tests for module 'regex-quote'.
54498         * modules/regex-quote-tests: New file.
54499         * tests/test-regex-quote.c: New file.
54501         New module 'regex-quote'.
54502         * lib/regex-quote.h: New file.
54503         * lib/regex-quote.c: New file.
54504         * modules/regex-quote: New file.
54505         Suggested by Reuben Thomas <rrt@sc3d.org>.
54507 2010-09-24  Bruno Haible  <bruno@clisp.org>
54509         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
54510         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
54512 2010-09-23  Bruno Haible  <bruno@clisp.org>
54514         setenv: Relax license.
54515         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
54516         Blake.
54517         Requested by Eric Blake.
54519 2010-09-22  Bruno Haible  <bruno@clisp.org>
54521         termios: Relax license.
54522         * modules/termios (License): Change to LGPLv2+.
54523         Requested by Eric Blake.
54525 2010-09-22  Bruno Haible  <bruno@clisp.org>
54527         threadlib: Allow the package to change the default to 'no'.
54528         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
54529         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
54530         Reported by Paul Eggert.
54532 2010-09-22  Pádraig Brady  <P@draigbrady.com>
54533             Bruno Haible  <bruno@clisp.org>
54535         Fix endless loop in mbmemcasecoll.
54536         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
54537         byte.
54538         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
54540 2010-09-22  Bruno Haible  <bruno@clisp.org>
54542         Tests for module 'memcoll'.
54543         * modules/memcoll-tests: New file.
54544         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
54546         memcoll, xmemcoll: Clarify size vs. length.
54547         * modules/memcoll.c (memcoll0): Clarify specification.
54548         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
54549         passed to collate_error.
54551 2010-09-22  Bruno Haible  <bruno@clisp.org>
54553         Tests for module 'memcasecmp'.
54554         * modules/memcasecmp-tests: New file.
54555         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
54557 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54559         * lib/pthread.in.h: Add split double-inclusion guard, and include
54560         system <pthread.h> if there is one.  Use @@-style as in other
54561         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
54562         pthread.h doesn't.
54563         (pthread_mutexattr_destroy, pthread_mutexattr_init):
54564         (pthread_mutexattr_settype, pthread_mutex_trylock):
54565         New static inline functions, if there's no system <pthread.h>.
54566         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
54567         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
54568         Approximate with mutexes if the system lacks spinlocks, as in
54569         MacOS.
54570         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
54571         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
54572         @@-style.  Check for spinlocks separately.
54573         (gl_PTHREAD_DEFAULTS): New macro.
54574         * modules/pthread: Redo to use a more typical style for in.h files.
54576 2010-09-21  Eric Blake  <eblake@redhat.com>
54578         net_if: enhance tests
54579         * tests/test-net_if.c (main): Move signature checks earlier.
54580         Print failures to stderr.
54581         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
54582         Document the bug that we do not yet fix.
54584 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
54586         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
54587         about gnulib, not GSS.
54589 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
54591         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
54592         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
54593         for Emacs.
54594         * build-aux/pmccabe2html: Make Makefile.am example code more
54595         cut-and-paste friendly.
54597 2010-09-21  Simon Josefsson  <simon@josefsson.org>
54599         * tests/test-net_if.c: New file.
54600         * modules/net_if-tests: New file.
54602 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54604         pthread: add pthread_spin_destroy
54605         * lib/pthread.in.h (pthread_spin_destroy): New function.
54607 2010-09-19  Bruno Haible  <bruno@clisp.org>
54609         gnulib-tool: Fix --help output.
54610         * gnulib-tool (func_usage): Fix help message.
54611         Reported by Reuben Thomas <rrt@sc3d.org>.
54613 2010-09-18  Jim Meyering  <meyering@redhat.com>
54615         maint.mk: avoid unexpanded \n in two diagnostics
54616         * top/maint.mk (sc_prohibit_always_true_header_tests):
54617         Don't use a literal \n in a halt=... assignment.  It would not be
54618         expanded, and the two \n bytes would appear in the diagnostic output
54619         rather than the desired newline.  Use halt=$$(printf ... instead.
54620         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
54622 2010-09-18  Bruno Haible  <bruno@clisp.org>
54624         netinet_in: Doc tweak.
54625         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
54626         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
54628 2010-09-18  Jim Meyering  <meyering@redhat.com>
54630         init.sh: correct an outdated comment
54631         * tests/init.sh (create_exe_shims_):  s/function/alias/
54633         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
54634         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
54635         a file named "*.exe" is removed between the glob expansion and the
54636         processing of that oddly named file.
54638 2010-09-17  Eric Blake  <eblake@redhat.com>
54640         mirbsd: add some more support
54641         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
54642         in BSD family.
54643         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
54644         devices as OpenBSD.
54645         * m4/host-os.m4 (mirbsd): Add MirBSD.
54647         tests: fix unportable assumption on sys/wait.h
54648         * tests/test-sys_wait.c (main): Relax test.
54649         * tests/test-stdlib.c (main): Likewise.
54651         init.sh: accommodate directory with no .exes
54652         * tests/init.sh: Accomodate directory containing only scripts.
54654         tests: avoid compiler warning
54655         * tests/test-stdlib.c (main): Use the variable.
54657         fdutimens, fdutimensat: update signature, again
54658         * lib/utimens.h (gl_futimens): Delete, and move signature...
54659         (fdutimens): ...here.
54660         (fdutimensat): Rearrange signature.
54661         (lutimensat): Rename variable for clarity.
54662         * lib/fdutimensat.c (fdutimensat): Update signature.
54663         * lib/utimens.c (fdutimens): Likewise.
54664         (gl_futimens): Delete.
54665         (utimens, lutimens): Update callers.
54666         * lib/futimens.c (futimens): Likewise.
54667         * tests/test-fdutimensat.c: Likewise.
54668         * tests/test-utimens.c: Likewise.
54669         * tests/test-futimens.h: Update comment.
54670         * NEWS: Mention this.
54671         Suggested by Paul Eggert.
54673 2010-09-17  Bruno Haible  <bruno@clisp.org>
54675         Take over the maintenance of some older macros from Autoconf.
54676         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
54677         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
54678         GNU Autoconf.
54679         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
54680         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
54682 2010-09-17  Eric Blake  <eblake@redhat.com>
54684         fdutimensat: drop atflag validation
54685         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
54686         with valid fd, to close a race scenario where futimens is
54687         unsupported and FILE was replaced by a symlink.
54688         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
54689         accordingly.
54690         Suggested by Paul Eggert.
54692 2010-09-16  Bruno Haible  <bruno@clisp.org>
54694         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
54695         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
54697 2010-09-16  Bruno Haible  <bruno@clisp.org>
54699         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
54700         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
54701         login_tty exists.
54702         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
54704 2010-09-16  Bruno Haible  <bruno@clisp.org>
54706         login_tty: Make the replacement code work on BSD systems.
54707         * lib/login_tty.c: Include <sys/ioctl.h>.
54708         (login_tty): Use ioctl TIOCSCTTY when available.
54709         * modules/login_tty (Depends-on): Add sys_ioctl.
54710         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
54712 2010-09-16  Bruno Haible  <bruno@clisp.org>
54714         login_tty: Stricter unit test.
54715         * modules/login_tty-tests (Depends-on): Add tcgetsid.
54716         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
54717         and tcgetsid() after login_tty.
54718         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
54720 2010-09-16  Bruno Haible  <bruno@clisp.org>
54722         New module 'tcgetsid'.
54723         * lib/tcgetsid.c: New file.
54724         * m4/tcgetsid.m4: New file.
54725         * modules/tcgetsid: New file.
54726         * modules/termios (Depends-on): Add c++defs, warn-on-use.
54727         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
54728         GNULIB_TCGETSID, HAVE_TCGETSID.
54729         * lib/termios.in.h: Include <sys/types.h>.
54730         (tcgetsid): New declaration.
54731         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
54732         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
54733         * doc/posix-functions/tcgetsid.texi: Mention the new module.
54734         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
54736 2010-09-16  Bruno Haible  <bruno@clisp.org>
54738         Tests for module 'termios'.
54739         * modules/termios-c++-tests: New file.
54740         * modules/termios-tests: New file.
54741         * tests/test-termios-c++.cc: New file.
54742         * tests/test-termios.c: New file.
54744         New module 'termios'.
54745         * modules/termios: New file.
54746         * lib/termios.in.h: New file.
54747         * m4/termios_h.m4: New file.
54748         * doc/posix-headers/termios.texi: Mention the new module.
54750 2010-09-16  Eric Blake  <eblake@redhat.com>
54752         fdutimensat: add an atflag parameter
54753         * lib/fdutimensat.c (fdutimensat): Add new parameter.
54754         * lib/utimens.h (fdutimensat): Update prototype.
54755         * tests/test-fdutimensat.c: Adjust test to match.
54756         * NEWS: Document the change.
54757         Suggested by Paul Eggert.
54759 2010-09-16  Bruno Haible  <bruno@clisp.org>
54761         Fix typos in comments.
54762         * lib/striconveh.h: Fix typo in comment.
54763         * lib/login_tty.c (login_tty): Likewise.
54765 2010-09-15  Bruno Haible  <bruno@clisp.org>
54767         stdlib: clarify MirBSD WEXITSTATUS bug
54768         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
54769         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
54771 2010-09-15  Eric Blake  <eblake@redhat.com>
54773         stdlib: work around MirBSD WEXITSTATUS bug
54774         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
54775         * modules/stdlib (Depends-on): Add sys_wait.
54776         * tests/test-sys_wait.c (main): Enhance test.
54777         * tests/test-stdlib.c (main): Likewise.
54778         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
54780         docs: mention MacOS issue with WEXITSTATUS(constant)
54781         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
54782         issue.
54783         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
54785         strnlen: add tests
54786         * modules/strnlen-tests: New file.
54787         * tests/test-strnlen.c: Likewise.
54789 2010-09-14  Bruno Haible  <bruno@clisp.org>
54791         unistr/base: Avoid link errors when module 'libunistring' is also used.
54792         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
54793         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
54794         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
54795         Declare also when HAVE_LIBUNISTRING is set.
54796         Reported by Pádraig Brady <P@draigbrady.com>.
54798 2010-09-14  Eric Blake  <eblake@redhat.com>
54800         test-rawmemchr: make more robust
54801         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
54802         (Depends-on, configure.ac): Add needed prerequisites to use it.
54803         * modules/memchr-tests (Files, Depends-on, configure.ac):
54804         Likewise, to avoid implicit reliance on memchr module prereqs.
54805         * tests/test-memchr.c (main): Ensure proper masking.
54806         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
54807         reads.
54809         memchr: detect glibc Alpha bug
54810         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
54811         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
54812         Alpha.
54813         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
54814         * tests/test-memchr.c (main): Enhance test.
54815         Reported by Nelson H. F. Beebe.
54817 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54819         fts, getcwd, glob: audit for dirfd returning -1
54820         * lib/fts.c (opendir): Remove #define; no longer used.
54821         (opendirat): New arg PDIR_FD.  All callers changed.
54822         (fts_build, _opendir2): Use new opendirat to avoid the need for
54823         dirfd, or for checking whether dirfd returns a negative value.
54824         Don't use opendir; always use openat followed by fdopendir.
54825         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
54826         it.
54827         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
54828         returns -1 here.
54829         * modules/fts (Depends-on): Remove dirfd.
54830         * modules/getcwd (Depends-on): Likewise.
54832 2010-09-13  Eric Blake  <eblake@redhat.com>
54834         float: fix broken MirBSD header
54835         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
54836         * doc/posix-headers/float.texi (float.h): Document it.
54838 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54840         fts: use O_NOFOLLOW to avoid race condition when opening a directory
54841         * lib/fts.c (opendirat): New arg extra_flags.
54842         (__opendir2): Use it to avoid following symlinks when opening
54843         a directory, if symlinks are not supposed to be followed.  See
54844         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
54846         fdopendir: preserve argument fd before returning
54847         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
54848         (fdopendir_with_dup, fd_clone_opendir): New static functions.
54849         (fdopendir): Use them, arranging for FD to be open to the same
54850         directory that it was when it started.  (It might be temporarily
54851         closed while fdopendir is running, so this not thread- or
54852         signal-safe.)  Be careful to do the right thing even when file
54853         descriptors are scarce and dup fails with errno == EMFILE.  See
54854         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
54856 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
54858         regex: Pass the system regex if its only problem is 32-bit regoff_t.
54859         * NEWS: Document change.
54860         * m4/regex.m4: Disable test for regoff_t size.
54862 2010-09-13  Jim Meyering  <meyering@redhat.com>
54864         fts: don't operate on an invalid file descriptor after failed dup
54865         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
54866         negative file descriptor.
54868 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
54870         savedir: add streamsavedir, deprecate fdsavedir
54871         * NEWS: Mention deprecation of fdsavedir.
54872         * lib/savedir.c (streamsavedir): New extern function, whose name
54873         ends in "savedir" to be consistent with the others.  This differs
54874         from savedirstream in that it doesn't close its argument.  The
54875         next version of GNU tar will use this instead of fdsavedir, to
54876         avoid some race conditions and conserve file descriptors.
54877         (savedirstream): Reimplement as a wrapper around streamsavedir.
54878         (fdsavedir): Add a comment deprecating this function.  As far as
54879         I know, only GNU tar used it, and GNU tar doesn't need it any more.
54880         * lib/savedir.h (streamsavedir): New decl.
54881         (fdsavedir): Add a comment deprecating this.
54883 2010-09-10  Bruno Haible  <bruno@clisp.org>
54885         langinfo: Fix last commit.
54886         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
54887         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
54888         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54890 2010-09-10  Bruno Haible  <bruno@clisp.org>
54892         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
54893         * lib/progreloc.c (O_EXEC): Define fallback.
54895 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
54897         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
54898         * NEWS: Document recent changes to fcntl-h.
54899         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
54900         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
54901         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
54902         Similarly for O_SEARCH; this last was already true, but not documented.
54903         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
54904         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
54905         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
54906         Likewise.
54907         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
54908         is zero, not whether it is defined.
54909         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
54910         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
54911         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
54913 2010-09-10  Bruno Haible  <bruno@clisp.org>
54915         langinfo, nl_langinfo: Fix for IRIX 5.3.
54916         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
54917         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
54918         HAVE_LANGINFO_YESEXPR.
54919         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
54920         HAVE_LANGINFO_YESEXPR.
54921         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
54922         HAVE_LANGINFO_T_FMT_AMPM is 0.
54923         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
54924         HAVE_LANGINFO_YESEXPR is 0.
54925         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
54926         NOEXPR.
54927         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
54928         * doc/posix-functions/nl_langinfo.texi: Likewise.
54929         Reported by Eric Blake.
54931 2010-09-10  Bruno Haible  <bruno@clisp.org>
54933         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
54934         * doc/glibc-functions/login_tty.texi: Mention the include file problem
54935         on FreeBSD 8.0 and OpenBSD 4.6.
54936         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
54937         * m4/pty_h.m4 (gl_PTY_H): Likewise.
54938         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
54939         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
54940         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
54941         ac_includes_default.
54942         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
54944 2010-09-09  Eric Blake  <eblake@redhat.com>
54946         strsignal: work around NetBSD bug
54947         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
54948         * lib/string.in.h (includes): Likewise.
54949         * doc/posix-functions/strsignal.texi (strsignal): Document the
54950         bug.
54951         Reported by Nelson H. F. Beebe.
54953         gnulib-tool: work with NetBSD /bin/sh
54954         * gnulib-tool (func_cache_var, func_cache_lookup_module)
54955         (func_get_description, func_get_comment, func_get_status)
54956         (func_get_notice, func_get_applicability, func_get_filelist)
54957         (func_get_dependencies, func_get_autoconf_early_snippet)
54958         (func_get_autoconf_snippet, func_get_automake_snippet)
54959         (func_get_include_directive, func_get_link_directive)
54960         (func_get_license, func_get_maintainer, func_import): Avoid
54961         shell syntax errors from parsing syntax extensions.
54963 2010-09-09  Bruno Haible  <bruno@clisp.org>
54965         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
54966         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
54967         a reliable way to determine whether the 'alias' command works.
54969 2010-09-08  Jim Meyering  <meyering@redhat.com>
54971         init.sh: penalize a set-x-impaired shell; don't disqualify it
54972         * tests/init.sh: Too many shells corrupt application stderr when
54973         you set -x, so we can't afford to disqualify them, since at least
54974         on Irix-6.5, that would disqualify all bourne shells.
54975         Instead, use a two-pass approach.
54976         On the first pass, try to find a shell that meets the stricter
54977         condition that set -x does not corrupt stderr.
54978         If no shell meets the stricter condition, retest each candidate
54979         shell, but without that extra condition.  Finally, when
54980         VERBOSE=yes is requested and set -x might cause trouble, simply
54981         issue a warning and refrain from enabling debug output.
54983 2010-09-08  Eric Blake  <eblake@redhat.com>
54985         unsetenv: fix OpenBSD bug
54986         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
54987         * doc/posix-functions/unsetenv.texi (unsetenv): Update
54988         documentation.
54989         Reported by Jim Meyering.
54991         strtod: work around IRIX 6.5 bug
54992         * lib/strtod.c (strtod): Reparse number on shorter string if
54993         exponent parse was invalid.
54994         * tests/test-strtod.c (main): Add check for "0x1p 2".
54995         Reported by Tom G. Christensen.
54997         getopt: optimize previous patch
54998         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
54999         empty variable.  Speed up awk script.
55000         Reported by Paolo Bonzini.
55002 2010-09-08  Jim Meyering  <meyering@redhat.com>
55004         test.sh: disqualify shells for which set -x corrupts stderr
55005         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
55006         and OpenBSD 4.7.  They make it so with "set -x", environment settings
55007         appear in stderr output.  For example, this command:
55008             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
55009         prints "P=1" on those two systems:
55011 2010-09-08  Bruno Haible  <bruno@clisp.org>
55013         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
55014         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
55015         commands, because some shells ignore redirections when there is an
55016         error in the command lookup.
55017         Reported by Eric Blake.
55019 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
55021         * lib/regex.h: Fix a mention of `regex_compile' (should be
55022         `re_compile_pattern').
55023         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
55024         (re_set_registers): Correct name of parameter in comment.
55026         * doc/regex.texi: Add documentation for missing syntax flags.
55027         Remove commented-out documentation of defunct syntax option
55028         RE_NO_EMPTY_ALTS.
55029         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
55030         Add documentation of re_set_registers.
55031         Document trick to re-use a pattern buffer by setting fastmap manually.
55032         Update documentation of struct re_pattern_buffer per public members.
55033         Uncomment documentation of equivalence class operators and
55034         collating symbol operators, since they are now implemented,
55035         Explain leftmost-longest matching in relation to alternatives.
55036         Tidy documentation of substring matching.
55037         Remove POSIX documentation, which is done better in
55038         glibc, and refer the reader there. Keep BSD API documentation, as
55039         that is not readily available elsewhere.
55041 2010-09-07  Eric Blake  <eblake@redhat.com>
55043         getopt: handle POSIXLY_CORRECT set but not exported
55044         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
55045         export state of POSIXLY_CORRECT, due to bash set -o posix.
55046         Reported by Dustin J. Mitchell.
55048 2010-09-05  Bruno Haible  <bruno@clisp.org>
55050         gnulib-tool: Highlight the changed options.
55051         * gnulib-tool (func_usage): Display the --import, --add-import,
55052         --remove-import explanations in bold font.
55054 2010-09-06  Karl Berry  <karl@gnu.org>
55056         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
55058 2010-09-05  Bruno Haible  <bruno@clisp.org>
55060         uniwidth/width: Update comment.
55061         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
55062         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
55064 2010-09-05  Bruno Haible  <bruno@clisp.org>
55066         isinf, isnan: Relax license.
55067         * modules/isinf (License): Change from GPL to LGPL, with consent from
55068         Ben Pfaff.
55069         * modules/isnan (License): Likewise.
55070         Requested by Ludovic Courtès.
55072 2010-09-04  Bruno Haible  <bruno@clisp.org>
55074         gnulib-tool: Help migration from --import to --add-import or --update.
55075         * gnulib-tool: Emit a verbose error message when --import is used
55076         without any module name.
55078 2010-09-04  Bruno Haible  <bruno@clisp.org>
55080         Update doc about gnulib-tool.
55081         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
55082         'gnulib-tool --update' in more detail.
55083         Reported by Eric Blake.
55085 2010-09-04  Bruno Haible  <bruno@clisp.org>
55087         gnulib-tool: Change --import. New options --add/remove-import.
55088         * gnulib-tool: New options --add-import, --remove-import.
55089         (func_usage): Document them.
55090         (have_associative): Define always.
55091         (func_import): In import mode, don't merge the specified settings with
55092         the cached settings. Implement remove-import mode.
55093         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
55094         Explain when to use them versus --import.
55095         (Simple update): Use --add-import instead of --import.
55096         * NEWS: Mention the change.
55098 2010-09-04  Bruno Haible  <bruno@clisp.org>
55100         * doc/gnulib-tool.texi (Initial import): Update paragraph about
55101         separate gnulib.mk.
55103 2010-09-04  Bruno Haible  <bruno@clisp.org>
55105         gnulib-tool: Don't talk about CVS any more.
55106         * gnulib-tool (func_usage, func_import): Write "version control"
55107         instead of CVS.
55109 2010-09-04  Jim Meyering  <meyering@redhat.com>
55111         maint.mk: avoid obscure sc_copyright_check failure in coreutils
55112         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
55113         false positives (whose names may be ill-chosen) when searching
55114         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
55115         would cause a false-positive.
55117         avoid coreutils "make distcheck" failure
55118         Coreutils tests with an absolute build directory name that contains
55119         a space.  Not quoting this directory name caused a failure.
55120         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
55121         * tests/test-vc-list-files-cvs.sh: Likewise.
55123 2010-09-04  Bruno Haible  <bruno@clisp.org>
55125         gnulib-tool: Avoid error when run in a package without Makefile.am.
55126         * gnulib-tool: When collecting the m4dirs in a package that does not
55127         have a Makefile.am, eliminate those directories that contain no
55128         gnulib-cache.m4. Fix expression that counts these directories.
55130 2010-09-04  Bruno Haible  <bruno@clisp.org>
55132         update-copyright test: Improve output when perl is missing or too old.
55133         * tests/test-update-copyright.sh: Move test of Perl version down after
55134         the test whether Perl exists. Provide an explanation relating Perl's
55135         error message to Automake's SKIP: message.
55137 2010-09-04  Bruno Haible  <bruno@clisp.org>
55139         Don't augment PATH in TESTS_ENVIRONMENT.
55140         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
55141         set abs_aux_dir instead of augmenting PATH.
55142         * modules/vc-list-files-tests (Makefile.am): Likewise.
55143         * tests/test-update-copyright.sh: Augment PATH here.
55144         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
55145         path_prepend_.
55146         * tests/test-vc-list-files-git.sh: Likewise.
55148 2010-09-04  Jim Meyering  <meyering@redhat.com>
55150         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
55151         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
55153 2010-09-04  Bruno Haible  <bruno@clisp.org>
55155         strdup: Fix compilation error in C++ mode.
55156         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
55157         the macro.
55159 2010-09-04  Bruno Haible  <bruno@clisp.org>
55161         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
55162         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
55163         macro into a function.
55164         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
55166 2010-09-04  Bruno Haible  <bruno@clisp.org>
55168         Set PATH_SEPARATOR the same way autoconf does.
55169         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
55170         the value of PATH_SEPARATOR the same way autoconf-generated configure
55171         scripts do.
55172         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
55173         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
55175 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
55177         Set PATH_SEPARATOR the same way autoconf does.
55178         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
55179         the same way autoconf-generated configure scripts do.
55180         * posix-modules: Likewise.
55182 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55184         hash: fix safe_hasher const typo
55185         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
55186         const; otherwise, there is a type error later.
55188 2010-09-02  Jim Meyering  <meyering@redhat.com>
55190         test-update-copyright.sh: require perl 5.8.0
55191         * tests/test-update-copyright.sh: Require 5.8.0,
55192         which Tom G. Christensen has confirmed is adequate,
55193         while 5.6.1 is not.
55195 2010-09-02  Eric Blake  <eblake@redhat.com>
55197         tests: init.sh improvements for re-exec'ing with zsh
55198         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
55199         -vx through shell re-exec.
55200         Reported by Tom G. Christensen.
55202         wctype: fix typo in previous commit
55203         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
55204         Reported by Ludovic Courtès.
55206 2010-09-02  Jim Meyering  <meyering@redhat.com>
55208         test-update-copyright.sh: skip test if Perl is too old
55209         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
55210         Reported by Tom G. Christensen.
55212 2010-09-02  Bruno Haible  <bruno@clisp.org>
55214         wctype: Avoid compilation error on IRIX 6.5.30.
55215         * lib/wctype.in.h (iswblank): Declare with a replacement if
55216         REPLACE_ISWBLANK is set.
55217         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
55218         declared. Set REPLACE_ISWBLANK.
55219         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
55220         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
55221         * doc/posix-headers/wctype.texi: Likewise.
55222         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55224 2010-09-01  Bruno Haible  <bruno@clisp.org>
55226         New module 'socketlib'.
55227         * modules/socketlib: New file.
55228         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
55229         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
55230         * modules/sockets (Depends-on): Add socketlib.
55231         Suggested by Sam Steingold <sds@gnu.org>.
55233 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55235         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
55237         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
55238         when one needs search access to a directory but not read access.
55239         On systems where it is available, it works in some cases where
55240         O_RDONLY does not, namely on directories that are searchable but
55241         not readable, and which need only to be searchable.  If O_SEARCH
55242         is not available, fall back to the traditional method of using
55243         O_RDONLY.
55245         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
55246         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
55247         when opening a directory that needs only to be searchable.
55248         * lib/chdir-safer.c (chdir_no_follow): Likewise.
55249         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
55250         * lib/openat-proc.c (openat_proc_name): Likewise.
55251         * lib/openat.c (openat_needs_fchdir): Likewise.
55252         * lib/save-cwd.c (save_cwd): Likewise.
55253         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
55255 2010-08-28  Bruno Haible  <bruno@clisp.org>
55257         New module 'host-cpu-c-abi'.
55258         * modules/host-cpu-c-abi: New file.
55259         * m4/host-cpu-c-abi.m4: New file, based on part of
55260         clisp/src/m4/general.m4.
55261         Requested by Sam Steingold <sds@gnu.org>.
55263 2010-08-31  Eric Blake  <eblake@redhat.com>
55264         and Jim Meyering  <meyering@redhat.com>
55266         hash: factor, and guard against misbehaving hasher function
55267         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
55268         of table->hasher's return value.  Also protect against a hash value
55269         so large that adding it to table->bucket results in a NULL pointer.
55270         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
55271         Use it in place of open-coded check-and-abort.
55273 2010-08-30  Bruno Haible  <bruno@clisp.org>
55275         hash: silence spurious clang warning
55276         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
55277         Reported by Eric Blake.
55279 2010-08-30  Eric Blake  <eblake@redhat.com>
55281         strstr, memmem, strcasestr: avoid leaked shell message
55282         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
55283         FreeBSD.
55284         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55285         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55287         tests: silence clang warning
55288         * tests/test-malloca.c (do_allocation): Avoid dead store.
55290 2010-08-29  Bruno Haible  <bruno@clisp.org>
55292         gettext: Fix recent mistake.
55293         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
55295 2010-08-29  Bruno Haible  <bruno@clisp.org>
55297         selinux-h: Offer a --without-selinux option.
55298         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
55299         --without-selinux was specified, skip all tests and define
55300         HAVE_SELINUX_SELINUX_H to 0.
55301         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
55302         set LIB_SELINUX to empty.
55303         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
55304         gl_LIBSELINUX. If --without-selinux was specified, replace
55305         selinux/context.h.
55306         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
55308 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55309             Bruno Haible  <bruno@clisp.org>
55311         Make the module 'realloc-gnu' work again on AIX and OSF/1.
55312         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
55313         of HAVE_REALLOC.
55314         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
55315         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
55316         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
55317         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
55319 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55320             Bruno Haible  <bruno@clisp.org>
55322         Make the module 'calloc-gnu' work again on AIX and OSF/1.
55323         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
55324         HAVE_CALLOC.
55325         * lib/xmalloc.c: Update accordingly.
55326         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
55327         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
55328         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
55330 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55331             Bruno Haible  <bruno@clisp.org>
55333         Make the module 'malloc-gnu' work again on AIX and OSF/1.
55334         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
55335         HAVE_MALLOC.
55336         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
55337         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
55338         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
55340 2010-08-29  Bruno Haible  <bruno@clisp.org>
55342         Update modules list.
55343         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
55344         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
55345         (String handling <string.h>): Add astrxfrm.
55346         (File system functions): Add readlinkat.
55348 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55350         Tests for module 'realloc-gnu'.
55351         * modules/realloc-gnu-tests: New file.
55352         * tests/test-realloc-gnu.c: New file.
55354         Tests for module 'calloc-gnu'.
55355         * modules/calloc-gnu-tests: New file.
55356         * tests/test-calloc-gnu.c: New file.
55358         Tests for module 'malloc-gnu'.
55359         * modules/malloc-gnu-tests: New file.
55360         * tests/test-malloc-gnu.c: New file.
55362 2010-08-28  Bruno Haible  <bruno@clisp.org>
55364         Rename module 'realloc' -> 'realloc-gnu'.
55365         * modules/realloc-gnu: New file, copied from modules/realloc.
55366         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
55367         obsolete.
55368         * modules/mgetgroups (Depends-on): Update.
55369         * doc/posix-functions/realloc.texi: Update.
55370         * NEWS: Mention the change.
55372         Rename module 'calloc' -> 'calloc-gnu'.
55373         * modules/calloc-gnu: New file, copied from modules/calloc.
55374         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
55375         obsolete.
55376         * doc/posix-functions/calloc.texi: Update.
55377         * NEWS: Mention the change.
55379         Rename module 'malloc' -> 'malloc-gnu'.
55380         * modules/malloc-gnu: New file, copied from modules/malloc.
55381         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
55382         obsolete.
55383         * modules/argp (Depends-on): Update.
55384         * modules/regex (Depends-on): Update.
55385         * doc/posix-functions/malloc.texi: Update.
55386         * NEWS: Mention the change.
55388 2010-08-28  Eric Blake  <eblake@redhat.com>
55390         pread, pwrite: add missing dependency
55391         * modules/pread (Depends-on): Add extensions.
55392         * modules/pwrite (Depends-on): Likewise.
55394 2010-08-28  Bruno Haible  <bruno@clisp.org>
55396         unistr/u*-strchr: Fix tests dependencies.
55397         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
55398         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
55399         Reported by Ian Beckwith <ianb@erislabs.net>.
55401 2010-08-28  Bruno Haible  <bruno@clisp.org>
55403         read-file: Don't occupy too much unused memory.
55404         * lib/read-file.c (fread_file): Shrink the buffer at the end.
55406 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
55407             Eric Blake  <eblake@redhat.com>
55408             Bruno Haible  <bruno@clisp.org>
55410         read-file: Avoid memory reallocations with regular files.
55411         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
55412         (fread_file): With regular files, use the remaining length as the
55413         initial buffer size.  Check against overflow.
55414         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
55415         sys_stat.
55417 2010-08-28  Bruno Haible  <bruno@clisp.org>
55419         ftello: Relax license.
55420         * modules/ftello (License): Relax to LGPLv2+.
55421         Reported by Eric Blake.
55423 2010-08-28  Bruno Haible  <bruno@clisp.org>
55425         Avoid relocwrapper link errors due to gnulib replacement functions.
55426         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
55427         function.
55428         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55430 2010-08-28  Bruno Haible  <bruno@clisp.org>
55432         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
55433         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
55434         defined.
55435         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
55436         Suggested by Eric Blake.
55438 2010-08-28  Bruno Haible  <bruno@clisp.org>
55440         sys_socket, netdb: Ensure socklen_t gets defined.
55441         * modules/sys_socket (Depends-on): Add socklen.
55442         * modules/netdb (Depends-on): Likewise.
55443         * modules/getaddrinfo (Depends-on): Remove socklen.
55444         * modules/getsockopt (Depends-on): Likewise.
55445         * modules/setsockopt (Depends-on): Likewise.
55446         * tests/test-sys_socket.c: Check that socklen_t is defined.
55447         * tests/test-netdb.c: Likewise.
55448         * m4/socklen.m4: Update comments.
55449         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55451 2010-08-27  Eric Blake  <eblake@redhat.com>
55453         login_tty: add missing dependency
55454         * modules/login_tty (Depends-on): Add pty.
55456 2010-08-26  Eric Blake  <eblake@redhat.com>
55458         lib-symbol-versions: fix m4 quoting
55459         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
55460         format for AC_LINK_IFELSE.
55462         glob: fix compile test
55463         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
55465         btowc: fix missing file
55466         * modules/btowc (Files): Also ship locale-fr.m4.
55468         lseek: fix link test
55469         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
55470         AC_LINK_IFELSE.
55472         include_next: silence autoconf 2.68 warning
55473         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
55474         AC_COMPILE_IFELSE as special.
55475         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
55476         autoconf < 2.68.
55478         acl: fix compilation test
55479         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
55480         AC_COMPILE_IFELSE.
55482 2010-08-26  Bruno Haible  <bruno@clisp.org>
55484         Modernize AC_TRY_RUN invocations.
55485         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
55486         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
55487         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
55488         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
55489         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
55490         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
55491         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
55492         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55493         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
55494         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
55495         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
55496         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
55497         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
55498         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
55499         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
55500         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
55501         gl_MBRLEN_NUL_RETVAL): Likewise.
55502         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
55503         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
55504         Likewise.
55505         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
55506         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
55507         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
55508         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
55509         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
55510         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
55511         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
55512         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
55513         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
55514         Likewise.
55515         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
55516         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
55517         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55518         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
55519         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
55520         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
55521         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
55522         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
55523         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
55524         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55526 2010-08-26  Bruno Haible  <bruno@clisp.org>
55528         Modernize AC_TRY_LINK invocations.
55529         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
55530         AC_TRY_LINK.
55531         * m4/argp.m4 (gl_ARGP): Likewise.
55532         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
55533         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
55534         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55535         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55536         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55537         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
55538         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
55539         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
55540         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55541         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
55542         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55543         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
55544         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
55545         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
55546         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
55547         * m4/hostent.m4 (gl_HOSTENT): Likewise.
55548         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
55549         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
55550         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
55551         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
55552         Likewise.
55553         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
55554         Likewise.
55555         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
55556         Likewise.
55557         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
55558         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
55559         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
55560         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
55561         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
55562         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
55563         * m4/servent.m4 (gl_SERVENT): Likewise.
55564         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
55565         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
55566         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
55567         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
55568         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
55569         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
55570         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
55571         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
55572         * modules/tsearch-tests (configure.ac): Likewise.
55574 2010-08-26  Bruno Haible  <bruno@clisp.org>
55576         Modernize AC_TRY_COMPILE invocations.
55577         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
55578         AC_TRY_COMPILE.
55579         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
55580         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
55581         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
55582         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
55583         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
55584         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
55585         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55586         * m4/lock.m4 (gl_LOCK): Likewise.
55587         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
55588         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55589         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
55590         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
55591         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
55592         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
55593         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
55594         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
55595         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
55596         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
55597         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
55598         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55599         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
55600         extraneous semicolon.
55602 2010-08-26  Jim Meyering  <meyering@redhat.com>
55604         stat-time: relax license LGPL
55605         * modules/stat-time (License): Change from GPL to LGPL,
55606         with consent from all contributors, for use in libguile.
55607         Requested by Ludovic Courtès.
55609 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
55611         poll: return immediately on POLLHUP.
55612         * lib/poll.c (poll): Always set timeout before wait_timeout is
55613         computed.
55615 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55617         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
55618         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
55619         rmdir ("dir/.//"), unlinkat.
55621 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55623         stdbool: avoid spurious failure with modern xlc
55624         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
55626 2010-08-24  Bruno Haible  <bruno@clisp.org>
55628         getloadavg: simplify code
55629         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
55630         gl_have_func. Update comments.
55632 2010-08-24  Eric Blake  <eblake@redhat.com>
55634         getloadavg: don't define SVR4 on cygwin
55635         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
55636         only define SVR4 when -lkvm is required.
55637         Reported by Yaakov Selkowitz.
55639 2010-08-24  Bruno Haible  <bruno@clisp.org>
55641         priv-set: fix comment
55642         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
55644 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55646         priv-set: fix comments
55647         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
55648         to match code, as suggested by David Bartley in:
55649         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
55651 2010-08-23  Eric Blake  <eblake@redhat.com>
55653         stdbool: avoid rejecting clang
55654         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
55655         * tests/test-stdbool.c: Enable more tests if using the system
55656         <stdbool.h> instead of the gnulib replacement.
55657         (main): Move xlc bug test to a runtime test for all compilers.
55658         Reported by Anders Kaseorg.
55660         argz: fix shell quoting issue
55661         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
55662         Reported by Charles Wilson.
55664 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
55665             Erik Faye-Lund <kusmabite@gmail.com>
55667         poll, select: handle ERROR_BROKEN_PIPE.
55668         * lib/poll.c (win32_compute_revents): Return POLLHUP when
55669         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
55670         * lib/select.c (win32_compute_revents): Do not mark a pipe
55671         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
55673 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
55675         fts: allow compilation with C++
55676         * lib/fts_.h: Specify extern "C" linkage with C++.
55678 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55680         Fix gnulib-tool sed script de-commentation for AIX sed.
55681         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
55682         sed.
55684 2010-08-17  Eric Blake  <eblake@redhat.com>
55686         test-stddef: test for (some) offsetof bugs
55687         * tests/test-stddef.c: Enhance test to ensure correct type of
55688         offsetof.
55689         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
55690         that we are not fixing at this time.
55692 2010-08-15  Bruno Haible  <bruno@clisp.org>
55694         stpncpy: Allow stpncpy to be defined as a macro.
55695         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
55696         if it's already correctly declared.
55697         * lib/string.in.h (stpncpy): Undefine before redefining.
55698         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
55700 2010-08-14  Bruno Haible  <bruno@clisp.org>
55702         Rename module 'memxfrm' to 'amemxfrm'.
55703         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
55704         (amemxfrm): Renamed from memxfrm.
55705         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
55706         (amemxfrm): Renamed from memxfrm.
55707         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
55708         * NEWS: Mention the change.
55709         * MODULES.html.sh (String handling <string.h>): Update.
55710         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
55711         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
55712         * lib/unicase/u16-casexfrm.c: Likewise.
55713         * lib/unicase/u32-casexfrm.c: Likewise.
55714         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
55715         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
55716         * lib/uninorm/u16-normxfrm.c: Likewise.
55717         * lib/uninorm/u32-normxfrm.c: Likewise.
55718         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
55719         memxfrm.
55720         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
55721         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
55722         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
55723         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
55724         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
55725         Suggested by Paul Eggert.
55727 2010-08-14  Bruno Haible  <bruno@clisp.org>
55729         Tests for module 'astrxfrm'.
55730         * modules/astrxfrm-tests: New file.
55731         * tests/test-astrxfrm.c: New file.
55733         New module 'astrxfrm'.
55734         * lib/astrxfrm.h: New file.
55735         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
55736         * modules/astrxfrm: New file.
55738 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
55740         regex: Tweak doc.
55741         * doc/regex.texi (Overview): Don't mention regex.c.
55742         (GNU Regular Expression Compiling): Likewise.
55743         (Match-end-of-line Operator): Mention 'not_eol'.
55745 2010-08-14  Brian Gough  <bjg@gnu.org>
55746             Bruno Haible  <bruno@clisp.org>
55748         git-merge-changelog: add doc relating to use with bzr and hg.
55749         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
55751 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
55753         pthread: fix pthread.h creation for srcdir != builddir
55754         * modules/pthread (Makefile.am): Fix the rule to work also in a
55755         non-srcdir build.
55757 2010-08-13  Karl Berry  <karl@gnu.org>
55759         * doc/regex.texi (Predefined Syntaxes): @smallexample.
55760         * doc/posix-*/*: force line break before @url of POSIX
55761         specifications.
55762         Suggested by Werner Lemberg.
55764 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55766         strtod: fix const diagnostic
55767         * lib/strtod.c (strtod): Don't assign const char * to char *,
55768         as this elicits a warning from GCC when warnings are enabled.
55770 2010-08-10  Pádraig Brady  <P@draigbrady.com>
55771         and Eric Blake  <eblake@redhat.com>
55773         copy-acl: ignore ENOTSUP on HP-UX
55774         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
55775         so that it is available for HP-UX.
55776         * lib/copy-acl.c (qcopy_acl): Use it.
55777         Reported by Patrick M. Callahan.
55779 2010-08-10  Eric Blake  <eblake@redhat.com>
55781         open, chown: relax license
55782         * modules/open (License): Change to LGPLv2+, with consent by all
55783         authors, for use in augeas.
55784         * modules/chown (License): Likewise.
55785         * modules/lchown (Likewise): Likewise.
55786         Requested by Adam Stokes.
55788 2010-08-09  Karl Berry  <karl@gnu.org>
55790         * build-aux/ar-lib: new file, import from Automake.
55791         * config/srclist.txt: autocheck for updates.
55793 2010-08-09  Eric Blake  <eblake@redhat.com>
55795         readlinkat: adjust client modules
55796         * modules/areadlinkat (Depends-on): Use readlinkat, not
55797         symlinkat.
55798         * modules/areadlinkat-with-size (Depends-on): Likewise.
55800         mknod: be more vocal about danger of running tests as root
55801         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
55802         root, since that is just asking for problems.
55803         Suggested by Bruno Haible, based on a report by Rainer Tammer.
55805         readlinkat: split into its own module
55806         * modules/symlinkat: Split readlinkat...
55807         * modules/readlinkat: ...into separate module.
55808         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
55809         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
55810         * lib/symlinkat.c (readlinkat): Move...
55811         * lib/readlinkat.c: ...into new file.
55812         * modules/symlinkat-tests: Split readlinkat test...
55813         * modules/readlinkat-tests: ...into separate module.
55814         * tests/test-symlinkat.c: Split...
55815         * tests/test-readlinkat.c: ...into new file.
55816         * NEWS: Document the split.
55817         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
55818         * lib/unistd.in.h (readlinkat): Likewise.
55819         Suggested by Bruno Haible.
55821 2010-08-08  Bruno Haible  <bruno@clisp.org>
55823         memxfrm: Speed up.
55824         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
55825         that usually only one call to strxfrm is necessary for each string
55826         part.
55827         Reported by Paul Eggert <eggert@cs.ucla.edu>.
55829 2010-08-07  Karl Berry  <karl@gnu.org>
55831         * doc/posix-headers/limits.texi,
55832         * doc/posix-functions/malloc.texi,
55833         * doc/posix-functions/strsignal.texi: missing @item.
55834         * doc/ld-version-script.texi: spurious leading i.
55835         * doc/regex.texi (Interval Operators): no commas inside @var.
55837 2010-08-01  Bruno Haible  <bruno@clisp.org>
55839         Integrate the regex documentation.
55840         * doc/gnulib.texi: Define 'cn' index.
55841         (Regular expressions): New a chapter that includes regex.texi and
55842         regexprops-generic.texi.
55843         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
55844         syntax.
55846         Whitespace cleanup.
55847         * doc/regex.texi: Remove trailing spaces.
55849         Add regex documentation.
55850         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
55851         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
55852         Written by Kathy A. Hargreaves and Karl Berry.
55854 2010-08-01  Bruno Haible  <bruno@clisp.org>
55856         link: Update documentation.
55857         * doc/posix-functions/link.texi: Update regarding Solaris.
55859 2010-07-31  Bruno Haible  <bruno@clisp.org>
55861         Update modules list.
55862         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
55863         (String handling <string.h>): Add memcmp2, memxfrm.
55864         (Container data structures): Add xlist, xsublist, xoset.
55865         (Core language properties): Add alignof, unused-parameter.
55866         (Process control, Numeric conversion functions <stdlib.h>): Renamed
55867         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
55868         (Unibyte characters <ctype.h>): New section.
55869         (String handling <string.h>): New section.
55870         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
55871         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
55872         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
55873         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
55874         tan, tanh, tanl, y0, y1, yn.
55875         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
55876         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
55877         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
55878         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
55879         unlockpt, vdprintf, vdprintf-posix.
55880         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
55881         (File system functions): Add concat-filename, sys_file, sys_ioctl,
55882         xconcat-filename.
55883         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
55884         getdtablesize, pipe2, pipe2-safer.
55885         (Security): New section.
55886         (Networking functions): Add accept4.
55887         (Signal handling): Add sigpipe.
55888         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
55889         mbmemcasecoll.
55890         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
55891         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
55892         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
55893         pipe-filter-ii.
55894         (Misc): Add argp-version-etc, login_tty, parse-duration.
55896 2010-07-31  Bruno Haible  <bruno@clisp.org>
55898         Improve doc in MODULES.html.
55899         * modules/linkat (Description): Add the word "function".
55900         * modules/mkfifo (Description): Likewise.
55901         * modules/mknod (Description): Likewise.
55902         * modules/remove (Description): Likewise.
55903         * modules/renameat (Description): Likewise.
55904         * modules/stat (Description): Likewise.
55905         * modules/symlink (Description): Likewise.
55906         * modules/unlink (Description): Likewise.
55908 2010-07-31  Bruno Haible  <bruno@clisp.org>
55910         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
55911         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
55912         option --enable/disable-c++ instead of --enable/disable-cxx.
55913         * NEWS: Mention the change.
55915 2010-07-31  Bruno Haible  <bruno@clisp.org>
55917         readlink, areadlink: Relax test a bit.
55918         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
55919         alternative to ENOTDIR.
55920         * tests/test-areadlink.h (test_areadlink): Likewise.
55921         Reported by Rainer Tammer.
55923 2010-07-31  Bruno Haible  <bruno@clisp.org>
55925         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
55926         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
55927         character, perform the search using U_STRCHR.
55928         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
55929         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
55930         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
55931         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
55932         Suggested by Paolo Bonzini.
55934 2010-07-31  Bruno Haible  <bruno@clisp.org>
55936         unistr/u*-strstr: Fix dependencies.
55937         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
55938         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
55939         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
55941 2010-07-31  Bruno Haible  <bruno@clisp.org>
55943         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
55944         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
55945         the beginning of the loop.
55946         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
55947         cases in 'switch' statement.
55949         unistr/u8-strchr: Fix several bugs.
55950         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
55951         the string. When not found, return NULL, not a pointer near the end.
55953         More tests for unistr/u8-strchr.
55954         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
55955         that the function does not read past the first occurrence of the byte
55956         being searched.
55957         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
55958         * tests/unistr/test-u16-strchr.c (main): New function.
55959         * tests/unistr/test-u32-strchr.c (main): New function.
55961 2010-07-31  Bruno Haible  <bruno@clisp.org>
55963         posix-modules: Ignore backup files of documentation files.
55964         * posix-modules: grep only through files named *.texi.
55966 2010-07-31  Bruno Haible  <bruno@clisp.org>
55968         symlinkat: Fix documentation.
55969         * doc/posix-functions/readlinkat.texi: Fix module name.
55971 2010-07-31  Bruno Haible  <bruno@clisp.org>
55973         fchownat: Replace also when chown has the trailing slash bug.
55974         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
55975         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
55976         introduced on 2010-04-10.
55977         Reported by Rainer Tammer.
55979 2010-07-31  Bruno Haible  <bruno@clisp.org>
55981         linkat: Work around AIX 7.1 bug.
55982         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
55983         whether linkat handles trailing slash correctly. If not, replace linkat
55984         and define LINKAT_TRAILING_SLASH_BUG.
55985         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
55986         check whether (fd1,file1) points to a directory if file1 or file2 ends
55987         in a slash. Code taken from lib/link.c.
55988         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
55989         Reported by Rainer Tammer.
55991 2010-07-31  Bruno Haible  <bruno@clisp.org>
55993         Correctly determine whether pow is available in libc on AIX 7 with xlc.
55994         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
55995         This disables an xlc optimization that was causing wrong test results.
55996         Reported by Rainer Tammer.
55998 2010-07-31  Bruno Haible  <bruno@clisp.org>
56000         iconv: Work around AIX 6.1..7.1 bug.
56001         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
56002         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
56003         cross-compiling, guess no on all versions of AIX.
56004         Reported by Rainer Tammer.
56006 2010-07-31  Bruno Haible  <bruno@clisp.org>
56008         readlink: Relax test a bit.
56009         * tests/test-readlink.h (test_readlink): Allow different errno value
56010         when readlink is called with a file name that ends in / and refers to
56011         a file.
56012         Suggested by Eric Blake.
56013         Reported by Rainer Tammer.
56015 2010-07-31  Bruno Haible  <bruno@clisp.org>
56017         copysign: Does not require -lm on glibc systems.
56018         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
56019         gl_COMMON_DOUBLE_MATHFUNC.
56020         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
56022 2010-07-31  Bruno Haible  <bruno@clisp.org>
56024         duplocale: Work around AIX 7.1 bug.
56025         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
56026         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
56027         * lib/duplocale.c (rpl_duplocale): Update comment.
56028         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
56029         Reported by Rainer Tammer.
56031 2010-07-30  Bruno Haible  <bruno@clisp.org>
56033         dirfd: Avoid link error on AIX 7.1.
56034         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
56035         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
56036         exist, set REPLACE_DIRFD.
56037         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
56038         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
56039         * doc/posix-functions/dirfd.texi: Update.
56040         Reported by Rainer Tammer.
56042 2010-07-30  Eric Blake  <eblake@redhat.com>
56044         strtod: next round of AIX fixes
56045         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
56046         exponent.
56047         * tests/test-strtod.c (main): Enhance tests.
56048         * doc/posix-functions/strtod.texi (strtod): Document next bug.
56049         Reported by Rainer Tammer.
56051         futimens: fix configure check
56052         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
56053         Reported by Bruno Haible.
56055 2010-07-30  Bruno Haible  <bruno@clisp.org>
56057         getline: Update regarding AIX.
56058         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
56059         Reported by Rainer Tammer.
56061 2010-07-30  Bruno Haible  <bruno@clisp.org>
56063         wcwidth: Drop replacement on AIX 7.
56064         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
56065         AIX 7.
56066         Reported by Rainer Tammer.
56068 2010-07-30  Bruno Haible  <bruno@clisp.org>
56070         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
56071         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
56072         a 'char *'.
56073         Reported by Rainer Tammer.
56075 2010-07-30  Bruno Haible  <bruno@clisp.org>
56077         unlink: Update regarding AIX.
56078         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
56079         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
56080         Reported by Rainer Tammer.
56082 2010-07-30  Bruno Haible  <bruno@clisp.org>
56084         symlink: Update regarding AIX.
56085         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
56086         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
56087         Reported by Rainer Tammer.
56089 2010-07-30  Bruno Haible  <bruno@clisp.org>
56091         strndup: Update regarding AIX.
56092         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
56093         AIX 7.
56094         Reported by Rainer Tammer.
56096 2010-07-30  Bruno Haible  <bruno@clisp.org>
56098         stat: Update regarding AIX.
56099         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
56100         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
56101         Reported by Rainer Tammer.
56103 2010-07-30  Bruno Haible  <bruno@clisp.org>
56105         truncl: Fix autoconf test.
56106         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
56107         whether truncl works.
56108         Reported by Rainer Tammer.
56110 2010-07-30  Bruno Haible  <bruno@clisp.org>
56112         round: Update regarding AIX.
56113         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
56114         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
56115         Reported by Rainer Tammer.
56117 2010-07-30  Bruno Haible  <bruno@clisp.org>
56119         rename: Update regarding AIX.
56120         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
56121         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
56122         Reported by Rainer Tammer.
56124 2010-07-30  Bruno Haible  <bruno@clisp.org>
56126         printf.m4: Update regarding AIX.
56127         * m4/printf.m4: Update comments regarding AIX.
56128         Reported by Rainer Tammer.
56130 2010-07-30  Bruno Haible  <bruno@clisp.org>
56132         iconv: Update regarding AIX.
56133         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
56134         AIX 7.
56135         Reported by Rainer Tammer.
56137 2010-07-30  Bruno Haible  <bruno@clisp.org>
56139         getopt: Update regarding AIX.
56140         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
56141         no on AIX.
56142         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
56143         Reported by Rainer Tammer.
56145 2010-07-30  Bruno Haible  <bruno@clisp.org>
56147         ldexpl; Update regarding AIX.
56148         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
56149         on AIX 7.
56150         Reported by Rainer Tammer.
56152 2010-07-30  Bruno Haible  <bruno@clisp.org>
56154         frexpl: Update regarding AIX.
56155         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
56156         on AIX 7.
56157         Reported by Rainer Tammer.
56159 2010-07-30  Bruno Haible  <bruno@clisp.org>
56161         open, fopen: Update regarding AIX.
56162         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
56163         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
56164         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
56165         * doc/posix-functions/fopen.texi: Likewise.
56166         Reported by Rainer Tammer.
56168 2010-07-30  Bruno Haible  <bruno@clisp.org>
56170         chown: Update doc regarding AIX.
56171         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
56172         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
56173         Reported by Rainer Tammer.
56175 2010-07-30  Eric Blake  <eblake@redhat.com>
56177         strtod: fix bug in replacement function on AIX
56178         * lib/strtod.c (strtod): Special case broken "0x" parse in
56179         underlying strtod.
56180         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
56181         * doc/posix-functions/strtod.texi (strtod): Likewise.
56182         Reported by Rainer Tammer.
56184 2010-07-30  Bruno Haible  <bruno@clisp.org>
56186         mbrlen: Fix cross-compilation guess for AIX.
56187         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
56188         guess. Leftover from 2008-12-22.
56190 2010-07-30  Bruno Haible  <bruno@clisp.org>
56192         mbrtowc: Fix cross-compilation guess for AIX.
56193         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
56194         guess. Leftover from 2008-12-21.
56196 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
56198         init.sh: work around trap limitation of some shells
56199         * tests/init.sh (setup_): Move exit trap outside of shell function.
56201 2010-07-29  Eric Blake  <eblake@redhat.com>
56203         strtod: aid debugging
56204         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
56205         understanding why strtod is rejected.
56207 2010-07-28  Bruno Haible  <bruno@clisp.org>
56209         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
56210         * lib/unistr/u8-chr.c: Include <string.h>.
56211         * tests/unistr/test-u8-chr.c: Likewise.
56212         * tests/unistr/test-u16-chr.c: Likewise.
56213         * tests/unistr/test-u32-chr.c: Likewise.
56214         * tests/unistr/test-u8-strchr.c: Likewise.
56215         * tests/unistr/test-u16-strchr.c: Likewise.
56216         * tests/unistr/test-u32-strchr.c: Likewise.
56217         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
56218         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
56219         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
56220         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
56222 2010-07-28  Bruno Haible  <bruno@clisp.org>
56224         Use spaces for indentation, not tabs.
56225         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
56227 2010-07-27  Bruno Haible  <bruno@clisp.org>
56229         mbspcasecmp: Fix function specification.
56230         * lib/string.in.h (mbspcasecmp): Fix specification comment.
56231         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
56232         Reported by Eric Blake <eblake@redhat.com>.
56234 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
56236         timespec: use cast and not conditional, as truncation isn't possible
56237         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
56238         instead of a conditional.  Comment about the situation in more detail.
56239         This undoes most of the 2009-10-29 patch.
56241 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
56243         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
56244         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
56245         * lib/unistr/u8-strchr.c: Likewise.
56246         * modules/unistr/u8-chr: Depend on memchr.
56248         unistr/u*-strchr: add tests
56249         * modules/unistr/u8-strchr-tests: New file.
56250         * modules/unistr/u16-strchr-tests: New file.
56251         * modules/unistr/u32-strchr-tests: New file.
56252         * tests/unistr/test-strchr.h: New file.
56253         * tests/unistr/test-u8-strchr.c: New file.
56254         * tests/unistr/test-u16-strchr.c: New file.
56255         * tests/unistr/test-u32-strchr.c: New file.
56257         unistr/u*-chr: test multibyte sequences more
56258         * tests/unistr/test-chr.h: Do complete testing of the characters in the
56259         test vector.
56260         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
56261         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
56262         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
56264         unistr/u*-chr: test multibyte sequences
56265         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
56267         unistr/u*-chr: prepare for multibyte tests
56268         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
56269         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
56270         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
56271         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
56272         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
56273         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
56275 2010-07-18  Bruno Haible  <bruno@clisp.org>
56277         unistr/u8-strchr: Optimize non-ASCII argument case.
56278         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
56279         because the first byte often matches anyway.
56280         Reported by Pádraig Brady <P@draigbrady.com>.
56282 2010-07-15  Karl Berry  <karl@gnu.org>
56284         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
56286 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
56288         getcwd: on Solaris, work better if ancestors are inaccessible
56289         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
56290         buffer and size, try again with a large buffer.  This works better
56291         on Solaris, since its getcwd succeeds even if the path to the root
56292         is inaccessible, and this is helpful in common cases such as .zfs
56293         hidden directories.  Problem reported by J Chapman Flack in
56294         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
56295         Use system getcwd if it's declared, not merely if it's partly
56296         working; use the partly-working test only to avoid needless effort
56297         if the system getcwd fails.
56298         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
56299         comment that was already obsolete and is now even more obsolete.
56300         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
56301         now might call strdup.
56303 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
56305         pthread: Add enough so that coreutils/src/sort.c compiles.
56306         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
56307         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
56308         gnulib. Include <sched.h> and <time.h>, as per POSIX.
56309         Include <sys/types.h>, in case it defines pthread_t.
56310         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
56311         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
56312         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
56313         (pthread_rwlockattr_t, pthread_spinlock_t):
56314         New typedefs, if HAVE_PTHREAD_T is not defined.
56315         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
56316         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
56317         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
56318         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
56319         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
56320         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
56321         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
56322         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
56323         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
56324         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
56325         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
56326         New macros.
56327         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
56328         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
56329         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
56330         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
56331         (pthread_spin_unlock): New dummy functions.
56332         (pthread_create): Return EAGAIN; don't set errno.
56333         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
56334         require AC_C_INLINE.
56335         * modules/pthread (Depends-on): Add sched, time.
56336         (pthread.h): Use AM_V_GEN.
56338 2010-07-13  Bruno Haible  <bruno@clisp.org>
56340         striconveh: Don't malloc memory if the result buffer is sufficient.
56341         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
56342         buffer if its size is sufficient.
56343         Reported by Ludovic Courtès <ludo@gnu.org>.
56345 2010-07-13  Bruno Haible  <bruno@clisp.org>
56347         strtod: Add safety check.
56348         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
56350 2010-07-12  Bruno Haible  <bruno@clisp.org>
56352         Unify tests that set gl_cv_func_ldexpl_no_libm.
56353         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
56354         gl_FUNC_LDEXPL.
56355         (gl_FUNC_LDEXPL): Invoke it.
56356         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56358 2010-07-12  Bruno Haible  <bruno@clisp.org>
56360         Unify tests that set gl_cv_func_ldexp_no_libm.
56361         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
56362         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
56363         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
56364         (configure.ac): Simply invoke gl_FUNC_LDEXP.
56365         * modules/strtod (Files): Add m4/ldexp.m4.
56367 2010-07-12  Bruno Haible  <bruno@clisp.org>
56369         Unify tests that set gl_cv_func_frexpl_no_libm.
56370         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
56371         gl_FUNC_FREXPL_NO_LIBM.
56372         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
56373         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56375 2010-07-12  Bruno Haible  <bruno@clisp.org>
56377         Unify tests that set gl_cv_func_frexp_no_libm.
56378         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
56379         gl_FUNC_FREXP_NO_LIBM.
56380         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
56381         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
56383 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
56385         memcoll: clarify sizes versus lengths, document better, and tweak perf
56386         * lib/memcoll.c (strcoll_loop, memcoll0):
56387         Improve quality of descriptive comments.  Name variables
56388         consistently as to whether they are lengths (which do not include
56389         terminating null) versus sizes (which do).
56390         * lib/xmemcoll.c (xmemcoll0): Likewise.
56391         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
56392         returned when s1size == 0; this is easier to compile and saves
56393         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
56395 2010-07-12  Bruno Haible  <bruno@clisp.org>
56397         Tests for module '_Exit'.
56398         * modules/_Exit-tests: New file.
56399         * tests/test-_Exit.sh: New file.
56400         * tests/test-_Exit.c: New file.
56402         New module '_Exit'.
56403         * lib/stdlib.in.h (__attribute__): New macro.
56404         (_Exit): New declaration.
56405         * lib/_Exit.c: New file.
56406         * m4/_Exit.m4: New file.
56407         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
56408         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
56409         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
56410         * modules/_Exit: New file.
56411         * tests/test-stdlib-c++.cc (_Exit): Check signature.
56412         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
56414 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
56416         strtod: make it more-accurate typically, and don't require libm
56417         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
56418         Include limits.h.  Don't include string.h.
56419         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
56420         (locale_isspace): New function, so that no casts are needed to
56421         check whether *s is a space.
56422         (ldexp): Provide an unused dummy if not available.
56423         (scale_radix_exp, parse_number, underlying_strtod): New functions.
56424         (strtod): Use them.  This implementation prefers to use the
56425         underlying strtod if available, falling back on our own code
56426         only to fix known bugs.  This is more likely to produce an
56427         accurate result.  Also, it avoids the use of libm functions.
56428         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
56429         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
56430         was absent, but it caused a test failure with coreutils.
56431         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
56432         with libm.
56433         * modules/strtod (Makefile.am, Link): libm is no longer needed.
56434         * modules/strtod-tests (Makefile.am): Likewise.
56436 2010-07-11  Pádraig Brady  <P@draigBrady.com>
56437             Bruno Haible  <bruno@clisp.org>
56439         unistr/u8-strchr: Optimize ASCII argument case.
56440         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
56442 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56444         (x)memcoll: minor tweaks
56445         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
56446         is after the type that it qualifies.
56447         (memcoll0): Likewise.
56448         * lib/memcoll.h (memcoll0): Likewise.
56449         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
56450         * lib/xmemcoll.h (xmemcoll0): Likewise.
56451         * lib/memcoll.c (memcoll0): Correct the comment.  This function
56452         differs from memcoll in that the NUL byte is part of the argument.
56453         Omit the abort-checks, as performance is a real issue here.  Plus,
56454         the checks were wrong anyway (an off-by-one error).  Omit local
56455         variable 'diff', as it's a bit clearer that way.
56456         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
56457         no longer needed.
56459 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
56461         (x)memcoll: speedup when input is known to be NUL delimited
56462         * lib/memcoll.c: Include stdlib.
56463         (memcoll0): New function.
56464         (strcoll_loop): New function, refactored for use in both memcoll
56465         and memcoll0.
56466         * lib/memcoll.h (memcoll0): Add prototype.
56467         * lib/xmemcoll.c (xmemcoll0): New function.
56468         (collate_error): New function, refactored for use in both xmemcoll
56469         and xmemcoll0.
56470         * lib/xmemcoll.h (xmemcoll0): Add prototype.
56471         * m4/memcoll.m4: add inline invocation.
56473 2010-07-06  Pádraig Brady  <P@draigBrady.com>
56475         * build-aux/bootstrap: Remove any local translations
56476         from the translation project synchronization directory,
56477         so that local only translations are not distributed.
56479 2010-07-04  Bruno Haible  <bruno@clisp.org>
56481         fsusage: Clarify which code applies to which platforms.
56482         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
56483         platform.
56484         * lib/fsusage.c (get_fs_usage): Likewise.
56486 2010-07-04  Bruno Haible  <bruno@clisp.org>
56488         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
56489         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
56490         Reported by Martin Lambers <marlam@marlam.de>.
56492 2010-07-04  Jim Meyering  <meyering@redhat.com>
56494         hash: once again explicitly disallow insertion of NULL
56495         * lib/hash.c (hash_insert0): Reinstate just-removed test:
56496         inserting a NULL pointer cannot work with these functions.
56497         Add a comment with details.
56498         This reverts part of the 2010-07-01 commit, 5bef1a35
56499         "hash: extend module to deal with non-pointer keys".
56501 2010-07-01  Bruno Haible  <bruno@clisp.org>
56503         stdbool: Update doc.
56504         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
56505         Info from Christian Weisgerber <naddy@mips.inka.de>.
56507 2010-07-01  Jim Meyering  <meyering@redhat.com>
56509         hash: extend module to deal with non-pointer keys
56510         * lib/hash.c (hash_insert0): New interface, much like hash_insert
56511         but that allows insertion of non-pointer entries.
56512         Do not disallow an ENTRY value of NULL.
56513         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
56514         * lib/hash.h (hash_insert0): Declare.
56516 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
56518         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
56519         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
56520         not present (i.e. with autoconf 2.59 and when using gettextize, not
56521         gnulib), require AC_GNU_SOURCE instead.
56523 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
56525         idpriv-drop: Fix tests.
56526         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
56527         not to the test-idpriv-droptemp program.
56529 2010-06-29  Bruno Haible  <bruno@clisp.org>
56531         string: Fix syntax error with g++ 2.96.
56532         * lib/string.in.h (__pure__): Remove definition.
56533         (_GL_ATTRIBUTE_PURE): New macro.
56534         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
56535         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
56536         Reported by Christian Weisgerber <naddy@mips.inka.de>.
56538 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
56540         unitypes: Fix bug introduced on 2010-05-18.
56541         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
56543 2010-06-22  Eric Blake  <eblake@redhat.com>
56545         memmem: slight optimization
56546         * lib/str-two-way.h (critical_factorization): Update comments.
56547         Reduce work during factorization phase.
56548         Reported by Carlos Bueno <carlos@bueno.org>.
56550 2010-06-21  Bruno Haible  <bruno@clisp.org>
56552         Fix HAVE_CALLOC_POSIX misnomer.
56553         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
56554         !HAVE_CALLOC_POSIX.
56555         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
56556         HAVE_CALLOC_POSIX.
56557         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
56558         instead of HAVE_CALLOC_POSIX.
56559         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
56560         HAVE_CALLOC_POSIX.
56562         Use modern idiom for calloc() replacement.
56563         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
56564         AC_FUNC_CALLOC.
56565         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
56566         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
56567         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
56568         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
56569         (gl_REPLACE_CALLOC): New macro.
56571 2010-06-21  Bruno Haible  <bruno@clisp.org>
56573         Fix HAVE_REALLOC_POSIX misnomer.
56574         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
56575         !HAVE_REALLOC_POSIX.
56576         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
56577         HAVE_REALLOC_POSIX.
56578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
56579         instead of HAVE_REALLOC_POSIX.
56580         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
56581         HAVE_REALLOC_POSIX.
56583         Use modern idiom for realloc() replacement.
56584         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
56585         AC_FUNC_REALLOC.
56586         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
56587         Autoconf's AC_FUNC_REALLOC.
56588         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
56589         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
56590         (gl_REPLACE_REALLOC): New macro.
56591         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
56593 2010-06-21  Bruno Haible  <bruno@clisp.org>
56595         Fix HAVE_MALLOC_POSIX misnomer.
56596         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
56597         !HAVE_MALLOC_POSIX.
56598         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
56599         HAVE_MALLOC_POSIX.
56600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
56601         instead of HAVE_MALLOC_POSIX.
56602         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
56603         HAVE_MALLOC_POSIX.
56605         Use modern idiom for malloc() replacement.
56606         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
56607         AC_FUNC_MALLOC.
56608         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
56609         Autoconf's AC_FUNC_MALLOC.
56610         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
56611         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
56612         (gl_REPLACE_MALLOC): New macro.
56613         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
56615 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
56617         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
56618         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
56619         This macro takes 3 arguments, not 4.
56621 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
56623         ipv6: fix detection under mingw
56624         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
56625         in6_addr.
56627 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
56629         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
56630         that strtod() works when cross-compiling to a glibc version known
56631         to work.
56633 2010-06-15  Bruno Haible  <bruno@clisp.org>
56635         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
56637 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
56639         select: Correct timeout.
56640         * lib/select.c (rpl_select): Compute wait_timeout correctly.
56642 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56644         git-version-gen: init shell var to avoid env var influence
56645         * build-aux/git-version-gen (v): Init shell var to empty.
56647 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
56649         priv-set: Don't assume that priv.h exists merely because getppriv does.
56650         See Jan Andersen's bug report about AIX 5L in
56651         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
56652         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
56653         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
56654         * lib/priv-set.h: Likewise.
56655         * tests/test-priv-set.c: Likewise.
56657 2010-06-13  Bruno Haible  <bruno@clisp.org>
56659         relocatable: Make it easier to test whether to install wrappers.
56660         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
56661         RELOCATABLE_VIA_WRAPPER.
56663 2010-06-13  Bruno Haible  <bruno@clisp.org>
56665         gnulib-tool: Display specified modules and dependencies differently.
56666         * gnulib-tool (func_show_module_list): New function.
56667         (func_import, func_create_testdir): Invoke it.
56668         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56670 2010-06-13  Bruno Haible  <bruno@clisp.org>
56672         gnulib-tool: Align code of func_import and func_create_testdir.
56673         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
56674         specified_modules.
56676 2010-06-12  Jim Meyering  <meyering@redhat.com>
56678         test-inttostr: avoid spurious failure on Solaris 9
56679         * tests/test-inttostr.c (main): Skip the test when snprintf fails
56680         to accept "%ju".  Reported by Bruno Haible.
56682 2010-06-11  Jim Meyering  <meyering@redhat.com>
56684         test-sys_socket: mark variables as used more readably
56685         * tests/test-sys_socket.c (main): Mark otherwise unused variables
56686         as "used" explicitly via (void) statement casts.  This is more
56687         readable than using them in an artificial return expression.
56688         Suggestion from Bruno Haible.
56690 2010-06-11  Bruno Haible  <bruno@clisp.org>
56692         Avoid some more warnings from "gcc -Wwrite-strings".
56693         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
56694         to 'const char *'.
56695         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
56696         * tests/test-c-strcasestr.c (main): Likewise.
56697         * tests/test-mbscasestr1.c (main): Likewise.
56698         * tests/test-mbscasestr2.c (main): Likewise.
56699         * tests/test-memmem.c (main): Likewise.
56700         * tests/test-strstr.c (main): Likewise.
56701         * tests/test-strcasestr.c (main): Likewise.
56703 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56705         init.sh: change framework_failure_ to fail with status 99, not 1
56706         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
56707         automake's parallel-tests rule that this is an unexpected failure,
56708         even if the test is listed in XFAIL_TESTS.
56710 2010-06-11  Jim Meyering  <meyering@redhat.com>
56712         test-inttostr: avoid warnings about 4-6KB literal strings
56713         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
56714         Include "macros.h", for its definition of ASSERT.
56715         (CK): s/assert/ASSERT/
56716         * modules/inttostr-tests (Files): Add macros.h.
56718         init.sh: don't use $ME_ or skip_ before they are defined
56719         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
56720         their first uses.  Also hoist their companions: warn_, fail_,
56721         framework_failure_, $stderr_fileno.  Prompted by a patch from
56722         Stefano Lattarini.
56724         test-sys_socket: avoid set-but-not-used warnings from gcc
56725         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
56726         avoid warning about set-but-not-used variables.
56728         test-xvasprintf: avoid 'const' discard warnings
56729         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
56730         "const" when assigning from literal strings.
56731         (test_xasprintf): Add "void" in function argument list to placate
56732         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
56734         tests: avoid compilation warnings in argmatch and exclude tests...
56735         in packages that define ARGMATCH_DIE_DECL, like coreutils.
56736         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
56737         Since it always exits, declare with the "noreturn" attribute.
56738         * tests/test-argmatch.c: Likewise.
56740         tests: avoid 'const' discard warnings in mbsstr tests
56741         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
56742         * tests/test-mbsstr2.c (main): Likewise.
56744         test-verify: avoid warning from gcc's -Wmissing-declarations
56745         * tests/test-verify.c (function): Declare to be static.
56747         test-inttostr.c: include <string.h> for use of strcmp
56748         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
56750         test-linkat: avoid failed assertion on "other" architectures
56751         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
56752         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
56753         sparc: https://bugs.launchpad.net/bugs/591968
56755 2010-06-11  Jim Meyering  <meyering@redhat.com>
56757         printf.m4: avoid autoconf's "Expanded Before Required" warning
56758         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
56759         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
56760         autoconf warning.
56762 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
56764         Replacement header templates are now named with ".in", not "_".
56765         * doc/gnulib-intro.texi: Correct.
56767 2010-06-10  Jim Meyering  <meyering@redhat.com>
56769         inttostr-tests: depend on snprintf, not snprintf-posix
56770         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
56771         snprintf-posix, to avoid this aclocal failure:
56772           missing file gnulib-tests/vasnprintf.c
56773           configure.ac:45: error: expected source file, required through \
56774           AC_LIBSOURCES, not found
56776 2010-06-10  Jim Meyering  <meyering@redhat.com>
56778         inttostr: add a new function, inttostr, and tests
56779         The namesake function was not available.  The existence of the
56780         template file, inttostr.c makes its addition nontrivial.
56781         * lib/anytostr.c: Rename from inttostr.c.
56782         (anytostr): Rename from inttostr.
56783         * lib/inttostr.c: New file.
56784         * modules/inttostr (Files): Add anytostr.c.
56785         (Makefile.am): Set lib_SOURCES instead of ...
56786         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
56787         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
56788         * lib/offtostr.c: Likewise.
56789         * lib/uinttostr.c: Likewise.
56790         * lib/umaxtostr.c: Likewise.
56791         * modules/inttostr-tests: New file.
56792         * tests/test-inttostr.c: New file.  Test these functions.
56794 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
56795             Bruno Haible  <bruno@clisp.org>
56797         Add "Extending Gnulib" chapter to manual.
56798         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
56799         chapter.
56800         (Extending Gnulib): New chapter.
56801         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
56802         chapter.
56804 2010-06-09  Bruno Haible  <bruno@clisp.org>
56806         Avoid relocwrapper link errors due to gnulib replacement functions.
56807         * lib/areadlink.c: Use the system's malloc, realloc functions.
56808         (areadlink): Set errno to ENOMEM explicitly.
56809         * modules/areadlink (Depends-on): Remove malloc-posix.
56810         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56812 2010-06-09  Bruno Haible  <bruno@clisp.org>
56814         Avoid relocwrapper link errors due to gnulib replacement functions.
56815         * lib/canonicalize-lgpl.c: Use the system's malloc function.
56816         * lib/malloca.c: Likewise.
56817         * lib/relocatable.c: Likewise.
56818         * lib/progreloc.c: Use the system's malloc, sprintf functions.
56819         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
56820         * lib/setenv.c: Use the system's malloc, realloc functions.
56821         * lib/strerror.c: Use the system's sprintf function.
56822         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56824 2010-06-04  Bruno Haible  <bruno@clisp.org>
56826         Prefer documented low-level autoconf macro names.
56827         * m4/lib-link.m4: Use m4_translit instead of translit.
56828         * m4/environ.m4: Likewise.
56829         * m4/mathfunc.m4: Likewise.
56830         * m4/onceonly.m4: Likewise.
56831         * m4/stdint.m4: Likewise.
56832         Suggested by Eric Blake.
56834 2010-06-04  Martin Lambers  <marlam@marlam.de>
56835             Bruno Haible  <bruno@clisp.org>
56837         havelib: Allow library names with '+' characters.
56838         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56839         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
56841 2010-06-09  Bruno Haible  <bruno@clisp.org>
56843         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
56844         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
56845         realloc failed.
56847 2010-06-08  Peter Simons  <simons@cryp.to>
56849         maint.mk: make the news-check rule more configurable
56850         * top/maint.mk (news-check-lines-spec): New variable.
56851         (news-check): Use "sed -n 1,10p" in place of "head".
56853 2010-06-07  Jim Meyering  <meyering@redhat.com>
56855         do-release-commit-and-tag: fix typo in --help
56856         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
56858         regex: avoid new dead-code warning with gcc-4.6.0
56859         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
56860         if-block containing a while-loop.  It's been unused for at least
56861         5 years.
56863 2010-06-05  Bruno Haible  <bruno@clisp.org>
56865         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
56866         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
56868 2010-06-04  Bruno Haible  <bruno@clisp.org>
56870         Update to GNU gettext 0.18.1.
56871         * modules/gettext (configure.ac): Require gettext infrastructure from
56872         version 0.18.1.
56874 2010-06-03  Bruno Haible  <bruno@clisp.org>
56876         Don't use AC_LIBOBJ with file names in subdirectories.
56877         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
56878         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
56879         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
56880         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
56881         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
56882         gl_LIBUNISTRING_LIBSOURCE.
56883         (Makefile.am): Augment lib_SOURCES here, conditionally.
56884         * NEWS: Drop requirement for Automake option 'subdir-objects'.
56886 2010-06-03  Bruno Haible  <bruno@clisp.org>
56888         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
56889         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
56890         expansion does not end with a newline.
56891         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
56892         unnecessary newline.
56894 2010-06-03  Bruno Haible  <bruno@clisp.org>
56896         Reduce dependencies.
56897         * tests/test-quotearg.h: New file, extracted from
56898         tests/test-quotearg.c.
56899         * tests/test-quotearg-simple.c: New file, extracted from
56900         tests/test-quotearg.c.
56901         * tests/test-quotearg.c: Don't include <ctype.h>.
56902         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
56903         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
56904         use_quote_double_quotes, use_quotearg_colon): Moved to
56905         tests/test-quotearg.h.
56906         (results_g, flag_results, custom_quotes, custom_results): Moved
56907         to tests/test-quotearg-simple.c.
56908         (main): Moved the part that does not depend on gettext to
56909         tests/test-quotearg-simple.c. Return 77 if the test cannot be
56910         performed.
56911         * modules/quotearg-simple: New file.
56912         * modules/quotearg-simple-tests: New file.
56913         * modules/quotearg (Depends-on): Add quotearg-simple.
56914         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
56915         (Files): Add tests/test-quotearg.h.
56916         Reported by Paolo Bonzini.
56918 2010-06-03  Bruno Haible  <bruno@clisp.org>
56920         Reduce dependencies.
56921         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
56923 2010-06-03  Bruno Haible  <bruno@clisp.org>
56925         time: Undefine more broken macros.
56926         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
56927         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
56928         Reported by Eric Blake.
56930 2010-06-03  Bruno Haible  <bruno@clisp.org>
56932         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
56933         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
56934         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
56935         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
56936         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
56937         Reported by Ludovic Courtès <ludo@gnu.org>.
56939 2010-06-02  Eric Blake  <eblake@redhat.com>
56941         time: work with mingw + pthreads-win32 library
56942         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
56943         if timespec is defined only in pthread.h.
56944         * modules/time (Makefile.am): Substitute it.
56945         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
56946         <pthread.h>, when needed.
56947         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
56948         from the library.
56950 2010-05-31  Bruno Haible  <bruno@clisp.org>
56952         Avoid expanding two macros in the wrong order.
56953         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
56954         gl_LIBUNISTRING if it is defined.
56955         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
56956         autoconf >= 2.64.
56957         Reported by Ludovic Courtès <ludo@gnu.org>.
56959 2010-05-27  Jim Meyering  <meyering@redhat.com>
56961         maint.mk: also prohibit "#undef" of always-defined symbols
56962         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
56963         Allow more than one space before the symbol name.
56964         (sc_prohibit_always-defined_macros): Use grep's -E, now that
56965         the regexp uses alternation.
56967 2010-05-26  Eric Blake  <eblake@redhat.com>
56969         maint.mk: avoid echo -e
56970         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
56971         Convert all uses of echo -* to printf.
56972         Reported by Matthias Bolte.
56974 2010-05-25  Bruno Haible  <bruno@clisp.org>
56976         Update to GNU gettext 0.18, part 2.
56977         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
56978         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
56980 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56982         Add missing include in test-pwrite.c.
56983         * tests/test-pwrite.c: Include string.h, for strcmp.
56985 2010-05-24  Bruno Haible  <bruno@clisp.org>
56987         * NEWS: Mention requirement for Automake option 'subdir-objects'.
56989 2010-05-24  Bruno Haible  <bruno@clisp.org>
56991         Don't use conversion with transliteration in u{8,16,32}_strcoll.
56992         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
56993         iconveh_error argument.
56994         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
56995         U_STRCONV_TO_LOCALE.
56996         * lib/unistr/u16-strcoll.c: Likewise.
56997         * lib/unistr/u32-strcoll.c: Likewise.
56998         * modules/unistr/u8-strcoll (Depends-on): Add
56999         uniconv/u8-strconv-to-enc, localcharset. Remove
57000         uniconv/u8-strconv-to-locale.
57001         (configure.ac): Bump version number.
57002         * modules/unistr/u16-strcoll (Depends-on): Add
57003         uniconv/u16-strconv-to-enc, localcharset. Remove
57004         uniconv/u16-strconv-to-locale.
57005         (configure.ac): Bump version number.
57006         * modules/unistr/u32-strcoll (Depends-on): Add
57007         uniconv/u32-strconv-to-enc, localcharset. Remove
57008         uniconv/u32-strconv-to-locale.
57009         (configure.ac): Bump version number.
57011 2010-05-24  Bruno Haible  <bruno@clisp.org>
57013         Avoid a test failure on NetBSD 5.0.
57014         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
57015         an iconv() bug.
57017 2010-05-24  Bruno Haible  <bruno@clisp.org>
57019         Adjust #include directive style.
57020         * modules/regex (Includes): Recommend to write <regex.h>.
57022 2010-05-24  Bruno Haible  <bruno@clisp.org>
57024         regex: Don't require alloca.
57025         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
57026         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
57027         only inside if (0).
57029 2010-05-23  Jim Meyering  <meyering@redhat.com>
57031         test-renameat.c: include <sys/stat.h>
57032         * tests/test-renameat.c: Include <sys/stat.h>; required for
57033         definition of S_IS* macros.
57035 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
57037         Update maintainer documentation for 'relocatable-prog' module.
57038         * doc/relocatable-maint.texi: Update.
57039         Comments by Bruno Haible.
57041 2010-05-23  Bruno Haible  <bruno@clisp.org>
57043         git-merge-changelog: Enable --split-merged-entry by default.
57044         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
57045         (usage): Don't mention this option any more.
57046         Reported by Ralf Wildenhues.
57048 2010-05-23  Jim Meyering  <meyering@redhat.com>
57050         test-pwrite: do not leave behind a test file named "out"
57051         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
57052         The trivial-looking use of init.sh is really necessary.
57053         It ensures that the temporary file, "out", is created in
57054         a temporary directory, and removed upon termination.
57055         * tests/test-pwrite.sh: Re-add file.
57056         * modules/pwrite-tests: Reference it.
57058 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57060         Fix output redirection buglet in init.sh.
57061         * tests/init.sh: Fix redirection of stderr.
57063 2010-05-20  Simon Josefsson  <simon@josefsson.org>
57065         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
57067 2010-05-17  Simon Josefsson  <simon@josefsson.org>
57069         * modules/valgrind-tests: New file.
57070         * m4/valgrind-tests.m4: New file.
57071         * doc/valgrind-tests.texi: New file.
57072         * doc/gnulib.texi (Running self-tests under valgrind): New
57073         section.
57075 2010-05-19  Bruno Haible  <bruno@clisp.org>
57077         Clean up dead code in recent commit.
57078         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
57079         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
57080         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
57081         Suggested by Paolo Bonzini.
57083 2010-05-19  Bruno Haible  <bruno@clisp.org>
57085         Avoid valgrind error reports from libunistring.
57086         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
57087         * modules/libunistring (Files): Add it.
57088         * modules/libunistring-optional (Files): Likewise.
57090 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
57091             Bruno Haible  <bruno@clisp.org>
57093         New module 'libunistring-optional'.
57094         * modules/libunistring-optional: New file.
57095         * m4/libunistring-base.m4: New file.
57096         * m4/libunistring-optional.m4: New file.
57097         * lib/unicase.in.h: Renamed from lib/unicase.h.
57098         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
57099         * lib/unictype.in.h: Renamed from lib/unictype.h.
57100         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
57101         * lib/uniname.in.h: Renamed from lib/uniname.h.
57102         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
57103         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
57104         * lib/unistr.in.h: Renamed from lib/unistr.h.
57105         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
57106         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
57107         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
57108         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
57109         gl_LIBUNISTRING. If the library was found, determine the installed
57110         version and set LIBUNISTRING_VERSION.
57111         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
57112         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
57113         handle a configuration option --with-included-libunistring.
57114         * modules/libunistring (Files): Add m4/absolute-header.m4.
57115         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
57116         Add m4/libunistring-base.m4.
57117         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57118         (Makefile.am): Build unicase.h from unicase.in.h.
57119         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
57120         Add m4/libunistring-base.m4.
57121         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57122         (Makefile.am): Build uniconv.h from uniconv.in.h.
57123         * modules/unictype/base (Files): Use unictype.in.h instead of
57124         unictype.h. Add m4/libunistring-base.m4.
57125         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57126         (Makefile.am): Build unictype.h from unictype.in.h.
57127         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
57128         Add m4/libunistring-base.m4.
57129         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57130         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
57131         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
57132         Add m4/libunistring-base.m4.
57133         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57134         (Makefile.am): Build uniname.h from uniname.in.h.
57135         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
57136         Add m4/libunistring-base.m4.
57137         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57138         (Makefile.am): Build uninorm.h from uninorm.in.h.
57139         * modules/unistdio/base (Files): Use unistdio.in.h instead of
57140         unistdio.h. Add m4/libunistring-base.m4.
57141         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57142         (Makefile.am): Build unistdio.h from unistdio.in.h.
57143         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
57144         Add m4/libunistring-base.m4.
57145         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57146         (Makefile.am): Build unistr.h from unistr.in.h.
57147         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
57148         Add m4/libunistring-base.m4.
57149         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57150         (Makefile.am): Build unitypes.h from unitypes.in.h.
57151         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
57152         Add m4/libunistring-base.m4.
57153         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57154         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
57155         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
57156         uniwidth.h. Add m4/libunistring-base.m4.
57157         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57158         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
57159         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
57160         instead of augmenting lib_SOURCES.
57161         * modules/unicase/empty-suffix-context: Likewise.
57162         * modules/unicase/locale-language: Likewise.
57163         * modules/unicase/tolower: Likewise.
57164         * modules/unicase/totitle: Likewise.
57165         * modules/unicase/toupper: Likewise.
57166         * modules/unicase/u8-casecmp: Likewise.
57167         * modules/unicase/u8-casecoll: Likewise.
57168         * modules/unicase/u8-casefold: Likewise.
57169         * modules/unicase/u8-casexfrm: Likewise.
57170         * modules/unicase/u8-ct-casefold: Likewise.
57171         * modules/unicase/u8-ct-tolower: Likewise.
57172         * modules/unicase/u8-ct-totitle: Likewise.
57173         * modules/unicase/u8-ct-toupper: Likewise.
57174         * modules/unicase/u8-is-cased: Likewise.
57175         * modules/unicase/u8-is-casefolded: Likewise.
57176         * modules/unicase/u8-is-lowercase: Likewise.
57177         * modules/unicase/u8-is-titlecase: Likewise.
57178         * modules/unicase/u8-is-uppercase: Likewise.
57179         * modules/unicase/u8-prefix-context: Likewise.
57180         * modules/unicase/u8-suffix-context: Likewise.
57181         * modules/unicase/u8-tolower: Likewise.
57182         * modules/unicase/u8-totitle: Likewise.
57183         * modules/unicase/u8-toupper: Likewise.
57184         * modules/unicase/u16-casecmp: Likewise.
57185         * modules/unicase/u16-casecoll: Likewise.
57186         * modules/unicase/u16-casefold: Likewise.
57187         * modules/unicase/u16-casexfrm: Likewise.
57188         * modules/unicase/u16-ct-casefold: Likewise.
57189         * modules/unicase/u16-ct-tolower: Likewise.
57190         * modules/unicase/u16-ct-totitle: Likewise.
57191         * modules/unicase/u16-ct-toupper: Likewise.
57192         * modules/unicase/u16-is-cased: Likewise.
57193         * modules/unicase/u16-is-casefolded: Likewise.
57194         * modules/unicase/u16-is-lowercase: Likewise.
57195         * modules/unicase/u16-is-titlecase: Likewise.
57196         * modules/unicase/u16-is-uppercase: Likewise.
57197         * modules/unicase/u16-prefix-context: Likewise.
57198         * modules/unicase/u16-suffix-context: Likewise.
57199         * modules/unicase/u16-tolower: Likewise.
57200         * modules/unicase/u16-totitle: Likewise.
57201         * modules/unicase/u16-toupper: Likewise.
57202         * modules/unicase/u32-casecmp: Likewise.
57203         * modules/unicase/u32-casecoll: Likewise.
57204         * modules/unicase/u32-casefold: Likewise.
57205         * modules/unicase/u32-casexfrm: Likewise.
57206         * modules/unicase/u32-ct-casefold: Likewise.
57207         * modules/unicase/u32-ct-tolower: Likewise.
57208         * modules/unicase/u32-ct-totitle: Likewise.
57209         * modules/unicase/u32-ct-toupper: Likewise.
57210         * modules/unicase/u32-is-cased: Likewise.
57211         * modules/unicase/u32-is-casefolded: Likewise.
57212         * modules/unicase/u32-is-lowercase: Likewise.
57213         * modules/unicase/u32-is-titlecase: Likewise.
57214         * modules/unicase/u32-is-uppercase: Likewise.
57215         * modules/unicase/u32-prefix-context: Likewise.
57216         * modules/unicase/u32-suffix-context: Likewise.
57217         * modules/unicase/u32-tolower: Likewise.
57218         * modules/unicase/u32-totitle: Likewise.
57219         * modules/unicase/u32-toupper: Likewise.
57220         * modules/unicase/ulc-casecmp: Likewise.
57221         * modules/unicase/ulc-casecoll: Likewise.
57222         * modules/unicase/ulc-casexfrm: Likewise.
57223         * modules/uniconv/u8-conv-from-enc: Likewise.
57224         * modules/uniconv/u8-conv-to-enc: Likewise.
57225         * modules/uniconv/u8-strconv-from-enc: Likewise.
57226         * modules/uniconv/u8-strconv-from-locale: Likewise.
57227         * modules/uniconv/u8-strconv-to-enc: Likewise.
57228         * modules/uniconv/u8-strconv-to-locale: Likewise.
57229         * modules/uniconv/u16-conv-from-enc: Likewise.
57230         * modules/uniconv/u16-conv-to-enc: Likewise.
57231         * modules/uniconv/u16-strconv-from-enc: Likewise.
57232         * modules/uniconv/u16-strconv-from-locale: Likewise.
57233         * modules/uniconv/u16-strconv-to-enc: Likewise.
57234         * modules/uniconv/u16-strconv-to-locale: Likewise.
57235         * modules/uniconv/u32-conv-from-enc: Likewise.
57236         * modules/uniconv/u32-conv-to-enc: Likewise.
57237         * modules/uniconv/u32-strconv-from-enc: Likewise.
57238         * modules/uniconv/u32-strconv-from-locale: Likewise.
57239         * modules/uniconv/u32-strconv-to-enc: Likewise.
57240         * modules/uniconv/u32-strconv-to-locale: Likewise.
57241         * modules/unictype/bidicategory-byname: Likewise.
57242         * modules/unictype/bidicategory-name: Likewise.
57243         * modules/unictype/bidicategory-of: Likewise.
57244         * modules/unictype/bidicategory-test: Likewise.
57245         * modules/unictype/block-list: Likewise.
57246         * modules/unictype/block-test: Likewise.
57247         * modules/unictype/category-C: Likewise.
57248         * modules/unictype/category-Cc: Likewise.
57249         * modules/unictype/category-Cf: Likewise.
57250         * modules/unictype/category-Cn: Likewise.
57251         * modules/unictype/category-Co: Likewise.
57252         * modules/unictype/category-Cs: Likewise.
57253         * modules/unictype/category-L: Likewise.
57254         * modules/unictype/category-Ll: Likewise.
57255         * modules/unictype/category-Lm: Likewise.
57256         * modules/unictype/category-Lo: Likewise.
57257         * modules/unictype/category-Lt: Likewise.
57258         * modules/unictype/category-Lu: Likewise.
57259         * modules/unictype/category-M: Likewise.
57260         * modules/unictype/category-Mc: Likewise.
57261         * modules/unictype/category-Me: Likewise.
57262         * modules/unictype/category-Mn: Likewise.
57263         * modules/unictype/category-N: Likewise.
57264         * modules/unictype/category-Nd: Likewise.
57265         * modules/unictype/category-Nl: Likewise.
57266         * modules/unictype/category-No: Likewise.
57267         * modules/unictype/category-P: Likewise.
57268         * modules/unictype/category-Pc: Likewise.
57269         * modules/unictype/category-Pd: Likewise.
57270         * modules/unictype/category-Pe: Likewise.
57271         * modules/unictype/category-Pf: Likewise.
57272         * modules/unictype/category-Pi: Likewise.
57273         * modules/unictype/category-Po: Likewise.
57274         * modules/unictype/category-Ps: Likewise.
57275         * modules/unictype/category-S: Likewise.
57276         * modules/unictype/category-Sc: Likewise.
57277         * modules/unictype/category-Sk: Likewise.
57278         * modules/unictype/category-Sm: Likewise.
57279         * modules/unictype/category-So: Likewise.
57280         * modules/unictype/category-Z: Likewise.
57281         * modules/unictype/category-Zl: Likewise.
57282         * modules/unictype/category-Zp: Likewise.
57283         * modules/unictype/category-Zs: Likewise.
57284         * modules/unictype/category-and: Likewise.
57285         * modules/unictype/category-and-not: Likewise.
57286         * modules/unictype/category-byname: Likewise.
57287         * modules/unictype/category-name: Likewise.
57288         * modules/unictype/category-none: Likewise.
57289         * modules/unictype/category-of: Likewise.
57290         * modules/unictype/category-or: Likewise.
57291         * modules/unictype/category-test: Likewise.
57292         * modules/unictype/combining-class: Likewise.
57293         * modules/unictype/ctype-alnum: Likewise.
57294         * modules/unictype/ctype-alpha: Likewise.
57295         * modules/unictype/ctype-blank: Likewise.
57296         * modules/unictype/ctype-cntrl: Likewise.
57297         * modules/unictype/ctype-digit: Likewise.
57298         * modules/unictype/ctype-graph: Likewise.
57299         * modules/unictype/ctype-lower: Likewise.
57300         * modules/unictype/ctype-print: Likewise.
57301         * modules/unictype/ctype-punct: Likewise.
57302         * modules/unictype/ctype-space: Likewise.
57303         * modules/unictype/ctype-upper: Likewise.
57304         * modules/unictype/ctype-xdigit: Likewise.
57305         * modules/unictype/decimal-digit: Likewise.
57306         * modules/unictype/digit: Likewise.
57307         * modules/unictype/mirror: Likewise.
57308         * modules/unictype/numeric: Likewise.
57309         * modules/unictype/property-alphabetic: Likewise.
57310         * modules/unictype/property-ascii-hex-digit: Likewise.
57311         * modules/unictype/property-bidi-arabic-digit: Likewise.
57312         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
57313         * modules/unictype/property-bidi-block-separator: Likewise.
57314         * modules/unictype/property-bidi-boundary-neutral: Likewise.
57315         * modules/unictype/property-bidi-common-separator: Likewise.
57316         * modules/unictype/property-bidi-control: Likewise.
57317         * modules/unictype/property-bidi-embedding-or-override: Likewise.
57318         * modules/unictype/property-bidi-eur-num-separator: Likewise.
57319         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
57320         * modules/unictype/property-bidi-european-digit: Likewise.
57321         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
57322         * modules/unictype/property-bidi-left-to-right: Likewise.
57323         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
57324         * modules/unictype/property-bidi-other-neutral: Likewise.
57325         * modules/unictype/property-bidi-pdf: Likewise.
57326         * modules/unictype/property-bidi-segment-separator: Likewise.
57327         * modules/unictype/property-bidi-whitespace: Likewise.
57328         * modules/unictype/property-byname: Likewise.
57329         * modules/unictype/property-combining: Likewise.
57330         * modules/unictype/property-composite: Likewise.
57331         * modules/unictype/property-currency-symbol: Likewise.
57332         * modules/unictype/property-dash: Likewise.
57333         * modules/unictype/property-decimal-digit: Likewise.
57334         * modules/unictype/property-default-ignorable-code-point: Likewise.
57335         * modules/unictype/property-deprecated: Likewise.
57336         * modules/unictype/property-diacritic: Likewise.
57337         * modules/unictype/property-extender: Likewise.
57338         * modules/unictype/property-format-control: Likewise.
57339         * modules/unictype/property-grapheme-base: Likewise.
57340         * modules/unictype/property-grapheme-extend: Likewise.
57341         * modules/unictype/property-grapheme-link: Likewise.
57342         * modules/unictype/property-hex-digit: Likewise.
57343         * modules/unictype/property-hyphen: Likewise.
57344         * modules/unictype/property-id-continue: Likewise.
57345         * modules/unictype/property-id-start: Likewise.
57346         * modules/unictype/property-ideographic: Likewise.
57347         * modules/unictype/property-ids-binary-operator: Likewise.
57348         * modules/unictype/property-ids-trinary-operator: Likewise.
57349         * modules/unictype/property-ignorable-control: Likewise.
57350         * modules/unictype/property-iso-control: Likewise.
57351         * modules/unictype/property-join-control: Likewise.
57352         * modules/unictype/property-left-of-pair: Likewise.
57353         * modules/unictype/property-line-separator: Likewise.
57354         * modules/unictype/property-logical-order-exception: Likewise.
57355         * modules/unictype/property-lowercase: Likewise.
57356         * modules/unictype/property-math: Likewise.
57357         * modules/unictype/property-non-break: Likewise.
57358         * modules/unictype/property-not-a-character: Likewise.
57359         * modules/unictype/property-numeric: Likewise.
57360         * modules/unictype/property-other-alphabetic: Likewise.
57361         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
57362         * modules/unictype/property-other-grapheme-extend: Likewise.
57363         * modules/unictype/property-other-id-continue: Likewise.
57364         * modules/unictype/property-other-id-start: Likewise.
57365         * modules/unictype/property-other-lowercase: Likewise.
57366         * modules/unictype/property-other-math: Likewise.
57367         * modules/unictype/property-other-uppercase: Likewise.
57368         * modules/unictype/property-paired-punctuation: Likewise.
57369         * modules/unictype/property-paragraph-separator: Likewise.
57370         * modules/unictype/property-pattern-syntax: Likewise.
57371         * modules/unictype/property-pattern-white-space: Likewise.
57372         * modules/unictype/property-private-use: Likewise.
57373         * modules/unictype/property-punctuation: Likewise.
57374         * modules/unictype/property-quotation-mark: Likewise.
57375         * modules/unictype/property-radical: Likewise.
57376         * modules/unictype/property-sentence-terminal: Likewise.
57377         * modules/unictype/property-soft-dotted: Likewise.
57378         * modules/unictype/property-space: Likewise.
57379         * modules/unictype/property-terminal-punctuation: Likewise.
57380         * modules/unictype/property-test: Likewise.
57381         * modules/unictype/property-titlecase: Likewise.
57382         * modules/unictype/property-unassigned-code-value: Likewise.
57383         * modules/unictype/property-unified-ideograph: Likewise.
57384         * modules/unictype/property-uppercase: Likewise.
57385         * modules/unictype/property-variation-selector: Likewise.
57386         * modules/unictype/property-white-space: Likewise.
57387         * modules/unictype/property-xid-continue: Likewise.
57388         * modules/unictype/property-xid-start: Likewise.
57389         * modules/unictype/property-zero-width: Likewise.
57390         * modules/unictype/scripts: Likewise.
57391         * modules/unictype/syntax-c-ident: Likewise.
57392         * modules/unictype/syntax-c-whitespace: Likewise.
57393         * modules/unictype/syntax-java-ident: Likewise.
57394         * modules/unictype/syntax-java-whitespace: Likewise.
57395         * modules/unilbrk/u8-possible-linebreaks: Likewise.
57396         * modules/unilbrk/u8-width-linebreaks: Likewise.
57397         * modules/unilbrk/u16-possible-linebreaks: Likewise.
57398         * modules/unilbrk/u16-width-linebreaks: Likewise.
57399         * modules/unilbrk/u32-possible-linebreaks: Likewise.
57400         * modules/unilbrk/u32-width-linebreaks: Likewise.
57401         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
57402         * modules/unilbrk/ulc-width-linebreaks: Likewise.
57403         * modules/uniname/uniname: Likewise.
57404         * modules/uninorm/canonical-decomposition: Likewise.
57405         * modules/uninorm/composition: Likewise.
57406         * modules/uninorm/decomposing-form: Likewise.
57407         * modules/uninorm/decomposition: Likewise.
57408         * modules/uninorm/filter: Likewise.
57409         * modules/uninorm/nfc: Likewise.
57410         * modules/uninorm/nfd: Likewise.
57411         * modules/uninorm/nfkc: Likewise.
57412         * modules/uninorm/nfkd: Likewise.
57413         * modules/uninorm/u8-normalize: Likewise.
57414         * modules/uninorm/u8-normcmp: Likewise.
57415         * modules/uninorm/u8-normcoll: Likewise.
57416         * modules/uninorm/u8-normxfrm: Likewise.
57417         * modules/uninorm/u16-normalize: Likewise.
57418         * modules/uninorm/u16-normcmp: Likewise.
57419         * modules/uninorm/u16-normcoll: Likewise.
57420         * modules/uninorm/u16-normxfrm: Likewise.
57421         * modules/uninorm/u32-normalize: Likewise.
57422         * modules/uninorm/u32-normcmp: Likewise.
57423         * modules/uninorm/u32-normcoll: Likewise.
57424         * modules/uninorm/u32-normxfrm: Likewise.
57425         * modules/unistdio/u8-asnprintf: Likewise.
57426         * modules/unistdio/u8-asprintf: Likewise.
57427         * modules/unistdio/u8-snprintf: Likewise.
57428         * modules/unistdio/u8-sprintf: Likewise.
57429         * modules/unistdio/u8-u8-asnprintf: Likewise.
57430         * modules/unistdio/u8-u8-asprintf: Likewise.
57431         * modules/unistdio/u8-u8-snprintf: Likewise.
57432         * modules/unistdio/u8-u8-sprintf: Likewise.
57433         * modules/unistdio/u8-u8-vasnprintf: Likewise.
57434         * modules/unistdio/u8-u8-vasprintf: Likewise.
57435         * modules/unistdio/u8-u8-vsnprintf: Likewise.
57436         * modules/unistdio/u8-u8-vsprintf: Likewise.
57437         * modules/unistdio/u8-vasnprintf: Likewise.
57438         * modules/unistdio/u8-vasprintf: Likewise.
57439         * modules/unistdio/u8-vsnprintf: Likewise.
57440         * modules/unistdio/u8-vsprintf: Likewise.
57441         * modules/unistdio/u16-asnprintf: Likewise.
57442         * modules/unistdio/u16-asprintf: Likewise.
57443         * modules/unistdio/u16-snprintf: Likewise.
57444         * modules/unistdio/u16-sprintf: Likewise.
57445         * modules/unistdio/u16-u16-asnprintf: Likewise.
57446         * modules/unistdio/u16-u16-asprintf: Likewise.
57447         * modules/unistdio/u16-u16-snprintf: Likewise.
57448         * modules/unistdio/u16-u16-sprintf: Likewise.
57449         * modules/unistdio/u16-u16-vasnprintf: Likewise.
57450         * modules/unistdio/u16-u16-vasprintf: Likewise.
57451         * modules/unistdio/u16-u16-vsnprintf: Likewise.
57452         * modules/unistdio/u16-u16-vsprintf: Likewise.
57453         * modules/unistdio/u16-vasnprintf: Likewise.
57454         * modules/unistdio/u16-vasprintf: Likewise.
57455         * modules/unistdio/u16-vsnprintf: Likewise.
57456         * modules/unistdio/u16-vsprintf: Likewise.
57457         * modules/unistdio/u32-asnprintf: Likewise.
57458         * modules/unistdio/u32-asprintf: Likewise.
57459         * modules/unistdio/u32-snprintf: Likewise.
57460         * modules/unistdio/u32-sprintf: Likewise.
57461         * modules/unistdio/u32-u32-asnprintf: Likewise.
57462         * modules/unistdio/u32-u32-asprintf: Likewise.
57463         * modules/unistdio/u32-u32-snprintf: Likewise.
57464         * modules/unistdio/u32-u32-sprintf: Likewise.
57465         * modules/unistdio/u32-u32-vasnprintf: Likewise.
57466         * modules/unistdio/u32-u32-vasprintf: Likewise.
57467         * modules/unistdio/u32-u32-vsnprintf: Likewise.
57468         * modules/unistdio/u32-u32-vsprintf: Likewise.
57469         * modules/unistdio/u32-vasnprintf: Likewise.
57470         * modules/unistdio/u32-vasprintf: Likewise.
57471         * modules/unistdio/u32-vsnprintf: Likewise.
57472         * modules/unistdio/u32-vsprintf: Likewise.
57473         * modules/unistdio/ulc-asnprintf: Likewise.
57474         * modules/unistdio/ulc-asprintf: Likewise.
57475         * modules/unistdio/ulc-fprintf: Likewise.
57476         * modules/unistdio/ulc-snprintf: Likewise.
57477         * modules/unistdio/ulc-sprintf: Likewise.
57478         * modules/unistdio/ulc-vasnprintf: Likewise.
57479         * modules/unistdio/ulc-vasprintf: Likewise.
57480         * modules/unistdio/ulc-vfprintf: Likewise.
57481         * modules/unistdio/ulc-vsnprintf: Likewise.
57482         * modules/unistdio/ulc-vsprintf: Likewise.
57483         * modules/unistr/u8-check: Likewise.
57484         * modules/unistr/u8-chr: Likewise.
57485         * modules/unistr/u8-cmp: Likewise.
57486         * modules/unistr/u8-cmp2: Likewise.
57487         * modules/unistr/u8-cpy: Likewise.
57488         * modules/unistr/u8-cpy-alloc: Likewise.
57489         * modules/unistr/u8-endswith: Likewise.
57490         * modules/unistr/u8-mblen: Likewise.
57491         * modules/unistr/u8-mbsnlen: Likewise.
57492         * modules/unistr/u8-mbtouc: Likewise.
57493         * modules/unistr/u8-mbtouc-unsafe: Likewise.
57494         * modules/unistr/u8-mbtoucr: Likewise.
57495         * modules/unistr/u8-move: Likewise.
57496         * modules/unistr/u8-next: Likewise.
57497         * modules/unistr/u8-prev: Likewise.
57498         * modules/unistr/u8-set: Likewise.
57499         * modules/unistr/u8-startswith: Likewise.
57500         * modules/unistr/u8-stpcpy: Likewise.
57501         * modules/unistr/u8-stpncpy: Likewise.
57502         * modules/unistr/u8-strcat: Likewise.
57503         * modules/unistr/u8-strchr: Likewise.
57504         * modules/unistr/u8-strcmp: Likewise.
57505         * modules/unistr/u8-strcoll: Likewise.
57506         * modules/unistr/u8-strcpy: Likewise.
57507         * modules/unistr/u8-strcspn: Likewise.
57508         * modules/unistr/u8-strdup: Likewise.
57509         * modules/unistr/u8-strlen: Likewise.
57510         * modules/unistr/u8-strmblen: Likewise.
57511         * modules/unistr/u8-strmbtouc: Likewise.
57512         * modules/unistr/u8-strncat: Likewise.
57513         * modules/unistr/u8-strncmp: Likewise.
57514         * modules/unistr/u8-strncpy: Likewise.
57515         * modules/unistr/u8-strnlen: Likewise.
57516         * modules/unistr/u8-strpbrk: Likewise.
57517         * modules/unistr/u8-strrchr: Likewise.
57518         * modules/unistr/u8-strspn: Likewise.
57519         * modules/unistr/u8-strstr: Likewise.
57520         * modules/unistr/u8-strtok: Likewise.
57521         * modules/unistr/u8-to-u16: Likewise.
57522         * modules/unistr/u8-to-u32: Likewise.
57523         * modules/unistr/u8-uctomb: Likewise.
57524         * modules/unistr/u16-check: Likewise.
57525         * modules/unistr/u16-chr: Likewise.
57526         * modules/unistr/u16-cmp: Likewise.
57527         * modules/unistr/u16-cmp2: Likewise.
57528         * modules/unistr/u16-cpy: Likewise.
57529         * modules/unistr/u16-cpy-alloc: Likewise.
57530         * modules/unistr/u16-endswith: Likewise.
57531         * modules/unistr/u16-mblen: Likewise.
57532         * modules/unistr/u16-mbsnlen: Likewise.
57533         * modules/unistr/u16-mbtouc: Likewise.
57534         * modules/unistr/u16-mbtouc-unsafe: Likewise.
57535         * modules/unistr/u16-mbtoucr: Likewise.
57536         * modules/unistr/u16-move: Likewise.
57537         * modules/unistr/u16-next: Likewise.
57538         * modules/unistr/u16-prev: Likewise.
57539         * modules/unistr/u16-set: Likewise.
57540         * modules/unistr/u16-startswith: Likewise.
57541         * modules/unistr/u16-stpcpy: Likewise.
57542         * modules/unistr/u16-stpncpy: Likewise.
57543         * modules/unistr/u16-strcat: Likewise.
57544         * modules/unistr/u16-strchr: Likewise.
57545         * modules/unistr/u16-strcmp: Likewise.
57546         * modules/unistr/u16-strcoll: Likewise.
57547         * modules/unistr/u16-strcpy: Likewise.
57548         * modules/unistr/u16-strcspn: Likewise.
57549         * modules/unistr/u16-strdup: Likewise.
57550         * modules/unistr/u16-strlen: Likewise.
57551         * modules/unistr/u16-strmblen: Likewise.
57552         * modules/unistr/u16-strmbtouc: Likewise.
57553         * modules/unistr/u16-strncat: Likewise.
57554         * modules/unistr/u16-strncmp: Likewise.
57555         * modules/unistr/u16-strncpy: Likewise.
57556         * modules/unistr/u16-strnlen: Likewise.
57557         * modules/unistr/u16-strpbrk: Likewise.
57558         * modules/unistr/u16-strrchr: Likewise.
57559         * modules/unistr/u16-strspn: Likewise.
57560         * modules/unistr/u16-strstr: Likewise.
57561         * modules/unistr/u16-strtok: Likewise.
57562         * modules/unistr/u16-to-u32: Likewise.
57563         * modules/unistr/u16-to-u8: Likewise.
57564         * modules/unistr/u16-uctomb: Likewise.
57565         * modules/unistr/u32-check: Likewise.
57566         * modules/unistr/u32-chr: Likewise.
57567         * modules/unistr/u32-cmp: Likewise.
57568         * modules/unistr/u32-cmp2: Likewise.
57569         * modules/unistr/u32-cpy: Likewise.
57570         * modules/unistr/u32-cpy-alloc: Likewise.
57571         * modules/unistr/u32-endswith: Likewise.
57572         * modules/unistr/u32-mblen: Likewise.
57573         * modules/unistr/u32-mbsnlen: Likewise.
57574         * modules/unistr/u32-mbtouc: Likewise.
57575         * modules/unistr/u32-mbtouc-unsafe: Likewise.
57576         * modules/unistr/u32-mbtoucr: Likewise.
57577         * modules/unistr/u32-move: Likewise.
57578         * modules/unistr/u32-next: Likewise.
57579         * modules/unistr/u32-prev: Likewise.
57580         * modules/unistr/u32-set: Likewise.
57581         * modules/unistr/u32-startswith: Likewise.
57582         * modules/unistr/u32-stpcpy: Likewise.
57583         * modules/unistr/u32-stpncpy: Likewise.
57584         * modules/unistr/u32-strcat: Likewise.
57585         * modules/unistr/u32-strchr: Likewise.
57586         * modules/unistr/u32-strcmp: Likewise.
57587         * modules/unistr/u32-strcoll: Likewise.
57588         * modules/unistr/u32-strcpy: Likewise.
57589         * modules/unistr/u32-strcspn: Likewise.
57590         * modules/unistr/u32-strdup: Likewise.
57591         * modules/unistr/u32-strlen: Likewise.
57592         * modules/unistr/u32-strmblen: Likewise.
57593         * modules/unistr/u32-strmbtouc: Likewise.
57594         * modules/unistr/u32-strncat: Likewise.
57595         * modules/unistr/u32-strncmp: Likewise.
57596         * modules/unistr/u32-strncpy: Likewise.
57597         * modules/unistr/u32-strnlen: Likewise.
57598         * modules/unistr/u32-strpbrk: Likewise.
57599         * modules/unistr/u32-strrchr: Likewise.
57600         * modules/unistr/u32-strspn: Likewise.
57601         * modules/unistr/u32-strstr: Likewise.
57602         * modules/unistr/u32-strtok: Likewise.
57603         * modules/unistr/u32-to-u16: Likewise.
57604         * modules/unistr/u32-to-u8: Likewise.
57605         * modules/unistr/u32-uctomb: Likewise.
57606         * modules/uniwbrk/u8-wordbreaks: Likewise.
57607         * modules/uniwbrk/u16-wordbreaks: Likewise.
57608         * modules/uniwbrk/u32-wordbreaks: Likewise.
57609         * modules/uniwbrk/ulc-wordbreaks: Likewise.
57610         * modules/uniwbrk/wordbreak-property: Likewise.
57611         * modules/uniwidth/u8-strwidth: Likewise.
57612         * modules/uniwidth/u8-width: Likewise.
57613         * modules/uniwidth/u16-strwidth: Likewise.
57614         * modules/uniwidth/u16-width: Likewise.
57615         * modules/uniwidth/u32-strwidth: Likewise.
57616         * modules/uniwidth/u32-width: Likewise.
57617         * modules/uniwidth/width: Likewise.
57618         * modules/unicase/cased-tests (Makefile.am): Link all test programs
57619         with $(LIBUNISTRING).
57620         * modules/unicase/ignorable-tests: Likewise.
57621         * modules/unicase/locale-language-tests: Likewise.
57622         * modules/unicase/tolower-tests: Likewise.
57623         * modules/unicase/totitle-tests: Likewise.
57624         * modules/unicase/toupper-tests: Likewise.
57625         * modules/unicase/u8-casecmp-tests: Likewise.
57626         * modules/unicase/u8-casecoll-tests: Likewise.
57627         * modules/unicase/u8-casefold-tests: Likewise.
57628         * modules/unicase/u8-is-cased-tests: Likewise.
57629         * modules/unicase/u8-is-casefolded-tests: Likewise.
57630         * modules/unicase/u8-is-lowercase-tests: Likewise.
57631         * modules/unicase/u8-is-titlecase-tests: Likewise.
57632         * modules/unicase/u8-is-uppercase-tests: Likewise.
57633         * modules/unicase/u8-tolower-tests: Likewise.
57634         * modules/unicase/u8-totitle-tests: Likewise.
57635         * modules/unicase/u8-toupper-tests: Likewise.
57636         * modules/unicase/u16-casecmp-tests: Likewise.
57637         * modules/unicase/u16-casecoll-tests: Likewise.
57638         * modules/unicase/u16-casefold-tests: Likewise.
57639         * modules/unicase/u16-is-cased-tests: Likewise.
57640         * modules/unicase/u16-is-casefolded-tests: Likewise.
57641         * modules/unicase/u16-is-lowercase-tests: Likewise.
57642         * modules/unicase/u16-is-titlecase-tests: Likewise.
57643         * modules/unicase/u16-is-uppercase-tests: Likewise.
57644         * modules/unicase/u16-tolower-tests: Likewise.
57645         * modules/unicase/u16-totitle-tests: Likewise.
57646         * modules/unicase/u16-toupper-tests: Likewise.
57647         * modules/unicase/u32-casecmp-tests: Likewise.
57648         * modules/unicase/u32-casecoll-tests: Likewise.
57649         * modules/unicase/u32-casefold-tests: Likewise.
57650         * modules/unicase/u32-is-cased-tests: Likewise.
57651         * modules/unicase/u32-is-casefolded-tests: Likewise.
57652         * modules/unicase/u32-is-lowercase-tests: Likewise.
57653         * modules/unicase/u32-is-titlecase-tests: Likewise.
57654         * modules/unicase/u32-is-uppercase-tests: Likewise.
57655         * modules/unicase/u32-tolower-tests: Likewise.
57656         * modules/unicase/u32-totitle-tests: Likewise.
57657         * modules/unicase/u32-toupper-tests: Likewise.
57658         * modules/unicase/ulc-casecmp-tests: Likewise.
57659         * modules/unicase/ulc-casecoll-tests: Likewise.
57660         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
57661         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
57662         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
57663         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
57664         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
57665         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
57666         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
57667         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
57668         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
57669         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
57670         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
57671         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
57672         * modules/unictype/bidicategory-byname-tests: Likewise.
57673         * modules/unictype/bidicategory-name-tests: Likewise.
57674         * modules/unictype/bidicategory-of-tests: Likewise.
57675         * modules/unictype/bidicategory-test-tests: Likewise.
57676         * modules/unictype/block-list-tests: Likewise.
57677         * modules/unictype/block-of-tests: Likewise.
57678         * modules/unictype/block-test-tests: Likewise.
57679         * modules/unictype/category-C-tests: Likewise.
57680         * modules/unictype/category-Cc-tests: Likewise.
57681         * modules/unictype/category-Cf-tests: Likewise.
57682         * modules/unictype/category-Cn-tests: Likewise.
57683         * modules/unictype/category-Co-tests: Likewise.
57684         * modules/unictype/category-Cs-tests: Likewise.
57685         * modules/unictype/category-L-tests: Likewise.
57686         * modules/unictype/category-Ll-tests: Likewise.
57687         * modules/unictype/category-Lm-tests: Likewise.
57688         * modules/unictype/category-Lo-tests: Likewise.
57689         * modules/unictype/category-Lt-tests: Likewise.
57690         * modules/unictype/category-Lu-tests: Likewise.
57691         * modules/unictype/category-M-tests: Likewise.
57692         * modules/unictype/category-Mc-tests: Likewise.
57693         * modules/unictype/category-Me-tests: Likewise.
57694         * modules/unictype/category-Mn-tests: Likewise.
57695         * modules/unictype/category-N-tests: Likewise.
57696         * modules/unictype/category-Nd-tests: Likewise.
57697         * modules/unictype/category-Nl-tests: Likewise.
57698         * modules/unictype/category-No-tests: Likewise.
57699         * modules/unictype/category-P-tests: Likewise.
57700         * modules/unictype/category-Pc-tests: Likewise.
57701         * modules/unictype/category-Pd-tests: Likewise.
57702         * modules/unictype/category-Pe-tests: Likewise.
57703         * modules/unictype/category-Pf-tests: Likewise.
57704         * modules/unictype/category-Pi-tests: Likewise.
57705         * modules/unictype/category-Po-tests: Likewise.
57706         * modules/unictype/category-Ps-tests: Likewise.
57707         * modules/unictype/category-S-tests: Likewise.
57708         * modules/unictype/category-Sc-tests: Likewise.
57709         * modules/unictype/category-Sk-tests: Likewise.
57710         * modules/unictype/category-Sm-tests: Likewise.
57711         * modules/unictype/category-So-tests: Likewise.
57712         * modules/unictype/category-Z-tests: Likewise.
57713         * modules/unictype/category-Zl-tests: Likewise.
57714         * modules/unictype/category-Zp-tests: Likewise.
57715         * modules/unictype/category-Zs-tests: Likewise.
57716         * modules/unictype/category-and-not-tests: Likewise.
57717         * modules/unictype/category-and-tests: Likewise.
57718         * modules/unictype/category-byname-tests: Likewise.
57719         * modules/unictype/category-name-tests: Likewise.
57720         * modules/unictype/category-none-tests: Likewise.
57721         * modules/unictype/category-of-tests: Likewise.
57722         * modules/unictype/category-or-tests: Likewise.
57723         * modules/unictype/category-test-withtable-tests: Likewise.
57724         * modules/unictype/combining-class-tests: Likewise.
57725         * modules/unictype/ctype-alnum-tests: Likewise.
57726         * modules/unictype/ctype-alpha-tests: Likewise.
57727         * modules/unictype/ctype-blank-tests: Likewise.
57728         * modules/unictype/ctype-cntrl-tests: Likewise.
57729         * modules/unictype/ctype-digit-tests: Likewise.
57730         * modules/unictype/ctype-graph-tests: Likewise.
57731         * modules/unictype/ctype-lower-tests: Likewise.
57732         * modules/unictype/ctype-print-tests: Likewise.
57733         * modules/unictype/ctype-punct-tests: Likewise.
57734         * modules/unictype/ctype-space-tests: Likewise.
57735         * modules/unictype/ctype-upper-tests: Likewise.
57736         * modules/unictype/ctype-xdigit-tests: Likewise.
57737         * modules/unictype/decimal-digit-tests: Likewise.
57738         * modules/unictype/digit-tests: Likewise.
57739         * modules/unictype/mirror-tests: Likewise.
57740         * modules/unictype/numeric-tests: Likewise.
57741         * modules/unictype/property-alphabetic-tests: Likewise.
57742         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
57743         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
57744         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
57745         * modules/unictype/property-bidi-block-separator-tests: Likewise.
57746         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
57747         * modules/unictype/property-bidi-common-separator-tests: Likewise.
57748         * modules/unictype/property-bidi-control-tests: Likewise.
57749         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
57750         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
57751         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
57752         * modules/unictype/property-bidi-european-digit-tests: Likewise.
57753         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
57754         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
57755         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
57756         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
57757         * modules/unictype/property-bidi-pdf-tests: Likewise.
57758         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
57759         * modules/unictype/property-bidi-whitespace-tests: Likewise.
57760         * modules/unictype/property-byname-tests: Likewise.
57761         * modules/unictype/property-combining-tests: Likewise.
57762         * modules/unictype/property-composite-tests: Likewise.
57763         * modules/unictype/property-currency-symbol-tests: Likewise.
57764         * modules/unictype/property-dash-tests: Likewise.
57765         * modules/unictype/property-decimal-digit-tests: Likewise.
57766         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
57767         * modules/unictype/property-deprecated-tests: Likewise.
57768         * modules/unictype/property-diacritic-tests: Likewise.
57769         * modules/unictype/property-extender-tests: Likewise.
57770         * modules/unictype/property-format-control-tests: Likewise.
57771         * modules/unictype/property-grapheme-base-tests: Likewise.
57772         * modules/unictype/property-grapheme-extend-tests: Likewise.
57773         * modules/unictype/property-grapheme-link-tests: Likewise.
57774         * modules/unictype/property-hex-digit-tests: Likewise.
57775         * modules/unictype/property-hyphen-tests: Likewise.
57776         * modules/unictype/property-id-continue-tests: Likewise.
57777         * modules/unictype/property-id-start-tests: Likewise.
57778         * modules/unictype/property-ideographic-tests: Likewise.
57779         * modules/unictype/property-ids-binary-operator-tests: Likewise.
57780         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
57781         * modules/unictype/property-ignorable-control-tests: Likewise.
57782         * modules/unictype/property-iso-control-tests: Likewise.
57783         * modules/unictype/property-join-control-tests: Likewise.
57784         * modules/unictype/property-left-of-pair-tests: Likewise.
57785         * modules/unictype/property-line-separator-tests: Likewise.
57786         * modules/unictype/property-logical-order-exception-tests: Likewise.
57787         * modules/unictype/property-lowercase-tests: Likewise.
57788         * modules/unictype/property-math-tests: Likewise.
57789         * modules/unictype/property-non-break-tests: Likewise.
57790         * modules/unictype/property-not-a-character-tests: Likewise.
57791         * modules/unictype/property-numeric-tests: Likewise.
57792         * modules/unictype/property-other-alphabetic-tests: Likewise.
57793         * modules/unictype/property-other-default-ignorable-code-point-tests:
57794         Likewise.
57795         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
57796         * modules/unictype/property-other-id-continue-tests: Likewise.
57797         * modules/unictype/property-other-id-start-tests: Likewise.
57798         * modules/unictype/property-other-lowercase-tests: Likewise.
57799         * modules/unictype/property-other-math-tests: Likewise.
57800         * modules/unictype/property-other-uppercase-tests: Likewise.
57801         * modules/unictype/property-paired-punctuation-tests: Likewise.
57802         * modules/unictype/property-paragraph-separator-tests: Likewise.
57803         * modules/unictype/property-pattern-syntax-tests: Likewise.
57804         * modules/unictype/property-pattern-white-space-tests: Likewise.
57805         * modules/unictype/property-private-use-tests: Likewise.
57806         * modules/unictype/property-punctuation-tests: Likewise.
57807         * modules/unictype/property-quotation-mark-tests: Likewise.
57808         * modules/unictype/property-radical-tests: Likewise.
57809         * modules/unictype/property-sentence-terminal-tests: Likewise.
57810         * modules/unictype/property-soft-dotted-tests: Likewise.
57811         * modules/unictype/property-space-tests: Likewise.
57812         * modules/unictype/property-terminal-punctuation-tests: Likewise.
57813         * modules/unictype/property-test-tests: Likewise.
57814         * modules/unictype/property-titlecase-tests: Likewise.
57815         * modules/unictype/property-unassigned-code-value-tests: Likewise.
57816         * modules/unictype/property-unified-ideograph-tests: Likewise.
57817         * modules/unictype/property-uppercase-tests: Likewise.
57818         * modules/unictype/property-variation-selector-tests: Likewise.
57819         * modules/unictype/property-white-space-tests: Likewise.
57820         * modules/unictype/property-xid-continue-tests: Likewise.
57821         * modules/unictype/property-xid-start-tests: Likewise.
57822         * modules/unictype/property-zero-width-tests: Likewise.
57823         * modules/unictype/scripts-tests: Likewise.
57824         * modules/unictype/syntax-c-ident-tests: Likewise.
57825         * modules/unictype/syntax-c-whitespace-tests: Likewise.
57826         * modules/unictype/syntax-java-ident-tests: Likewise.
57827         * modules/unictype/syntax-java-whitespace-tests: Likewise.
57828         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
57829         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
57830         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
57831         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
57832         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
57833         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
57834         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
57835         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
57836         * modules/uniname/uniname-tests: Likewise.
57837         * modules/uninorm/canonical-decomposition-tests: Likewise.
57838         * modules/uninorm/compat-decomposition-tests: Likewise.
57839         * modules/uninorm/composition-tests: Likewise.
57840         * modules/uninorm/decomposing-form-tests: Likewise.
57841         * modules/uninorm/decomposition-tests: Likewise.
57842         * modules/uninorm/filter-tests: Likewise.
57843         * modules/uninorm/nfc-tests: Likewise.
57844         * modules/uninorm/nfd-tests: Likewise.
57845         * modules/uninorm/nfkc-tests: Likewise.
57846         * modules/uninorm/nfkd-tests: Likewise.
57847         * modules/uninorm/u8-normcmp-tests: Likewise.
57848         * modules/uninorm/u8-normcoll-tests: Likewise.
57849         * modules/uninorm/u16-normcmp-tests: Likewise.
57850         * modules/uninorm/u16-normcoll-tests: Likewise.
57851         * modules/uninorm/u32-normcmp-tests: Likewise.
57852         * modules/uninorm/u32-normcoll-tests: Likewise.
57853         * modules/unistdio/u8-asnprintf-tests: Likewise.
57854         * modules/unistdio/u8-vasnprintf-tests: Likewise.
57855         * modules/unistdio/u8-vasprintf-tests: Likewise.
57856         * modules/unistdio/u8-vsnprintf-tests: Likewise.
57857         * modules/unistdio/u8-vsprintf-tests: Likewise.
57858         * modules/unistdio/u16-asnprintf-tests: Likewise.
57859         * modules/unistdio/u16-vasnprintf-tests: Likewise.
57860         * modules/unistdio/u16-vasprintf-tests: Likewise.
57861         * modules/unistdio/u16-vsnprintf-tests: Likewise.
57862         * modules/unistdio/u16-vsprintf-tests: Likewise.
57863         * modules/unistdio/u32-asnprintf-tests: Likewise.
57864         * modules/unistdio/u32-vasnprintf-tests: Likewise.
57865         * modules/unistdio/u32-vasprintf-tests: Likewise.
57866         * modules/unistdio/u32-vsnprintf-tests: Likewise.
57867         * modules/unistdio/u32-vsprintf-tests: Likewise.
57868         * modules/unistdio/ulc-asnprintf-tests: Likewise.
57869         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
57870         * modules/unistdio/ulc-vasprintf-tests: Likewise.
57871         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
57872         * modules/unistdio/ulc-vsprintf-tests: Likewise.
57873         * modules/unistr/u8-check-tests: Likewise.
57874         * modules/unistr/u8-chr-tests: Likewise.
57875         * modules/unistr/u8-cmp-tests: Likewise.
57876         * modules/unistr/u8-cmp2-tests: Likewise.
57877         * modules/unistr/u8-cpy-alloc-tests: Likewise.
57878         * modules/unistr/u8-cpy-tests: Likewise.
57879         * modules/unistr/u8-mblen-tests: Likewise.
57880         * modules/unistr/u8-mbsnlen-tests: Likewise.
57881         * modules/unistr/u8-mbtouc-tests: Likewise.
57882         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
57883         * modules/unistr/u8-mbtoucr-tests: Likewise.
57884         * modules/unistr/u8-move-tests: Likewise.
57885         * modules/unistr/u8-next-tests: Likewise.
57886         * modules/unistr/u8-prev-tests: Likewise.
57887         * modules/unistr/u8-set-tests: Likewise.
57888         * modules/unistr/u8-stpcpy-tests: Likewise.
57889         * modules/unistr/u8-stpncpy-tests: Likewise.
57890         * modules/unistr/u8-strcat-tests: Likewise.
57891         * modules/unistr/u8-strcmp-tests: Likewise.
57892         * modules/unistr/u8-strcoll-tests: Likewise.
57893         * modules/unistr/u8-strcpy-tests: Likewise.
57894         * modules/unistr/u8-strdup-tests: Likewise.
57895         * modules/unistr/u8-strlen-tests: Likewise.
57896         * modules/unistr/u8-strmblen-tests: Likewise.
57897         * modules/unistr/u8-strmbtouc-tests: Likewise.
57898         * modules/unistr/u8-strncat-tests: Likewise.
57899         * modules/unistr/u8-strncmp-tests: Likewise.
57900         * modules/unistr/u8-strncpy-tests: Likewise.
57901         * modules/unistr/u8-strnlen-tests: Likewise.
57902         * modules/unistr/u8-to-u16-tests: Likewise.
57903         * modules/unistr/u8-to-u32-tests: Likewise.
57904         * modules/unistr/u8-uctomb-tests: Likewise.
57905         * modules/unistr/u16-check-tests: Likewise.
57906         * modules/unistr/u16-chr-tests: Likewise.
57907         * modules/unistr/u16-cmp-tests: Likewise.
57908         * modules/unistr/u16-cmp2-tests: Likewise.
57909         * modules/unistr/u16-cpy-alloc-tests: Likewise.
57910         * modules/unistr/u16-cpy-tests: Likewise.
57911         * modules/unistr/u16-mblen-tests: Likewise.
57912         * modules/unistr/u16-mbsnlen-tests: Likewise.
57913         * modules/unistr/u16-mbtouc-tests: Likewise.
57914         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
57915         * modules/unistr/u16-mbtoucr-tests: Likewise.
57916         * modules/unistr/u16-move-tests: Likewise.
57917         * modules/unistr/u16-next-tests: Likewise.
57918         * modules/unistr/u16-prev-tests: Likewise.
57919         * modules/unistr/u16-set-tests: Likewise.
57920         * modules/unistr/u16-stpcpy-tests: Likewise.
57921         * modules/unistr/u16-stpncpy-tests: Likewise.
57922         * modules/unistr/u16-strcat-tests: Likewise.
57923         * modules/unistr/u16-strcmp-tests: Likewise.
57924         * modules/unistr/u16-strcoll-tests: Likewise.
57925         * modules/unistr/u16-strcpy-tests: Likewise.
57926         * modules/unistr/u16-strdup-tests: Likewise.
57927         * modules/unistr/u16-strlen-tests: Likewise.
57928         * modules/unistr/u16-strmblen-tests: Likewise.
57929         * modules/unistr/u16-strmbtouc-tests: Likewise.
57930         * modules/unistr/u16-strncat-tests: Likewise.
57931         * modules/unistr/u16-strncmp-tests: Likewise.
57932         * modules/unistr/u16-strncpy-tests: Likewise.
57933         * modules/unistr/u16-strnlen-tests: Likewise.
57934         * modules/unistr/u16-to-u32-tests: Likewise.
57935         * modules/unistr/u16-to-u8-tests: Likewise.
57936         * modules/unistr/u16-uctomb-tests: Likewise.
57937         * modules/unistr/u32-check-tests: Likewise.
57938         * modules/unistr/u32-chr-tests: Likewise.
57939         * modules/unistr/u32-cmp-tests: Likewise.
57940         * modules/unistr/u32-cmp2-tests: Likewise.
57941         * modules/unistr/u32-cpy-alloc-tests: Likewise.
57942         * modules/unistr/u32-cpy-tests: Likewise.
57943         * modules/unistr/u32-mblen-tests: Likewise.
57944         * modules/unistr/u32-mbsnlen-tests: Likewise.
57945         * modules/unistr/u32-mbtouc-tests: Likewise.
57946         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
57947         * modules/unistr/u32-mbtoucr-tests: Likewise.
57948         * modules/unistr/u32-move-tests: Likewise.
57949         * modules/unistr/u32-next-tests: Likewise.
57950         * modules/unistr/u32-prev-tests: Likewise.
57951         * modules/unistr/u32-set-tests: Likewise.
57952         * modules/unistr/u32-stpcpy-tests: Likewise.
57953         * modules/unistr/u32-stpncpy-tests: Likewise.
57954         * modules/unistr/u32-strcat-tests: Likewise.
57955         * modules/unistr/u32-strcmp-tests: Likewise.
57956         * modules/unistr/u32-strcoll-tests: Likewise.
57957         * modules/unistr/u32-strcpy-tests: Likewise.
57958         * modules/unistr/u32-strdup-tests: Likewise.
57959         * modules/unistr/u32-strlen-tests: Likewise.
57960         * modules/unistr/u32-strmblen-tests: Likewise.
57961         * modules/unistr/u32-strmbtouc-tests: Likewise.
57962         * modules/unistr/u32-strncat-tests: Likewise.
57963         * modules/unistr/u32-strncmp-tests: Likewise.
57964         * modules/unistr/u32-strncpy-tests: Likewise.
57965         * modules/unistr/u32-strnlen-tests: Likewise.
57966         * modules/unistr/u32-to-u16-tests: Likewise.
57967         * modules/unistr/u32-to-u8-tests: Likewise.
57968         * modules/unistr/u32-uctomb-tests: Likewise.
57969         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
57970         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
57971         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
57972         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
57973         * modules/uniwidth/u8-strwidth-tests: Likewise.
57974         * modules/uniwidth/u8-width-tests: Likewise.
57975         * modules/uniwidth/u16-strwidth-tests: Likewise.
57976         * modules/uniwidth/u16-width-tests: Likewise.
57977         * modules/uniwidth/u32-strwidth-tests: Likewise.
57978         * modules/uniwidth/u32-width-tests: Likewise.
57979         * modules/uniwidth/width-tests: Likewise.
57981 2010-05-18  Richard Jones  <rjones@redhat.com>
57983         doc: users.txt: list hivex
57984         * users.txt: Add hivex.
57986 2010-05-18  Richard Jones  <rjones@redhat.com>
57988         doc: users.txt: list febootstrap
57989         * users.txt: Add febootstrap.
57991 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
57993         bootstrap: fix an error when gnulib is not used as a git submodule
57994         * build-aux/bootstrap (gnulib_path): If its length is zero then
57995         assign "gnulib" to it.
57996         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
57998 2010-05-16  Bruno Haible  <bruno@clisp.org>
58000         Avoid autoconf warnings about AM_ICONV.
58001         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
58002         2.64.
58004 2010-05-16  Bruno Haible  <bruno@clisp.org>
58006         absolute-header: Make the macro usable in more situations.
58007         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
58008         from gl_ABSOLUTE_HEADER.
58009         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
58011 2010-05-16  James Youngman  <jay@gnu.org>
58013         doc: update users.txt
58014         * users.txt: Add CSSC.
58016 2010-05-16  Jim Meyering  <meyering@redhat.com>
58018         init.sh: fix an error in the previous change; add more comments
58019         * tests/init.sh: Compare exit code in loop against 9, not 2.
58020         Patch by Bruno Haible.
58021         Make the two tests more similar by adding an empty "then" clause.
58022         Add comments.
58024         init.sh: avoid unnecessary shell re-exec
58025         * tests/init.sh: Improve the re-exec-required check to first test the
58026         current shell.  If it passes the test, do not search for a shell that
58027         does pass, and do not re-exec.  This test is particularly contorted to
58028         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
58029         of $(...) evokes a syntax error and causes immediate shell exit with
58030         status 2.  Bruno Haible reported that the re-exec made it impossible
58031         to single-step through any init.sh-using script.
58033 2010-05-16  Bruno Haible  <bruno@clisp.org>
58035         Fix collision between gnulib's and libintl's printf replacements.
58036         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
58037         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
58038         (printf): When using GNU C, map the __printf__ function to rpl_printf
58039         via __asm__. When not using GNU C, define rpl_printf instead of
58040         __printf__.
58041         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
58042         commit.
58043         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
58044         commit.
58045         * m4/asm-underscore.m4: New file.
58046         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
58047         * modules/stdio (Files): Add m4/asm-underscore.m4.
58048         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
58049         Reported by Ben Pfaff.
58051 2010-05-16  Bruno Haible  <bruno@clisp.org>
58053         verify: Avoid skipping the test on openSUSE 11.0.
58054         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
58056 2010-05-13  Bruno Haible  <bruno@clisp.org>
58058         Avoid useless warnings from G++.
58059         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
58060         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
58061         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
58063 2010-05-11  Jim Meyering  <meyering@redhat.com>
58065         maint.mk: tweak preceding change
58066         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
58067         regexps tighter by anchoring at EOL, and make the new group "shy"
58068         for slightly decreased overhead.
58070 2010-05-11  Eric Blake  <eblake@redhat.com>
58072         maint.mk: gnulib doesn't guarantee NSIG
58073         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
58075 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
58077         test-pwrite.c: Remove unused variable declaration.
58078         * tests/test-pwrite.c (main): Remove read_buf declaration.
58080         Remove useless test-pwrite.sh file.
58081         * tests/test-pwrite.sh: Delete file.
58082         * modules/pwrite-tests: Remove references.
58083         Reported by Bruno Haible.
58085 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
58087         init.sh: fix a typo
58088         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
58090 2010-05-10  Jim Meyering  <meyering@redhat.com>
58092         maint.mk: avoid using a temporary file in the always-defined-macros check
58093         * top/maint.mk (.re-defmac): Remove rule.
58094         (gl_trap_): Remove definition.
58095         (sc_prohibit_always-defined_macros): Rewrite not to create and
58096         depend on a temporary file.  Instead, depend on GNU grep's ability
58097         to read a list of regular expressions from stdin when given "-f -".
58099 2010-05-09  Bruno Haible  <bruno@clisp.org>
58101         Update to GNU gettext 0.18, part 1.
58102         * m4/gettext.m4: Update to GNU gettext 0.18.
58103         * m4/intl.m4: Likewise.
58104         * m4/po.m4: Likewise.
58105         * modules/gettext (Files): Add m4/fcntl-o.m4.
58106         (configure.ac): Require gettext infrastructure from version 0.18.
58108 2010-05-09  Jim Meyering  <meyering@redhat.com>
58110         init.sh: enable MALLOC_PERTURB_
58111         * tests/init.sh: Enable glibc's malloc-perturbing option.
58113         maint.mk: improve sc_cross_check_PATH_usage_in_tests
58114         With my recent change in init.sh from the two-line form:
58115             -#   : ${srcdir=.}
58116             -#   . "$srcdir/init.sh"; path_prepend_ .
58117             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
58118         I noticed that using the one-line form would cause this test
58119         to fail with a false-positive, or to stop working altogether,
58120         depending on whether help-version changed or all the tests did.
58121         * top/maint.mk (_hv_regex): Remove this definition.
58122         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
58123         (_hv_regex_strong): Use a stronger regex to check for conformance.
58124         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
58125         Give a separate diagnostic for lack of conforming use.
58127         maint.mk: prohibit definition of symbols defined by gnulib
58128         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
58129         definition of symbols defined by gnulib.
58131 2010-05-09  Bruno Haible  <bruno@clisp.org>
58133         acl: Avoid test failure on Cygwin-hosted mingw.
58134         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
58136 2010-05-09  Bruno Haible  <bruno@clisp.org>
58138         error: Use system's fcntl function.
58139         * lib/error.c (fcntl): Undefine.
58141 2010-05-09  Jim Meyering  <meyering@redhat.com>
58143         verify: adjust formatting to be more consistent
58144         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
58145         argument-list '('s, and after one comma.
58147 2010-05-09  Bruno Haible  <bruno@clisp.org>
58149         error: More reliable output on mingw.
58150         * lib/error.c: Include <windows.h>.
58151         (is_open): New function.
58152         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
58153         defined.
58155 2010-05-09  Bruno Haible  <bruno@clisp.org>
58157         vasnprintf: Fix syntax errors in libintl build on mingw.
58158         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
58159         pad_ourselves and prec_ourselves after use.
58161 2010-05-08  Bruno Haible  <bruno@clisp.org>
58163         * lib/config.charset: Update comments for Cygwin 1.7.
58164         * lib/localcharset.c: Likewise.
58166 2010-05-07  Jim Meyering  <meyering@redhat.com>
58168         init.sh: improve comments
58169         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
58170         . "${srcdir=.}/init.sh"; path_prepend_ .
58171         Add a note about path_prepend_ and the alternative of using
58172         TESTS_ENVIRONMENT.
58174 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
58176         exclude: Unescape hashed patterns in wildcard mode.
58177         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
58178         to the hash list.
58179         * tests/test-exclude8.sh: New test case.
58180         * modules/exclude-tests: Add new test.
58182 2010-05-05  Eric Blake  <eblake@redhat.com>
58184         verify: automate tests
58185         * modules/verify-tests: New module.
58186         * tests/test-verify.sh: New file.
58187         * tests/test-verify.c: Guard each negative test with a unique id.
58188         Also avoid warning about unused left hand of comma expressions.
58190 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
58192         Further improvements to verify.h, suggested by Eric Blake.
58193         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
58194         the GL_* versions, to avoid collision with OpenGL.
58195         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
58196         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
58197         than testing merely whether it's defined.
58199         Modify verify.h to pacify gcc -Wredundant_decls.
58200         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
58201         These use the prefix "GL_" since they're likely to be useful elsewhere.
58202         We may need to break them out into a different .h file.
58203         (__COUNTER__): Define to 0 if the compiler doesn't support it.
58204         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
58205         of verify_function__.
58207 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
58209         Tests for module pwrite.
58210         * modules/pwrite-tests: New file.
58211         * tests/test-pwrite.sh: New file.
58212         * tests/test-pwrite.c: New file.
58214         New module pwrite.
58215         * lib/unistd.in.h (pwrite): New declaration.
58216         * lib/pwrite.c: New file, from glibc with modifications.
58217         * m4/pwrite.m4: New file.
58218         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
58219         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
58220         REPLACE_PWRITE.
58221         * modules/pwrite: New file.
58222         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
58223         REPLACE_PWRITE.
58224         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
58225         * doc/posix-functions/pwrite.texi: Mention the new module.
58227 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
58229         pread: Update documentation.
58230         * doc/posix-functions/pread.texi: Mention the 'pread' module.
58232 2010-05-04  Eric Blake  <eblake@redhat.com>
58234         docs: update cygwin progress
58235         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
58236         this bug.
58237         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
58238         Added in cygwin 1.7.2.
58239         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
58240         Likewise.
58241         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
58242         Likewise.
58243         * doc/glibc-functions/dup3.texi (dup3): Likewise.
58244         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
58245         * doc/glibc-functions/accept4.texi (accept4): Likewise.
58246         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
58247         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
58248         Mention nproc module.
58249         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
58250         bug in cygwin 1.7.5 addition.
58251         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
58252         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
58253         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
58254         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
58255         1.7.5.
58256         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
58257         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
58258         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
58259         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
58260         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
58261         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
58262         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
58263         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
58264         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
58265         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
58266         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
58267         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
58268         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
58269         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
58270         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
58271         Likewise.
58272         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
58273         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
58274         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
58275         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
58276         Likewise.
58277         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
58278         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
58279         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
58280         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
58281         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
58282         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
58283         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
58284         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
58285         Likewise.
58286         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
58287         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
58288         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
58289         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
58290         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
58291         Likewise.
58292         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
58293         Likewise.
58294         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
58295         Likewise.
58296         * doc/glibc-functions/xdrrec_endofrecord.texi
58297         (xdrrec_endofrecord): Likewise.
58298         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
58299         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
58300         Likewise.
58301         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
58302         Likewise.
58304 2010-05-04  Jim Meyering  <meyering@redhat.com>
58306         gendocs.sh: make its "-s FILE" option more useful
58307         * build-aux/gendocs.sh: When honoring the -s FILE option, update
58308         $PACKAGE to reflect the probably-different basename of "FILE".
58310 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
58312         bootstrap: don't ignore download_po_files failure
58313         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
58314         failure.
58316 2010-05-03  Jim Meyering  <meyering@redhat.com>
58318         maint.mk: allow to pass options to gendocs.sh
58319         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
58320         (gendocs_options_): New overridable variable.
58322         gnu-web-doc-update: don't ignore configure or build failure
58323         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
58325         announce-gen: backslash-escape '@'s in --help output
58326         * build-aux/announce-gen: Fix syntax errors.
58328         maint.mk, announce-gen: allow project-specific announcement mail headers
58329         * top/maint.mk (translation_project_): Define default.
58330         (announcement_Cc_, announcement_mail_headers_): Likewise.
58331         (announcement): Invoke announce-gen with new --mail-headers option.
58332         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
58334         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
58335         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
58336         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
58337         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
58338         line in the "err2" output file when running "make check" in verbose
58339         mode (i.e., with set -x enabled).
58341 2010-05-03  Bruno Haible  <bruno@clisp.org>
58343         wctob: Fix for weird platforms.
58344         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
58345         argument value.
58347 2010-05-03  Jim Meyering  <meyering@redhat.com>
58349         maint.mk: prohibit unwarranted use of <strings.h>
58350         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
58351         strings.h in a file that does not also use strcasecmp, strncasecmp,
58352         ffs or ffsll.
58354         maint.mk: remove obsolete comments
58355         * top/maint.mk: Remove stale, commented-out rules.
58357 2010-05-02  Bruno Haible  <bruno@clisp.org>
58359         wcwidth: Declare also when it's aliased.
58360         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
58361         macro.
58363 2010-05-02  Bruno Haible  <bruno@clisp.org>
58365         Fix regression from 2010-04-25.
58366         * gnulib-tool (func_modules_transitive_closure): Check the status of
58367         all modules, not only of the tests that are of the form foo-tests where
58368         foo is a module.
58370 2010-05-02  Bruno Haible  <bruno@clisp.org>
58372         wctob: Work around nasty Cygwin 1.7.2 bug.
58373         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
58374         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
58376 2010-05-01  Bruno Haible  <bruno@clisp.org>
58378         fpurge: Sharper test.
58379         * tests/test-fpurge.c (main): Add one more ftell check.
58380         * modules/fpurge-tests (Depends-on): Add ftell.
58381         Suggested by Eric Blake.
58383 2010-05-01  Bruno Haible  <bruno@clisp.org>
58385         ftello: Another test.
58386         * tests/test-ftello3.c: New file.
58387         * modules/ftello-tests (Files): Add it.
58388         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
58389         MOSTLYCLEANFILES.
58391         ftell: Another test.
58392         * tests/test-ftell3.c: New file.
58393         * modules/ftell-tests (Files): Add it.
58394         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
58395         MOSTLYCLEANFILES.
58397 2010-05-01  Bruno Haible  <bruno@clisp.org>
58399         ftell, ftello: Work around Solaris bug.
58400         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
58401         * lib/ftello.c: Include stdio-impl.h.
58402         (ftello): On Solaris, when _IOWRT is set, compute the result without
58403         looking at _IOREAD.
58404         * modules/ftello (Files): Add lib/stdio-impl.h.
58405         * doc/posix-functions/ftell.texi: Mention Solaris bug.
58406         * doc/posix-functions/ftello.texi: Likewise.
58407         Reported by Eric Blake.
58409 2010-05-01  Bruno Haible  <bruno@clisp.org>
58411         freading: Adapt to special meaning of _IOREAD flag on Solaris.
58412         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
58413         the _IOWRT flag is also set.
58415 2010-05-01  Bruno Haible  <bruno@clisp.org>
58417         Fix doc about a HP-UX stdio bug.
58418         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
58419         * doc/posix-functions/ftello.texi: Likewise.
58421 2010-05-01  Bruno Haible  <bruno@clisp.org>
58423         lseek test: Fix failure on Solaris.
58424         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
58425         output.
58427 2010-04-30  Jim Meyering  <meyering@redhat.com>
58429         bootstrap: don't ignore failure to generate po*/Makevars
58430         * build-aux/bootstrap (with_gettext): Don't ignore failure
58431         to create po/Makevars or runtime-po/Makevars.
58433 2010-04-29  Eric Blake  <eblake@redhat.com>
58435         headers: relax license to LGPLv2+
58436         * modules/fcntl-h (License): Relax license.
58437         * modules/getopt-posix (License): Likewise.
58438         * modules/locale (License): Likewise.
58439         * modules/math (License): Likewise.
58440         * modules/pty (License): Likewise.
58441         * modules/sched (License): Likewise.
58442         * modules/search (License): Likewise.
58443         * modules/spawn (License): Likewise.
58444         * modules/stdarg (License): Likewise.
58445         * modules/sysexits (License): Likewise.
58447 2010-04-29  Jim Meyering  <meyering@redhat.com>
58449         inttypes: relax license to LGPLv2+
58450         * modules/inttypes (License): Relax license.
58452 2010-04-29  Simon Josefsson  <simon@josefsson.org>
58454         * top/maint.mk (indent): Run twice to produce idempotent results.
58456 2010-04-28  Bruno Haible  <bruno@clisp.org>
58458         getdate: Generate getdate.c in the source directory.
58459         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
58460         MOSTLYCLEANFILES.
58461         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
58463 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
58465         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
58466         is not declared as a const *; avoid warnings in that case.
58468 2010-04-28  Eric Blake  <eblake@redhat.com>
58470         canonicalize-lgpl: avoid compiler warning
58471         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
58472         declaration' / 'extraneous semicolon' warning with some compilers.
58473         Reported by Andreas Gruenbacher.
58475 2010-04-28  Jim Meyering  <meyering@redhat.com>
58477         init.sh: ensure a more reliable exit status when exiting via trap
58478         * tests/init.sh (setup_): Don't rely on $? in signal handler.
58479         Inspired by patches from Dmitry V. Levin.
58480         Also trap on signal 3 (SIGQUIT).
58482 2010-04-27  Bruno Haible  <bruno@clisp.org>
58484         Update doc about utimes().
58485         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
58486         'utimens' module.
58487         Reported by Andreas Gruenbacher <agruen@suse.de>.
58489 2010-04-27  Eric Blake  <eblake@redhat.com>
58491         full-read, full-write: relax license
58492         * modules/full-read (License): Drop to LGPLv2+.
58493         * modules/full-write (License): Likewise.
58494         * modules/safe-read (License): Likewise.
58495         * modules/safe-write (License): Likewise.
58497         pthread: mention library for linking
58498         * modules/pthread (Link): Mention $(LIB_PTHREAD).
58500 2010-04-27  Jim Meyering  <meyering@redhat.com>
58502         maint.mk: fix a bug introduced in last change
58503         * top/maint.mk (gl_assured_headers_): Now that all names are on
58504         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
58505         is not anchored to end of word, it should be adequate.
58507         maint.mk: avoid side-effect in latest syntax-check
58508         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
58509         to run commands via $(shell...), and hence to incur cost only when
58510         the new rule is actually run.
58512         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
58513         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
58514         and use that to create a regexp used to detect all #if HAVE_..._H uses.
58515         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
58516         (gl_assured_headers_, az_, AZ_): Define.
58517         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
58519 2010-04-26  Jim Meyering  <jim@meyering.net>
58520             Bruno Haible  <bruno@clisp.org>
58522         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
58523         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
58524         Prompted by an exchange with Gilles Espinasse.
58526 2010-04-26  Jim Meyering  <meyering@redhat.com>
58528         git-version-gen: aesthetic tweak
58529         * build-aux/git-version-gen: Use "$nl" rather than a literal,
58530         so that the command remains on a single line.
58532 2010-04-26  Eric Blake  <eblake@redhat.com>
58534         git-version-gen: allow use on EBCDIC hosts
58535         * build-aux/git-version-gen (dirty): Use literal rather than tying
58536         ourselves to ascii.
58537         Reported by Steve Goetze.
58539 2010-04-25  Bruno Haible  <bruno@clisp.org>
58541         netdb: Add support for GNULIB_POSIXCHECK.
58542         * lib/netdb.in.h: Include warn-on-use.h.
58543         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
58544         functions are used when GNULIB_POSIXCHECK is defined and the
58545         getaddrinfo module is not in use.
58546         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
58547         freeaddrinfo, gai_strerror, getnameinfo are declared.
58548         * modules/netdb (Depends-on): Add warn-on-use.
58549         (Makefile.am): Include warn-on-use.h in netdb.h.
58551 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
58553         build: avoid "make check" failure without .git/ directory
58554         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
58555         there is no .git/ directory.
58557 2010-04-25  Bruno Haible  <bruno@clisp.org>
58559         ptsname: Fix misuse of ttyname_r.
58560         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
58561         of errno.
58563 2010-04-25  Bruno Haible  <bruno@clisp.org>
58565         ttyname_r: Make it work on Solaris 10.
58566         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
58567         if the system function has the POSIX declaration. Test whether the
58568         function fails if the buffer is less than 128 bytes large.
58569         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
58570         system's ttyname_r function. Provide a reasonably large buffer.
58571         * modules/ttyname_r (Depends-on): Add extensions.
58572         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
58574 2010-04-25  Bruno Haible  <bruno@clisp.org>
58576         Use the 'extensions' module for some more functions on Solaris.
58577         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
58578         module.
58579         * doc/posix-functions/ctime_r.texi: Likewise.
58580         * doc/posix-functions/getgrgid_r.texi: Likewise.
58581         * doc/posix-functions/getgrnam_r.texi: Likewise.
58582         * doc/posix-functions/getpwnam_r.texi: Likewise.
58583         * doc/posix-functions/getpwuid_r.texi: Likewise.
58584         * doc/posix-functions/readdir_r.texi: Likewise.
58585         * doc/posix-functions/sigwait.texi: Likewise.
58586         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
58587         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
58589 2010-04-25  Bruno Haible  <bruno@clisp.org>
58591         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
58592         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
58593         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
58594         * lib/ttyname_r.c: Include <limits.h>.
58595         (ttyname_r): Define using the system's ttyname_r function, if it exists
58596         and not on Solaris.
58597         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
58598         set.
58599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
58600         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
58601         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
58602         Reported by Simon Josefsson.
58604 2010-04-25  Bruno Haible  <bruno@clisp.org>
58606         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
58607         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
58608         * doc/posix-functions/ctime_r.texi: Likewise.
58609         * doc/posix-functions/getgrgid_r.texi: Likewise.
58610         * doc/posix-functions/getgrnam_r.texi: Likewise.
58611         * doc/posix-functions/getlogin_r.texi: Likewise.
58612         * doc/posix-functions/getpwnam_r.texi: Likewise.
58613         * doc/posix-functions/getpwuid_r.texi: Likewise.
58614         * doc/posix-functions/readdir_r.texi: Likewise.
58615         * doc/posix-functions/sigwait.texi: Likewise.
58616         * doc/posix-functions/ttyname_r.texi: Likewise.
58617         Reported by Simon Josefsson.
58619 2010-04-25  Bruno Haible  <bruno@clisp.org>
58621         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
58622         * gnulib-tool (func_usage): Document that --with-*-tests options apply
58623         also to --create-testdir.
58624         (func_acceptable): Don't consider the status of *-tests modules here.
58625         (func_modules_transitive_closure): Consider it here, before including a
58626         test module.
58627         (func_import, func_create_testdir): Set inc_all_direct_tests,
58628         inc_all_indirect_tests.
58629         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
58630         --create-testdir and --create-megatestdir.
58632 2010-04-25  Bruno Haible  <bruno@clisp.org>
58634         gnulib-tool: Add --without-*-tests options.
58635         * gnulib-tool (func_usage): Document the --without-*-tests options.
58636         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
58637         excl_unportable_tests): New variables.
58638         Fail if they are specified with --import or --update.
58639         (func_acceptable): Respect the excl_*_tests variables.
58640         (func_import): Set the excl_*_tests variables to empty.
58642 2010-04-25  Simon Josefsson  <simon@josefsson.org>
58643             Bruno Haible  <bruno@clisp.org>
58645         Work around a MacOS X 10.4 bug with openpty.
58646         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
58647         * tests/test-openpty.c (main): Close the master side explicitly.
58649 2010-04-25  Bruno Haible  <bruno@clisp.org>
58651         strnlen: Fix a C++ test error on MacOS X and Solaris.
58652         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
58653         the function is not declared.
58654         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
58655         Simon Josefsson.
58657 2010-04-24  Bruno Haible  <bruno@clisp.org>
58659         Avoid a gcc warning.
58660         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
58661         of correct type for %08lx directive.
58662         Reported by Eric Blake.
58664 2010-04-24  Bruno Haible  <bruno@clisp.org>
58666         vasnprintf: Correct errno value in case of out-of-memory.
58667         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
58668         or sprintf. Use the errno value from SNPRINTF or sprintf.
58669         Reported by Ian Beckwith <ianb@erislabs.net>.
58671 2010-04-24  Bruno Haible  <bruno@clisp.org>
58673         ansi-c++-opt: Find correct compiler when cross-compiling.
58674         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
58675         AC_CHECK_PROGS.
58676         Reported by Simon Josefsson.
58678 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
58680         vc-list-files: Add support for subversion
58681         * build-aux/vc-list-files: Use "svn list" to generate the list of
58682         files controlled by subversion.
58684 2010-04-23  Jim Meyering  <meyering@redhat.com>
58686         vc-list-files tests: convert to use init.sh
58687         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
58688         path_prepend_.
58689         Use Exit, not exit.
58690         Use skip_ rather than open coding it.
58691         Remove trap set-up and compare definitions.
58692         * tests/test-vc-list-files-git.sh: Likewise.
58693         * modules/vc-list-files-tests (Files): Add tests/init.sh.
58695 2010-04-22  Simon Josefsson  <simon@josefsson.org>
58697         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
58698         backup files.
58700 2010-04-21  Simon Josefsson  <simon@josefsson.org>
58702         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
58704 2010-04-20  Eric Blake  <eblake@redhat.com>
58706         tests: be robust to ignored SIGPIPE
58707         * tests/test-select-in.sh: Consume all output.
58708         * tests/test-lseek.sh: Check correct exit status, while avoiding
58709         EPIPE.
58711 2010-04-20  Simon Josefsson  <simon@josefsson.org>
58712             Bruno Haible  <bruno@clisp.org>
58714         visibility: Don't use -fvisibility if it leads to a warning.
58715         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
58716         yes, don't pretend that visibility works if it leads to a warning.
58717         Reported by Mike Gran <spk121@yahoo.com>.
58719 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
58721         * build-aux/bootstrap: Use "git -h" for testing for supported options
58722         instead of "git --help".  The short-form option only shows a summary,
58723         and doesn't layout the full man page.  Grep for the full option name
58724         in the summary, too.
58726 2010-04-19  Bruno Haible  <bruno@clisp.org>
58728         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
58729         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
58730         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
58731         mention of RELOCATABLE_STRIP.
58732         Reported by Sylvain Beucler <beuc@beuc.net>.
58734 2010-04-19  Bruno Haible  <bruno@clisp.org>
58736         * lib/diffseq.h: Fix typo in comment.
58737         Reported by Eric Blake.
58739 2010-04-19  Bruno Haible  <bruno@clisp.org>
58741         ioctl: Move autoconf macro to a .m4 file.
58742         * m4/ioctl.m4: New file, extracted from modules/ioctl.
58743         * modules/ioctl (Files): Add it.
58744         (configure.ac): Simply invoke gl_FUNC_IOCTL.
58745         Reported by Ian Beckwith <ianb@erislabs.net>.
58747 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
58748             Bruno Haible  <bruno@clisp.org>
58750         diffseq: Accommodate use-case with abstract arrays.
58751         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
58752         is not defined.
58753         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
58754         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
58756 2010-04-18  Bruno Haible  <bruno@clisp.org>
58758         * doc/posix-headers/stdbool.texi: More precise wording.
58760 2010-04-17  Jim Meyering  <meyering@redhat.com>
58762         maint.mk: use gnu-style indentation in an embedded perl script
58763         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
58764         Rename variable: s/two/last_two_bytes/
58766 2010-04-16  Eric Blake  <eblake@redhat.com>
58768         test-stdbool: skip test that fails with Solaris CC
58769         * tests/test-stdbool.c (f): Skip test that causes compilation
58770         error under buggy C++ compiler.
58771         * lib/stdbool.in.h: Document the limitation.
58772         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
58774         setenv: allow compilation with C++
58775         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
58776         register keyword.
58778         stdint: allow test to pass with C++
58779         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
58781         getopt: allow compilation with C++
58782         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
58783         struct.
58784         * lib/getopt.c (_getopt_internal_r): Use correct type.
58785         Reported by Dagobert Michelson, via Joel E. Denny.
58787 2010-04-16  Bruno Haible  <bruno@clisp.org>
58789         Override netdb.h always.
58790         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
58791         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
58792         Reported by Ludovic Courtès <ludo@gnu.org>.
58794 2010-04-15  Bruno Haible  <bruno@clisp.org>
58796         openpty: Fix mistake from 2010-03-21.
58797         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
58798         Reported by Simon Josefsson.
58800 2010-04-15  Eric Blake  <eblake@redhat.com>
58802         test-forkpty: fix expected signature
58803         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
58804         Reported by Simon Josefsson.
58806 2010-04-15  Jim Meyering  <meyering@redhat.com>
58808         maint.mk: texinfo_suffix_re_: correct the default regexp
58809         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
58811         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
58812         make it configurable via texinfo_suffix_re_.
58814 2010-04-14  Eric Blake  <eblake@redhat.com>
58816         strtok_r: relax license to LGPLv2+
58817         * modules/strtok_r (License): Relax license.
58818         Reported by Matthias Bolte.
58820 2010-04-14  Simon Josefsson  <simon@josefsson.org>
58822         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
58823         version 1.4.4 by default instead of requiring the libgcrypt
58824         version used during build.  This makes it possible to use the
58825         application with older but still binary compatible libgcrypt
58826         versions.
58828 2010-04-13  Eric Blake  <eblake@redhat.com>
58830         getopt-gnu: match recent glibc fixes and posix ruling
58831         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
58832         '+' handling, when requesting extensions.
58833         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
58834         'W;' handling.
58835         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
58836         * doc/posix-functions/getopt.texi (getopt): Document this.
58837         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
58838         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58839         Likewise.
58841         getopt: merge bug fixes from glibc
58842         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
58843         diagnostics.  Honor '+:' correctly.  Reject ';'.
58845         getopt-posix: detect MacOS bug
58846         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
58847         optind when missing a required argument.
58848         * doc/posix-functions/getopt.texi (getopt): Document the bug.
58849         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
58850         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58851         Likewise.
58853         getopt-posix: avoid spurious failure on Solaris
58854         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
58855         an indicator that setting optind=1 is sufficient for reset.
58857         getopt-posix: avoid spurious failure on FreeBSD
58858         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
58859         in POSIX mode, since the m4 test uses it.
58861         gnulib-tool: silence warning on BSD sh
58862         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
58864 2010-04-13  Jim Meyering  <meyering@redhat.com>
58866         doc: users.txt: GNU patch now uses gnulib
58867         * users.txt: Add patch.
58869 2010-04-12  Jim Meyering  <meyering@redhat.com>
58871         maint.mk: generate more concise timing data for syntax-check rules
58872         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
58873         " done" from each line that reports a syntax-check test duration.
58875 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
58877         git-version-gen: use "git update-index..." rather than "git status"
58878         * build-aux/git-version-gen: Use git update-index --refresh, not
58879         "git status".  With some versions of git, "git status" would fail
58880         to update the index and result in an unwarranted "-dirty" suffix.
58882 2010-04-11  Jim Meyering  <meyering@redhat.com>
58884         openat: correct formatting (no semantic change)
58885         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
58886         Suggested by Bruno Haible.
58888 2010-04-11  Bruno Haible  <bruno@clisp.org>
58890         Stricter declaration checking in testdirs.
58891         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58892         If for_tests is true, augment AM_CPPFLAGS to define
58893         GNULIB_STRICT_CHECKING.
58894         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
58895         GNULIB_STRICT_CHECKING is defined, verify that the function is
58896         declared.
58898 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
58899             Bruno Haible  <bruno@clisp.org>
58901         libunistring: Improve configure output.
58902         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
58903         Don't say "consider installing GNU libunistring" when checking again
58904         with libiconv.
58906 2010-04-11  Bruno Haible  <bruno@clisp.org>
58908         libunistring: Correct value of $LTLIBUNISTRING.
58909         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
58910         correct the value of $LTLIBUNISTRING.
58912 2010-04-11  Bruno Haible  <bruno@clisp.org>
58914         havelib: Add static libraries to LIBS in the right order.
58915         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
58916         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
58918 2010-04-11  Bruno Haible  <bruno@clisp.org>
58920         libunistring: Detect libunistring also when it depends on libiconv.
58921         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
58922         the second AC_LIB_HAVE_LINKFLAGS invocation.
58924 2010-04-11  James Youngman  <jay@gnu.org>
58926         close-stream: declare local scalars to be "const"
58927         * lib/close-stream.c (close_stream): Make boolean variables const
58928         to document the fact that we set but do not change them.
58930 2010-04-11  Bruno Haible  <bruno@clisp.org>
58932         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
58934 2010-04-11  Jim Meyering  <meyering@redhat.com>
58936         maint.mk: don't include dist-check.mk
58937         * top/maint.mk: Remove bogus include directive.
58939         maint.mk: improve empty-line-at-EOF check
58940         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
58941         solution, rather than tail+Perl-based one.  The latter would read
58942         a few kilobytes from the end of each file, and did not handle empty
58943         files properly.
58945         maint.mk: print the elapsed time for each syntax-check rule
58946         * top/maint.mk (sc_m_rules_): Save start time in a file.
58947         (sc_z_rules_): New rules: remove temp file and print elapsed time.
58948         (local-check): Interpose the .z rules
58950 2010-04-11  Jim Meyering  <meyering@redhat.com>
58952         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
58953         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
58954         empty file with one that ends in an empty line.
58956 2010-04-10  Bruno Haible  <bruno@clisp.org>
58958         mkdir: Make it work on mingw64.
58959         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
58960         * lib/mkdir.c: Update comment.
58961         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
58963 2010-04-10  Bruno Haible  <bruno@clisp.org>
58965         Don't override improved macro from newer autoconf.
58966         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
58967         autoconf >= 2.62.
58968         Reported by Joel E. Denny <jdenny@clemson.edu>.
58970 2010-04-10  Jim Meyering  <meyering@redhat.com>
58972         maint.mk: new syntax-check rule: prohibit empty lines at end of file
58973         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
58975         maint.mk: correct a diagnostic
58976         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
58977         in diagnostic; now use $prohibit.
58979 2010-04-10  Bruno Haible  <address@hidden>
58981         fchownat: Fix a C++ test error on Solaris 8.
58982         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
58983         the function does not exist.
58985 2010-04-10  Bruno Haible  <bruno@clisp.org>
58987         vasnprintf: Add more tests.
58988         * tests/test-vasnprintf-posix.c: Include <errno.h>.
58989         (test_function): Test converting an invalid wide string.
58991         vasnprintf: Correct handling of unconvertible wide string arguments.
58992         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
58993         VASNPRINTF.
58994         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
58995         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
58996         smaller than the expected maximum need for the directive. Set errno to
58997         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
58998         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
58999         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
59000         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
59001         * modules/vasnprintf (Files): Add m4/printf.m4.
59002         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
59004 2010-04-10  Bruno Haible  <bruno@clisp.org>
59006         vasnprintf: Fix crash in %ls directive.
59007         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
59008         string is passed as argument to %ls, with no precision and no width.
59009         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
59011 2010-04-10  Bruno Haible  <bruno@clisp.org>
59013         vasnprintf: Fix multiple test failures on mingw.
59014         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
59015         _snprintf, or snwprintf, not _snwprintf.
59017 2010-04-10  Bruno Haible  <bruno@clisp.org>
59019         write: Fix a C++ test error on mingw.
59020         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
59022 2010-04-10  Bruno Haible  <bruno@clisp.org>
59024         vasnprintf test: Reduce code duplication.
59025         * tests/test-vasnprintf.c (test_function): New function, extracted from
59026         test_vasnprintf.
59027         (test_vasnprintf, test_asnprintf): Invoke it.
59029 2010-04-10  Bruno Haible  <bruno@clisp.org>
59031         strnlen: Fix warning in C++ mode on MacOS X.
59032         * lib/string.in.h (strnlen): Use the modern idiom.
59033         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
59034         defining strnlen as a macro already in <config.h>.
59035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59036         REPLACE_STRNLEN.
59037         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
59038         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
59040 2010-04-08  James Youngman  <jay@gnu.org>
59042         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
59043         the example.
59045 2010-04-09  Jim Meyering  <meyering@redhat.com>
59047         maint.mk: print better diagnostic when there is no $(_hv_file)
59048         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
59049         announce that when $(_hv_file) (aka help-version) does not exist.
59051         init.sh: run tr in the "C" locale to avoid multibyte interpretation
59052         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
59053         not try to interpret its random input bytes.  Jarno Rajahalme reported
59054         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
59055         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
59056         (mktempd_): Likewise, just in case.
59058         ftruncate: add two years to projected module removal date: 2012
59059         * m4/ftruncate.m4: Adjust comments.
59061         ftruncate: mark module as obsolete; even MinGW provides it, now
59062         * modules/ftruncate (Status): Obsolete.
59063         (Notice): Say that.
59064         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
59065         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
59067 2010-04-08  Bruno Haible  <bruno@clisp.org>
59069         Fix side effects from tests-related modules.
59070         * modules/dprintf-posix (Comment): New section.
59071         * modules/fprintf-posix (Comment): Likewise.
59072         * modules/obstack-printf-posix (Comment): Likewise.
59073         * modules/printf-posix (Comment): Likewise.
59074         * modules/snprintf-posix (Comment): Likewise.
59075         * modules/sprintf-posix (Comment): Likewise.
59076         * modules/vasnprintf-posix (Comment): Likewise.
59077         * modules/vasprintf-posix (Comment): Likewise.
59078         * modules/vdprintf-posix (Comment): Likewise.
59079         * modules/vfprintf-posix (Comment): Likewise.
59080         * modules/vprintf-posix (Comment): Likewise.
59081         * modules/vsnprintf-posix (Comment): Likewise.
59082         * modules/vsprintf-posix (Comment): Likewise.
59083         * modules/xprintf-posix (Comment): Likewise.
59084         * modules/xvasprintf-posix (Comment): Likewise.
59085         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
59086         * modules/floorf-tests (Depends-on): Likewise.
59087         * modules/round-tests (Depends-on): Likewise.
59088         * modules/roundf-tests (Depends-on): Likewise.
59089         * modules/trunc-tests (Depends-on): Likewise.
59090         * modules/truncf-tests (Depends-on): Likewise.
59091         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
59092         'fprintf-posix' module is not present.
59093         * tests/test-floorf2.c (check): Likewise.
59094         * tests/test-trunc2.c (check): Likewise.
59095         * tests/test-truncf2.c (check): Likewise.
59096         * tests/test-round2.c (equal): Likewise.
59097         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
59099 2010-04-07  Karl Berry  <karl@gnu.org>
59101         * config/srclist.txt,
59102         * config/srclistvars.sh,
59103         * config/srclist-update: doc fixes.
59105 2010-04-07  Jim Meyering  <meyering@redhat.com>
59107         maint.mk: add a PATH crosschecking syntax-check rule
59108         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
59109         Useful if you use a test like the one in help-version (coreutils,
59110         diffutils, grep, gzip) that ensures $(VERSION) matches what is
59111         printed by prog --version.
59113 2010-04-06  Bruno Haible  <bruno@clisp.org>
59115         Fix link error on mingw.
59116         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
59117         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
59119 2010-04-06  Bruno Haible  <bruno@clisp.org>
59121         Assume rmdir exists.
59122         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
59124 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
59126         doc: update users.txt
59127         * users.txt: Add gcal.
59129 2010-04-06  Jim Meyering  <meyering@redhat.com>
59131         init.sh: simply unset TMPDIR rather than risking env -i
59132         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
59133         although it probably works fine on all Unix-based systems, some
59134         systems (Cygwin?) cannot tolerate a totally cleared environment.
59135         Suggestion from Eric Blake.
59137 2010-04-06  Jim Meyering  <meyering@redhat.com>
59139         init.sh: portability fix: use env's POSIX-specified -i option not -u
59140         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
59141         than unportable env -u.  Solaris 5.11's env lacks support for -u.
59143 2010-04-05  Bruno Haible  <bruno@clisp.org>
59145         btowc: Work around Cygwin 1.7.2 bug.
59146         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
59147         does not map NUL to 0.
59148         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
59150 2010-04-05  Bruno Haible  <bruno@clisp.org>
59152         Make the multithread modules work on Cygwin 1.7.2.
59153         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
59154         imported symbols can be declared weak, so that it returns "no" on
59155         Cygwin 1.7.2.
59157 2010-04-05  Bruno Haible  <bruno@clisp.org>
59159         Use the module 'strncat'.
59160         * modules/unistr/u8-strncat (Depends-on): Add strncat.
59162         Tests for module 'strncat'.
59163         * modules/strncat-tests: New file.
59164         * tests/test-strncat.c: New file.
59166         New module 'strncat'.
59167         * lib/string.in.h (strncat): New declaration.
59168         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
59169         * m4/strncat.m4: New file, based on m4/memchr.m4.
59170         * modules/strncat: New file.
59171         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
59172         is declared.
59173         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
59174         REPLACE_STRNCAT.
59175         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
59176         REPLACE_STRNCAT.
59177         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
59178         module.
59179         * tests/test-string-c++.cc: Check signature of strncat.
59181 2010-04-05  Jim Meyering  <meyering@redhat.com>
59183         xstrtoumax-tests: convert to use init.sh
59184         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
59185         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
59186         Use Exit, not exit.
59187         Remove uses of $EXEEXT and "./" to run a program in the current dir.
59189         xstrtoimax-tests: convert to use init.sh
59190         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
59191         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
59192         Use Exit, not exit.
59193         Remove uses of $EXEEXT and "./" to run a program in the current dir.
59195 2010-04-05  Bruno Haible  <bruno@clisp.org>
59197         sys_socket: Avoid #define replacements in C++ mode.
59198         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
59199         warning to the function if possible, rather than #defining the symbol
59200         to a dysfunctional alias.
59202 2010-04-05  Bruno Haible  <bruno@clisp.org>
59204         fseeko: Fix C++ test error on mingw.
59205         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
59206         gl_FUNC_FSEEKO.
59207         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
59208         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
59209         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
59210         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
59212 2010-04-05  Bruno Haible  <bruno@clisp.org>
59214         duplocale: Improve test output.
59215         * tests/test-duplocale.c (main): Print reason for skipped test.
59217 2010-04-05  Bruno Haible  <bruno@clisp.org>
59219         Assume rmdir exists.
59220         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
59221         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
59223 2010-04-05  Bruno Haible  <bruno@clisp.org>
59225         Fix link error on Solaris 8 with cc.
59226         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
59228 2010-04-05  Bruno Haible  <bruno@clisp.org>
59230         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
59231         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
59233 2010-04-05  Bruno Haible  <bruno@clisp.org>
59235         vasprintf: Update documentation.
59236         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
59238 2010-04-05  Bruno Haible  <bruno@clisp.org>
59240         ptsname: Improve test.
59241         * tests/test-ptsname.c (main): Also try the various master names of BSD
59242         systems.
59244 2010-04-05  Bruno Haible  <bruno@clisp.org>
59246         memchr: Avoid a possible C++ test error.
59247         * lib/string.in.h (memchr): Provide declaration if function is missing.
59248         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
59249         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
59250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
59251         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
59253 2010-04-05  Bruno Haible  <bruno@clisp.org>
59255         strtok_r: Improve idiom.
59256         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
59257         AC_LIBOBJ is used.
59259 2010-04-05  Bruno Haible  <bruno@clisp.org>
59261         strdup: Improve idiom.
59262         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
59263         AC_LIBOBJ is used.
59264         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
59265         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
59266         when AC_LIBOBJ is used.
59268 2010-04-05  Bruno Haible  <bruno@clisp.org>
59270         mbsinit, mbrtowc, wcrtomb: Improve idioms.
59271         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
59272         don't set REPLACE_MBSINIT to 1.
59273         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
59274         don't set REPLACE_MBRTOWC to 1.
59275         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
59276         exist, don't set REPLACE_MBSRTOWCS to 1.
59277         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
59278         exist, don't set REPLACE_MBSNRTOWCS to 1.
59279         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
59280         don't set REPLACE_WCRTOMB to 1.
59281         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
59282         exist, don't set REPLACE_WCSRTOMBS to 1.
59283         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
59284         exist, don't set REPLACE_WCSNRTOMBS to 1.
59286 2010-04-05  Bruno Haible  <bruno@clisp.org>
59288         ldexpl: Improve idiom.
59289         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
59290         make sure to set HAVE_DECL_LDEXPL to 0.
59292 2010-04-05  Jim Meyering  <meyering@redhat.com>
59294         xstrtol-tests: convert to use init.sh
59295         * modules/xstrtol-tests (Files): Add tests/init.sh.
59296         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
59297         Use Exit, not exit.
59298         Remove uses of $EXEEXT and "./" to run a program in the current dir.
59300         atexit-tests: convert to use init.sh
59301         * modules/atexit-tests (Files): Add tests/init.sh.
59302         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
59303         Use Exit, not exit.
59304         Remove uses of $EXEEXT and "./" to run a program in the current dir.
59306         init.sh: fix typo
59307         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
59309         init.sh: make it easier for a test script to write to the tty, ...
59310         when using automake's parallel-tests mode.
59311         * tests/init.sh (stderr_fileno_): Define overridable variable.
59312         (warn_): New function, to use it.
59313         (fail_, skip_, framework_failure_): Use warn_.
59315 2010-04-04  Bruno Haible  <bruno@clisp.org>
59317         btowc: Avoid warning.
59318         * lib/btowc.c: Include <stdlib.h>.
59319         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
59321 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
59322             Bruno Haible  <bruno@clisp.org>
59324         wchar: Port to NetBSD 1.5.
59325         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
59326         * lib/wctype.in.h (WEOF): Likewise.
59328 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
59329             Bruno Haible  <bruno@clisp.org>
59331         Port extended stdio to NetBSD 1.5.
59332         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
59333         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
59334         older.
59336 2010-04-04  Bruno Haible  <bruno@clisp.org>
59338         string: Remove unused substitution.
59339         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59340         HAVE_DECL_STRERROR.
59341         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
59343 2010-04-04  Bruno Haible  <bruno@clisp.org>
59345         strtod: Avoid a possible C++ test error.
59346         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
59347         set REPLACE_STRTOD.
59349 2010-04-04  Bruno Haible  <bruno@clisp.org>
59351         strerror: Update documentation.
59352         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
59354 2010-04-04  Bruno Haible  <bruno@clisp.org>
59356         stdio: Fix some C++ test errors on Solaris 8 with GCC.
59357         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
59358         _GL_CXXALIAS_SYS_CAST.
59360 2010-04-04  Bruno Haible  <bruno@clisp.org>
59362         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
59363         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
59364         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
59365         REPLACE_FREXPL to 1.
59366         * doc/posix-functions/frexpl.texi: Update documentation.
59368 2010-04-04  Bruno Haible  <bruno@clisp.org>
59370         math: Fix some C++ test errors on Solaris 8 and Cygwin.
59371         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
59373 2010-04-04  Bruno Haible  <bruno@clisp.org>
59375         Implement nanosleep for native Windows.
59376         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
59378 2010-04-04  Bruno Haible  <bruno@clisp.org>
59380         math: Fix some C++ test errors on Solaris 8.
59381         * lib/math.in.h (truncf, trunc): Use simpler idiom.
59383 2010-04-04  Bruno Haible  <bruno@clisp.org>
59385         math: Fix some C++ test errors on Cygwin.
59386         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
59387         truncl): Provide declaration if the system does not have it.
59388         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
59389         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
59390         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
59391         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
59392         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
59393         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
59394         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
59395         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
59396         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
59397         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
59398         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
59399         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
59400         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
59401         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
59402         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
59403         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
59404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
59405         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
59406         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
59407         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
59408         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
59409         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
59411 2010-04-04  Bruno Haible  <bruno@clisp.org>
59413         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
59414         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
59415         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
59416         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59417         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
59418         * m4/isinf.m4 (gl_ISINF): Likewise.
59419         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
59421 2010-04-04  Bruno Haible  <bruno@clisp.org>
59423         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
59424         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
59426 2010-04-04  Bruno Haible  <bruno@clisp.org>
59428         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
59429         * modules/tmpfile (configure.ac): Update.
59431         tmpfile: Fix C++ test error on mingw.
59432         * lib/stdio.in.h (tmpfile): New declaration.
59433         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
59434         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
59435         * modules/tmpfile (Depends-on): Add stdio.
59436         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59437         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
59438         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
59439         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
59440         REPLACE_TMPFILE.
59441         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
59443 2010-04-04  Bruno Haible  <bruno@clisp.org>
59445         ioctl: Fix C++ test error on mingw.
59446         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
59447         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
59448         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
59450 2010-04-03  Bruno Haible  <bruno@clisp.org>
59452         wcwidth: Fix C++ test error on mingw.
59453         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
59454         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
59455         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
59457 2010-04-03  Bruno Haible  <bruno@clisp.org>
59459         nanosleep: Fix C++ test error on mingw.
59460         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
59461         * lib/time.in.h (nanosleep): Use modern idiom.
59462         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
59463         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
59464         REPLACE_NANOSLEEP to 1.
59465         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
59466         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
59468 2010-04-03  Bruno Haible  <bruno@clisp.org>
59470         strptime: Fix C++ test error on mingw.
59471         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
59472         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
59473         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
59474         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
59475         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
59476         not REPLACE_STRPTIME.
59477         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
59478         REPLACE_STRPTIME.
59480 2010-04-03  Bruno Haible  <bruno@clisp.org>
59482         timegm: Fix C++ test error on mingw.
59483         * lib/time.in.h (timegm): Use modern idiom.
59484         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
59485         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
59486         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
59487         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
59489 2010-04-03  Bruno Haible  <bruno@clisp.org>
59491         timegm: Assume declaration if function exists.
59492         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
59493         if it exists. Don't clobber ac_cv_func_timegm.
59495 2010-04-03  Bruno Haible  <bruno@clisp.org>
59497         time_r: Fix C++ test error on mingw.
59498         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
59499         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
59500         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
59501         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
59502         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
59504 2010-04-03  Bruno Haible  <bruno@clisp.org>
59506         time_r: Minor updates.
59507         * modules/time_r (Description): Mention the provided functions.
59508         * lib/time_r.c: Don't include <string.h>.
59509         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
59510         * doc/posix-functions/localtime_r.texi: Likewise.
59512 2010-04-03  Bruno Haible  <bruno@clisp.org>
59514         time: Fix regression introduced on 2010-03-08.
59515         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
59516         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
59518 2010-04-03  Jim Meyering  <meyering@redhat.com>
59520         maint.mk: don't silently disable project-specific syntax-check rules
59521         * top/maint.mk (_prohibit_regexp): Define, to help people realize
59522         that they need to convert their project-specific syntax-check rules
59523         to use the new _sc_search_regexp.
59525 2010-04-03  Bruno Haible  <bruno@clisp.org>
59527         fchdir: Fix regression introduced on 2010-03-08.
59528         * lib/unistd.in.h (fchdir): Fix declaration.
59529         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
59530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
59531         REPLACE_FCHDIR.
59532         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
59533         REPLACE_FCHDIR.
59535 2010-04-03  Bruno Haible  <bruno@clisp.org>
59537         getpagesize: Fix C++ test error on mingw.
59538         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
59539         system does not declare the function.
59540         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
59541         declared.
59542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59543         HAVE_DECL_GETPAGESIZE.
59544         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
59546 2010-04-03  Bruno Haible  <bruno@clisp.org>
59548         stdio: Make C++ tests work on mingw.
59549         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
59550         does not declare the function.
59552 2010-04-03  Bruno Haible  <bruno@clisp.org>
59554         ftello: Fix C++ test error on mingw.
59555         * lib/stdio.in.h (ftello): Use modern idiom.
59556         * lib/ftello.c (ftello): Renamed from rpl_ftello.
59557         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
59558         is missing and that it needs to be replaced.
59559         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
59560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
59561         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
59563 2010-04-03  Bruno Haible  <bruno@clisp.org>
59565         fseeko: Fix C++ test error on mingw.
59566         * lib/stdio.in.h (fseeko): Use modern idiom.
59567         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
59568         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
59569         is missing and that it needs to be replaced.
59570         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
59571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
59572         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
59574 2010-04-03  Bruno Haible  <bruno@clisp.org>
59576         mkstemp: Fix C++ test error on mingw.
59577         * lib/stdlib.in.h (mkstemp): Use modern idiom.
59578         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
59579         function is missing and that it needs to be replaced.
59580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
59581         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
59583 2010-04-03  Bruno Haible  <bruno@clisp.org>
59585         stpncpy: Fix C++ test error on mingw.
59586         * lib/string.in.h (stpncpy): Use modern idiom.
59587         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
59588         function is missing and that it needs to be replaced.
59589         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59590         REPLACE_STPNCPY.
59591         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
59593 2010-04-03  Bruno Haible  <bruno@clisp.org>
59595         sys_stat: Fix C++ test error on mingw.
59596         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
59597         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
59599 2010-04-03  Bruno Haible  <bruno@clisp.org>
59601         pty: Update doc.
59602         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
59604 2010-04-03  Bruno Haible  <bruno@clisp.org>
59606         unistd: Fix C++ test error on mingw.
59607         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
59609 2010-04-03  Bruno Haible  <bruno@clisp.org>
59611         Update doc regarding mingw.
59612         * doc/glibc-functions/openpty.texi: Update regarding mingw.
59613         * doc/glibc-functions/login_tty.texi: Likewise.
59614         * doc/glibc-functions/forkpty.texi: Likewise.
59616 2010-04-03  Bruno Haible  <bruno@clisp.org>
59618         stdlib: Avoid compilation failure of c-strtold on mingw.
59619         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
59621 2010-04-03  Bruno Haible  <bruno@clisp.org>
59623         locale: Make C++ tests work on Cygwin and mingw.
59624         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
59625         cannot provide the function.
59626         Reported by Simon Josefsson.
59628 2010-04-03  Bruno Haible  <bruno@clisp.org>
59630         localename: Port to MacOS X 10.6.
59631         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
59632         memory layout of the locales in MacOS X 10.6 as well.
59633         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
59635 2010-04-02  Bruno Haible  <bruno@clisp.org>
59637         gnulib-tool: Ensure that long-running tests are executed last.
59638         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
59639         running tests after the one for the other tests.
59641 2010-04-02  Bruno Haible  <bruno@clisp.org>
59643         gnulib-tool: Ensure the tests in the main directory are executed first.
59644         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
59645         start with the current directory.
59647 2010-04-02  Bruno Haible  <bruno@clisp.org>
59649         Tests for module 'havelib', moved here from GNU gettext.
59650         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
59651         modifications.
59652         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
59653         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
59654         with modifications.
59655         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
59656         modifications.
59657         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
59658         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
59659         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
59660         with modifications.
59661         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
59662         with modifications.
59663         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
59664         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
59665         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
59666         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
59667         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
59668         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
59669         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
59670         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
59671         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
59672         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
59673         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
59674         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
59675         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
59676         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
59677         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
59678         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
59679         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
59680         with modifications.
59681         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
59682         with modifications.
59683         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
59684         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
59685         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
59686         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
59687         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
59688         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
59689         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
59690         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
59691         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
59692         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
59693         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
59694         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
59695         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
59696         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
59697         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
59698         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
59699         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
59700         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
59701         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
59702         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
59703         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
59704         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
59705         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
59706         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
59707         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
59708         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
59709         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
59710         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
59711         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
59712         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
59713         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
59714         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
59715         * tests/havelib/rpathx/rpathx.c: New file, from
59716         gettext/autoconf-lib-link.
59717         * tests/havelib/rpathx/Makefile.am: New file, from
59718         gettext/autoconf-lib-link.
59719         * tests/havelib/rpathx/configure.ac: New file, from
59720         gettext/autoconf-lib-link with modifications.
59721         * tests/havelib/rpathy/rpathy.c: New file, from
59722         gettext/autoconf-lib-link.
59723         * tests/havelib/rpathy/Makefile.am: New file, from
59724         gettext/autoconf-lib-link.
59725         * tests/havelib/rpathy/configure.ac: New file, from
59726         gettext/autoconf-lib-link with modifications.
59727         * tests/havelib/rpathz/rpathz.c: New file, from
59728         gettext/autoconf-lib-link.
59729         * tests/havelib/rpathz/Makefile.am: New file, from
59730         gettext/autoconf-lib-link.
59731         * tests/havelib/rpathz/configure.ac: New file, from
59732         gettext/autoconf-lib-link with modifications.
59733         * tests/havelib/rpathlx/usex.c: New file, from
59734         gettext/autoconf-lib-link.
59735         * tests/havelib/rpathlx/Makefile.am: New file, from
59736         gettext/autoconf-lib-link.
59737         * tests/havelib/rpathlx/configure.ac: New file, from
59738         gettext/autoconf-lib-link with modifications.
59739         * tests/havelib/rpathly/usey.c: New file, from
59740         gettext/autoconf-lib-link.
59741         * tests/havelib/rpathly/Makefile.am: New file, from
59742         gettext/autoconf-lib-link.
59743         * tests/havelib/rpathly/configure.ac: New file, from
59744         gettext/autoconf-lib-link with modifications.
59745         * tests/havelib/rpathlz/usez.c: New file, from
59746         gettext/autoconf-lib-link.
59747         * tests/havelib/rpathlz/Makefile.am: New file, from
59748         gettext/autoconf-lib-link.
59749         * tests/havelib/rpathlz/configure.ac: New file, from
59750         gettext/autoconf-lib-link with modifications.
59751         * tests/havelib/rpathlyx/usey.c: New file, from
59752         gettext/autoconf-lib-link.
59753         * tests/havelib/rpathlyx/Makefile.am: New file, from
59754         gettext/autoconf-lib-link.
59755         * tests/havelib/rpathlyx/configure.ac: New file, from
59756         gettext/autoconf-lib-link with modifications.
59757         * tests/havelib/rpathlzyx/usez.c: New file, from
59758         gettext/autoconf-lib-link.
59759         * tests/havelib/rpathlzyx/Makefile.am: New file, from
59760         gettext/autoconf-lib-link.
59761         * tests/havelib/rpathlzyx/configure.ac: New file, from
59762         gettext/autoconf-lib-link with modifications.
59763         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
59764         with modifications.
59766 2010-04-02  Bruno Haible  <bruno@clisp.org>
59768         gnulib-tool: Create distributed built sources also for the tests.
59769         * gnulib-tool (func_create_testdir): Also generate distributed built
59770         sources in the tests directory.
59772 2010-04-02  Bruno Haible  <bruno@clisp.org>
59774         gnulib-tool: Obey user's environment variables.
59775         * gnulib-tool (func_create_testdir): When creating built sources,
59776         respect the environment variables for autoconf, automake, etc. given by
59777         the user.
59779 2010-04-02  Bruno Haible  <bruno@clisp.org>
59781         gnulib-tool: Provide the value of --m4-base to modules.
59782         * gnulib-tool (func_import, func_create_testdir): Emit a definition
59783         of gl_m4_base.
59785 2010-04-02  Eric Blake  <eblake@redhat.com>
59787         maint.mk: fix some fallout
59788         * NEWS: Document the incompatible change, and its effect on cfg.mk.
59789         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
59791 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
59793         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
59794         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
59795         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
59796         (sc_cast_of_x_alloc_return_value): Likewise.
59797         (sc_cast_of_alloca_return_value): Likewise.
59798         (sc_space_tab): Likewise.
59799         (sc_prohibit_atoi_atof): Likewise.
59800         (sc_prohibit_magic_number_exit): Likewise.
59801         (sc_error_exit_success): Likewise.
59802         (sc_file_system): Likewise.
59803         (sc_prohibit_have_config_h): Likewise.
59804         (sc_require_config_h): Likewise.
59805         (sc_prohibit_HAVE_MBRTOWC): Likewise.
59806         (sc_obsolete_symbols): Likewise.
59807         (sc_changelog): Likewise.
59808         (sc_program_name): Likewise.
59809         (sc_the_the): Likewise.
59810         (sc_trailing_blank): Likewise.
59811         (sc_two_space_separator_in_usage): Likewise.
59812         (sc_useless_cpp_parens): Likewise.
59813         (sc_GPL_version): Likewise.
59814         (sc_GFDL_version): Likewise.
59815         (sc_texinfo_acronym): Likewise.
59816         (sc_prohibit_cvs_keyword): Likewise.
59817         (sc_prohibit_stat_st_blocks): Likewise.
59818         (sc_prohibit_S_IS_definition): Likewise.
59819         (sc_redundant_const): Likewise.
59820         (sc_makefile_TAB_only_indentation): Likewise.
59821         (sc_m4_quote_check): Likewise.
59822         (sc_makefile_path_separator_check): Likewise.
59823         (sc_copyright_check): Likewise.
59824         (sc_Wundef_boolean): Likewise.
59825         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
59827         maint.mk: match 0 or more whitespace-before-function-call '('
59828         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
59829         that have zero or two-and-more spaces between the function name
59830         and the open parenthesis.
59831         (sc_error_message_warn_fatal): Likewise.
59832         (sc_error_message_uppercase): Likewise.
59833         (sc_error_message_period): Likewise.
59835 2010-03-31  Eric Blake  <eblake@redhat.com>
59837         maint.mk: check for [ as well as test
59838         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
59839         Based on a libvirt report by Matthias Bolte.
59841         gnumakefile: don't squelch _version output
59842         * top/GNUmakefile (_version): Create one-shot dependency rather
59843         than using $(shell) when version must be regenerated.
59844         (_autoreconf): Run verbosely, by default.
59846         sys_time: avoid compiler warnings
59847         * lib/sys_time.in.h (includes): Ensure gcc pragma is
59848         unconditional, fixing regression from 2010-03-29.
59849         Reported by Simon Josefsson.
59851 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
59853         maint.mk: s/_header_without_use/_sc_header_without_use/
59854         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
59855         (sc_prohibit_assert_without_use): Use the new name.
59856         (sc_prohibit_close_stream_without_use): Likewise.
59857         (sc_prohibit_getopt_without_use): Likewise.
59858         (sc_prohibit_quotearg_without_use): Likewise.
59859         (sc_prohibit_quote_without_use): Likewise.
59860         (sc_prohibit_long_options_without_use): Likewise.
59861         (sc_prohibit_inttostr_without_use): Likewise.
59862         (sc_prohibit_ignore_value_without_use): Likewise.
59863         (sc_prohibit_error_without_use): Likewise.
59864         (sc_prohibit_xalloc_without_use): Likewise.
59865         (sc_prohibit_hash_without_use): Likewise.
59866         (sc_prohibit_hash_pjw_without_use): Likewise.
59867         (sc_prohibit_safe_read_without_use): Likewise.
59868         (sc_prohibit_argmatch_without_use): Likewise.
59869         (sc_prohibit_canonicalize_without_use): Likewise.
59870         (sc_prohibit_root_dev_ino_without_use): Likewise.
59871         (sc_prohibit_openat_without_use): Likewise.
59872         (sc_prohibit_c_ctype_without_use): Likewise.
59873         (sc_prohibit_signal_without_use): Likewise.
59874         (sc_prohibit_intprops_without_use): Likewise.
59876 2010-03-30  Eric Blake  <eblake@redhat.com>
59878         maint: improve module indicators
59879         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
59880         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
59881         columns, and avoid extra macro expansion.
59883         fdopendir: work around FreeBSD bug
59884         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
59885         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
59886         * modules/dirent (Makefile.am): Substitute it.
59887         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
59888         declaration.
59889         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
59890         fix.
59891         Reported by Christian Weisgerber <naddy@mips.inka.de>.
59893 2010-03-29  Bruno Haible  <bruno@clisp.org>
59895         Emit #pragma system_header after the inclusion guard, not before.
59896         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
59897         guard that spans the entire file, not before. This enables an
59898         optimization in GCC's preprocessor.
59899         * lib/ctype.in.h: Likewise.
59900         * lib/dirent.in.h: Likewise.
59901         * lib/errno.in.h: Likewise.
59902         * lib/float.in.h: Likewise.
59903         * lib/getopt.in.h: Likewise.
59904         * lib/iconv.in.h: Likewise.
59905         * lib/langinfo.in.h: Likewise.
59906         * lib/locale.in.h: Likewise.
59907         * lib/math.in.h: Likewise.
59908         * lib/netdb.in.h: Likewise.
59909         * lib/netinet_in.in.h: Likewise.
59910         * lib/pty.in.h: Likewise.
59911         * lib/sched.in.h: Likewise.
59912         * lib/se-selinux.in.h: Likewise.
59913         * lib/search.in.h: Likewise.
59914         * lib/spawn.in.h: Likewise.
59915         * lib/stdarg.in.h: Likewise.
59916         * lib/stdint.in.h: Likewise.
59917         * lib/string.in.h: Likewise.
59918         * lib/strings.in.h: Likewise.
59919         * lib/sys_file.in.h: Likewise.
59920         * lib/sys_ioctl.in.h: Likewise.
59921         * lib/sys_time.in.h: Likewise.
59922         * lib/sys_times.in.h: Likewise.
59923         * lib/sys_utsname.in.h: Likewise.
59924         * lib/sys_wait.in.h: Likewise.
59925         * lib/sysexits.in.h: Likewise.
59926         * lib/wctype.in.h: Likewise.
59928 2010-03-28  James Youngman  <jay@gnu.org>
59930         save-cwd: don't leak a file descriptor when the caller execs.
59931         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
59932         saved file descriptor.
59933         * modules/save-cwd (Depends-on): Depend on cloexec.
59935 2010-03-29  Bruno Haible  <bruno@clisp.org>
59937         Remove vestiges of fts-lgpl module.
59938         * lib/fts_.h: Assume GNULIB_FTS is 1.
59939         * lib/fts.c: Likewise.
59940         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
59942 2010-03-28  Bruno Haible  <bruno@clisp.org>
59944         Fix definition of tests witness macro.
59945         * gnulib-tool (func_import): Fix definition of witness macro.
59947 2010-03-28  Bruno Haible  <bruno@clisp.org>
59949         Fix ioctl's protoype on glibc systems.
59950         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
59951         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
59952         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
59953         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
59954         signature. If not, arrange to replace the ioctl function.
59955         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
59956         REPLACE_IOCTL.
59957         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
59958         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
59959         Reported by Ludovic Courtès <ludo@gnu.org>.
59961 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
59963         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
59964         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
59965         made it so grep -r --include=GLOB* ... did not work.
59967 2010-03-26  Jim Meyering  <meyering@redhat.com>
59968             Eric Blake  <eblake@redhat.com>
59970         maint.mk: prohibit use of test's -o and -a operators
59971         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
59973 2010-03-28  Bruno Haible  <bruno@clisp.org>
59975         Remove unused GNULIB_XYZ macro definitions.
59976         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
59977         invocation.
59979 2010-03-28  Bruno Haible  <bruno@clisp.org>
59981         Mark privileged tests modules.
59982         * modules/idpriv-drop-tests (Status): New section.
59983         * modules/idpriv-droptemp-tests (Status): New section.
59985 2010-03-28  Bruno Haible  <bruno@clisp.org>
59987         Split C++ tests into separate tests modules.
59988         * modules/dirent-c++-tests: New file, extracted from
59989         modules/dirent-tests.
59990         * modules/dirent-tests: Depend on it.
59991         * modules/fcntl-h-c++-tests: New file, extracted from
59992         modules/fcntl-h-tests.
59993         * modules/fcntl-h-tests: Depend on it.
59994         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
59995         * modules/glob-tests: Depend on it.
59996         * modules/iconv-h-c++-tests: New file, extracted from
59997         modules/iconv-h-tests.
59998         * modules/iconv-h-tests: Depend on it.
59999         * modules/langinfo-c++-tests: New file, extracted from
60000         modules/langinfo-tests.
60001         * modules/langinfo-tests: Depend on it.
60002         * modules/locale-c++-tests: New file, extracted from
60003         modules/locale-tests.
60004         * modules/locale-tests: Depend on it.
60005         * modules/math-c++-tests: New file, extracted from modules/math-tests.
60006         * modules/math-tests: Depend on it.
60007         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
60008         * modules/pty-tests: Depend on it.
60009         * modules/search-c++-tests: New file, extracted from
60010         modules/search-tests.
60011         * modules/search-tests: Depend on it.
60012         * modules/signal-c++-tests: New file, extracted from
60013         modules/signal-tests.
60014         * modules/signal-tests: Depend on it.
60015         * modules/spawn-c++-tests: New file, extracted from
60016         modules/spawn-tests.
60017         * modules/spawn-tests: Depend on it.
60018         * modules/stdio-c++-tests: New file, extracted from
60019         modules/stdio-tests.
60020         * modules/stdio-tests: Depend on it.
60021         * modules/stdlib-c++-tests: New file, extracted from
60022         modules/stdlib-tests.
60023         * modules/stdlib-tests: Depend on it.
60024         * modules/string-c++-tests: New file, extracted from
60025         modules/string-tests.
60026         * modules/string-tests: Depend on it.
60027         * modules/sys_ioctl-c++-tests: New file, extracted from
60028         modules/sys_ioctl-tests.
60029         * modules/sys_ioctl-tests: Depend on it.
60030         * modules/sys_select-c++-tests: New file, extracted from
60031         modules/sys_select-tests.
60032         * modules/sys_select-tests: Depend on it.
60033         * modules/sys_socket-c++-tests: New file, extracted from
60034         modules/sys_socket-tests.
60035         * modules/sys_socket-tests: Depend on it.
60036         * modules/sys_stat-c++-tests: New file, extracted from
60037         modules/sys_stat-tests.
60038         * modules/sys_stat-tests: Depend on it.
60039         * modules/sys_time-c++-tests: New file, extracted from
60040         modules/sys_time-tests.
60041         * modules/sys_time-tests: Depend on it.
60042         * modules/time-c++-tests: New file, extracted from modules/time-tests.
60043         * modules/time-tests: Depend on it.
60044         * modules/unistd-c++-tests: New file, extracted from
60045         modules/unistd-tests.
60046         * modules/unistd-tests: Depend on it.
60047         * modules/wchar-c++-tests: New file, extracted from
60048         modules/wchar-tests.
60049         * modules/wchar-tests: Depend on it.
60050         * modules/wctype-c++-tests: New file, extracted from
60051         modules/wctype-tests.
60052         * modules/wctype-tests: Depend on it.
60053         Reported by Simon Josefsson.
60055 2010-03-28  Bruno Haible  <bruno@clisp.org>
60057         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
60058         * gnulib-tool (func_exists_module): New function, extracted from
60059         func_verify_module.
60060         (func_verify_module): Use it.
60061         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
60062         'foo' only if 'foo' exists.
60063         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
60064         module.
60066 2010-03-28  Bruno Haible  <bruno@clisp.org>
60068         gnulib-tool: Add support for special categories of tests.
60069         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
60070         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
60071         (func_usage): Document them.
60072         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
60073         inc_unportable_tests, inc_all_tests): New variables.
60074         (func_acceptable): Consider these variables.
60075         (func_modules_transitive_closure): Make it work when the 'Status' field
60076         consists of multiple words.
60077         (func_import): Store and restore the values of inc_cxx_tests,
60078         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
60079         inc_all_tests in gnulib-comp.m4.
60080         (func_create_testdir): Set inc_all_tests to true.
60081         * doc/gnulib.texi (Extra tests modules): New section.
60082         Suggested by Jim Meyering.
60084 2010-03-28  Bruno Haible  <bruno@clisp.org>
60086         ansi-c++-opt: Allow turning off the C++ build by default.
60087         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
60088         gl_CXX_CHOICE_DEFAULT_NO is defined.
60089         Requested by Eric Blake.
60091 2010-03-28  Bruno Haible  <bruno@clisp.org>
60093         unistd: Avoid #define replacements in C++ mode.
60094         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
60095         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
60096         setsockopt, shutdown, select): In C++, attach a warning to the function
60097         if possible, rather than #defining the symbol to a dysfunctional alias.
60098         Reported by John W. Eaton <jwe@gnu.org>.
60100 2010-03-28  Bruno Haible  <bruno@clisp.org>
60102         Fix link errors on mingw.
60103         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
60104         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
60105         $(LIBSOCKET).
60106         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
60107         $(LIBSOCKET).
60109 2010-03-28  Bruno Haible  <bruno@clisp.org>
60110             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60112         lib-ignore: Determine different options for different compilers.
60113         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
60114         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
60115         Add comments.
60116         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
60117         * NEWS: Mention the change.
60119 2010-03-27  Bruno Haible  <bruno@clisp.org>
60121         Remove unused GNULIB_XYZ macro definitions.
60122         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
60123         * modules/fseek (configure.ac): Likewise.
60124         * modules/ioctl (configure.ac): Likewise.
60125         * modules/open (configure.ac): Likewise.
60126         * modules/stdlib-safer (configure.ac): Likewise.
60128 2010-03-27  Bruno Haible  <bruno@clisp.org>
60130         Add a remark about certain modules.
60131         * modules/malloc (Comment): New section.
60132         * modules/realloc (Comment): Likewise.
60133         * modules/sigpipe (Comment): Likewise.
60135 2010-03-27  Bruno Haible  <bruno@clisp.org>
60137         Resolve conflict between the two kinds of module indicators.
60138         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
60139         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
60140         * modules/canonicalize (configure.ac): Invoke
60141         gl_MODULE_INDICATOR_FOR_TESTS.
60142         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
60143         GNULIB_XYZ.
60144         * tests/test-dirent-c++.cc: Likewise.
60145         * tests/test-dirent-safer.c: Likewise.
60146         * tests/test-dup2.c: Likewise.
60147         * tests/test-fchdir.c: Likewise.
60148         * tests/test-fcntl-h-c++.cc: Likewise.
60149         * tests/test-getopt.c: Likewise.
60150         * tests/test-getopt.h: Likewise.
60151         * tests/test-langinfo-c++.cc: Likewise.
60152         * tests/test-locale-c++.cc: Likewise.
60153         * tests/test-math-c++.cc: Likewise.
60154         * tests/test-pty-c++.cc: Likewise.
60155         * tests/test-search-c++.cc: Likewise.
60156         * tests/test-signal-c++.cc: Likewise.
60157         * tests/test-spawn-c++.cc: Likewise.
60158         * tests/test-stdio-c++.cc: Likewise.
60159         * tests/test-stdlib-c++.cc: Likewise.
60160         * tests/test-string-c++.cc: Likewise.
60161         * tests/test-sys_ioctl-c++.cc: Likewise.
60162         * tests/test-sys_select-c++.cc: Likewise.
60163         * tests/test-sys_socket-c++.cc: Likewise.
60164         * tests/test-sys_stat-c++.cc: Likewise.
60165         * tests/test-sys_time-c++.cc: Likewise.
60166         * tests/test-time-c++.cc: Likewise.
60167         * tests/test-unistd-c++.cc: Likewise.
60168         * tests/test-wchar-c++.cc: Likewise.
60169         * tests/uninorm/test-u8-nfc.c: Likewise.
60170         * tests/uninorm/test-u8-nfd.c: Likewise.
60171         * tests/uninorm/test-u8-nfkc.c: Likewise.
60172         * tests/uninorm/test-u8-nfkd.c: Likewise.
60173         * tests/uninorm/test-u16-nfc.c: Likewise.
60174         * tests/uninorm/test-u16-nfd.c: Likewise.
60175         * tests/uninorm/test-u16-nfkc.c: Likewise.
60176         * tests/uninorm/test-u16-nfkd.c: Likewise.
60177         * tests/uninorm/test-u32-nfc.c: Likewise.
60178         * tests/uninorm/test-u32-nfc-big.c: Likewise.
60179         * tests/uninorm/test-u32-nfd.c: Likewise.
60180         * tests/uninorm/test-u32-nfd-big.c: Likewise.
60181         * tests/uninorm/test-u32-nfkc.c: Likewise.
60182         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
60183         * tests/uninorm/test-u32-nfkd.c: Likewise.
60184         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
60185         * tests/uninorm/test-u32-normalize-big.c: Likewise.
60187 2010-03-27  Bruno Haible  <bruno@clisp.org>
60189         Distinguish two kinds of module indicators.
60190         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
60191         gl_MODULE_INDICATOR.
60192         (gl_MODULE_INDICATOR): New macro.
60193         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
60194         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
60195         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
60196         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
60197         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
60198         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
60199         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
60200         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
60201         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
60202         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
60203         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
60204         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
60205         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
60206         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
60207         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
60208         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
60209         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
60210         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
60211         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
60212         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
60213         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
60214         * modules/cloexec (configure.ac): Likewise.
60215         * modules/getopt-gnu (configure.ac): Likewise.
60216         * modules/uninorm/u8-normalize (configure.ac): Likewise.
60217         * modules/uninorm/u16-normalize (configure.ac): Likewise.
60218         * modules/uninorm/u32-normalize (configure.ac): Likewise.
60219         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
60221 2010-03-27  Bruno Haible  <bruno@clisp.org>
60223         New module description field 'Comment'.
60224         * gnulib-tool: New option --extract-comment.
60225         (func_usage): Document it.
60226         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
60227         (func_get_comment): New function.
60228         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
60230 2010-03-27  Bruno Haible  <bruno@clisp.org>
60232         Addendum to 2010-02-07 commit.
60233         * gnulib-tool (func_usage): Document --extract-applicability option.
60235 2010-03-27  Bruno Haible  <bruno@clisp.org>
60237         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
60238         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
60239         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
60240         rather than link errors.
60242 2010-03-27  Bruno Haible  <bruno@clisp.org>
60244         Avoid side effects from tests-related modules on the compilation of lib.
60245         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
60246         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
60247         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
60248         parameter. Emit into AM_CPPFLAGS a definition of the designated C
60249         macro.
60250         (func_import): Define a witness macro. Assign it a value that depends
60251         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
60252         tests-related modules.
60253         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
60254         Reported by Jim Meyering.
60256 2010-03-27  Bruno Haible  <bruno@clisp.org>
60258         Factorize common .m4 code.
60259         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
60260         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
60261         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
60262         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
60263         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
60264         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
60265         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
60266         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
60267         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
60268         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
60269         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
60270         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
60271         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
60272         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
60273         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
60274         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
60275         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
60276         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
60277         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
60278         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
60279         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
60280         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
60281         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
60282         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
60283         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
60284         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
60285         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
60286         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
60287         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
60288         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
60289         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
60290         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
60292 2010-03-27  Bruno Haible  <bruno@clisp.org>
60294         Fix a compilation error on Cygwin with g++ >= 4.3.
60295         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
60296         if it is undefined or if we alias it to chmod.
60297         (lstat): Don't warn about the use of this function if it is undefined
60298         or if we alias it to stat.
60299         Reported by Simon Josefsson.
60301 2010-03-27  Bruno Haible  <bruno@clisp.org>
60303         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
60304         * modules/getlogin (configure.ac): Update.
60306         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
60307         * modules/getlogin_r (configure.ac): Update.
60309         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
60310         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
60311         * modules/inet_ntop (configure.ac): Update.
60313         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
60314         * modules/inet_pton (configure.ac): Update.
60316         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
60317         * modules/mbslen (configure.ac): Update.
60319         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
60320         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
60321         * modules/forkpty (configure.ac): Update.
60322         * modules/openpty (configure.ac): Update.
60324 2010-03-26  Simon Josefsson  <simon@josefsson.org>
60326         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
60327         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
60329 2010-03-25  Eric Blake  <eblake@redhat.com>
60331         maint: use pragma consistently across replacement headers
60332         * lib/ctype.in.h (system_header): Hoist for consistent placement.
60333         * lib/dirent.in.h (system_header): Likewise.
60334         * lib/errno.in.h (system_header): Likewise.
60335         * lib/float.in.h (system_header): Likewise.
60336         * lib/getopt.in.h (system_header): Likewise.
60337         * lib/iconv.in.h (system_header): Likewise.
60338         * lib/inttypes.in.h (system_header): Likewise.
60339         * lib/langinfo.in.h (system_header): Likewise.
60340         * lib/locale.in.h (system_header): Likewise.
60341         * lib/math.in.h (system_header): Likewise.
60342         * lib/netdb.in.h (system_header): Likewise.
60343         * lib/netinet_in.in.h (system_header): Likewise.
60344         * lib/pty.in.h (system_header): Likewise.
60345         * lib/sched.in.h (system_header): Likewise.
60346         * lib/se-selinux.in.h (system_header): Likewise.
60347         * lib/search.in.h (system_header): Likewise.
60348         * lib/spawn.in.h (system_header): Likewise.
60349         * lib/stdarg.in.h (system_header): Likewise.
60350         * lib/stdint.in.h (system_header): Likewise.
60351         * lib/string.in.h (system_header): Likewise.
60352         * lib/strings.in.h (system_header): Likewise.
60353         * lib/sys_file.in.h (system_header): Likewise.
60354         * lib/sys_ioctl.in.h (system_header): Likewise.
60355         * lib/sys_socket.in.h (system_header): Likewise.
60356         * lib/sys_times.in.h (system_header): Likewise.
60357         * lib/sys_utsname.in.h (system_header): Likewise.
60358         * lib/sys_wait.in.h (system_header): Likewise.
60359         * lib/sysexits.in.h (system_header): Likewise.
60360         * lib/unistd.in.h (system_header): Likewise.
60361         * lib/wctype.in.h (system_header): Likewise.
60363         arpa/inet: fix mingw compilation warning
60364         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
60365         Reported by Matthew Bolte.
60367 2010-03-25  Bruno Haible  <bruno@clisp.org>
60369         Avoid collision between gnulib wrapper and libintl wrapper.
60370         * lib/printf.c (printf): Don't define if a printf wrapper is already
60371         defined in intl/printf.c.
60372         Reported by Michel Boaventura <michel@michelboaventura.com>.
60374 2010-03-25  Bruno Haible  <bruno@clisp.org>
60376         Use ANSI C.
60377         * lib/readutmp.h (getutent): Provide ANSI C prototype.
60379 2010-03-25  Bruno Haible  <bruno@clisp.org>
60381         Minor formatting changes.
60382         * lib/acosl.c: Insert space before function argument list.
60383         * lib/argz.c: Likewise.
60384         * lib/asinl.c: Likewise.
60385         * lib/expl.c: Likewise.
60386         * lib/gen-uni-tables.c: Likewise.
60387         * lib/gettext.h: Likewise.
60388         * lib/glthread/lock.h: Likewise.
60389         * lib/tanl.c: Likewise.
60390         * lib/uniname/uniname.c: Likewise.
60391         * tests/test-idpriv-drop.c: Likewise.
60392         * tests/test-idpriv-droptemp.c: Likewise.
60393         * tests/test-lock.c: Likewise.
60394         * tests/test-tls.c: Likewise.
60395         * lib/argp-help.c: Insert space before function-like macro argument
60396         list.
60397         * lib/memcmp.c: Likewise.
60398         * tests/test-base64.c: Likewise.
60399         * lib/localename.c: Insert space before sizeof's argument list.
60400         * lib/safe-alloc.h: Likewise.
60401         * lib/file-set.h: Insert space before macro argument list.
60402         * tests/test-argp.c: Likewise.
60403         * lib/argp-namefrob.h: Insert space before function parameter list.
60404         * lib/getaddrinfo.c: Likewise.
60405         * lib/netdb.in.h: Likewise.
60406         * lib/parse-duration.h: Likewise.
60407         * lib/parse-duration.c: Likewise.
60408         * lib/poll.c: Likewise.
60409         * lib/select.c: Likewise.
60410         * lib/trim.h: Likewise.
60411         * tests/test-usleep.c: Likewise.
60412         * lib/ldexpl.c: Insert space before function parameter list and before
60413         function argument list.
60414         * lib/logl.c: Likewise.
60415         * lib/sqrtl.c: Likewise.
60416         * lib/trim.c: Likewise.
60417         * lib/cosl.c: Use GNU style indentation. Insert space before function
60418         argument list.
60419         * lib/sinl.c: Likewise.
60420         * lib/tsearch.c: Insert space after 'for'.
60421         Reported by Jim Meyering.
60423 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
60425         * maint.mk (sc_Wundef_boolean): Check for the presence of the
60426         config header before grepping, as it's not present before
60427         autoreconf/configure are run.  Reported by Simon Josefsson.
60429 2010-03-23  Bruno Haible  <bruno@clisp.org>
60431         pt_chown: Make it work with automake < 1.11.
60432         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
60433         Reported by Simon Josefsson.
60435 2010-03-23  Bruno Haible  <bruno@clisp.org>
60437         pt_chown: Don't depend on GPLed modules.
60438         * lib/pt_chown.c: Don't include idpriv.h.
60439         (main): Don't drop privileges.
60440         * modules/pt_chown (Depends-on): Remove idpriv-drop.
60441         Reported by Simon Josefsson.
60443 2010-03-24  Simon Josefsson  <simon@josefsson.org>
60445         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
60446         suggestions from karl@freefriends.org (Karl Berry).
60448 2010-03-22  Eric Blake  <eblake@redhat.com>
60450         gethostname: further tweaks
60451         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
60452         are overriding gethostname.
60453         Suggested by Bruno Haible.
60455 2010-03-21  Bruno Haible  <bruno@clisp.org>
60457         Fix comments.
60458         * lib/forkpty.c (rpl_forkpty): Fix comment.
60459         * lib/openpty.c (rpl_openpty): Likewise.
60460         Reported by Eric Blake.
60462 2010-03-22  Eric Blake  <eblake@redhat.com>
60464         gethostname: fix build on mingw
60465         * lib/unistd.in.h (includes): Work around fact that mingw
60466         <winsock2.h> re-includes <unistd.h>, by avoiding any
60467         redeclarations if we are being included by <winsock2.h>.
60468         Reported by Matthias Bolte.
60470 2010-03-21  Bruno Haible  <bruno@clisp.org>
60472         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
60473         * lib/forkpty.c (forkpty): New replacement function, from glibc with
60474         modifications.
60475         * lib/pty.in.h (forkpty): Update declaration. Add comments.
60476         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
60477         provide the replacement.
60478         * modules/forkpty (Depends-on): Add openpty, login_tty.
60479         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
60480         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
60481         * doc/glibc-functions/forkpty.texi: More supported platforms.
60482         * config/srclist.txt: Add forkpty.c (commented).
60484 2010-03-21  Bruno Haible  <bruno@clisp.org>
60486         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
60487         (Makefile.am): Verify that PTY_LIB is defined.
60489         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
60491 2010-03-21  Bruno Haible  <bruno@clisp.org>
60493         Tests for module 'login_tty'.
60494         * modules/login_tty-tests: New file.
60495         * tests/test-login_tty.c: New file.
60497         New module 'login_tty'.
60498         * lib/login_tty.c: New file.
60499         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
60500         * modules/login_tty: New file.
60501         * doc/glibc-functions/login_tty.texi: Mention the new module.
60503 2010-03-21  Bruno Haible  <bruno@clisp.org>
60505         login_tty: Documentation.
60506         * doc/glibc-functions/login_tty.texi: New file.
60507         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
60509 2010-03-21  Bruno Haible  <bruno@clisp.org>
60511         pty: Consistent macro naming.
60512         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
60513         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
60514         * modules/pty (configure.ac): Update.
60516 2010-03-21  Bruno Haible  <bruno@clisp.org>
60518         Tests for openpty: Make stricter.
60519         * tests/test-openpty.c (main): Add test of canonical processing and
60520         erase.
60521         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
60523         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
60524         * lib/openpty.c (openpty): New replacement function.
60525         * lib/pty.in.h: Include <termios.h>.
60526         (openpty): Update declaration. Add comments.
60527         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
60528         is not declared, arrange to provide the replacement. Check for _getpty
60529         and posix_openpt.
60530         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
60531         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
60532         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
60533         * modules/pty-tests (test_pty_c___LDADD): New variable.
60534         * doc/glibc-functions/openpty.texi: More supported platforms.
60536 2010-03-21  Bruno Haible  <bruno@clisp.org>
60538         setenv: Tweaks.
60539         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
60540         the test program.
60541         * doc/posix-functions/setenv.texi: Update platforms list.
60543 2010-03-21  Bruno Haible  <bruno@clisp.org>
60545         New module 'unlockpt'.
60546         * lib/unlockpt.c: New file, from glibc with modifications.
60547         * m4/unlockpt.m4: New file.
60548         * modules/unlockpt: New file.
60549         * lib/stdlib.in.h (unlockpt): New declaration.
60550         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
60551         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
60552         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
60553         HAVE_UNLOCKPT.
60554         * doc/posix-functions/unlockpt.texi: Mention the new module.
60555         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
60556         * config/srclist.txt: Add unlockpt.c (commented).
60558 2010-03-21  Jim Meyering  <meyering@redhat.com>
60560         maint.mk: prohibit inclusion of "intprops.h" without use
60561         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
60563 2010-03-21  Bruno Haible  <bruno@clisp.org>
60565         New module 'grantpt'.
60566         * lib/grantpt.c: New file, from glibc with modifications.
60567         * m4/grantpt.m4: New file.
60568         * modules/grantpt: New file.
60569         * lib/stdlib.in.h (grantpt): New declaration.
60570         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
60571         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
60572         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
60573         HAVE_GRANTPT.
60574         * doc/posix-functions/grantpt.texi: Mention the new module.
60575         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
60576         * config/srclist.txt: Add grantpt.c (commented).
60578 2010-03-21  Bruno Haible  <bruno@clisp.org>
60580         New module 'pt_chown'.
60581         * lib/pt_chown.c: New file, from glibc with modifications.
60582         * lib/pty-private.h: New file, from glibc with modifications.
60583         * modules/pt_chown: New file.
60584         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
60586 2010-03-21  Bruno Haible  <bruno@clisp.org>
60588         Tests for module 'ptsname'.
60589         * modules/ptsname-tests: New file.
60590         * tests/test-ptsname.c: New file.
60592         New module 'ptsname'.
60593         * lib/ptsname.c: New file, from glibc with modifications.
60594         * m4/ptsname.m4: New file.
60595         * modules/ptsname: New file.
60596         * lib/stdlib.in.h (ptsname): New declaration.
60597         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
60598         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
60599         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
60600         HAVE_PTSNAME.
60601         * doc/posix-functions/ptsname.texi: Mention the new module.
60602         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
60603         * config/srclist.txt: Add ptsname.c (commented).
60605 2010-03-21  Bruno Haible  <bruno@clisp.org>
60607         Tests for module 'ttyname_r'.
60608         * modules/ttyname_r-tests: New file.
60609         * tests/test-ttyname_r.c: New file.
60611         New module 'ttyname_r'.
60612         * lib/ttyname_r.c: New file.
60613         * m4/ttyname_r.m4: New file.
60614         * modules/ttyname_r: New file.
60615         * lib/unistd.in.h (ttyname_r): New declaration.
60616         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
60617         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
60618         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
60619         HAVE_TTYNAME_R.
60620         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
60621         * doc/posix-functions/ttyname_r.texi: Mention the new module.
60623 2010-03-20  Bruno Haible  <bruno@clisp.org>
60625         signal: Undefine macro definitions in C++ mode.
60626         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
60627         sigfillset): Undefine macro definitions from the system header in C++
60628         mode.
60629         Reported by John W. Eaton <jwe@gnu.org>.
60631 2010-03-20  Bruno Haible  <bruno@clisp.org>
60633         Ensure no #include statements inside extern "C" { ... }.
60634         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
60635         contain #include statements.
60636         * lib/time.in.h: Likewise.
60638 2010-03-20  Bruno Haible  <bruno@clisp.org>
60640         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
60641         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
60642         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
60643         Reported by John W. Eaton <jwe@gnu.org>.
60645 2010-03-20  Bruno Haible  <bruno@clisp.org>
60647         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
60648         Reported by Jim Meyering.
60650 2010-03-20  Bruno Haible  <bruno@clisp.org>
60652         pipe: Set errno upon failure.
60653         * lib/pipe.h: Specify that when -1 is returned, errno is set.
60654         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
60655         errno value in error message.
60657 2010-03-20  Bruno Haible  <bruno@clisp.org>
60658             Jim Meyering  <meyering@redhat.com>
60660         lchown: Avoid "unused variable" warning.
60661         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
60663 2010-03-20  Bruno Haible  <bruno@clisp.org>
60665         Work around unlink() bug on MacOS X 10.5.6.
60666         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
60667         attempting to unlink a parent directory.
60668         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
60669         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
60670         activate for the replacement function.
60671         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
60673 2010-03-20  Bruno Haible  <bruno@clisp.org>
60675         Fix link errors on Solaris 8.
60676         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
60677         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
60679 2010-03-19  Jim Meyering  <meyering@redhat.com>
60681         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
60682         The _LIBC implementation of build_range_exp correctly honors the
60683         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
60684         However, the non-_LIBC implementation would ignore that syntax-bit
60685         flag and return REG_ERANGE unconditionally.
60686         This change makes it honor that flag.
60687         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
60688         Make two pointer parameters "const".
60689         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
60690         (parse_bracket_exp): Update caller.
60692         regex.m4: correct the reversed range endpoint ([b-a]) test
60693         * m4/regex.m4: When requiring that [b-a] evoke failure,
60694         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
60695         test pass once again for x86-based systems.
60697 2010-03-19  Bruno Haible  <bruno@clisp.org>
60699         scandir: Fix link error on Solaris 8.
60700         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
60701         macros.
60703 2010-03-19  Bruno Haible  <bruno@clisp.org>
60705         getusershell: Fix documentation.
60706         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
60707         module.
60708         * doc/glibc-functions/setusershell.texi: Likewise.
60710         getusershell: Provide declaration, missing on Solaris 9.
60711         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
60712         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
60713         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
60714         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
60715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60716         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
60717         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
60718         HAVE_GETUSERSHELL.
60719         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
60721 2010-03-19  Bruno Haible  <bruno@clisp.org>
60723         wctype: Provide iswblank function.
60724         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
60725         exists and is fine.
60726         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
60727         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
60728         * tests/test-wctype.c (main): Re-enable the iswblank tests.
60729         * doc/posix-functions/iswblank.texi: Update.
60731 2010-03-19  Bruno Haible  <bruno@clisp.org>
60733         Tests of module 'pty' in C++ mode.
60734         * modules/pty-tests: New file.
60735         * tests/test-pty-c++.cc: New file.
60736         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
60738 2010-03-19  Eric Blake  <eblake@redhat.com>
60740         logb: fix documentation
60741         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
60742         1.5 declaration bug.
60744         forkpty, openpty: prefer glibc's const-safe prototype
60745         * lib/forkpty.c (rpl_forkpty): New file.
60746         * lib/openpty.c (rpl_openpty): Likewise.
60747         * modules/forkpty (Files): Distribute it.
60748         * modules/openpty (Files): Likewise.
60749         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
60750         check...
60751         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
60752         replacement for non-const BSD signature.
60753         * modules/pty (Makefile.am): Substitute witnesses.
60754         * lib/pty.in.h (forkpty, openpty): Declare replacements.
60755         * tests/test-forkpty.c: Update signature check.
60756         * tests/test-openpty.c: Likewise.
60757         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
60758         * doc/glibc-functions/openpty.texi (openpty): Likewise.
60760         forkpty, openpty: split functions into new modules
60761         * modules/pty (Makefile.am): Substitute new witnesses.
60762         (Libraries): Move library detection...
60763         * modules/forkpty: ...into new module.
60764         * modules/openpty: Another new module.
60765         * modules/pty-tests: Rename and split...
60766         * modules/forkpty-tests: ...to this...
60767         * modules/openpty-tests: ...and this.
60768         * tests/test-pty.c: Rename and split...
60769         * tests/test-forkpty.c: ...to this...
60770         * tests/test-openpty.c: ...and this.
60771         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
60772         (gl_PTY): Split library searching...
60773         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
60774         (gl_FORKPTY, gl_OPENPTY): New macros.
60775         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
60776         * NEWS: Mention the split.
60777         * MODULES.html.sh (Misc): Document the modules.
60778         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
60779         * doc/glibc-functions/openpty.texi (openpty): Likewise.
60781         pty: improve replacement header
60782         * lib/pty.in.h: New file.
60783         * modules/pty (Files): Ship it.
60784         (Makefile.am): Always build replacement.
60785         * m4/pty.m4: Rename...
60786         * m4/pty_h.m4: ...to this.
60787         (gl_PTY): Modernize setting of witness macros; update check of
60788         forkpty to take proper advantage of cache.
60789         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
60791         getopt: avoid compiler warning
60792         * lib/getopt.c (attribute_hidden): Remove unused macro.
60794 2010-03-18  Bruno Haible  <bruno@clisp.org>
60796         Fix link errors on Solaris 8.
60797         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
60798         * modules/search-tests (test_search_c___LDADD): Likewise.
60799         * modules/signal-tests (test_signal_c___LDADD): Likewise.
60800         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
60801         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
60802         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
60803         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
60804         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
60805         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
60807 2010-03-18  Bruno Haible  <bruno@clisp.org>
60809         Fix bug introduced on 2010-03-14.
60810         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
60811         (gl_SPAWN_H): Require it.
60812         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
60813         Reported by Simon Josefsson.
60815 2010-03-18  Bruno Haible  <bruno@clisp.org>
60817         Fix typo introduced on 2009-12-31.
60818         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
60819         posix_spawn_file_actions_adddup2.
60821 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
60822         and Eric Blake  <eblake@redhat.com>
60824         test-vc-list-files-git: make more robust
60825         * tests/test-vc-list-files-git.sh: Unset problematic environment
60826         variables.  Chain commands together.
60828 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
60830         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
60831         `AC_CHECK_DECL' invocation.
60833 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
60835         * lib/inttostr.c (inttostr): Make sure the invocation of verify
60836         appears before executable statements. Suggested by Petr Sumbera
60837         <Petr.Sumbera@Sun.COM>.
60839 2010-03-14  Bruno Haible  <bruno@clisp.org>
60841         * tests/test-flock.c (test_exclusive): Comment out a test that causes
60842         portability problems. Instead use a simpler test.
60843         (main): Check that invalid arguments are rejected only on Linux.
60845 2010-03-14  Bruno Haible  <bruno@clisp.org>
60847         Fix bug introduced on 2009-12-31.
60848         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
60849         gl_PREREQ_SYS_H_WINSOCK2 always.
60850         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
60851         SYS_SOCKET_H variable.
60852         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
60853         Update comments.
60854         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
60855         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
60856         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
60857         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
60858         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
60860 2010-03-14  Bruno Haible  <bruno@clisp.org>
60862         Fix values returned by sinl, cosl.
60863         * lib/trigl.h: Add specification comments.
60864         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
60865         that combines the values from the precomputed table with the values of
60866         the Chebyshev polynomials.
60868 2010-03-14  Bruno Haible  <bruno@clisp.org>
60870         Fix compilation error when modules 'posix_spawn[p]' are not used.
60871         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
60872         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
60874 2010-03-14  Bruno Haible  <bruno@clisp.org>
60876         Fix compilation error on mingw when module 'time_r' is not used.
60877         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
60878         is 1.
60879         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
60880         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
60881         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
60882         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
60884 2010-03-14  Bruno Haible  <bruno@clisp.org>
60886         Fix compilation error with Sun C.
60887         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
60888         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
60889         instead of GCC specific ULONG_LONG_MAX.
60890         * lib/xstrtoll.c: Likewise.
60891         * lib/xstrtoull.c: Likewise.
60893 2010-03-13  Bruno Haible  <bruno@clisp.org>
60895         Allow the user to disable C++ code and tests.
60896         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
60897         (gl_PROG_ANSI_CXX): Require it.
60899 2010-03-13  Bruno Haible  <bruno@clisp.org>
60901         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
60902         cases.
60904 2010-03-13  Bruno Haible  <bruno@clisp.org>
60906         Test that gnulib does not break the standard C++ headers.
60907         * tests/test-locale-c++2.cc: New file.
60908         * modules/locale-tests (Files): Add it.
60909         (Makefile.am): Compile it for test-locale-c++.
60910         * tests/test-math-c++2.cc: New file.
60911         * modules/math-tests (Files): Add it.
60912         (Makefile.am): Compile it for test-math-c++.
60913         * tests/test-signal-c++2.cc: New file.
60914         * modules/signal-tests (Files): Add it.
60915         (Makefile.am): Compile it for test-signal-c++.
60916         * tests/test-stdio-c++2.cc: New file.
60917         * modules/stdio-tests (Files): Add it.
60918         (Makefile.am): Compile it for test-stdio-c++.
60919         * tests/test-stdlib-c++2.cc: New file.
60920         * modules/stdlib-tests (Files): Add it.
60921         (Makefile.am): Compile it for test-stdlib-c++.
60922         * tests/test-string-c++2.cc: New file.
60923         * modules/string-tests (Files): Add it.
60924         (Makefile.am): Compile it for test-string-c++.
60925         * tests/test-time-c++2.cc: New file.
60926         * modules/time-tests (Files): Add it.
60927         (Makefile.am): Compile it for test-time-c++.
60928         Reported by John W. Eaton <jwe@gnu.org>.
60930 2010-03-13  Bruno Haible  <bruno@clisp.org>
60932         * gnulib-tool (func_usage): Clarify which options are available for
60933         --create-testdir and --create-megatestdir.
60935 2010-03-13  Bruno Haible  <bruno@clisp.org>
60937         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
60938         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
60939         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
60940         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
60941         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
60942         when appropriate.
60943         Reported by Jim Meyering.
60945 2010-03-12  Simon Josefsson  <simon@josefsson.org>
60947         * gnulib-tool (func_import): Explain origin of code.
60949 2010-03-12  Bruno Haible  <bruno@clisp.org>
60951         Fix problem with automake's definition of CXXLINK.
60952         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
60953         Reported by Simon Josefsson and Ludovic Courtès.
60955 2010-03-12  Bruno Haible  <bruno@clisp.org>
60957         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
60958         stable releases.
60960 2010-03-11  Bruno Haible  <bruno@clisp.org>
60962         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
60963         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
60964         whether the system provides one variant or multiple variants of the
60965         function.
60966         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
60967         C++ compilers.
60968         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
60969         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
60970         Reported by Jim Meyering.
60972 2010-03-09  Simon Josefsson  <simon@josefsson.org>
60974         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
60976 2010-03-08  Bruno Haible  <bruno@clisp.org>
60978         gnulib-tool: Add support for --libtool in --create-testdir.
60979         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
60980         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
60982 2010-03-08  Eric Blake  <eblake@redhat.com>
60984         gnulib-tool.texi: mention possibility of git submodule
60985         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
60986         submodules.
60987         * doc/.gitignore: Ignore another generated file.
60989 2010-03-08  Karl Berry  <karl@gnu.org>
60991         * doc/gnulib-tool.texi (VCS Issues): Mention third option
60992         of committing gnulib files while skipping others.
60994 2010-03-07  Bruno Haible  <bruno@clisp.org>
60996         Tests of module 'wctype' in C++ mode.
60997         * tests/test-wctype-c++.cc: New file.
60998         * modules/wctype-tests (Files): Add it and tests/signature.h.
60999         (Depends-on): Add ansi-c++-opt.
61000         (Makefile.am): Arrange to compile and run test-wctype-c++.
61002         Tests of module 'wchar' in C++ mode.
61003         * tests/test-wchar-c++.cc: New file.
61004         * modules/wchar-tests (Files): Add it and tests/signature.h.
61005         (Depends-on): Add ansi-c++-opt.
61006         (Makefile.am): Arrange to compile and run test-wchar-c++.
61007         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
61008         gl_MODULE_INDICATOR.
61010         Tests of module 'unistd' in C++ mode.
61011         * tests/test-unistd-c++.cc: New file.
61012         * modules/unistd-tests (Files): Add it and tests/signature.h.
61013         (Depends-on): Add ansi-c++-opt.
61014         (Makefile.am): Arrange to compile and run test-unistd-c++.
61015         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
61016         gl_MODULE_INDICATOR.
61018         Tests of module 'time' in C++ mode.
61019         * tests/test-time-c++.cc: New file.
61020         * modules/time-tests (Files): Add it and tests/signature.h.
61021         (Depends-on): Add ansi-c++-opt.
61022         (Makefile.am): Arrange to compile and run test-time-c++.
61023         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
61025         Tests of module 'sys_time' in C++ mode.
61026         * tests/test-sys_time-c++.cc: New file.
61027         * modules/sys_time-tests (Files): Add it and tests/signature.h.
61028         (Depends-on): Add ansi-c++-opt.
61029         (Makefile.am): Arrange to compile and run test-sys_time-c++.
61030         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
61031         gl_MODULE_INDICATOR.
61033         Tests of module 'sys_stat' in C++ mode.
61034         * tests/test-sys_stat-c++.cc: New file.
61035         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
61036         (Depends-on): Add ansi-c++-opt.
61037         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
61038         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
61039         gl_MODULE_INDICATOR.
61041         Tests of module 'sys_socket' in C++ mode.
61042         * tests/test-sys_socket-c++.cc: New file.
61043         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
61044         (Depends-on): Add ansi-c++-opt.
61045         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
61046         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
61047         gl_MODULE_INDICATOR.
61049         Tests of module 'sys_select' in C++ mode.
61050         * tests/test-sys_select-c++.cc: New file.
61051         * modules/sys_select-tests (Files): Add it and tests/signature.h.
61052         (Depends-on): Add ansi-c++-opt.
61053         (Makefile.am): Arrange to compile and run test-sys_select-c++.
61054         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
61055         gl_MODULE_INDICATOR.
61057         Tests of module 'sys_ioctl' in C++ mode.
61058         * tests/test-sys_ioctl-c++.cc: New file.
61059         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
61060         (Depends-on): Add ansi-c++-opt.
61061         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
61062         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
61063         gl_MODULE_INDICATOR.
61065         Tests of module 'string' in C++ mode.
61066         * tests/test-string-c++.cc: New file.
61067         * modules/string-tests (Files): Add it and tests/signature.h.
61068         (Depends-on): Add ansi-c++-opt.
61069         (Makefile.am): Arrange to compile and run test-string-c++.
61070         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
61071         gl_MODULE_INDICATOR.
61073         Tests of module 'stdlib' in C++ mode.
61074         * tests/test-stdlib-c++.cc: New file.
61075         * modules/stdlib-tests (Files): Add it and tests/signature.h.
61076         (Depends-on): Add ansi-c++-opt.
61077         (Makefile.am): Arrange to compile and run test-stdlib-c++.
61078         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
61079         gl_MODULE_INDICATOR.
61081         Tests of module 'stdio' in C++ mode.
61082         * tests/test-stdio-c++.cc: New file.
61083         * modules/stdio-tests (Files): Add it and tests/signature.h.
61084         (Depends-on): Add ansi-c++-opt.
61085         (Makefile.am): Arrange to compile and run test-stdio-c++.
61086         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
61087         gl_MODULE_INDICATOR.
61089         Tests of module 'spawn' in C++ mode.
61090         * tests/test-spawn-c++.cc: New file.
61091         * modules/spawn-tests (Files): Add it and tests/signature.h.
61092         (Depends-on): Add ansi-c++-opt.
61093         (Makefile.am): Arrange to compile and run test-spawn-c++.
61094         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
61095         gl_MODULE_INDICATOR.
61097         Tests of module 'signal' in C++ mode.
61098         * tests/test-signal-c++.cc: New file.
61099         * modules/signal-tests (Files): Add it and tests/signature.h.
61100         (Depends-on): Add ansi-c++-opt.
61101         (Makefile.am): Arrange to compile and run test-signal-c++.
61102         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
61103         gl_MODULE_INDICATOR.
61105         Tests of module 'search' in C++ mode.
61106         * tests/test-search-c++.cc: New file.
61107         * modules/search-tests (Files): Add it and tests/signature.h.
61108         (Depends-on): Add ansi-c++-opt.
61109         (Makefile.am): Arrange to compile and run test-search-c++.
61110         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
61111         gl_MODULE_INDICATOR.
61113         Tests of module 'math' in C++ mode.
61114         * tests/test-math-c++.cc: New file.
61115         * modules/math-tests (Files): Add it and tests/signature.h.
61116         (Depends-on): Add ansi-c++-opt.
61117         (Makefile.am): Arrange to compile and run test-math-c++.
61118         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
61120         Tests of module 'locale' in C++ mode.
61121         * tests/test-locale-c++.cc: New file.
61122         * modules/locale-tests (Files): Add it and tests/signature.h.
61123         (Depends-on): Add ansi-c++-opt.
61124         (Makefile.am): Arrange to compile and run test-locale-c++.
61125         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
61126         gl_MODULE_INDICATOR.
61128         Tests of module 'langinfo' in C++ mode.
61129         * tests/test-langinfo-c++.cc: New file.
61130         * modules/langinfo-tests (Files): Add it and tests/signature.h.
61131         (Depends-on): Add ansi-c++-opt.
61132         (Makefile.am): Arrange to compile and run test-langinfo-c++.
61133         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
61134         gl_MODULE_INDICATOR.
61136         Tests of module 'iconv-h' in C++ mode.
61137         * tests/test-iconv-h-c++.cc: New file.
61138         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
61139         (Depends-on): Add ansi-c++-opt.
61140         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
61142         Tests of module 'glob' in C++ mode.
61143         * tests/test-glob-c++.cc: New file.
61144         * modules/glob-tests (Files): Add it.
61145         (Depends-on): Add ansi-c++-opt.
61146         (Makefile.am): Arrange to compile and run test-glob-c++.
61148         Tests of module 'fcntl-h' in C++ mode.
61149         * tests/test-fcntl-h-c++.cc: New file.
61150         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
61151         (Depends-on): Add ansi-c++-opt.
61152         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
61153         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
61154         gl_MODULE_INDICATOR.
61156         Tests of module 'dirent' in C++ mode.
61157         * tests/test-dirent-c++.cc: New file.
61158         * modules/dirent-tests (Files): Add it and tests/signature.h.
61159         (Depends-on): Add ansi-c++-opt.
61160         (Makefile.am): Arrange to compile and run test-dirent-c++.
61161         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
61162         gl_MODULE_INDICATOR.
61164         New module 'ansi-c++-opt'.
61165         * modules/ansi-c++-opt: New file.
61166         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
61168         Document C++ namespace mode.
61169         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
61171         wctype: Avoid #define replacements in C++ mode.
61172         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
61173         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
61174         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
61175         In C++, define a namespaced alias symbol.
61176         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
61177         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
61178         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
61179         rule.
61181         wchar: Avoid #define replacements in C++ mode.
61182         * lib/wchar.in.h: Include c++defs.h.
61183         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
61184         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
61185         symbol.
61186         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
61187         * modules/wchar (Depends-on): Add c++defs.
61188         (Makefile.am): Update wchar.h rule.
61190         unistd: Avoid #define replacements in C++ mode.
61191         * lib/unistd.in.h: Include c++defs.h.
61192         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
61193         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
61194         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
61195         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
61196         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
61197         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
61198         symbol.
61199         (environ): Update.
61200         * modules/unistd (Depends-on): Add c++defs.
61201         (Makefile.am): Update unistd.h rule.
61203         time: Avoid #define replacements in C++ mode.
61204         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
61205         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
61206         define a namespaced alias symbol.
61207         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
61208         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
61209         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
61210         * modules/time (Depends-on): Add c++defs, warn-on-use.
61211         (Makefile.am): Update time.h rule.
61212         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
61213         * modules/nanosleep (configure.ac): Likewise.
61214         * modules/strptime (configure.ac): Likewise.
61215         * modules/timegm (configure.ac): Likewise.
61217         sys_time: Avoid #define replacements in C++ mode.
61218         * lib/sys_time.in.h: Include c++defs.h.
61219         (gettimeofday): In C++, define a namespaced alias symbol.
61220         * modules/sys_time (Depends-on): Add c++defs.
61221         (Makefile.am): Update sys/time.h rule.
61223         sys_stat: Avoid #define replacements in C++ mode.
61224         * lib/sys_stat.in.h: Include c++defs.h.
61225         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
61226         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
61227         namespaced alias symbol.
61228         In C++, define a namespaced alias symbol.
61229         * modules/sys_stat (Depends-on): Add c++defs.
61230         (Makefile.am): Update sys/stat.h rule.
61232         sys_socket: Avoid #define replacements in C++ mode.
61233         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
61234         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
61235         definitions also when the system has a <sys/socket.h>.
61236         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
61237         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
61238         In C++, define a namespaced alias symbol.
61239         * modules/sys_socket (Depends-on): Add c++defs.
61240         (Makefile.am): Update sys/socket.h rule.
61242         sys_select: Avoid #define replacements in C++ mode.
61243         * lib/sys_select.in.h: Include c++defs.h. Enable the function
61244         definitions also when the system has a <sys/select.h>.
61245         (select): In C++, define a namespaced alias symbol.
61246         * modules/sys_select (Depends-on): Add c++defs.
61247         (Makefile.am): Update sys/select.h rule.
61249         sys_ioctl: Avoid #define replacements in C++ mode.
61250         * lib/sys_ioctl.in.h: Include c++defs.h.
61251         (ioctl): In C++, define a namespaced alias symbol.
61252         * modules/sys_ioctl (Depends-on): Add c++defs.
61253         (Makefile.am): Update sys/ioctl.h rule.
61255         string: Avoid #define replacements in C++ mode.
61256         * lib/string.in.h: Include c++defs.h.
61257         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
61258         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
61259         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
61260         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
61261         strsignal, strverscmp): In C++, define a namespaced alias symbol.
61262         * modules/string (Depends-on): Add c++defs.
61263         (Makefile.am): Update string.h rule.
61265         stdlib: Avoid #define replacements in C++ mode.
61266         * lib/stdlib.in.h: Include c++defs.h.
61267         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
61268         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
61269         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
61270         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
61271         symbol.
61272         * modules/stdlib (Depends-on): Add c++defs.
61273         (Makefile.am): Update stdlib.h rule.
61275         stdio: Avoid #define replacements in C++ mode.
61276         * lib/stdio.in.h: Include c++defs.h.
61277         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
61278         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
61279         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
61280         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
61281         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
61282         namespaced alias symbol.
61283         * modules/stdio (Depends-on): Add c++defs.
61284         (Makefile.am): Update stdio.h rule.
61286         spawn: Avoid #define replacements in C++ mode.
61287         * lib/spawn.in.h: Include c++defs.h.
61288         (posix_spawn, posix_spawnp, posix_spawnattr_init,
61289         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
61290         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
61291         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
61292         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
61293         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
61294         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
61295         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
61296         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
61297         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
61298         In C++, define a namespaced alias symbol.
61299         * modules/spawn (Depends-on): Add c++defs.
61300         (Makefile.am): Update spawn.h rule.
61302         signal: Avoid #define replacements in C++ mode.
61303         * lib/signal.in.h: Include c++defs.h.
61304         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
61305         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
61306         namespaced alias symbol.
61307         * modules/signal (Depends-on): Add c++defs.
61308         (Makefile.am): Update signal.h rule.
61310         search: Avoid #define replacements in C++ mode.
61311         * lib/search.in.h: Include c++defs.h.
61312         (_gl_search_compar_fn, _gl_search_action_fn): New types.
61313         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
61314         symbol.
61315         * modules/search (Depends-on): Add c++defs.
61316         (Makefile.am): Update search.h rule.
61318         math: Avoid #define replacements in C++ mode.
61319         * lib/math.in.h: Include c++defs.h.
61320         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
61321         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
61322         trunc, truncl): In C++, define a namespaced alias symbol.
61323         * modules/math (Depends-on): Add c++defs.
61324         (Makefile.am): Update math.h rule.
61326         locale: Avoid #define replacements in C++ mode.
61327         * lib/locale.in.h: Include c++defs.h.
61328         (duplocale): In C++, define a namespaced alias symbol.
61329         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
61330         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
61331         * modules/locale (Depends-on): Add c++defs.
61332         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
61334         langinfo: Avoid #define replacements in C++ mode.
61335         * lib/langinfo.in.h: Include c++defs.h.
61336         (nl_langinfo): In C++, define a namespaced alias symbol.
61337         * modules/langinfo (Depends-on): Add c++defs.
61338         (Makefile.am): Update langinfo.h rule.
61340         iconv-h: Avoid #define replacements in C++ mode.
61341         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
61342         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
61343         symbol.
61344         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
61345         whenever iconv is present.
61346         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
61347         (Makefile.am): Update iconv.h rule.
61349         glob: Avoid #define replacements in C++ mode.
61350         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
61351         (_gl_glob_errfunc_fn): New type.
61352         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
61353         symbol.
61354         * modules/glob (Depends-on): Add c++defs, warn-on-use.
61355         (Makefile.am): Update glob.h rule.
61357         fcntl-h: Avoid #define replacements in C++ mode.
61358         * lib/fcntl.in.h: Include c++defs.h.
61359         (fcntl, open, openat): In C++, define a namespaced alias symbol.
61360         * modules/fcntl-h (Depends-on): Add c++defs.
61361         (Makefile.am): Update fcntl.h rule.
61363         dirent: Avoid #define replacements in C++ mode.
61364         * lib/dirent.in.h: Include c++defs.h.
61365         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
61366         namespaced alias symbol.
61367         (dirfd): Update declaration.
61368         * modules/dirent (Depends-on): Add c++defs.
61369         (Makefile.am): Update dirent.h rule.
61371         ctype: Make it usable in C++ code.
61372         * lib/ctype.in.h: Include c++defs.h.
61373         (isblank): Declare as extern "C".
61374         * modules/ctype (Depends-on): Add c++defs.
61375         (Makefile.am): Update ctype.h rule.
61377         New module 'c++defs'.
61378         * modules/c++defs: New file.
61379         * build-aux/c++defs.h: New file.
61380         Reported by John W. Eaton <jwe@gnu.org>.
61382 2010-03-07  Bruno Haible  <bruno@clisp.org>
61384         logb: Provide missing declaration for Cygwin.
61385         * lib/math.in.h (logb): New declaration.
61386         * m4/logb.m4: New file.
61387         * modules/logb (Files): Add m4/logb.m4.
61388         (Depends-on): Add math.
61389         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
61390         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
61391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
61392         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
61393         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
61395 2010-03-07  Bruno Haible  <bruno@clisp.org>
61397         Fix test-cond link error.
61398         * tests/test-cond.c: Include <stdio.h>.
61400 2010-03-07  Bruno Haible  <bruno@clisp.org>
61402         Fix test-dirent-safer link error.
61403         * modules/dirent-safer-tests (Makefile.am): Define
61404         test_dirent_safer_LDADD.
61406 2010-03-07  Bruno Haible  <bruno@clisp.org>
61408         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
61409         among default module list.
61411 2010-03-07  Bruno Haible  <bruno@clisp.org>
61413         Fix link error on platforms with GNU libiconv.
61414         * modules/unistr/u8-strcoll-tests (Makefile): Define
61415         test_u8_strcoll_LDADD.
61416         * modules/unistr/u16-strcoll-tests (Makefile): Define
61417         test_u16_strcoll_LDADD.
61418         * modules/unistr/u32-strcoll-tests (Makefile): Define
61419         test_u32_strcoll_LDADD.
61421 2010-03-07  Bruno Haible  <bruno@clisp.org>
61423         Use POSIX declarations for socket functions.
61424         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
61425         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
61426         rpl_sendto): Change declaration to match POSIX.
61427         * lib/connect.c (rpl_connect): Likewise.
61428         * lib/accept.c (rpl_accept): Likewise.
61429         * lib/bind.c (rpl_bind): Likewise.
61430         * lib/getpeername.c (rpl_getpeername): Likewise.
61431         * lib/getsockname.c (rpl_getsockname): Likewise.
61432         * lib/recv.c (rpl_recv): Likewise.
61433         * lib/send.c (rpl_send): Likewise.
61434         * lib/recvfrom.c (rpl_recvfrom): Likewise.
61435         * lib/sendto.c (rpl_sendto): Likewise.
61437 2010-03-06  Bruno Haible  <bruno@clisp.org>
61439         Clarify access, euidaccess, faccessat.
61440         * doc/posix-functions/faccessat.texi: Mention security problem under
61441         "Other problems", not "Portability problems".
61442         * doc/posix-functions/access.texi: Likewise. Mention a related security
61443         problem.
61444         * doc/glibc-functions/euidaccess.texi: Mention security problems.
61445         * lib/euidaccess.c: Add comments about platforms.
61446         * lib/unistd.in.h (access, euidaccess): Add warnings.
61448 2010-03-07  Bruno Haible  <bruno@clisp.org>
61450         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
61451         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
61452         (POSIX_SPAWN_SETSCHEDULER): Likewise.
61453         (POSIX_SPAWN_USEVFORK): Define in a way that works when
61454         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
61455         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
61456         declare when POSIX_SPAWN_SETSCHEDULER is zero.
61457         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
61458         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
61459         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
61460         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
61461         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
61462         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
61463         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
61464         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
61465         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
61466         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
61467         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
61468         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
61469         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
61470         Likewise.
61471         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
61472         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
61473         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
61474         Likewise.
61475         * tests/test-spawn.c (main): Make it work when
61476         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
61478 2010-03-07  Bruno Haible  <bruno@clisp.org>
61480         Fix incorrect Makefile.am generation in German locale.
61481         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61482         Execute sed command with character range in C locale.
61484 2010-03-06  Bruno Haible  <bruno@clisp.org>
61486         Tests for module 'iconv-h'.
61487         * modules/iconv-h-tests: New file.
61488         * tests/test-iconv-h.c: New file.
61490         New module 'iconv-h'.
61491         * modules/iconv-h: New file.
61492         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
61493         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
61494         (configure.ac): Remove gl_ICONV_H.
61495         (Makefile.am): Remove rule for iconv.h.
61497 2010-03-06  Bruno Haible  <bruno@clisp.org>
61499         More consistent naming of *.m4 files.
61500         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
61501         * modules/wctype (Files): Update.
61503         More consistent naming of *.m4 files.
61504         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
61505         * modules/wchar (Files): Update.
61507 2010-03-06  Jim Meyering  <meyering@redhat.com>
61509         euidaccess: relax license to LGPLv2+
61510         * modules/euidaccess (License): Relax to LGPLv2+.
61512 2010-03-06  Bruno Haible  <bruno@clisp.org>
61514         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
61515         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
61516         (Makefile.am): Augment lib_SOURCES instead.
61518 2010-03-04  Jim Meyering  <meyering@redhat.com>
61520         utime: remove obsolete module
61521         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
61522         unnecessary for years, and has been marked as obsolete for 10 months.
61523         * modules/utime: Remove file.
61524         * lib/utime.c: Remove file.
61525         * m4/utime.m4: Remove file.
61526         * m4/utimes-null.m4: Remove file.
61527         * doc/posix-functions/utime.texi (utime): Remove reference to
61528         the module.  Move the sole "fixed by gnulib" item into the
61529         "problems not fixed by Gnulib" list.
61530         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
61532 2010-03-05  Simon Josefsson  <simon@josefsson.org>
61534         * modules/exit (License): Relax license to LGPLv2+.
61535         (Status): Mark as obsolete.
61536         * NEWS: Mention deprecated 'exit' module.
61537         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
61538         of now obsolete 'exit'.
61540 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61542         fts-lgpl: remove unused module
61543         * modules/fts-lgpl: Remove.
61544         * MODULES.html.sh (func_all_modules): Adjust.
61545         * check-module (find_included_lib_files): Adjust.
61546         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
61548 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
61550         copy-acl: enhance Solaris ACL error handling
61551         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
61552         * lib/set-mode-acl.c (qset_acl): Likewise.
61554 2010-03-02  Bruno Haible  <bruno@clisp.org>
61556         spawn: Don't override the system defined values on FreeBSD 8.
61557         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
61558         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
61559         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
61560         if HAVE_POSIX_SPAWN is 1.
61561         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
61563 2010-03-01  Bruno Haible  <bruno@clisp.org>
61565         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
61566         regarding Automake.
61568 2010-02-25  Bruno Haible  <bruno@clisp.org>
61570         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
61571         * gnulib-tool: Define 'echo' as a function only before the ksh alias
61572         setting, not afterwards.
61573         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
61575 2010-02-24  Eric Blake  <eblake@redhat.com>
61577         bootstrap, git-version-gen: use timestamp
61578         * build-aux/git-version-gen (scriptversion): Force UTC.
61579         * build-aux/bootstrap (scriptversion): New variable.
61581         bootstrap: allow older git
61582         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
61583         older than 1.6.4.  Requested by the libvirt project.
61585 2010-02-23  Eric Blake  <eblake@redhat.com>
61587         warn-on-use: work with old autoconf
61588         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
61589         AS_VAR semantics of autoconf 2.60.
61590         Reported by Bruno Haible.
61592         bootstrap: improve some comments
61593         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
61594         clarification comments.
61596         gettimeofday: provide correct function
61597         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
61598         when replacement is declared, otherwise provide gettimeofday.
61599         Reported by Michael Goffioul.
61601 2010-02-23  Jim Meyering  <meyering@redhat.com>
61603         lib-ignore: relax license to "unlimited", not LGPLv2+
61604         * modules/lib-ignore (License): Relax to "unlimited".
61606 2010-02-23  Jim Meyering  <meyering@redhat.com>
61608         lib-ignore: relax license to LGPLv2+
61609         * modules/lib-ignore (License): Relax to LGPLv2+.
61611 2010-02-22  Eric Blake  <eblake@redhat.com>
61613         lseek: avoid bash 3.2 broken pipe bug
61614         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
61615         warning from bash 3.2.
61616         Reported by Ben Pfaff, with analysis from Bruno Haible.
61618         bootstrap: support non-FSF copyright holder
61619         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
61620         bootstrap.conf override of COPYRIGHT_HOLDER.
61621         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
61623         bootstrap: interoperate with gettext 0.14.1
61624         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
61626         bootstrap: allow for alternate submodule location
61627         * build-aux/bootstrap (gnulib_path): New variable; use instead of
61628         hardcoding submodule location.
61629         (gnulib_mk): Allow direct use of Makefile.am.
61631         bootstrap: use GNULIB_SRCDIR to reduce disk usage
61632         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
61633         rather than reconfiguring where the submodule points.
61635         gettimeofday: restore support for platforms that lack function
61636         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
61637         replacement if function is missing.
61638         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
61639         * modules/sys_time (Makefile.am): Substitute it.
61640         * lib/sys_time.in.h (gettimeofday): Check it.
61641         Reported by Michael Goffioul.
61643 2010-02-21  Bruno Haible  <bruno@clisp.org>
61645         * lib/stdio.in.h (obstack_printf): Fix typo.
61647 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
61649         vc-list-files: use bzr ls's -R option
61650         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
61651         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
61653 2010-02-21  Jim Meyering  <meyering@redhat.com>
61655         init.sh: fix EXEEXT shims to work also for names like test-prog
61656         * tests/init.sh: Re-exec a better shell, when needed.
61657         If the current shell lacks support for posix $(...), an init.sh-using
61658         test will now try to find a shell that supports that.  If EXEEXT is
61659         nonempty, we also require support for hyphen-in-alias-name and shell
61660         substitutions like ${var#glob}.  Failure to find such a shell results
61661         in a skipped test.
61663 2010-02-21  Bruno Haible  <bruno@clisp.org>
61665         Really work around "broken pipe" error message from bash 3.2.
61666         * gnulib-tool (func_reset_sigpipe): Remove function.
61667         (echo): In bash 3.2, define to a function that uses printf.
61668         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
61670 2010-02-20  Bruno Haible  <bruno@clisp.org>
61672         Restore support for automake 1.9.6 with autoconf 2.61.
61673         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
61674         Reported by James Youngman <jay@gnu.org>.
61676 2010-02-20  Bruno Haible  <bruno@clisp.org>
61678         Improve *printf warning condition.
61679         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
61680         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
61681         and the function is overridden due to SIGPIPE emulation.
61683 2010-02-20  Bruno Haible  <bruno@clisp.org>
61685         * lib/stdio.in.h: Tweak comments.
61687 2010-02-19  Bruno Haible  <bruno@clisp.org>
61689         Make it easier to find modules. New gnulib-tool option '--find'.
61690         * gnulib-tool: New option --find.
61691         (func_usage): Document it.
61692         (func_sanitize_modulelist): New function, extracted from
61693         func_all_modules.
61694         (func_all_modules): Invoke it.
61695         * doc/gnulib-tool.texi (Which modules?): New node.
61697 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
61699         * lib/sys_select.in.h: Provide select replacement even if
61700         sys/select.h exists on a system, for Interix.
61702 2010-02-18  Jim Meyering  <meyering@redhat.com>
61704         init.sh: don't use $(...) just yet
61705         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
61706         to accommodate e.g., Solaris' /bin/sh.
61708 2010-02-17  Bruno Haible  <bruno@clisp.org>
61710         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
61711         Reported by Ludovic Courtès <ludo@gnu.org>.
61713 2010-02-16  Simon Josefsson  <simon@josefsson.org>
61715         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
61716         linking with -lintl.
61718 2010-02-17  Simon Josefsson  <simon@josefsson.org>
61720         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
61721         if not provided by the system's netdb.h.  Reported by
61722         ludo@gnu.org (Ludovic Courtès).
61724 2010-02-15  Jim Meyering  <meyering@redhat.com>
61726         init.sh: improve portability and efficiency
61727         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
61728         "dummy" in a for loop.
61729         Use '!', not '^' to select the complement of a character set used
61730         in a "case" statement.
61731         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
61732         Suggestions from Eric Blake.
61734         init.sh: automatically accommodate programs with the .exe suffix
61735         Automatically arrange for an invocation of "prog" to execute the
61736         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
61737         may use the simpler "prog", yet still work when built on a system
61738         that requires specifying the added suffix.
61739         Do this by constructing a function named "prog" that invokes
61740         "prog.exe" for each .exe file in selected directories.
61741         * tests/init.sh (find_exe_basenames_): New function.
61742         (create_exe_shim_functions_): New function.
61743         (path_prepend_): Use it.
61745         maint.mk: mark syntax-check sc_*.m rules as .PHONY
61746         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
61747         "make -t syntax-check" doesn't create a ton of sc_*.m files.
61749 2010-02-14  Jim Meyering  <meyering@redhat.com>
61751         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
61752         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
61753         (sc_prohibit_hash_pjw_without_use): New rule.
61755         maint.mk: allow the default upload destination dir to be overridden
61756         * top/maint.mk (upload_dest_dir_): Define with a default that
61757         preserves the status quo.
61758         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
61759         Reported by Peter Simons.
61761         maint.mk: prohibit inclusion of "hash.h" without_use
61762         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
61764 2010-02-10  Jim Meyering  <meyering@redhat.com>
61766         maint.mk: prohibit inclusion of "ignore-value.h" without_use
61767         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
61769 2010-02-09  Eric Blake  <ebb9@byu.net>
61770         and Bruno Haible  <bruno@clisp.org>
61772         obstack-printf-posix: ensure declaration
61773         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
61774         extracted from gl_FUNC_OBSTACK_PRINTF.
61775         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
61776         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
61777         Likewise.
61778         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
61779         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
61780         0.
61782 2010-02-08  Bruno Haible  <bruno@clisp.org>
61784         gnulib-tool: Fix typo in 2010-02-07 commit.
61785         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
61786         Reported by Eric Blake.
61788 2010-02-07  Bruno Haible  <bruno@clisp.org>
61790         gnulib-tool: Fix up caching patches.
61791         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
61792         option --no-cache. Use associative arrays when supported by the shell.
61793         (sed_comments): New variable.
61794         (modcache): Renamed from do_cache.
61795         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
61796         abbreviate unnecessarily.
61797         (have_associative): New variable.
61798         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
61799         way also for ksh and zsh.
61800         (func_init_sed_convert_to_cache_statements): New function, extracted
61801         from func_cache_lookup_module. Add support for associative arrays.
61802         Don't set the c_MODULE_cached variable here. Ignore all lines before
61803         the first field header. Remove only the final newline, not all trailing
61804         newlines. Support empty fields correctly. Limit the use of 'eval' to
61805         assignments.
61806         (func_get_description, func_get_status, func_get_notice,
61807         func_get_applicability, func_get_filelist, func_get_dependencies,
61808         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
61809         func_get_automake_snippet, func_get_include_directive,
61810         func_get_link_directive, func_get_license, func_get_maintainer):
61811         Update documentation. List the unoptimized code first. Add support for
61812         associative arrays. Limit the use of 'eval' to assignments.
61813         (func_get_applicability): Undo stylistic pessimisations.
61814         (func_get_automake_snippet, func_get_include_directive): Reduce code
61815         duplication.
61816         (func_modules_transitive_closure, func_modules_add_dummy,
61817         func_modules_notice, func_modules_to_filelist, func_add_file,
61818         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
61819         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
61820         func_create_testdir, func_create_megatestdir): Update documentation.
61822 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61824         * gnulib-tool (func_cache_lookup_module): Store the module name
61825         belonging to the cache variable; error out if two different
61826         module names map to the same cache variable name.
61828 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61830         gnulib-tool: Make caching optional.
61831         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
61832         Update matching short versions of --no-changelog.
61833         (func_usage): Update.
61834         (sed_extract_cache_prog): Renamed from ...
61835         (sed_extract_prog): ... this; revert to old extraction script.
61836         (func_get_description, func_get_status)
61837         (func_get_notice, func_get_applicability, func_get_filelist)
61838         (func_get_dependencies, func_get_autoconf_early_snippet)
61839         (func_get_autoconf_snippet, func_get_automake_snippet)
61840         (func_get_include_directive, func_get_link_directive)
61841         (func_get_license, func_get_maintainer): If $do_cache is false,
61842         use old, non-caching extraction scripts.
61843         Suggestion by Bruno Haible.
61845 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61847         gnulib-tool: cache module metainformation.
61848         * gnulib-tool (sed_extract_prog): Match newline before each
61849         header, and rewrite header to a shell variable suffix.
61850         (func_cache_var, func_cache_lookup_module): New functions,
61851         to turn a module name into a cache variable prefix, and to
61852         look up and cache module metainformation.
61853         (func_get_description, func_get_status)
61854         (func_get_notice, func_get_applicability, func_get_filelist)
61855         (func_get_dependencies, func_get_autoconf_early_snippet)
61856         (func_get_autoconf_snippet, func_get_automake_snippet)
61857         (func_get_include_directive, func_get_link_directive)
61858         (func_get_license, func_get_maintainer): Use
61859         func_cache_lookup_module.
61861 2010-02-07  Bruno Haible  <bruno@clisp.org>
61863         fnctl: Fix missing dependency.
61864         * modules/fcntl (Depends-on): Add getdtablesize.
61865         Reported by John W. Eaton <jwe@gnu.org>.
61867 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
61869         Argp: fix recognition of short alias options.
61871         * lib/argp-parse.c (convert_options): Fix improper use of
61872         `|' between character values.
61873         * tests/test-argp.c (group1_option): New alias option
61874         --read (-r).
61875         (group1_parser): Special handling for 'r'.
61876         (test15): New test case.
61877         (test_fun): Add test15.
61878         * tests/test-argp-2.sh: Update expected --help and --usage
61879         outputs.
61881 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
61883         * tests/test-argp.c: Fix indentation.
61885 2010-02-04  Eric Blake  <ebb9@byu.net>
61887         gettimeofday: expose type of second argument
61888         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
61889         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
61890         * tests/test-gettimeofday.c: Use it to silence warning.
61891         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
61892         the issue.
61894 2010-02-03  Jim Meyering  <meyering@redhat.com>
61896         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
61897         * lib/regcomp.c (TYPE_SIGNED): Define.
61898         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
61900         regcomp.c: avoid a new -Wshadow warning
61901         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
61903 2010-02-01  Jim Meyering  <meyering@redhat.com>
61905         removing useless parentheses in cpp #define directives
61906         For motivation, see commit c0221df4, "define STREQ(a,b)
61907         consistently, removing useless parentheses"
61908         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
61909         * lib/mountlist.c (MNT_IGNORE): Likewise.
61910         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
61912 2010-02-01  Eric Blake  <ebb9@byu.net>
61914         sys_time: use link-warning
61915         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
61916         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
61917         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
61918         * modules/sys_time (Depends-on): Add warn-on-use.
61919         (Makefile.am): Always build replacement.
61920         (configure.ac): Update substitutions.
61921         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
61922         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
61923         bother with SYS_TIME_H.
61924         * modules/gettimeofday (configure.ac): Declare indicator.
61925         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
61926         in use.
61928         closein-tests: silence compiler warning
61929         * tests/test-closein.c (main): Ignore fread result.
61930         * modules/closein-tests (Depends-on): Add ignore-value.
61932         tests: silence warning about system return
61933         * tests/test-areadlink-with-size.c (main): Ignore system result.
61934         * tests/test-areadlink.c (main): Likewise.
61935         * tests/test-areadlinkat-with-size.c (main): Likewise.
61936         * tests/test-areadlinkat.c (main): Likewise.
61937         * tests/test-canonicalize-lgpl.c (main): Likewise.
61938         * tests/test-canonicalize.c (main): Likewise.
61939         * tests/test-chown.c (main): Likewise.
61940         * tests/test-fchownat.c (main): Likewise.
61941         * tests/test-fdutimensat.c (main): Likewise.
61942         * tests/test-fstatat.c (main): Likewise.
61943         * tests/test-futimens.c (main): Likewise.
61944         * tests/test-lchown.c (main): Likewise.
61945         * tests/test-link.c (main): Likewise.
61946         * tests/test-linkat.c (main): Likewise.
61947         * tests/test-lstat.c (main): Likewise.
61948         * tests/test-mkdir.c (main): Likewise.
61949         * tests/test-mkdirat.c (main): Likewise.
61950         * tests/test-mkfifo.c (main): Likewise.
61951         * tests/test-mkfifoat.c (main): Likewise.
61952         * tests/test-mknod.c (main): Likewise.
61953         * tests/test-readlink.c (main): Likewise.
61954         * tests/test-remove.c (main): Likewise.
61955         * tests/test-rename.c (main): Likewise.
61956         * tests/test-renameat.c (main): Likewise.
61957         * tests/test-rmdir.c (main): Likewise.
61958         * tests/test-symlink.c (main): Likewise.
61959         * tests/test-symlinkat.c (main): Likewise.
61960         * tests/test-unlink.c (main): Likewise.
61961         * tests/test-unlinkat.c (main): Likewise.
61962         * tests/test-utimens.c (main): Likewise.
61963         * tests/test-utimensat.c (main): Likewise.
61964         * modules/areadlink-tests (Depends-on): Add ignore-value.
61965         * modules/areadlink-with-size-tests (Depends-on): Likewise.
61966         * modules/areadlinkat-tests (Depends-on): Likewise.
61967         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
61968         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
61969         * modules/canonicalize-tests (Depends-on): Likewise.
61970         * modules/chown-tests (Depends-on): Likewise.
61971         * modules/fdutimensat-tests (Depends-on): Likewise.
61972         * modules/futimens-tests (Depends-on): Likewise.
61973         * modules/lchown-tests (Depends-on): Likewise.
61974         * modules/link-tests (Depends-on): Likewise.
61975         * modules/linkat-tests (Depends-on): Likewise.
61976         * modules/lstat-tests (Depends-on): Likewise.
61977         * modules/mkdir-tests (Depends-on): Likewise.
61978         * modules/mkfifo-tests (Depends-on): Likewise.
61979         * modules/mkfifoat-tests (Depends-on): Likewise.
61980         * modules/mknod-tests (Depends-on): Likewise.
61981         * modules/openat-tests (Depends-on): Likewise.
61982         * modules/readlink-tests (Depends-on): Likewise.
61983         * modules/remove-tests (Depends-on): Likewise.
61984         * modules/rename-tests (Depends-on): Likewise.
61985         * modules/renameat-tests (Depends-on): Likewise.
61986         * modules/rmdir-tests (Depends-on): Likewise.
61987         * modules/symlink-tests (Depends-on): Likewise.
61988         * modules/symlinkat-tests (Depends-on): Likewise.
61989         * modules/unlink-tests (Depends-on): Likewise.
61990         * modules/utimens-tests (Depends-on): Likewise.
61991         * modules/utimensat-tests (Depends-on): Likewise.
61993 2010-01-31  Bruno Haible  <bruno@clisp.org>
61995         Perform the same test for many <math.h> functions.
61996         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
61997         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
61998         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
61999         of gl_MATHFUNC.
62000         * modules/acos (configure.ac): Likewise.
62001         * modules/asin (configure.ac): Likewise.
62002         * modules/atan (configure.ac): Likewise.
62003         * modules/atan2 (configure.ac): Likewise.
62004         * modules/cbrt (configure.ac): Likewise.
62005         * modules/copysign (configure.ac): Likewise.
62006         * modules/cos (configure.ac): Likewise.
62007         * modules/cosh (configure.ac): Likewise.
62008         * modules/erf (configure.ac): Likewise.
62009         * modules/erfc (configure.ac): Likewise.
62010         * modules/exp (configure.ac): Likewise.
62011         * modules/fmod (configure.ac): Likewise.
62012         * modules/hypot (configure.ac): Likewise.
62013         * modules/j0 (configure.ac): Likewise.
62014         * modules/j1 (configure.ac): Likewise.
62015         * modules/jn (configure.ac): Likewise.
62016         * modules/lgamma (configure.ac): Likewise.
62017         * modules/log (configure.ac): Likewise.
62018         * modules/log10 (configure.ac): Likewise.
62019         * modules/log1p (configure.ac): Likewise.
62020         * modules/pow (configure.ac): Likewise.
62021         * modules/remainder (configure.ac): Likewise.
62022         * modules/sin (configure.ac): Likewise.
62023         * modules/sinh (configure.ac): Likewise.
62024         * modules/tan (configure.ac): Likewise.
62025         * modules/tanh (configure.ac): Likewise.
62026         * modules/y0 (configure.ac): Likewise.
62027         * modules/y1 (configure.ac): Likewise.
62028         * modules/yn (configure.ac): Likewise.
62029         Suggested by Paolo Bonzini.
62031 2010-01-31  Bruno Haible  <bruno@clisp.org>
62033         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
62035 2010-01-31  Bruno Haible  <bruno@clisp.org>
62037         Work around getdelim() bug on FreeBSD 8.0.
62038         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
62039         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
62040         not work.
62041         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
62042         is 1.
62043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
62044         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
62045         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
62046         a non-zero size.
62047         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
62049 2010-01-31  Bruno Haible  <bruno@clisp.org>
62051         Work around getline() bug on FreeBSD 8.0.
62052         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
62053         and a non-zero size.
62054         * tests/test-getline.c (main): Likewise.
62055         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
62056         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
62058 2010-01-28  Eric Blake  <ebb9@byu.net>
62060         regex: fix build failure
62061         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
62062         platforms.
62064 2010-01-28  Jim Meyering  <meyering@redhat.com>
62066         regex: do not ignore memory allocation failure
62067         * lib/regex_internal.c (create_cd_newstate): Detect
62068         re_node_set_init_copy failure.   Extracted from glibc commit
62069         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
62071         regex: sync more white-space changes from libc
62072         * lib/regex_internal.c: White-space only changes.
62073         * lib/regexec.c: Likewise.
62075         regex: add many uses of __attribute_warn_unused_result__
62076         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
62077         * lib/regexec.c: Likewise.
62078         Extracted from a messy glibc commit.
62080         regcomp.c: spelling and merge-artifact from glibc
62081         * lib/regcomp.c: Merge remainder of glibc's
62082         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
62084         regcomp.c: sync white-space changes from glibc
62085         * lib/regcomp.c: Merge to accommodate white space
62086         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
62088         regcomp.c: do not ignore internal return values
62089         * lib/regcomp.c: Do not ignore internal return values.
62090         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
62091         but without its white-space changes and spelling fixes.
62093         regex_internal.h: define __attribute_warn_unused_result__
62094         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
62096         maint: add a syntax-check rule to check for vulnerable Makefile.in
62097         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
62099 2010-01-27  Jim Meyering  <meyering@redhat.com>
62101         ncftpput-ftp: clean up spaces
62102         * build-aux/ncftpput-ftp: Make Copyright line consistent.
62103         Remove trailing blanks.
62105 2010-01-27  Simon Josefsson  <simon@josefsson.org>
62107         * build-aux/git-version-gen: Fix copyright statement.
62108         * build-aux/gnupload: Likewise.
62109         * tests/test-arcfour.c: Likewise.
62110         * tests/test-arctwo.c: Likewise.
62111         * tests/test-count-one-bits.c: Likewise.
62112         * tests/test-crc.c: Likewise.
62113         * tests/test-des.c: Likewise.
62114         * tests/test-gc-arcfour.c: Likewise.
62115         * tests/test-gc-arctwo.c: Likewise.
62116         * tests/test-gc-des.c: Likewise.
62117         * tests/test-gc-hmac-md5.c: Likewise.
62118         * tests/test-gc-hmac-sha1.c: Likewise.
62119         * tests/test-gc-md2.c: Likewise.
62120         * tests/test-gc-md4.c: Likewise.
62121         * tests/test-gc-md5.c: Likewise.
62122         * tests/test-gc-pbkdf2-sha1.c: Likewise.
62123         * tests/test-gc-rijndael.c: Likewise.
62124         * tests/test-gc-sha1.c: Likewise.
62125         * tests/test-gc.c: Likewise.
62126         * tests/test-gethostname.c: Likewise.
62127         * tests/test-gettimeofday.c: Likewise.
62128         * tests/test-hash.c: Likewise.
62129         * tests/test-hmac-md5.c: Likewise.
62130         * tests/test-hmac-sha1.c: Likewise.
62131         * tests/test-md2.c: Likewise.
62132         * tests/test-md4.c: Likewise.
62133         * tests/test-md5.c: Likewise.
62134         * tests/test-memchr.c: Likewise.
62135         * tests/test-memchr2.c: Likewise.
62136         * tests/test-memcmp.c: Likewise.
62137         * tests/test-memmem.c: Likewise.
62138         * tests/test-memrchr.c: Likewise.
62139         * tests/test-rawmemchr.c: Likewise.
62140         * tests/test-read-file.c: Likewise.
62141         * tests/test-rijndael.c: Likewise.
62142         * tests/test-sockets.c: Likewise.
62143         * tests/test-strchrnul.c: Likewise.
62144         * tests/test-strstr.c: Likewise.
62145         * tests/test-strtod.c: Likewise.
62146         * build-aux/ncftpput-ftp: Likewise.
62148 2010-01-26  Eric Blake  <ebb9@byu.net>
62150         ignore-value: update recommended header name
62151         * modules/ignore-value (Include): Only use <> for headers that
62152         exist in glibc.
62154 2010-01-26  Jim Meyering  <meyering@redhat.com>
62156         test-userspec.c: avoid compiler warnings
62157         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
62158         and "initialization discards qualifiers..." warnings.
62159         Put the first "uid" in its own scope, and make char* members "const".
62161 2010-01-25  Bruno Haible  <bruno@clisp.org>
62163         gnulib-tool: Make warning diagnostics consistent.
62164         * gnulib-tool (func_warning): New function.
62165         Use it everywhere where gnulib-tool produces output to stderr and it is
62166         not a fatal error.
62168 2010-01-25  Bruno Haible  <bruno@clisp.org>
62170         Fix test dependencies.
62171         * modules/xstrtol-tests (Depends-on): Add inttypes.
62172         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
62174 2010-01-25  Pádraig Brady  <P@draigBrady.com>
62176         syntax-check: detect incorrect boolean macro values in config.h
62177         * modules/maintainer-makefile (configure.ac): Parameterize the location
62178         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
62179         The logic is from Eric Blake and the location indicated by Jim Meyering.
62180         Note the more natural CONFIG_HEADER name is prohibited by automake
62181         for backwards compatibility reasons.
62182         * top/maint.mk (sc_Wundef_boolean): New rule.
62184 2010-01-25  Jim Meyering  <meyering@redhat.com>
62186         bootstrap: detect MacOS 10.6's shasum, too
62187         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
62188         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
62190 2010-01-23  Jim Meyering  <meyering@redhat.com>
62192         xstrtoll: new module
62193         * modules/xstrtoll: New file.
62194         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
62195         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
62196         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
62197         ./configure fails if you use this module and lack "long long".
62198         * modules/xstrtoll-tests: New module.
62199         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
62200         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
62201         new init.sh-based test framework.
62203 2010-01-24  Bruno Haible  <bruno@clisp.org>
62205         Tests for module 'yn'.
62206         * modules/yn-tests: New file.
62207         * tests/test-yn.c: New file.
62209         Tests for module 'y1'.
62210         * modules/y1-tests: New file.
62211         * tests/test-y1.c: New file.
62213         Tests for module 'y0'.
62214         * modules/y0-tests: New file.
62215         * tests/test-y0.c: New file.
62217         Tests for module 'tanh'.
62218         * modules/tanh-tests: New file.
62219         * tests/test-tanh.c: New file.
62221         Tests for module 'tan'.
62222         * modules/tan-tests: New file.
62223         * tests/test-tan.c: New file.
62225         Tests for module 'sqrt'.
62226         * modules/sqrt-tests: New file.
62227         * tests/test-sqrt.c: New file.
62229         Tests for module 'sinh'.
62230         * modules/sinh-tests: New file.
62231         * tests/test-sinh.c: New file.
62233         Tests for module 'sin'.
62234         * modules/sin-tests: New file.
62235         * tests/test-sin.c: New file.
62237         Tests for module 'rint'.
62238         * modules/rint-tests: New file.
62239         * tests/test-rint.c: New file.
62241         Tests for module 'remainder'.
62242         * modules/remainder-tests: New file.
62243         * tests/test-remainder.c: New file.
62245         Tests for module 'pow'.
62246         * modules/pow-tests: New file.
62247         * tests/test-pow.c: New file.
62249         Tests for module 'nextafter'.
62250         * modules/nextafter-tests: New file.
62251         * tests/test-nextafter.c: New file.
62253         Tests for module 'modf'.
62254         * modules/modf-tests: New file.
62255         * tests/test-modf.c: New file.
62257         Tests for module 'logb'.
62258         * modules/logb-tests: New file.
62259         * tests/test-logb.c: New file.
62261         Tests for module 'log1p'.
62262         * modules/log1p-tests: New file.
62263         * tests/test-log1p.c: New file.
62265         Tests for module 'log10'.
62266         * modules/log10-tests: New file.
62267         * tests/test-log10.c: New file.
62269         Tests for module 'log'.
62270         * modules/log-tests: New file.
62271         * tests/test-log.c: New file.
62273         Tests for module 'lgamma'.
62274         * modules/lgamma-tests: New file.
62275         * tests/test-lgamma.c: New file.
62277         Tests for module 'ldexp'.
62278         * modules/ldexp-tests: New file.
62279         * tests/test-ldexp.c: New file.
62281         Tests for module 'jn'.
62282         * modules/jn-tests: New file.
62283         * tests/test-jn.c: New file.
62285         Tests for module 'j1'.
62286         * modules/j1-tests: New file.
62287         * tests/test-j1.c: New file.
62289         Tests for module 'j0'.
62290         * modules/j0-tests: New file.
62291         * tests/test-j0.c: New file.
62293         Tests for module 'hypot'.
62294         * modules/hypot-tests: New file.
62295         * tests/test-hypot.c: New file.
62297         Tests for module 'fmod'.
62298         * modules/fmod-tests: New file.
62299         * tests/test-fmod.c: New file.
62301         Tests for module 'fabs'.
62302         * modules/fabs-tests: New file.
62303         * tests/test-fabs.c: New file.
62305         Tests for module 'exp'.
62306         * modules/exp-tests: New file.
62307         * tests/test-exp.c: New file.
62309         Tests for module 'erfc'.
62310         * modules/erfc-tests: New file.
62311         * tests/test-erfc.c: New file.
62313         Tests for module 'erf'.
62314         * modules/erf-tests: New file.
62315         * tests/test-erf.c: New file.
62317         Tests for module 'cosh'.
62318         * modules/cosh-tests: New file.
62319         * tests/test-cosh.c: New file.
62321         Tests for module 'cos'.
62322         * modules/cos-tests: New file.
62323         * tests/test-cos.c: New file.
62325         Tests for module 'copysign'.
62326         * modules/copysign-tests: New file.
62327         * tests/test-copysign.c: New file.
62329         Tests for module 'cbrt'.
62330         * modules/cbrt-tests: New file.
62331         * tests/test-cbrt.c: New file.
62333         Tests for module 'atan2'.
62334         * modules/atan2-tests: New file.
62335         * tests/test-atan2.c: New file.
62337         Tests for module 'atan'.
62338         * modules/atan-tests: New file.
62339         * tests/test-atan.c: New file.
62341         Tests for module 'asin'.
62342         * modules/asin-tests: New file.
62343         * tests/test-asin.c: New file.
62345         Tests for module 'acos'.
62346         * modules/acos-tests: New file.
62347         * tests/test-acos.c: New file.
62349 2010-01-24  Bruno Haible  <bruno@clisp.org>
62351         Fix tests for common <math.h> functions.
62352         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
62353         code snippet that references the function pointer, rather than merely
62354         calling the function. Substitute the FUNC_LIBM variable.
62355         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
62356         * modules/acos (configure.ac): Likewise.
62357         * modules/asin (configure.ac): Likewise.
62358         * modules/atan (configure.ac): Likewise.
62359         * modules/atan2 (configure.ac): Likewise.
62360         * modules/cbrt (configure.ac): Likewise.
62361         * modules/copysign (configure.ac): Likewise.
62362         * modules/cos (configure.ac): Likewise.
62363         * modules/cosh (configure.ac): Likewise.
62364         * modules/erf (configure.ac): Likewise.
62365         * modules/erfc (configure.ac): Likewise.
62366         * modules/exp (configure.ac): Likewise.
62367         * modules/fabs (configure.ac): Likewise.
62368         * modules/fmod (configure.ac): Likewise.
62369         * modules/hypot (configure.ac): Likewise.
62370         * modules/j0 (configure.ac): Likewise.
62371         * modules/j1 (configure.ac): Likewise.
62372         * modules/jn (configure.ac): Likewise.
62373         * modules/ldexp (configure.ac): Likewise.
62374         * modules/lgamma (configure.ac): Likewise.
62375         * modules/log (configure.ac): Likewise.
62376         * modules/log10 (configure.ac): Likewise.
62377         * modules/log1p (configure.ac): Likewise.
62378         * modules/logb (configure.ac): Likewise.
62379         * modules/modf (configure.ac): Likewise.
62380         * modules/nextafter (configure.ac): Likewise.
62381         * modules/pow (configure.ac): Likewise.
62382         * modules/remainder (configure.ac): Likewise.
62383         * modules/rint (configure.ac): Likewise.
62384         * modules/sin (configure.ac): Likewise.
62385         * modules/sinh (configure.ac): Likewise.
62386         * modules/tan (configure.ac): Likewise.
62387         * modules/tanh (configure.ac): Likewise.
62388         * modules/y0 (configure.ac): Likewise.
62389         * modules/y1 (configure.ac): Likewise.
62390         * modules/yn (configure.ac): Likewise.
62392 2010-01-24  Bruno Haible  <bruno@clisp.org>
62394         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
62395         * tests/test-acosl.c (x): New variable.
62396         (main): Store argument in x and fetch it from x.
62397         * tests/test-asinl.c (x): New variable.
62398         (main): Store argument in x and fetch it from x.
62399         * tests/test-atanl.c (x): New variable.
62400         (main): Store argument in x and fetch it from x.
62401         * tests/test-cosl.c (x): New variable.
62402         (main): Store argument in x and fetch it from x.
62403         * tests/test-expl.c (x): New variable.
62404         (main): Store argument in x and fetch it from x.
62405         * tests/test-logl.c (x): New variable.
62406         (main): Store argument in x and fetch it from x.
62407         * tests/test-sinl.c (x): New variable.
62408         (main): Store argument in x and fetch it from x.
62409         * tests/test-sqrtl.c (x): New variable.
62410         (main): Store argument in x and fetch it from x.
62411         * tests/test-tanl.c (x): New variable.
62412         (main): Store argument in x and fetch it from x.
62414 2010-01-24  Bruno Haible  <bruno@clisp.org>
62416         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
62417         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
62418         assignments to the initial TESTS_ENVIRONMENT.
62419         * doc/gnulib.texi (Unit test modules): Document it.
62420         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
62421         TESTS_ENVIRONMENT.
62422         * modules/btowc-tests (Makefile.am): Likewise.
62423         * modules/c-stack-tests (Makefile.am): Likewise.
62424         * modules/c-strcase-tests (Makefile.am): Likewise.
62425         * modules/copy-file-tests (Makefile.am): Likewise.
62426         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
62427         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
62428         * modules/mbrtowc-tests (Makefile.am): Likewise.
62429         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62430         * modules/mbscasestr-tests (Makefile.am): Likewise.
62431         * modules/mbschr-tests (Makefile.am): Likewise.
62432         * modules/mbscspn-tests (Makefile.am): Likewise.
62433         * modules/mbsinit-tests (Makefile.am): Likewise.
62434         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62435         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
62436         * modules/mbspbrk-tests (Makefile.am): Likewise.
62437         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62438         * modules/mbsrchr-tests (Makefile.am): Likewise.
62439         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
62440         * modules/mbsspn-tests (Makefile.am): Likewise.
62441         * modules/mbsstr-tests (Makefile.am): Likewise.
62442         * modules/nl_langinfo-tests (Makefile.am): Likewise.
62443         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
62444         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62445         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62446         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62447         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62448         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
62449         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62450         * modules/wcrtomb-tests (Makefile.am): Likewise.
62451         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
62452         * modules/wcsrtombs-tests (Makefile.am): Likewise.
62453         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
62454         assignments from TESTS_ENVIRONMENT.
62455         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
62456         augmentation.
62457         * modules/argp-version-etc-tests (Makefile.am): Likewise.
62458         * modules/atexit-tests (Makefile.am): Likewise.
62459         * modules/binary-io-tests (Makefile.am): Likewise.
62460         * modules/closein-tests (Makefile.am): Likewise.
62461         * modules/dprintf-posix-tests (Makefile.am): Likewise.
62462         * modules/exclude-tests (Makefile.am): Likewise.
62463         * modules/fflush-tests (Makefile.am): Likewise.
62464         * modules/fpending-tests (Makefile.am): Likewise.
62465         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62466         * modules/freadahead-tests (Makefile.am): Likewise.
62467         * modules/freadptr-tests (Makefile.am): Likewise.
62468         * modules/freadseek-tests (Makefile.am): Likewise.
62469         * modules/fseek-tests (Makefile.am): Likewise.
62470         * modules/fseeko-tests (Makefile.am): Likewise.
62471         * modules/ftell-tests (Makefile.am): Likewise.
62472         * modules/ftello-tests (Makefile.am): Likewise.
62473         * modules/idpriv-drop-tests (Makefile.am): Likewise.
62474         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
62475         * modules/lseek-tests (Makefile.am): Likewise.
62476         * modules/parse-duration-tests (Makefile.am): Likewise.
62477         * modules/perror-tests (Makefile.am): Likewise.
62478         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
62479         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
62480         * modules/pipe-tests (Makefile.am): Likewise.
62481         * modules/pread-tests (Makefile.am): Likewise.
62482         * modules/printf-posix-tests (Makefile.am): Likewise.
62483         * modules/select-tests (Makefile.am): Likewise.
62484         * modules/sigpipe-tests (Makefile.am): Likewise.
62485         * modules/tsearch-tests (Makefile.am): Likewise.
62486         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
62487         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
62488         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62489         * modules/uniwidth/width-tests (Makefile.am): Likewise.
62490         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
62491         * modules/version-etc-tests (Makefile.am): Likewise.
62492         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62493         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62494         * modules/xalloc-die-tests (Makefile.am): Likewise.
62495         * modules/xprintf-posix-tests (Makefile.am): Likewise.
62496         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62497         * modules/xstrtol-tests (Makefile.am): Likewise.
62498         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62499         * modules/yesno-tests (Makefile.am): Likewise.
62500         Suggested by Jim Meyering.
62502 2010-01-24  Bruno Haible  <bruno@clisp.org>
62504         More documentation.
62505         * doc/gnulib.texi (Writing modules): New chapter.
62506         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
62507         the new chapter.
62509 2010-01-24  Jim Meyering  <meyering@redhat.com>
62511         maint.mk: do not prepend "./" after filtering
62512         * top/maint.mk (_prepend_srcdir_prefix): New variable
62513         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
62514         "./" when $(srcdir) is ".".
62516         define STREQ(a,b) consistently, removing useless parentheses
62517         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
62518         since the only risk is that "a" or "b" contains an unparenthesized
62519         comma, but if either did that, STREQ would have 3 or more arguments.
62520         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
62521         * lib/fts.c (STREQ): Remove unnecessary parentheses.
62522         * lib/hash-triple.c (STREQ): Likewise.
62523         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
62524         * lib/getugroups.c (STREQ): Likewise.
62526 2010-01-23  Jim Meyering  <meyering@redhat.com>
62528         maint.mk: fix syntax-check in a non-srcdir build directory
62529         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
62530         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
62532 2010-01-22  Jim Meyering  <meyering@redhat.com>
62534         userspec: add unit tests
62535         * tests/test-userspec.c: New file.
62536         * modules/userspec-tests: Likewise.
62538 2010-01-21  Jim Meyering  <meyering@redhat.com>
62540         maint.mk: handle source file names containing "." robustly
62541         * top/maint.mk (_dot_escaped_srcdir): Define.
62542         (VC_LIST): Use it in LHS of sed substitution.
62544 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
62546         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
62547         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
62548         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
62549         from a non-srcdir build.
62551 2010-01-20  Eric Blake  <ebb9@byu.net>
62553         warn-on-use: use instead of link-warning
62554         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
62555         * modules/unistd (Depends-on, Makefile.am): Likewise.
62556         * modules/arpa_inet (Depends-on): Replace link-warning with
62557         warn-on-use.
62558         (Makefile.am): Update rules accordingly.
62559         * modules/ctype (Depends-on, Makefile.am): Likewise.
62560         * modules/dirent (Depends-on, Makefile.am): Likewise.
62561         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
62562         * modules/inttypes (Depends-on, Makefile.am): Likewise.
62563         * modules/langinfo (Depends-on, Makefile.am): Likewise.
62564         * modules/locale (Depends-on, Makefile.am): Likewise.
62565         * modules/math (Depends-on, Makefile.am): Likewise.
62566         * modules/search (Depends-on, Makefile.am): Likewise.
62567         * modules/signal (Depends-on, Makefile.am): Likewise.
62568         * modules/spawn (Depends-on, Makefile.am): Likewise.
62569         * modules/stdlib (Depends-on, Makefile.am): Likewise.
62570         * modules/string (Depends-on, Makefile.am): Likewise.
62571         * modules/strings (Depends-on, Makefile.am): Likewise.
62572         * modules/sys_file (Depends-on, Makefile.am): Likewise.
62573         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
62574         * modules/sys_select (Depends-on, Makefile.am): Likewise.
62575         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
62576         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
62577         * modules/sys_times (Depends-on, Makefile.am): Likewise.
62578         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
62579         * modules/wchar (Depends-on, Makefile.am): Likewise.
62580         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
62581         should be poisoned.
62582         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
62583         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
62584         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
62585         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
62586         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
62587         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
62588         * m4/math_h.m4 (gl_MATH_H): Likewise.
62589         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
62590         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
62591         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
62592         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
62593         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
62594         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
62595         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
62596         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
62597         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
62598         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62599         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62600         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
62601         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
62602         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
62603         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62604         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
62605         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
62606         GL_LINK_WARNING.
62607         * lib/ctype.in.h: Likewise.
62608         * lib/dirent.in.h: Likewise.
62609         * lib/fcntl.in.h: Likewise.
62610         * lib/inttypes.in.h: Likewise.
62611         * lib/langinfo.in.h: Likewise.
62612         * lib/locale.in.h: Likewise.
62613         * lib/math.in.h: Likewise.
62614         * lib/search.in.h: Likewise.
62615         * lib/signal.in.h: Likewise.
62616         * lib/spawn.in.h: Likewise.
62617         * lib/stdio.in.h: Likewise.
62618         * lib/stdlib.in.h: Likewise.
62619         * lib/string.in.h: Likewise.
62620         * lib/strings.in.h: Likewise.
62621         * lib/sys_file.in.h: Likewise.
62622         * lib/sys_ioctl.in.h: Likewise.
62623         * lib/sys_select.in.h: Likewise.
62624         * lib/sys_socket.in.h: Likewise.
62625         * lib/sys_stat.in.h: Likewise.
62626         * lib/sys_times.in.h: Likewise.
62627         * lib/sys_utsname.in.h: Likewise.
62628         * lib/unistd.in.h: Likewise.
62629         * lib/wchar.in.h: Likewise.
62631 2010-01-20  Bruno Haible  <bruno@clisp.org>
62633         Avoid duplicate -lm.
62634         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
62635         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
62636         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
62637         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
62638         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
62639         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
62640         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
62641         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
62642         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
62643         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
62644         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
62645         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
62646         Reported by Paolo Bonzini.
62648 2010-01-19  Bruno Haible  <bruno@clisp.org>
62650         langinfo, nl_langinfo: Relicense under LGPLv2+.
62651         * modules/langinfo (License): Change to LGPLv2+.
62652         * modules/nl_langinfo (License): Likewise.
62653         Patch by David Lutterkort <lutter@redhat.com>.
62655 2010-01-19  Bruno Haible  <bruno@clisp.org>
62657         Avoid compilation error with cc on OSF/1 5.1.
62658         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
62659         statement, not before.
62660         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62662 2010-01-18  Bruno Haible  <bruno@clisp.org>
62664         Avoid a link error due to the __printf__ symbol.
62665         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
62666         and 2.6.x.
62667         (__format__, __printf__): Remove definitions.
62668         * lib/argp-fmtstream.h: Likewise.
62669         * lib/argp.h: Likewise.
62670         * lib/error.h: Likewise.
62671         * lib/vasnprintf.h: Likewise.
62672         * lib/xprintf.h: Likewise.
62673         * lib/xvasprintf.h: Likewise.
62674         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62676 2010-01-18  Bruno Haible  <bruno@clisp.org>
62678         Tests for module 'tanl'.
62679         * modules/tanl-tests: New file.
62680         * tests/test-tanl.c: New file.
62682         Tests for module 'sqrtl'.
62683         * modules/sqrtl-tests: New file.
62684         * tests/test-sqrtl.c: New file.
62686         Tests for module 'sinl'.
62687         * modules/sinl-tests: New file.
62688         * tests/test-sinl.c: New file.
62690         Tests for module 'logl'.
62691         * modules/logl-tests: New file.
62692         * tests/test-logl.c: New file.
62694         Tests for module 'expl'.
62695         * modules/expl-tests: New file.
62696         * tests/test-expl.c: New file.
62698         Tests for module 'cosl'.
62699         * modules/cosl-tests: New file.
62700         * tests/test-cosl.c: New file.
62702         Tests for module 'atanl'.
62703         * modules/atanl-tests: New file.
62704         * tests/test-atanl.c: New file.
62706         Tests for module 'asinl'.
62707         * modules/asinl-tests: New file.
62708         * tests/test-asinl.c: New file.
62710         Tests for module 'acosl'.
62711         * modules/acosl-tests: New file.
62712         * tests/test-acosl.c: New file.
62714         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
62715         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
62716         tanl): Use the standard gnulib idiom.
62717         * lib/cosl.c: Don't include trigl.c and sincosl.c.
62718         * lib/sinl.c: Likewise.
62719         * lib/tanl.c: Don't include trigl.c.
62720         (kernel_tanl): Make static.
62721         * lib/sincosl.c: Include trigl.h first.
62722         * lib/trigl.c: Likewise.
62723         * m4/acosl.m4: New file.
62724         * m4/asinl.m4: New file.
62725         * m4/atanl.m4: New file.
62726         * m4/cosl.m4: New file.
62727         * m4/expl.m4: New file.
62728         * m4/logl.m4: New file.
62729         * m4/sinl.m4: New file.
62730         * m4/sqrtl.m4: New file.
62731         * m4/tanl.m4: New file.
62732         * m4/mathl.m4: Remove file.
62733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
62734         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
62735         Don't initialize GNULIB_MATHL.
62736         * modules/acosl: New file.
62737         * modules/asinl: New file.
62738         * modules/atanl: New file.
62739         * modules/cosl: New file.
62740         * modules/expl: New file.
62741         * modules/logl: New file.
62742         * modules/sinl: New file.
62743         * modules/sqrtl: New file.
62744         * modules/tanl: New file.
62745         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
62746         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
62747         substitute GNULIB_MATHL.
62748         * modules/mathl: Rewritten.
62749         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
62750         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
62751         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
62752         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
62753         * doc/posix-functions/expl.texi: Mention the 'expl' module.
62754         * doc/posix-functions/logl.texi: Mention the 'logl' module.
62755         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
62756         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
62757         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
62759 2010-01-18  Bruno Haible  <bruno@clisp.org>
62761         sqrt: Make gl_FUNC_SQRT requirable.
62762         * m4/sqrt.m4: New file.
62763         * modules/sqrt (Files): Add it.
62764         (configure.ac): Invoke gl_FUNC_SQRT.
62766 2010-01-18  Bruno Haible  <bruno@clisp.org>
62768         New modules for common <math.h> functions.
62769         * m4/mathfunc.m4: New file.
62770         * modules/acos: New file.
62771         * modules/asin: New file.
62772         * modules/atan: New file.
62773         * modules/atan2: New file.
62774         * modules/cbrt: New file.
62775         * modules/copysign: New file.
62776         * modules/cos: New file.
62777         * modules/cosh: New file.
62778         * modules/erf: New file.
62779         * modules/erfc: New file.
62780         * modules/exp: New file.
62781         * modules/fabs: New file.
62782         * modules/fmod: New file.
62783         * modules/hypot: New file.
62784         * modules/j0: New file.
62785         * modules/j1: New file.
62786         * modules/jn: New file.
62787         * modules/ldexp: New file.
62788         * modules/lgamma: New file.
62789         * modules/log: New file.
62790         * modules/log10: New file.
62791         * modules/log1p: New file.
62792         * modules/logb: New file.
62793         * modules/modf: New file.
62794         * modules/nextafter: New file.
62795         * modules/pow: New file.
62796         * modules/remainder: New file.
62797         * modules/rint: New file.
62798         * modules/sin: New file.
62799         * modules/sinh: New file.
62800         * modules/sqrt: New file.
62801         * modules/tan: New file.
62802         * modules/tanh: New file.
62803         * modules/y0: New file.
62804         * modules/y1: New file.
62805         * modules/yn: New file.
62806         * doc/posix-functions/acos.texi: Mention the 'acos' module.
62807         * doc/posix-functions/asin.texi: Mention the 'asin' module.
62808         * doc/posix-functions/atan.texi: Mention the 'atan' module.
62809         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
62810         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
62811         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
62812         * doc/posix-functions/cos.texi: Mention the 'cos' module.
62813         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
62814         * doc/posix-functions/erf.texi: Mention the 'erf' module.
62815         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
62816         * doc/posix-functions/exp.texi: Mention the 'exp' module.
62817         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
62818         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
62819         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
62820         * doc/posix-functions/j0.texi: Mention the 'j0' module.
62821         * doc/posix-functions/j1.texi: Mention the 'j1' module.
62822         * doc/posix-functions/jn.texi: Mention the 'jn' module.
62823         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
62824         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
62825         * doc/posix-functions/log.texi: Mention the 'log' module.
62826         * doc/posix-functions/log10.texi: Mention the 'log10' module.
62827         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
62828         * doc/posix-functions/logb.texi: Mention the 'logb' module.
62829         * doc/posix-functions/modf.texi: Mention the 'modf' module.
62830         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
62831         * doc/posix-functions/pow.texi: Mention the 'pow' module.
62832         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
62833         * doc/posix-functions/rint.texi: Mention the 'rint' module.
62834         * doc/posix-functions/sin.texi: Mention the 'sin' module.
62835         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
62836         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
62837         * doc/posix-functions/tan.texi: Mention the 'tan' module.
62838         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
62839         * doc/posix-functions/y0.texi: Mention the 'y0' module.
62840         * doc/posix-functions/y1.texi: Mention the 'y1' module.
62841         * doc/posix-functions/yn.texi: Mention the 'yn' module.
62843 2010-01-18  Jim Meyering  <meyering@redhat.com>
62845         ignore-value: relax license to LGPLv2+
62846         * modules/ignore-value (License): Relax to LGPLv2+.
62848         getdate: don't leak when TZ contains two or more '"'s
62849         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
62850         double quote in TZ after the first one.
62852         readtokens: do not leak internal token_lengths buffer
62853         * lib/readtokens.c (readtokens): Free the local, lengths,
62854         when the supplied "token_lengths" parameter is NULL.
62856 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62858         Fix a couple of missing LIBTHREAD link failures on AIX.
62859         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
62860         $(LIBTHREAD).
62861         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
62863         Link test-poll against INET_PTON_LIB.
62864         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
62865         for inet_pton on Solaris 10.
62867 2010-01-17  Bruno Haible  <bruno@clisp.org>
62869         unistdio/*-sprintf: Fix typo in module description.
62870         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
62871         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
62872         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
62873         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
62874         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
62875         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
62876         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
62877         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62879 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62881         gnulib-tool: fix filelist for AIX, HP-UX ksh.
62882         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
62883         variables in shell case patterns, for AIX and HP-UX ksh.
62885         Split large sed scripts, for HP-UX sed.
62886         * modules/stdio: Split sed scripts around 50 sed commands,
62887         to avoid HP-UX limit of 99 commands, in the near future.
62888         * modules/string: Likewise.
62889         * modules/unistd: Likewise.
62891         gnulib-tool: avoid writing in the current directory.
62892         * gnulib-tool (func_emit_lib_Makefile_am)
62893         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
62894         not in the current directory, so concurrent gnulib-tool
62895         instances do not interfere.
62897 2010-01-16  Jim Meyering  <meyering@redhat.com>
62899         doc: update users.txt
62900         * users.txt: Add grep.
62901         (diffutils, gzip): Update URLs.
62903 2010-01-12  Bruno Haible  <bruno@clisp.org>
62905         posix_spawn: Avoid test failure on Cygwin.
62906         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
62907         characters.
62908         Reported by Simon Josefsson.
62910 2010-01-12  Bruno Haible  <bruno@clisp.org>
62912         * tests/test-cond.c (main): When skipping the test, show the reason.
62914 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62916         * lib/striconv.c (str_cd_iconv): Avoid if before free.
62918 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62920         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
62921         VC_LIST_ALWAYS_EXCLUDE_REGEX.
62923 2010-01-12  Eric Blake  <ebb9@byu.net>
62925         build: guarantee AS_VAR_IF
62926         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
62927         (gl_AS_VAR_IF): Move...
62928         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
62929         Reported by Simon Josefsson.
62931 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62933         * lib/stdio.in.h: Fix typo.
62935 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62937         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
62938         libgpg-error.
62940 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62942         * tests/test-xalloc-die.sh: Use $EXEEXT.
62944 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62945             Bruno Haible  <bruno@clisp.org>
62947         getlogin, getlogin_r: Avoid test failure.
62948         * tests/test-getlogin.c: Include <stdio.h>.
62949         (main): Skip the test when the function fails because stdin is not a
62950         tty.
62951         * tests/test-getlogin_r.c: Include <stdio.h>.
62952         (main): Skip the test when the function fails because stdin is not a
62953         tty.
62955 2010-01-11  Eric Blake  <ebb9@byu.net>
62957         tests: avoid more large file warnings
62958         * tests/test-fflush.c: Avoid warning about ftell use.
62959         * tests/test-fseek.c: Avoid warning about fseek use.
62961 2010-01-10  Bruno Haible  <bruno@clisp.org>
62963         nproc: Work better on Linux when /proc and /sys are not mounted.
62964         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
62965         as lower bound when, on glibc/Linux systems,
62966         sysconf (_SC_NPROCESSORS_CONF) returns 1.
62967         Suggested by Pádraig Brady <P@draigbrady.com>.
62968         Reported by Dmitry V. Levin <ldv@altlinux.org>.
62970         nproc: Refactor.
62971         * lib/nproc.c (num_processors_via_affinity_mask): New function,
62972         extracted from num_processors.
62973         (num_processors): Call it.
62975 2010-01-11  Jim Meyering  <meyering@redhat.com>
62977         utimecmp: avoid new warning from upcoming gcc-4.5.0
62978         * lib/utimecmp.c (BILLION): Define using #define rather than an
62979         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
62981 2010-01-11  Eric Blake  <ebb9@byu.net>
62983         math: add portability warnings for classification macros
62984         * modules/math (Depends-on): Add warn-on-use.
62985         (Makefile.am): Provide new substitutions.
62986         * m4/math_h.m4 (gl_MATH_H): Require inline.
62987         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
62988         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
62989         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
62990         implement warnings.
62992         unistd: warn on use of environ without module
62993         * modules/unistd (Depends-on): Add warn-on-use.
62994         (Makefile.am): Provide new substitutions.
62995         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
62996         * lib/unistd.in.h (environ): Wrap with a warning helper function.
62998         stdio: warn on suspicious uses
62999         * modules/stdio (Depends-on): Add warn-on-use.
63000         (Makefile.am): Provide new substitutions.
63001         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
63002         fseeko.
63003         * lib/stdio.in.h (gets): Always warn on use.
63004         (fseek, ftell): Adjust when warnings are issued, and honor
63005         _GL_NO_LARGE_FILES as a way to silence the warning.
63006         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
63007         any warning about large file offsets.
63008         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
63009         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
63010         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
63011         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
63012         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
63013         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
63014         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
63015         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
63017         warn-on-use: new module
63018         * modules/warn-on-use: New file.
63019         * build-aux/warn-on-use.h: Likewise.
63020         * m4/warn-on-use.m4: Likewise.
63021         * MODULES.html.sh (Support for building): Mention it.
63023 2010-01-10  Bruno Haible  <bruno@clisp.org>
63025         Tests for module 'unistr/u32-strdup'.
63026         * modules/unistr/u32-strdup-tests: New file.
63027         * tests/unistr/test-u32-strdup.c: New file.
63029         Tests for module 'unistr/u16-strdup'.
63030         * modules/unistr/u16-strdup-tests: New file.
63031         * tests/unistr/test-u16-strdup.c: New file.
63033         Tests for module 'unistr/u8-strdup'.
63034         * modules/unistr/u8-strdup-tests: New file.
63035         * tests/unistr/test-u8-strdup.c: New file.
63036         * tests/unistr/test-strdup.h: New file.
63038         Tests for module 'unistr/u32-strncmp'.
63039         * modules/unistr/u32-strncmp-tests: New file.
63040         * tests/unistr/test-u32-strncmp.c: New file.
63042         Tests for module 'unistr/u16-strncmp'.
63043         * modules/unistr/u16-strncmp-tests: New file.
63044         * tests/unistr/test-u16-strncmp.c: New file.
63046         Tests for module 'unistr/u8-strncmp'.
63047         * modules/unistr/u8-strncmp-tests: New file.
63048         * tests/unistr/test-u8-strncmp.c: New file.
63049         * tests/unistr/test-strncmp.h: New file.
63051         Tests for module 'unistr/u32-strcoll'.
63052         * modules/unistr/u32-strcoll-tests: New file.
63053         * tests/unistr/test-u32-strcoll.c: New file.
63055         Tests for module 'unistr/u16-strcoll'.
63056         * modules/unistr/u16-strcoll-tests: New file.
63057         * tests/unistr/test-u16-strcoll.c: New file.
63059         Tests for module 'unistr/u8-strcoll'.
63060         * modules/unistr/u8-strcoll-tests: New file.
63061         * tests/unistr/test-u8-strcoll.c: New file.
63063         Tests for module 'unistr/u32-strcmp'.
63064         * modules/unistr/u32-strcmp-tests: New file.
63065         * tests/unistr/test-u32-strcmp.c: New file.
63066         * tests/unistr/test-u32-strcmp.h: New file.
63068         Tests for module 'unistr/u16-strcmp'.
63069         * modules/unistr/u16-strcmp-tests: New file.
63070         * tests/unistr/test-u16-strcmp.c: New file.
63071         * tests/unistr/test-u16-strcmp.h: New file.
63073         Tests for module 'unistr/u8-strcmp'.
63074         * modules/unistr/u8-strcmp-tests: New file.
63075         * tests/unistr/test-u8-strcmp.c: New file.
63076         * tests/unistr/test-u8-strcmp.h: New file.
63077         * tests/unistr/test-strcmp.h: New file.
63079         Tests for module 'unistr/u32-strncat'.
63080         * modules/unistr/u32-strncat-tests: New file.
63081         * tests/unistr/test-u32-strncat.c: New file.
63083         Tests for module 'unistr/u16-strncat'.
63084         * modules/unistr/u16-strncat-tests: New file.
63085         * tests/unistr/test-u16-strncat.c: New file.
63087         Tests for module 'unistr/u8-strncat'.
63088         * modules/unistr/u8-strncat-tests: New file.
63089         * tests/unistr/test-u8-strncat.c: New file.
63090         * tests/unistr/test-strncat.h: New file.
63092         Tests for module 'unistr/u32-strcat'.
63093         * modules/unistr/u32-strcat-tests: New file.
63094         * tests/unistr/test-u32-strcat.c: New file.
63096         Tests for module 'unistr/u16-strcat'.
63097         * modules/unistr/u16-strcat-tests: New file.
63098         * tests/unistr/test-u16-strcat.c: New file.
63100         Tests for module 'unistr/u8-strcat'.
63101         * modules/unistr/u8-strcat-tests: New file.
63102         * tests/unistr/test-u8-strcat.c: New file.
63103         * tests/unistr/test-strcat.h: New file.
63105         Tests for module 'unistr/u32-stpncpy'.
63106         * modules/unistr/u32-stpncpy-tests: New file.
63107         * tests/unistr/test-u32-stpncpy.c: New file.
63109         Tests for module 'unistr/u16-stpncpy'.
63110         * modules/unistr/u16-stpncpy-tests: New file.
63111         * tests/unistr/test-u16-stpncpy.c: New file.
63113         Tests for module 'unistr/u8-stpncpy'.
63114         * modules/unistr/u8-stpncpy-tests: New file.
63115         * tests/unistr/test-u8-stpncpy.c: New file.
63116         * tests/unistr/test-stpncpy.h: New file.
63118         Tests for module 'unistr/u32-strncpy'.
63119         * modules/unistr/u32-strncpy-tests: New file.
63120         * tests/unistr/test-u32-strncpy.c: New file.
63122         Tests for module 'unistr/u16-strncpy'.
63123         * modules/unistr/u16-strncpy-tests: New file.
63124         * tests/unistr/test-u16-strncpy.c: New file.
63126         Tests for module 'unistr/u8-strncpy'.
63127         * modules/unistr/u8-strncpy-tests: New file.
63128         * tests/unistr/test-u8-strncpy.c: New file.
63129         * tests/unistr/test-strncpy.h: New file.
63131         Tests for module 'unistr/u32-stpcpy'.
63132         * modules/unistr/u32-stpcpy-tests: New file.
63133         * tests/unistr/test-u32-stpcpy.c: New file.
63135         Tests for module 'unistr/u16-stpcpy'.
63136         * modules/unistr/u16-stpcpy-tests: New file.
63137         * tests/unistr/test-u16-stpcpy.c: New file.
63139         Tests for module 'unistr/u8-stpcpy'.
63140         * modules/unistr/u8-stpcpy-tests: New file.
63141         * tests/unistr/test-u8-stpcpy.c: New file.
63142         * tests/unistr/test-stpcpy.h: New file.
63144         Tests for module 'unistr/u32-strcpy'.
63145         * modules/unistr/u32-strcpy-tests: New file.
63146         * tests/unistr/test-u32-strcpy.c: New file.
63148         Tests for module 'unistr/u16-strcpy'.
63149         * modules/unistr/u16-strcpy-tests: New file.
63150         * tests/unistr/test-u16-strcpy.c: New file.
63152         Tests for module 'unistr/u8-strcpy'.
63153         * modules/unistr/u8-strcpy-tests: New file.
63154         * tests/unistr/test-u8-strcpy.c: New file.
63155         * tests/unistr/test-strcpy.h: New file.
63157         Tests for module 'unistr/u32-strnlen'.
63158         * modules/unistr/u32-strnlen-tests: New file.
63159         * tests/unistr/test-u32-strnlen.c: New file.
63161         Tests for module 'unistr/u16-strnlen'.
63162         * modules/unistr/u16-strnlen-tests: New file.
63163         * tests/unistr/test-u16-strnlen.c: New file.
63165         Tests for module 'unistr/u8-strnlen'.
63166         * modules/unistr/u8-strnlen-tests: New file.
63167         * tests/unistr/test-u8-strnlen.c: New file.
63168         * tests/unistr/test-strnlen.h: New file.
63170         Tests for module 'unistr/u32-strlen'.
63171         * modules/unistr/u32-strlen-tests: New file.
63172         * tests/unistr/test-u32-strlen.c: New file.
63174         Tests for module 'unistr/u16-strlen'.
63175         * modules/unistr/u16-strlen-tests: New file.
63176         * tests/unistr/test-u16-strlen.c: New file.
63178         Tests for module 'unistr/u8-strlen'.
63179         * modules/unistr/u8-strlen-tests: New file.
63180         * tests/unistr/test-u8-strlen.c: New file.
63182         Tests for module 'unistr/u32-prev'.
63183         * modules/unistr/u32-prev-tests: New file.
63184         * tests/unistr/test-u32-prev.c: New file.
63186         Tests for module 'unistr/u16-prev'.
63187         * modules/unistr/u16-prev-tests: New file.
63188         * tests/unistr/test-u16-prev.c: New file.
63190         Tests for module 'unistr/u8-prev'.
63191         * modules/unistr/u8-prev-tests: New file.
63192         * tests/unistr/test-u8-prev.c: New file.
63194         Tests for module 'unistr/u32-next'.
63195         * modules/unistr/u32-next-tests: New file.
63196         * tests/unistr/test-u32-next.c: New file.
63198         Tests for module 'unistr/u16-next'.
63199         * modules/unistr/u16-next-tests: New file.
63200         * tests/unistr/test-u16-next.c: New file.
63202         Tests for module 'unistr/u8-next'.
63203         * modules/unistr/u8-next-tests: New file.
63204         * tests/unistr/test-u8-next.c: New file.
63206         Tests for module 'unistr/u32-strmbtouc'.
63207         * modules/unistr/u32-strmbtouc-tests: New file.
63208         * tests/unistr/test-u32-strmbtouc.c: New file.
63210         Tests for module 'unistr/u16-strmbtouc'.
63211         * modules/unistr/u16-strmbtouc-tests: New file.
63212         * tests/unistr/test-u16-strmbtouc.c: New file.
63214         Tests for module 'unistr/u8-strmbtouc'.
63215         * modules/unistr/u8-strmbtouc-tests: New file.
63216         * tests/unistr/test-u8-strmbtouc.c: New file.
63218         Tests for module 'unistr/u32-strmblen'.
63219         * modules/unistr/u32-strmblen-tests: New file.
63220         * tests/unistr/test-u32-strmblen.c: New file.
63222         Tests for module 'unistr/u16-strmblen'.
63223         * modules/unistr/u16-strmblen-tests: New file.
63224         * tests/unistr/test-u16-strmblen.c: New file.
63226         Tests for module 'unistr/u8-strmblen'.
63227         * modules/unistr/u8-strmblen-tests: New file.
63228         * tests/unistr/test-u8-strmblen.c: New file.
63230         Tests for module 'unistr/u32-cpy-alloc'.
63231         * modules/unistr/u32-cpy-alloc-tests: New file.
63232         * tests/unistr/test-u32-cpy-alloc.c: New file.
63234         Tests for module 'unistr/u16-cpy-alloc'.
63235         * modules/unistr/u16-cpy-alloc-tests: New file.
63236         * tests/unistr/test-u16-cpy-alloc.c: New file.
63238         Tests for module 'unistr/u8-cpy-alloc'.
63239         * modules/unistr/u8-cpy-alloc-tests: New file.
63240         * tests/unistr/test-u8-cpy-alloc.c: New file.
63241         * tests/unistr/test-cpy-alloc.h: New file.
63243         Tests for module 'unistr/u32-mbsnlen'.
63244         * modules/unistr/u32-mbsnlen-tests: New file.
63245         * tests/unistr/test-u32-mbsnlen.c: New file.
63247         Tests for module 'unistr/u16-mbsnlen'.
63248         * modules/unistr/u16-mbsnlen-tests: New file.
63249         * tests/unistr/test-u16-mbsnlen.c: New file.
63251         Tests for module 'unistr/u8-mbsnlen'.
63252         * modules/unistr/u8-mbsnlen-tests: New file.
63253         * tests/unistr/test-u8-mbsnlen.c: New file.
63255         Tests for module 'unistr/u32-chr'.
63256         * modules/unistr/u32-chr-tests: New file.
63257         * tests/unistr/test-u32-chr.c: New file.
63259         Tests for module 'unistr/u16-chr'.
63260         * modules/unistr/u16-chr-tests: New file.
63261         * tests/unistr/test-u16-chr.c: New file.
63263         Tests for module 'unistr/u8-chr'.
63264         * modules/unistr/u8-chr-tests: New file.
63265         * tests/unistr/test-u8-chr.c: New file.
63266         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
63268         Tests for module 'unistr/u32-cmp2'.
63269         * modules/unistr/u32-cmp2-tests: New file.
63270         * tests/unistr/test-u32-cmp2.c: New file.
63272         Tests for module 'unistr/u16-cmp2'.
63273         * modules/unistr/u16-cmp2-tests: New file.
63274         * tests/unistr/test-u16-cmp2.c: New file.
63276         Tests for module 'unistr/u8-cmp2'.
63277         * modules/unistr/u8-cmp2-tests: New file.
63278         * tests/unistr/test-u8-cmp2.c: New file.
63279         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
63281         Tests for module 'unistr/u32-cmp'.
63282         * modules/unistr/u32-cmp-tests: New file.
63283         * tests/unistr/test-u32-cmp.c: New file.
63285         Tests for module 'unistr/u16-cmp'.
63286         * modules/unistr/u16-cmp-tests: New file.
63287         * tests/unistr/test-u16-cmp.c: New file.
63289         Tests for module 'unistr/u8-cmp'.
63290         * modules/unistr/u8-cmp-tests: New file.
63291         * tests/unistr/test-u8-cmp.c: New file.
63292         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
63294         Tests for module 'unistr/u32-set'.
63295         * modules/unistr/u32-set-tests: New file.
63296         * tests/unistr/test-u32-set.c: New file.
63298         Tests for module 'unistr/u16-set'.
63299         * modules/unistr/u16-set-tests: New file.
63300         * tests/unistr/test-u16-set.c: New file.
63302         Tests for module 'unistr/u8-set'.
63303         * modules/unistr/u8-set-tests: New file.
63304         * tests/unistr/test-u8-set.c: New file.
63305         * tests/unistr/test-set.h: New file.
63307         Tests for module 'unistr/u32-move'.
63308         * modules/unistr/u32-move-tests: New file.
63309         * tests/unistr/test-u32-move.c: New file.
63311         Tests for module 'unistr/u16-move'.
63312         * modules/unistr/u16-move-tests: New file.
63313         * tests/unistr/test-u16-move.c: New file.
63315         Tests for module 'unistr/u8-move'.
63316         * modules/unistr/u8-move-tests: New file.
63317         * tests/unistr/test-u8-move.c: New file.
63318         * tests/unistr/test-move.h: New file.
63320         Tests for module 'unistr/u32-cpy'.
63321         * modules/unistr/u32-cpy-tests: New file.
63322         * tests/unistr/test-u32-cpy.c: New file.
63324         Tests for module 'unistr/u16-cpy'.
63325         * modules/unistr/u16-cpy-tests: New file.
63326         * tests/unistr/test-u16-cpy.c: New file.
63328         Tests for module 'unistr/u8-cpy'.
63329         * modules/unistr/u8-cpy-tests: New file.
63330         * tests/unistr/test-u8-cpy.c: New file.
63331         * tests/unistr/test-cpy.h: New file.
63333 2010-01-09  Bruno Haible  <bruno@clisp.org>
63335         Tests for module 'unistr/u32-uctomb'.
63336         * modules/unistr/u32-uctomb-tests: New file.
63337         * tests/unistr/test-u32-uctomb.c: New file.
63339         Tests for module 'unistr/u16-uctomb'.
63340         * modules/unistr/u16-uctomb-tests: New file.
63341         * tests/unistr/test-u16-uctomb.c: New file.
63343         Tests for module 'unistr/u8-uctomb'.
63344         * modules/unistr/u8-uctomb-tests: New file.
63345         * tests/unistr/test-u8-uctomb.c: New file.
63347         Tests for module 'unistr/u32-mbtoucr'.
63348         * modules/unistr/u32-mbtoucr-tests: New file.
63349         * tests/unistr/test-u32-mbtoucr.c: New file.
63351         Tests for module 'unistr/u16-mbtoucr'.
63352         * modules/unistr/u16-mbtoucr-tests: New file.
63353         * tests/unistr/test-u16-mbtoucr.c: New file.
63355         Tests for module 'unistr/u8-mbtoucr'.
63356         * modules/unistr/u8-mbtoucr-tests: New file.
63357         * tests/unistr/test-u8-mbtoucr.c: New file.
63359         Tests for module 'unistr/u32-mbtouc'.
63360         * modules/unistr/u32-mbtouc-tests: New file.
63361         * tests/unistr/test-u32-mbtouc.c: New file.
63363         Tests for module 'unistr/u16-mbtouc'.
63364         * modules/unistr/u16-mbtouc-tests: New file.
63365         * tests/unistr/test-u16-mbtouc.c: New file.
63367         Tests for module 'unistr/u8-mbtouc'.
63368         * modules/unistr/u8-mbtouc-tests: New file.
63369         * tests/unistr/test-u8-mbtouc.c: New file.
63371         Tests for module 'unistr/u32-mbtouc-unsafe'.
63372         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
63373         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
63374         * tests/unistr/test-u32-mbtouc.h: New file.
63376         Tests for module 'unistr/u16-mbtouc-unsafe'.
63377         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
63378         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
63379         * tests/unistr/test-u16-mbtouc.h: New file.
63381         Tests for module 'unistr/u8-mbtouc-unsafe'.
63382         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
63383         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
63384         * tests/unistr/test-u8-mbtouc.h: New file.
63386         Tests for module 'unistr/u32-mblen'.
63387         * modules/unistr/u32-mblen-tests: New file.
63388         * tests/unistr/test-u32-mblen.c: New file.
63390         Tests for module 'unistr/u16-mblen'.
63391         * modules/unistr/u16-mblen-tests: New file.
63392         * tests/unistr/test-u16-mblen.c: New file.
63394         Tests for module 'unistr/u8-mblen'.
63395         * modules/unistr/u8-mblen-tests: New file.
63396         * tests/unistr/test-u8-mblen.c: New file.
63398         Tests for module 'unistr/u32-to-u16'.
63399         * modules/unistr/u32-to-u16-tests: New file.
63400         * tests/unistr/test-u32-to-u16.c: New file.
63402         Tests for module 'unistr/u32-to-u8'.
63403         * modules/unistr/u32-to-u8-tests: New file.
63404         * tests/unistr/test-u32-to-u8.c: New file.
63406         Tests for module 'unistr/u16-to-u32'.
63407         * modules/unistr/u16-to-u32-tests: New file.
63408         * tests/unistr/test-u16-to-u32.c: New file.
63410         Tests for module 'unistr/u16-to-u8'.
63411         * modules/unistr/u16-to-u8-tests: New file.
63412         * tests/unistr/test-u16-to-u8.c: New file.
63414         Tests for module 'unistr/u8-to-u32'.
63415         * modules/unistr/u8-to-u32-tests: New file.
63416         * tests/unistr/test-u8-to-u32.c: New file.
63418         Tests for module 'unistr/u8-to-u16'.
63419         * modules/unistr/u8-to-u16-tests: New file.
63420         * tests/unistr/test-u8-to-u16.c: New file.
63422         Tests for module 'unistr/u32-check'.
63423         * modules/unistr/u32-check-tests: New file.
63424         * tests/unistr/test-u32-check.c: New file.
63426         Tests for module 'unistr/u16-check'.
63427         * modules/unistr/u16-check-tests: New file.
63428         * tests/unistr/test-u16-check.c: New file.
63430         Tests for module 'unistr/u8-check'.
63431         * modules/unistr/u8-check-tests: New file.
63432         * tests/unistr/test-u8-check.c: New file.
63434         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
63435         (category_equals): New function.
63436         (main): Add more tests.
63437         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
63439         * tests/unictype/test-bidi_byname.c (main): Add more tests.
63441 2010-01-10  Bruno Haible  <bruno@clisp.org>
63443         unistr/u*-strcoll: Try harder to distinguish different strings.
63444         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
63445         compare s1 and s2 to see if they are different.
63447 2010-01-10  Bruno Haible  <bruno@clisp.org>
63449         unistr/u*-stpncpy: Fix the return value.
63450         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
63451         description of the return value consistent with stpncpy in glibc.
63452         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
63453         written non-NUL unit.
63455 2010-01-10  Bruno Haible  <bruno@clisp.org>
63457         unistr/u*-next: Add missing dependencies.
63458         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
63459         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
63460         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
63462 2010-01-10  Bruno Haible  <bruno@clisp.org>
63464         unistr/u8-mbsnlen: Fix return value for incomplete character.
63465         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
63466         u8_mblen.
63467         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
63468         Remove unistr/u8-mblen.
63469         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
63470         u16_mblen.
63471         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
63472         Remove unistr/u16-mblen.
63474 2010-01-10  Bruno Haible  <bruno@clisp.org>
63476         wchar: Fix compilation error when <wchar.h> is used from coreutils.
63477         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
63478         Reported by Brian Gough <bjg@gnu.org> and
63479         Chris Clayton <chris2553@googlemail.com> via
63480         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
63482 2010-01-09  Bruno Haible  <bruno@clisp.org>
63484         unistr/u16-to-u32: Reject invalid input.
63485         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
63486         u16_mbtouc.
63487         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
63488         Remove unistr/u16-mbtouc.
63490         unistr/u16-to-u8: Reject invalid input.
63491         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
63492         u16_mbtouc.
63493         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
63494         Remove unistr/u16-mbtouc.
63496         unistr/u8-to-u32: Reject invalid input.
63497         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
63498         u8_mbtouc.
63499         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
63500         Remove unistr/u8-mbtouc.
63502         unistr/u8-to-u16: Reject invalid input.
63503         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
63504         u8_mbtouc.
63505         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
63506         Remove unistr/u8-mbtouc.
63508 2010-01-09  Bruno Haible  <bruno@clisp.org>
63510         Tests for module 'getlogin'.
63511         * modules/getlogin-tests: New file.
63512         * tests/test-getlogin.c: New file.
63514         New module 'getlogin'.
63515         * lib/unistd.in.h (getlogin): New declaration.
63516         * lib/getlogin.c: New file.
63517         * m4/getlogin.m4: New file.
63518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
63519         HAVE_GETLOGIN.
63520         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
63521         HAVE_GETLOGIN.
63522         * modules/getlogin: New file.
63523         * doc/posix-functions/getlogin.texi: Mention the new module.
63524         Reported by John W. Eaton <jwe@gnu.org>.
63526 2010-01-09  Bruno Haible  <bruno@clisp.org>
63528         getlogin_r: Support for native Windows.
63529         * lib/getlogin_r.c: Include <windows.h>
63530         (getlogin_r): Implement for native Windows.
63531         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
63532         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
63533         via John W. Eaton <jwe@gnu.org>.
63535 2010-01-09  Bruno Haible  <bruno@clisp.org>
63537         getlogin_r: Small fixes.
63538         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
63539         succeeds.
63540         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
63541         before testing whether getlogin_r is declared. No need to set
63542         HAVE_DECL_GETLOGIN_R to 1.
63543         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
63545 2010-01-09  Bruno Haible  <bruno@clisp.org>
63547         * lib/unistd.in.h (getlogin_r): Add comment.
63549 2010-01-09  Bruno Haible  <bruno@clisp.org>
63551         Tests for module 'getlogin_r'.
63552         * modules/getlogin_r-tests: New file.
63553         * tests/test-getlogin_r.c: New file.
63555 2010-01-09  Jim Meyering  <meyering@redhat.com>
63557         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
63558         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
63559         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
63561 2010-01-08  Simon Josefsson  <simon@josefsson.org>
63563         * lib/dup2.c (rpl_dup2): Improve comment.
63565 2010-01-08  Eric Blake  <ebb9@byu.net>
63567         maint.mk: allow packages to add makefile @@ exceptions
63568         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
63569         (sc_makefile_check): Rename...
63570         (sc_makefile_at_at_check): ...to this, and use hook.
63572         dup2: work around mingw bug
63573         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
63574         Reported by Simon Josefsson.
63576 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
63578         glob: Fix C++ compilation.
63579         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
63580         C++.
63582 2010-01-07  Bruno Haible  <bruno@clisp.org>
63584         Fix indentation of wctype.in.h, broken since 2007-01-06.
63585         * lib/wctype.in.h: Fix indentation of preprocessor directives.
63587 2010-01-07  Bruno Haible  <bruno@clisp.org>
63589         mbslen: Avoid collision with system function.
63590         * lib/string.in.h [MirBSD]: Include <wchar.h>.
63591         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
63592         * m4/mbslen.m4: New file.
63593         * modules/mbslen (Files): Add it.
63594         (configure.ac): Invoke gl_MBSLEN.
63595         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
63596         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
63597         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
63598         via Ian Beckwith <ianb@erislabs.net>.
63600 2010-01-07  Bruno Haible  <bruno@clisp.org>
63602         dirent: Document the last fix.
63603         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
63605 2010-01-07  Bruno Haible  <bruno@clisp.org>
63607         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
63608         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
63609         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
63610         va_list are defined.
63611         * doc/posix-headers/stdio.texi: Document the bug of missing types.
63612         Reported by Eric Blake.
63614 2010-01-07  Bruno Haible  <bruno@clisp.org>
63616         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
63617         * modules/xlist (Depends-on): Add 'list',
63618         * modules/xoset (Depends-on): Add 'oset'.
63619         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63621 2010-01-07  Bruno Haible  <bruno@clisp.org>
63623         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
63624         * doc/posix-functions/strncasecmp.texi: Likewise.
63626 2010-01-07  Bruno Haible  <bruno@clisp.org>
63628         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
63630 2010-01-07  John W. Eaton  <jwe@octave.org>
63632         wctype: allow C++ use
63633         * lib/wctype.in.h: Add extern "C" block for C++.
63635 2010-01-06  Eric Blake  <ebb9@byu.net>
63637         maint.mk: detect incorrect GFDL usage
63638         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
63640 2010-01-06  Jim Meyering  <meyering@redhat.com>
63641         and Eric Blake  <ebb9@byu.net>
63643         maint.mk: ignore multi-line copyright in NEWS
63644         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
63646 2010-01-06  Eric Blake  <ebb9@byu.net>
63648         select: add missing dependency
63649         * modules/select-tests (Depends-on): Move sockets dependency...
63650         * modules/select (Depends-on): ...here.
63651         Reported by Ian Beckwith.
63653         doc: regenerate INSTALL
63654         * doc/INSTALL: Reflect recent autoconf update.
63655         * doc/INSTALL.ISO: Likewise.
63656         * doc/INSTALL.UTF-8: Likewise.
63658         pread: fix compilation on glibc
63659         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
63660         Reported by Ralf Wildenhues.
63662         dirent: fix test failure
63663         * lib/dirent.in.h (includes): Guarantee ino_t.
63664         Reported by Ralf Wildenhues.
63666 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
63668         linkat, renameat: avoid bad free
63669         * lib/at-func2.c (at_func2): Fix typo.
63670         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
63672 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63674         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
63675         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
63676         to avoid failure of symlink test later.
63678 2010-01-06  Eric Blake  <ebb9@byu.net>
63680         stdio, unistd: guarantee ssize_t
63681         * lib/unistd.in.h (includes): Ensure that types required by POSIX
63682         2008 are exposed when needed.
63683         * lib/stdio.in.h (includes): Likewise.
63684         Reported by Ralf Wildenhues.
63686 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
63688         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
63689         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
63690         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
63692 2010-01-06  Jim Meyering  <meyering@redhat.com>
63694         readtokens: this module *does* require xalloc.h
63695         It uses only functions that were omitted by the old syntax-check rule.
63696         * lib/readtokens.c: Include "xalloc.h" once again.
63697         * modules/readtokens (Depends-on): Add xalloc.
63698         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
63700 2010-01-05  Eric Blake  <ebb9@byu.net>
63702         maint: support 'make announcement' from a VPATH build
63703         * top/maint.mk (announcement): Look for correct NEWS file.
63705 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
63707         utimens (fdutimens): ignore a negative FD, per contract
63708         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
63709         when we have a valid file descriptor.  Otherwise, using a brand
63710         new glibc (with just-patched futimens that now fails with EBADF)
63711         would cause this function to fail with ENOSYS.
63712         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
63713         See also http://bugzilla.redhat.com/552320.
63715 2010-01-05  Eric Blake  <ebb9@byu.net>
63717         strcase: document what it provides
63718         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
63719         gnulib module.
63720         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
63721         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
63723 2010-01-05  Jim Meyering  <meyering@redhat.com>
63725         maint: remove useless inclusions of "xalloc.h"
63726         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
63727         * lib/readtokens.c: Likewise.
63728         * lib/same.c: Likewise.
63729         * modules/getloadavg (Depends-on): Remove xalloc.
63730         * modules/readtokens: Likewise.
63731         * modules/same: Likewise.
63733         maint.mk: include 4 more function names in alloca.h-checking regexp
63734         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
63735         regexp.  Before, we would give a false-positive (saying alloca.h
63736         is included unnecessarily) when the only uses involved omitted symbols.
63738         xalloc.h: use consistent formatting
63739         * lib/xalloc.h: Move declarations to start in the first column.
63741 2010-01-05  Eric Blake  <ebb9@byu.net>
63743         mkdir: avoid xalloc
63744         * lib/mkdir.c (includes): Drop unused header.
63745         Reported by John W. Eaton.
63747 2010-01-04  Jim Meyering  <meyering@redhat.com>
63749         nl_langinfo: avoid configure-time syntax error
63750         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
63751         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
63752         the empty string.  Don't let that provoke a shell syntax error.
63754         regcomp, regexec, fnmatch: avoid array bounds read error
63755         * lib/regcomp.c (build_equiv_class): From glibc:
63756         Use only the low 24 bits of a findidx return value as an index
63757         into the weights array.  Patch by Ulrich Drepper:
63758         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
63759         * lib/regexec.c (check_node_accept_bytes): Likewise.
63760         * lib/fnmatch_loop.c (FCT): Likewise.
63762         regcomp: skip collseq lookup when there are no rules
63763         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
63764         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
63766         regcomp: recognize ill-formed { } expressions
63767         * lib/regcomp.c (parse_dup_op): From glibc:
63768         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
63770         regcomp: fix typo in comment
63771         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
63772         s/satisfy/satisfies/.
63774         regcomp: sync from glibc: remove dead store
63775         * lib/regcomp.c (duplicate_node_closure): Remove useless
63776         search_duplicated_node call and dead store.
63778         regcomp: sync from glibc; always use nl_langinfo
63779         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
63780         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
63781         * modules/regex (Depends-on): Add nl_langinfo.
63783 2010-01-04  Eric Blake  <ebb9@byu.net>
63785         fdopendir: fix configure test
63786         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
63788 2010-01-01  Bruno Haible  <bruno@clisp.org>
63790         wchar: Remove unused configure check.
63791         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
63793 2010-01-01  Eric Blake  <ebb9@byu.net>
63795         headers: make check of system header explicit
63796         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
63797         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
63798         ourselves.
63799         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63800         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63801         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63802         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
63803         internals.
63804         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
63805         missing.
63806         Suggested by Bruno Haible.
63808 2010-01-01  Jim Meyering  <meyering@redhat.com>
63810         ChangeLog: tweak to eliminate unnecessary copyright line
63811         * ChangeLog: Remove a copyright line that was mistakenly updated
63812         by today's update-copyright run.  Reported by Eric Blake.
63814         test-update-copyright: don't let envvar setting cause test failure
63815         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
63817 2010-01-01  Bruno Haible  <bruno@clisp.org>
63819         localename: Avoid gcc warning.
63820         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
63821         function if it is not used.
63823 2010-01-01  Jim Meyering  <meyering@redhat.com>
63825         update nearly all FSF copyright year lists to include 2010
63826         Use the same procedure as for 2009, outlined in
63827         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
63829         version-etc: set COPYRIGHT_YEAR to 2010
63830         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
63832 2009-12-31  Eric Blake  <ebb9@byu.net>
63834         doc: correct availability of cygwin 1.5.x getopt
63835         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
63836         variables.
63837         * doc/posix-functions/opterr.texi (opterr): Likewise.
63838         * doc/posix-functions/optind.texi (optind): Likewise.
63839         * doc/posix-functions/optopt.texi (optopt): Likewise.
63840         * doc/posix-functions/tzname.texi (tzname): Likewise.
63842         openat: update maintainer
63843         * modules/openat (Maintainer): Add myself.
63845         utimens: avoid shadowing warning
63846         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
63847         buffers into one, to avoid shadowing, as well as avoiding a
63848         redundant stat.
63849         Reported by Jim Meyering.
63851         test-dup2: avoid compiler warning
63852         * tests/test-dup2.c (is_inheritable): Only define if used.
63854 2010-01-01  Bruno Haible  <bruno@clisp.org>
63856         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
63857         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
63858         defined, use wctomb instead of wcrtomb.
63860 2010-01-01  Bruno Haible  <bruno@clisp.org>
63862         iconv: Reject native Solaris iconv.
63863         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
63864         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
63866 2009-12-31  Bruno Haible  <bruno@clisp.org>
63868         * tests/test-signal.c (main): Remove test of 'SIG'.
63870 2009-12-31  Bruno Haible  <bruno@clisp.org>
63872         spawn: Fix incomplete fix.
63873         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
63874         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
63875         warnings for GNULIB_POSIXCHECK again.
63876         Reported by Eric Blake.
63878 2009-12-31  Bruno Haible  <bruno@clisp.org>
63880         Avoid namespace pollution on glibc systems.
63881         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
63882         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
63883         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
63884         glibc systems.
63886 2009-12-31  Bruno Haible  <bruno@clisp.org>
63888         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
63889         (gl_REPLACE_WCHAR_H): Turn into a no-op.
63890         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
63891         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
63892         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
63893         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
63894         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
63896 2009-12-31  Bruno Haible  <bruno@clisp.org>
63898         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
63899         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
63900         afterwards.
63902 2009-12-31  Bruno Haible  <bruno@clisp.org>
63904         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
63905         SYS_UTSNAME_H.
63907 2009-12-31  Bruno Haible  <bruno@clisp.org>
63909         spawn: Fix misapplied patch.
63910         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
63911         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
63912         warnings for GNULIB_POSIXCHECK.
63914 2009-12-31  Bruno Haible  <bruno@clisp.org>
63916         times: Update after sys_times changed.
63917         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
63918         * modules/times (Files): Add it.
63919         (configure.ac): Invoke gl_FUNC_TIMES.
63921 2009-12-31  Bruno Haible  <bruno@clisp.org>
63923         Use AC_C_INLINE where necessary.
63924         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
63925         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
63926         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63927         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63928         * m4/mbfile.m4 (gl_MBFILE): Likewise.
63929         * m4/mbiter.m4 (gl_MBITER): Likewise.
63930         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63931         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63932         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
63933         * modules/u64 (configure.ac): Likewise.
63935 2009-12-31  Bruno Haible  <bruno@clisp.org>
63937         Use AC_C_INLINE instead of module 'inline' where possible.
63938         * modules/inline (Description): Clarify purpose.
63939         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
63940         * modules/count-one-bits (Depends-on): Remove inline.
63941         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
63942         * modules/openat (Depends-on): Remove inline.
63943         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
63944         instead of depending on module 'inline'.
63945         * modules/filevercmp (Depends-on, configure.ac): Likewise.
63946         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
63947         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
63948         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
63949         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
63950         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
63951         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
63952         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
63953         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
63954         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
63955         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
63956         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
63957         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
63958         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
63959         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
63960         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
63961         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
63962         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
63963         Likewise.
63964         * modules/unictype/property-ascii-hex-digit (Depends-on,
63965         configure.ac): Likewise.
63966         * modules/unictype/property-bidi-arabic-digit (Depends-on,
63967         configure.ac): Likewise.
63968         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
63969         configure.ac): Likewise.
63970         * modules/unictype/property-bidi-block-separator (Depends-on,
63971         configure.ac): Likewise.
63972         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
63973         configure.ac): Likewise.
63974         * modules/unictype/property-bidi-common-separator (Depends-on,
63975         configure.ac): Likewise.
63976         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
63977         Likewise.
63978         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
63979         configure.ac): Likewise.
63980         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
63981         configure.ac): Likewise.
63982         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
63983         configure.ac): Likewise.
63984         * modules/unictype/property-bidi-european-digit (Depends-on,
63985         configure.ac): Likewise.
63986         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
63987         configure.ac): Likewise.
63988         * modules/unictype/property-bidi-left-to-right (Depends-on,
63989         configure.ac): Likewise.
63990         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
63991         configure.ac): Likewise.
63992         * modules/unictype/property-bidi-other-neutral (Depends-on,
63993         configure.ac): Likewise.
63994         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
63995         Likewise.
63996         * modules/unictype/property-bidi-segment-separator (Depends-on,
63997         configure.ac): Likewise.
63998         * modules/unictype/property-bidi-whitespace (Depends-on,
63999         configure.ac): Likewise.
64000         * modules/unictype/property-combining (Depends-on, configure.ac):
64001         Likewise.
64002         * modules/unictype/property-composite (Depends-on, configure.ac):
64003         Likewise.
64004         * modules/unictype/property-currency-symbol (Depends-on,
64005         configure.ac): Likewise.
64006         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
64007         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
64008         Likewise.
64009         * modules/unictype/property-default-ignorable-code-point (Depends-on,
64010         configure.ac): Likewise.
64011         * modules/unictype/property-deprecated (Depends-on, configure.ac):
64012         Likewise.
64013         * modules/unictype/property-diacritic (Depends-on, configure.ac):
64014         Likewise.
64015         * modules/unictype/property-extender (Depends-on, configure.ac):
64016         Likewise.
64017         * modules/unictype/property-format-control (Depends-on, configure.ac):
64018         Likewise.
64019         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
64020         Likewise.
64021         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
64022         Likewise.
64023         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
64024         Likewise.
64025         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
64026         Likewise.
64027         * modules/unictype/property-hyphen (Depends-on, configure.ac):
64028         Likewise.
64029         * modules/unictype/property-id-continue (Depends-on, configure.ac):
64030         Likewise.
64031         * modules/unictype/property-id-start (Depends-on, configure.ac):
64032         Likewise.
64033         * modules/unictype/property-ideographic (Depends-on, configure.ac):
64034         Likewise.
64035         * modules/unictype/property-ids-binary-operator (Depends-on,
64036         configure.ac): Likewise.
64037         * modules/unictype/property-ids-trinary-operator (Depends-on,
64038         configure.ac): Likewise.
64039         * modules/unictype/property-ignorable-control (Depends-on,
64040         configure.ac): Likewise.
64041         * modules/unictype/property-iso-control (Depends-on, configure.ac):
64042         Likewise.
64043         * modules/unictype/property-join-control (Depends-on, configure.ac):
64044         Likewise.
64045         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
64046         Likewise.
64047         * modules/unictype/property-line-separator (Depends-on, configure.ac):
64048         Likewise.
64049         * modules/unictype/property-logical-order-exception (Depends-on,
64050         configure.ac): Likewise.
64051         * modules/unictype/property-lowercase (Depends-on, configure.ac):
64052         Likewise.
64053         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
64054         * modules/unictype/property-non-break (Depends-on, configure.ac):
64055         Likewise.
64056         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
64057         Likewise.
64058         * modules/unictype/property-numeric (Depends-on, configure.ac):
64059         Likewise.
64060         * modules/unictype/property-other-alphabetic (Depends-on,
64061         configure.ac): Likewise.
64062         * modules/unictype/property-other-default-ignorable-code-point
64063         (Depends-on, configure.ac): Likewise.
64064         * modules/unictype/property-other-grapheme-extend (Depends-on,
64065         configure.ac): Likewise.
64066         * modules/unictype/property-other-id-continue (Depends-on,
64067         configure.ac): Likewise.
64068         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
64069         Likewise.
64070         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
64071         Likewise.
64072         * modules/unictype/property-other-math (Depends-on, configure.ac):
64073         Likewise.
64074         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
64075         Likewise.
64076         * modules/unictype/property-paired-punctuation (Depends-on,
64077         configure.ac): Likewise.
64078         * modules/unictype/property-paragraph-separator (Depends-on,
64079         configure.ac): Likewise.
64080         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
64081         Likewise.
64082         * modules/unictype/property-pattern-white-space (Depends-on,
64083         configure.ac): Likewise.
64084         * modules/unictype/property-private-use (Depends-on, configure.ac):
64085         Likewise.
64086         * modules/unictype/property-punctuation (Depends-on, configure.ac):
64087         Likewise.
64088         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
64089         Likewise.
64090         * modules/unictype/property-radical (Depends-on, configure.ac):
64091         Likewise.
64092         * modules/unictype/property-sentence-terminal (Depends-on,
64093         configure.ac): Likewise.
64094         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
64095         Likewise.
64096         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
64097         * modules/unictype/property-terminal-punctuation (Depends-on,
64098         configure.ac): Likewise.
64099         * modules/unictype/property-titlecase (Depends-on, configure.ac):
64100         Likewise.
64101         * modules/unictype/property-unassigned-code-value (Depends-on,
64102         configure.ac): Likewise.
64103         * modules/unictype/property-unified-ideograph (Depends-on,
64104         configure.ac): Likewise.
64105         * modules/unictype/property-uppercase (Depends-on, configure.ac):
64106         Likewise.
64107         * modules/unictype/property-variation-selector (Depends-on,
64108         configure.ac): Likewise.
64109         * modules/unictype/property-white-space (Depends-on, configure.ac):
64110         Likewise.
64111         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
64112         Likewise.
64113         * modules/unictype/property-xid-start (Depends-on, configure.ac):
64114         Likewise.
64115         * modules/unictype/property-zero-width (Depends-on, configure.ac):
64116         Likewise.
64117         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
64118         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
64119         Likewise.
64121 2009-12-31  Bruno Haible  <bruno@clisp.org>
64123         Remove unnecessary AC_C_INLINE invocation.
64124         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
64125         since 2009-08-21.
64127 2009-12-31  Jim Meyering  <meyering@redhat.com>
64129         maint.mk: don't require explicit gpg_key_ID in cfg.mk
64130         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
64131         With this change, we can all remove the gpg_key_ID = ... definition
64132         from our respective cfg.mk files.
64134         maint.mk: create announcement template in ~/, not in /tmp
64135         * top/maint.mk (emit_upload_commands): Adjust.
64136         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
64137         Remove temporary file, .ci-msg.
64139 2009-12-31  Eric Blake  <ebb9@byu.net>
64141         link-warning: always build headers with link warnings
64142         * modules/arpa_inet (Makefile.am): Always build replacement
64143         header.
64144         * modules/ctype (Makefile.am): Likewise.
64145         * modules/dirent (Makefile.am): Likewise.
64146         * modules/inttypes (Makefile.am): Likewise.
64147         * modules/langinfo (Makefile.am): Likewise.
64148         * modules/locale (Makefile.am): Likewise.
64149         * modules/spawn (Makefile.am): Likewise.
64150         * modules/sys_file (Makefile.am): Likewise.
64151         * modules/sys_ioctl (Makefile.am): Likewise.
64152         * modules/sys_select (Makefile.am): Likewise.
64153         * modules/sys_socket (Makefile.am): Likewise.
64154         * modules/sys_times (Makefile.am): Likewise.
64155         * modules/sys_utsname (Makefile.am): Likewise.
64156         * modules/sys_wait (Makefile.am): Likewise.
64157         * modules/wchar (Makefile.am): Likewise.
64158         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
64159         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
64160         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
64161         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
64162         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
64163         Likewise.
64164         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64165         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
64166         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
64167         Likewise.
64168         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
64169         Likewise.
64170         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
64171         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
64172         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
64173         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64174         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
64175         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
64176         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
64177         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
64178         (gl_WCHAR_H_DEFAULTS): Likewise.
64180 2009-12-31  Eric Blake  <ebb9@byu.net>
64182         signal, spawn: use link warnings
64183         * lib/signal.in.h (sigset_t): Make unconditional.
64184         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
64185         (sigpending, sigprocmask, sigaction): Add link warnings.
64186         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
64187         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
64188         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
64189         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
64190         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
64191         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
64192         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
64193         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
64194         (posix_spawn_file_actions_destroy)
64195         (posix_spawn_file_actions_addopen)
64196         (posix_spawn_file_actions_addclose)
64197         (posix_spawn_file_actions_adddup2): Likewise.
64198         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
64199         * tests/test-signal.c (main): Enhance test.
64201         spawn: improve wrapper support
64202         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
64203         (gl_SPAWN_H_DEFAULTS): New defaults.
64204         * modules/spawn (Makefile.am): Substitute them.
64205         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
64206         Only declare if missing or broken.
64208         sys_times, sys_utsname: use include_next
64209         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
64210         header.
64211         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
64212         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
64213         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
64214         * modules/sys_times (Depends-on): Add include_next.
64215         (Makefile.am): Substitute additional values.
64216         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
64217         * lib/sys_times.in.h (includes): Include native header, if
64218         available.
64219         * lib/sys_utsname.in.h (includes): Likewise.
64220         * tests/test-sys_times.c (main): Enhance test.
64222         fdutimensat: revert prior patch
64223         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
64224         utimens.h.
64225         Reported by Bruno Haible.
64227 2009-12-30  Eric Blake  <ebb9@byu.net>
64229         sys_wait: drop link-warning dependency
64230         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
64231         link-warning efforts.
64232         * lib/sys_wait.in.h: Likewise.
64234         fdutimensat: remove bogus dependency
64235         * modules/fdutimensat (Depends-on): Drop inline.
64237         unistd: fix typo
64238         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
64240 2009-12-30  Bruno Haible  <bruno@clisp.org>
64242         Fix compilation error with Solaris cc.
64243         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
64244         * lib/unicase/u16-is-invariant.c: Likewise.
64245         * lib/unicase/u32-is-invariant.c: Likewise.
64246         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
64248 2009-12-30  Bruno Haible  <bruno@clisp.org>
64250         Fix test crash.
64251         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
64252         locales.
64253         Reported by Simon Josefsson <simon@josefsson.org>.
64255 2009-12-30  Bruno Haible  <bruno@clisp.org>
64257         Fix compilation error on most platforms.
64258         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
64259         Reported by Simon Josefsson <simon@josefsson.org>
64260         and Nelson H. F. Beebe <beebe@math.utah.edu>.
64262 2009-12-30  Eric Blake  <ebb9@byu.net>
64264         futimens, utimensat: work around ntfs-3g bug
64265         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
64266         a ctime bug is present, and expand workaround to cover ntfs-3g.
64267         * lib/utimens.c (fdutimens, lutimens): Likewise.
64268         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
64269         (validate_timespec): Adjust return value.
64270         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
64271         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
64272         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
64274 2009-12-29  Eric Blake  <ebb9@byu.net>
64276         link-warning: make usage consistent
64277         * modules/ctype (Depends-on): Add link-warning.
64278         (Makefile.am): Update rules accordingly.
64279         * modules/langinfo (Depends-on, Makefile.am): Likewise.
64280         * modules/locale (Depends-on, Makefile.am): Likewise.
64281         * modules/sys_file (Makefile.am): Likewise.
64282         * modules/getopt-posix (Makefile.am): Delete unused link warning
64283         efforts.
64284         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
64285         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
64286         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
64287         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
64289         stdio: remove unused variables
64290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
64291         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
64292         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
64294         tests: test more substitute headers
64295         * modules/ctype-tests: New file.
64296         * modules/dirent-tests: Likewise.
64297         * modules/spawn-tests: Likewise.
64298         * modules/sys_file-tests: Likewise.
64299         * modules/sys_ioctl-tests: Likewise.
64300         * modules/sys_wait-tests: Likewise.
64301         * tests/test-ctype.c: Likewise.
64302         * tests/test-dirent.c: Likewise.
64303         * tests/test-spawn.c: Likewise.
64304         * tests/test-sys_file.c: Likewise.
64305         * tests/test-sys_ioctl.c: Likewise.
64306         * tests/test-sys_wait.c: Likewise.
64307         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
64308         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
64309         whether or not flock is in use.
64311         tests: remove License section from module
64312         * modules/arpa_inet-tests: Remove unneeded section.
64313         * modules/byteswap-tests: Likewise.
64314         * modules/ceilf-tests: Likewise.
64315         * modules/ceill-tests: Likewise.
64316         * modules/crypto/des-tests: Likewise.
64317         * modules/crypto/gc-arcfour-tests: Likewise.
64318         * modules/crypto/gc-arctwo-tests: Likewise.
64319         * modules/crypto/gc-des-tests: Likewise.
64320         * modules/crypto/gc-hmac-md5-tests: Likewise.
64321         * modules/crypto/gc-hmac-sha1-tests: Likewise.
64322         * modules/crypto/gc-md2-tests: Likewise.
64323         * modules/crypto/gc-md4-tests: Likewise.
64324         * modules/crypto/gc-md5-tests: Likewise.
64325         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
64326         * modules/crypto/gc-rijndael-tests: Likewise.
64327         * modules/crypto/gc-sha1-tests: Likewise.
64328         * modules/crypto/gc-tests: Likewise.
64329         * modules/crypto/md2-tests: Likewise.
64330         * modules/crypto/md4-tests: Likewise.
64331         * modules/fcntl-h-tests: Likewise.
64332         * modules/floorf-tests: Likewise.
64333         * modules/floorl-tests: Likewise.
64334         * modules/frexp-nolibm-tests: Likewise.
64335         * modules/frexp-tests: Likewise.
64336         * modules/frexpl-nolibm-tests: Likewise.
64337         * modules/frexpl-tests: Likewise.
64338         * modules/getaddrinfo-tests: Likewise.
64339         * modules/inttypes-tests: Likewise.
64340         * modules/isfinite-tests: Likewise.
64341         * modules/isinf-tests: Likewise.
64342         * modules/ldexpl-tests: Likewise.
64343         * modules/locale-tests: Likewise.
64344         * modules/math-tests: Likewise.
64345         * modules/netdb-tests: Likewise.
64346         * modules/netinet_in-tests: Likewise.
64347         * modules/printf-frexp-tests: Likewise.
64348         * modules/printf-frexpl-tests: Likewise.
64349         * modules/priv-set-tests: Likewise.
64350         * modules/random_r-tests: Likewise.
64351         * modules/round-tests: Likewise.
64352         * modules/roundf-tests: Likewise.
64353         * modules/roundl-tests: Likewise.
64354         * modules/search-tests: Likewise.
64355         * modules/select-tests: Likewise.
64356         * modules/signal-tests: Likewise.
64357         * modules/stdbool-tests: Likewise.
64358         * modules/stddef-tests: Likewise.
64359         * modules/stdint-tests: Likewise.
64360         * modules/stdio-tests: Likewise.
64361         * modules/stdlib-tests: Likewise.
64362         * modules/string-tests: Likewise.
64363         * modules/strings-tests: Likewise.
64364         * modules/sys_select-tests: Likewise.
64365         * modules/sys_socket-tests: Likewise.
64366         * modules/sys_stat-tests: Likewise.
64367         * modules/sys_time-tests: Likewise.
64368         * modules/sys_utsname-tests: Likewise.
64369         * modules/sysexits-tests: Likewise.
64370         * modules/time-tests: Likewise.
64371         * modules/trunc-tests: Likewise.
64372         * modules/truncf-tests: Likewise.
64373         * modules/truncl-tests: Likewise.
64374         * modules/tsearch-tests: Likewise.
64375         * modules/unistd-tests: Likewise.
64376         * modules/wchar-tests: Likewise.
64377         * modules/wctype-tests: Likewise.
64379         tests: fix license on several tests
64380         * tests/test-des.c: Update to GPLv3+.
64381         * tests/test-flock.c: Likewise.
64382         * tests/test-fsync.c: Likewise.
64383         * tests/test-futimens.h: Likewise.
64384         * tests/test-gc-arcfour.c: Likewise.
64385         * tests/test-gc-arctwo.c: Likewise.
64386         * tests/test-gc-des.c: Likewise.
64387         * tests/test-gc-hmac-md5.c: Likewise.
64388         * tests/test-gc-hmac-sha1.c: Likewise.
64389         * tests/test-gc-md2.c: Likewise.
64390         * tests/test-gc-md4.c: Likewise.
64391         * tests/test-gc-md5.c: Likewise.
64392         * tests/test-gc-pbkdf2-sha1.c: Likewise.
64393         * tests/test-gc-rijndael.c: Likewise.
64394         * tests/test-gc-sha1.c: Likewise.
64395         * tests/test-gc.c: Likewise.
64396         * tests/test-getcwd.c: Likewise.
64397         * tests/test-link.c: Likewise.
64398         * tests/test-link.h: Likewise.
64399         * tests/test-lutimens.h: Likewise.
64400         * tests/test-md2.c: Likewise.
64401         * tests/test-md4.c: Likewise.
64402         * tests/test-mkdir.h: Likewise.
64403         * tests/test-rename.c: Likewise.
64404         * tests/test-rename.h: Likewise.
64405         * tests/test-safe-alloc.c: Likewise.
64406         * tests/test-utimens-common.h: Likewise.
64407         * tests/test-utimens.h: Likewise.
64409         maint: sync license texts
64410         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
64411         * doc/gpl-3.0.texi: Revert copyright year update.
64412         * doc/lgpl-3.0.texi: Likewise.
64414 2009-12-29  Jim Meyering  <meyering@redhat.com>
64416         update nearly all FSF copyright year lists to include 2009
64417         The files named by the following are exempted:
64418             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
64419               test -f "$dst" && { echo "$dst"; continue; }
64420               test -d "$dst" || continue
64421               echo "$dst"/$(basename "$src")
64422             done > exempt
64423             git ls-files tests/unictype >> exempt
64424         In the remaining files, convert to all-interval notation if
64425         - there is already at least one year interval like 2000-2003
64426         - the file is maintained by me
64427         - the file is in lib/uni*/, where that style already prevails
64428         Otherwise, use update-copyright's default.
64430 2009-12-29  Simon Josefsson  <simon@josefsson.org>
64431         and Eric Blake  <ebb9@byu.net>
64433         tests: don't require debug system() to pass
64434         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
64435         * tests/test-rmdir.h (test_rmdir_func): Likewise.
64436         * tests/test-unlink.h (test_unlink_func): Likewise.
64437         * tests/test-fstatat.c (main): ...into callers.
64438         * tests/test-lstat.c (main): Likewise.
64439         * tests/test-rmdir.c (main): Likewise.
64440         * tests/test-unlink.c (main): Likewise.
64441         * tests/test-unlinkat.c (main): Likewise.
64442         * tests/test-areadlink-with-size.c (main): Don't require a
64443         debug-only system call to pass, aiding cross-testing to mingw.
64444         * tests/test-areadlink.c (main): Likewise.
64445         * tests/test-areadlinkat-with-size.c (main): Likewise.
64446         * tests/test-areadlinkat.c (main): Likewise.
64447         * tests/test-canonicalize-lgpl.c (main): Likewise.
64448         * tests/test-canonicalize.c (main): Likewise.
64449         * tests/test-chown.c (main): Likewise.
64450         * tests/test-fchownat.c (main): Likewise.
64451         * tests/test-lchown.c (main): Likewise.
64452         * tests/test-fdutimensat.c (main): Likewise.
64453         * tests/test-futimens.c (main): Likewise.
64454         * tests/test-link.c (main): Likewise.
64455         * tests/test-linkat.c (main): Likewise.
64456         * tests/test-mkdir.c (main): Likewise.
64457         * tests/test-mkdirat.c (main): Likewise.
64458         * tests/test-mkfifo.c (main): Likewise.
64459         * tests/test-mkfifoat.c (main): Likewise.
64460         * tests/test-mknod.c (main): Likewise.
64461         * tests/test-readlink.c (main): Likewise.
64462         * tests/test-remove.c (main): Likewise.
64463         * tests/test-rename.c (main): Likewise.
64464         * tests/test-renameat.c (main): Likewise.
64465         * tests/test-symlink.c (main): Likewise.
64466         * tests/test-symlinkat.c (main): Likewise.
64467         * tests/test-utimens.c (main): Likewise.
64468         * tests/test-utimensat.c (main): Likewise.
64470 2009-12-29  Simon Josefsson  <simon@josefsson.org>
64472         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
64473         on $(UNUSED_PARAMETER_H) to avoid build failure.
64475 2009-12-28  Jim Meyering  <meyering@redhat.com>
64477         update-copyright: you may specify a max. line length other than 72
64478         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
64480         maint: use consistent FSF copyright line syntax
64481         * lib/posixtm.c: Add missing comma in FSF copyright line.
64482         * lib/posixtm.h: Likewise.
64483         * lib/getugroups.c: Add missing ", Inc.".
64485         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
64486         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
64487         FSF copyright line.  Remove trailing blanks.
64489 2009-12-28  Eric Blake  <ebb9@byu.net>
64491         test-dup2: reduce dependencies
64492         * modules/cloexec (Configure.ac): Set witness.
64493         * modules/dup2-tests (Depends-on): Drop cloexec.
64494         * tests/test-dup2.c (main): Skip portion of test if cloexec module
64495         not present.
64496         Suggested by Bruno Haible.
64498 2009-12-26  Bruno Haible  <bruno@clisp.org>
64500         Remove an unneeded dependency.
64501         * modules/fseterr (Depends-on): Remove dup2.
64503 2009-12-26  Eric Blake  <ebb9@byu.net>
64505         tests: use macros.h in more places
64506         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
64507         (ASSERT_STREAM): Provide default of stderr.
64508         * tests/test-dirent-safer.c: Include macros.h, using alternate
64509         stream for assertions.
64510         * tests/test-dup-safer.c: Likewise.
64511         * tests/test-freopen-safer.c: Likewise.
64512         * tests/test-getopt.c: Likewise.
64513         * tests/test-openat-safer.c: Likewise.
64514         * tests/test-pipe.c: Likewise.
64515         * tests/test-popen-safer.c: Likewise.
64516         * modules/dirent-safer-tests (Files): Include macros.h.
64517         * modules/unistd-safer-tests (Files): Likewise.
64518         * modules/freopen-safer-tests (Files): Likewise.
64519         * modules/getopt-posix-tests (Files): Likewise.
64520         * modules/openat-safer-tests (Files): Likewise.
64521         * modules/pipe-tests (Files): Likewise.
64523 2009-12-26  Bruno Haible  <bruno@clisp.org>
64525         javacomp-script: Portability fix.
64526         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
64527         that it also works on Solaris.
64529 2009-12-26  Bruno Haible  <bruno@clisp.org>
64531         localename: Fix storage allocation of gl_locale_name_thread's result.
64532         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
64533         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
64534         all platforms that have 'uselocale'.
64535         (gl_locale_name_thread_unsafe): New function, extracted from
64536         gl_locale_name_thread.
64537         (gl_locale_name_thread): Call struniq on all platforms that have
64538         'uselocale'.
64539         * tests/test-localename.c (test_locale_name_thread): Check that the
64540         resulting strings are permanently allocated.
64541         * modules/localename-tests (Depends-on): Add strdup.
64543 2009-12-26  Bruno Haible  <bruno@clisp.org>
64545         * tests/test-localename.c (categories): Fill in the strings.
64547 2009-12-26  Jim Meyering  <meyering@redhat.com>
64549         isdir: complete the removal of m4/isdir.m4
64550         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
64552         isdir: clean up, since at least grep still uses it
64553         * lib/isdir.c: Include "isdir.h".
64554         (S_ISDIR): Remove now-unneeded definition.
64555         * modules/isdir (Files): Add lib/isdir.h.
64556         * lib/isdir.h: New file, with declaration.
64557         * m4/isdir.m4: Remove file -- unneeded.
64559 2009-12-25  Bruno Haible  <bruno@clisp.org>
64561         selinux-h: Make generated .h files standalone.
64562         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
64563         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
64564         * lib/se-selinux.in.h: Likewise.
64565         * modules/selinux-h (Depends-on): Add unused-parameter.
64566         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
64567         selinux/selinux.h and selinux/context.h.
64568         Suggested by Eric Blake.
64570 2009-12-25  Bruno Haible  <bruno@clisp.org>
64572         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
64573         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
64574         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
64575         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
64576         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
64578 2009-12-24  Bruno Haible  <bruno@clisp.org>
64580         openat: Fix warning.
64581         * lib/openat-proc.c: Include <unistd.h>.
64583 2009-12-24  Bruno Haible  <bruno@clisp.org>
64585         New module 'unused-parameter'.
64586         * build-aux/unused-parameter.h: New file, extracted from earlier
64587         gnulib-common.m4.
64588         * modules/unused-parameter: New file.
64589         * lib/unistr.h: Include unused-parameter.h.
64590         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
64591         _GL_UNUSED.
64592         * modules/unistr/base (Depends-on): Add unused-parameter.
64594 2009-12-24  Bruno Haible  <bruno@clisp.org>
64596         Add missing dependencies to 'extensions' module.
64597         * m4/extensions.m4: Add comment.
64598         * modules/accept4 (Depends-on): Add extensions.
64599         * modules/dup3 (Depends-on): Likewise.
64600         * modules/fcntl (Depends-on): Likewise.
64601         * modules/futimens (Depends-on): Likewise.
64602         * modules/mknod (Depends-on): Likewise.
64603         * modules/pipe2 (Depends-on): Likewise.
64604         * modules/stat-time (Depends-on): Likewise.
64605         * modules/strcasestr-simple (Depends-on): Likewise.
64606         * modules/strsignal (Depends-on): Likewise.
64607         * modules/utimensat (Depends-on): Likewise.
64608         * modules/localcharset (Depends-on): Likewise. Needed because of
64609         gl_FCNTL_O_FLAGS.
64610         * modules/wcrtomb (Depends-on): Likewise. Needed because of
64611         AC_TYPE_MBSTATE_T.
64612         * modules/wcsnrtombs (Depends-on): Likewise.
64613         * modules/wcsrtombs (Depends-on): Likewise.
64615 2009-12-24  Bruno Haible  <bruno@clisp.org>
64617         binary-io: Avoid gcc warning due to SET_BINARY.
64618         * lib/binary-io.h (SET_BINARY): Cast the result to void.
64619         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
64621 2009-12-24  Bruno Haible  <bruno@clisp.org>
64623         Avoid future namespace pollution on glibc systems.
64624         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
64625         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
64626         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
64627         glibc systems.
64629 2009-12-24  Bruno Haible  <bruno@clisp.org>
64631         Refactor common macros used in tests.
64632         * tests/macros.h: New file.
64633         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
64634         and/or <stdlib.h>, if appropriate.
64635         (ASSERT, SIZEOF): Remove macros.
64636         * tests/test-areadlink-with-size.c: Likewise.
64637         * tests/test-areadlinkat.c: Likewise.
64638         * tests/test-areadlinkat-with-size.c: Likewise.
64639         * tests/test-argmatch.c: Likewise.
64640         * tests/test-argv-iter.c: Likewise.
64641         * tests/test-array-mergesort.c: Likewise.
64642         * tests/test-array_list.c: Likewise.
64643         * tests/test-array_oset.c: Likewise.
64644         * tests/test-avltree_list.c: Likewise.
64645         * tests/test-avltree_oset.c: Likewise.
64646         * tests/test-avltreehash_list.c: Likewise.
64647         * tests/test-base64.c: Likewise.
64648         * tests/test-binary-io.c: Likewise.
64649         * tests/test-bitrotate.c: Likewise.
64650         * tests/test-btowc.c: Likewise.
64651         * tests/test-byteswap.c: Likewise.
64652         * tests/test-c-ctype.c: Likewise.
64653         * tests/test-c-stack.c: Likewise.
64654         * tests/test-c-strcasecmp.c: Likewise.
64655         * tests/test-c-strcasestr.c: Likewise.
64656         * tests/test-c-strncasecmp.c: Likewise.
64657         * tests/test-c-strstr.c: Likewise.
64658         * tests/test-canonicalize-lgpl.c: Likewise.
64659         * tests/test-canonicalize.c: Likewise.
64660         * tests/test-carray_list.c: Likewise.
64661         * tests/test-ceilf1.c: Likewise.
64662         * tests/test-ceilf2.c: Likewise.
64663         * tests/test-ceill.c: Likewise.
64664         * tests/test-chown.c: Likewise.
64665         * tests/test-cloexec.c: Likewise.
64666         * tests/test-copy-acl.c: Likewise.
64667         * tests/test-copy-file.c: Likewise.
64668         * tests/test-count-one-bits.c: Likewise.
64669         * tests/test-dprintf-posix.c: Likewise.
64670         * tests/test-dup2.c: Likewise.
64671         * tests/test-dup3.c: Likewise.
64672         * tests/test-duplocale.c: Likewise.
64673         * tests/test-fbufmode.c: Likewise.
64674         * tests/test-fchdir.c: Likewise.
64675         * tests/test-fchownat.c: Likewise.
64676         * tests/test-fcntl-safer.c: Likewise.
64677         * tests/test-fcntl.c: Likewise.
64678         * tests/test-fdopendir.c: Likewise.
64679         * tests/test-fdutimensat.c: Likewise.
64680         * tests/test-fflush2.c: Likewise.
64681         * tests/test-file-has-acl.c: Likewise.
64682         * tests/test-filevercmp.c: Likewise.
64683         * tests/test-flock.c: Likewise.
64684         * tests/test-floorf1.c: Likewise.
64685         * tests/test-floorf2.c: Likewise.
64686         * tests/test-floorl.c: Likewise.
64687         * tests/test-fnmatch.c: Likewise.
64688         * tests/test-fopen.h: Likewise.
64689         * tests/test-fpending.c: Likewise.
64690         * tests/test-fprintf-posix.c: Likewise.
64691         * tests/test-fpurge.c: Likewise.
64692         * tests/test-freadable.c: Likewise.
64693         * tests/test-freadahead.c: Likewise.
64694         * tests/test-freading.c: Likewise.
64695         * tests/test-freadptr.c: Likewise.
64696         * tests/test-freadptr2.c: Likewise.
64697         * tests/test-freadseek.c: Likewise.
64698         * tests/test-freopen.c: Likewise.
64699         * tests/test-frexp.c: Likewise.
64700         * tests/test-frexpl.c: Likewise.
64701         * tests/test-fseek.c: Likewise.
64702         * tests/test-fseeko.c: Likewise.
64703         * tests/test-fstatat.c: Likewise.
64704         * tests/test-fstrcmp.c: Likewise.
64705         * tests/test-fsync.c: Likewise.
64706         * tests/test-ftell.c: Likewise.
64707         * tests/test-ftello.c: Likewise.
64708         * tests/test-func.c: Likewise.
64709         * tests/test-futimens.c: Likewise.
64710         * tests/test-fwritable.c: Likewise.
64711         * tests/test-fwriting.c: Likewise.
64712         * tests/test-getcwd.c: Likewise.
64713         * tests/test-getdate.c: Likewise.
64714         * tests/test-getdelim.c: Likewise.
64715         * tests/test-getdtablesize.c: Likewise.
64716         * tests/test-getgroups.c: Likewise.
64717         * tests/test-getline.c: Likewise.
64718         * tests/test-getndelim2.c: Likewise.
64719         * tests/test-glob.c: Likewise.
64720         * tests/test-hash.c: Likewise.
64721         * tests/test-i-ring.c: Likewise.
64722         * tests/test-iconv-utf.c: Likewise.
64723         * tests/test-iconv.c: Likewise.
64724         * tests/test-idpriv-drop.c: Likewise.
64725         * tests/test-idpriv-droptemp.c: Likewise.
64726         * tests/test-inet_ntop.c: Likewise.
64727         * tests/test-inet_pton.c: Likewise.
64728         * tests/test-isblank.c: Likewise.
64729         * tests/test-isfinite.c: Likewise.
64730         * tests/test-isinf.c: Likewise.
64731         * tests/test-isnan.c: Likewise.
64732         * tests/test-isnand.h: Likewise.
64733         * tests/test-isnanf.h: Likewise.
64734         * tests/test-isnanl.h: Likewise.
64735         * tests/test-lchown.c: Likewise.
64736         * tests/test-ldexpl.c: Likewise.
64737         * tests/test-link.c: Likewise.
64738         * tests/test-linkat.c: Likewise.
64739         * tests/test-linked_list.c: Likewise.
64740         * tests/test-linkedhash_list.c: Likewise.
64741         * tests/test-localename.c: Likewise.
64742         * tests/test-lseek.c: Likewise.
64743         * tests/test-lstat.c: Likewise.
64744         * tests/test-mbmemcasecmp.c: Likewise.
64745         * tests/test-mbmemcasecoll.c: Likewise.
64746         * tests/test-mbrtowc.c: Likewise.
64747         * tests/test-mbscasecmp.c: Likewise.
64748         * tests/test-mbscasestr1.c: Likewise.
64749         * tests/test-mbscasestr2.c: Likewise.
64750         * tests/test-mbscasestr3.c: Likewise.
64751         * tests/test-mbscasestr4.c: Likewise.
64752         * tests/test-mbschr.c: Likewise.
64753         * tests/test-mbscspn.c: Likewise.
64754         * tests/test-mbsinit.c: Likewise.
64755         * tests/test-mbsncasecmp.c: Likewise.
64756         * tests/test-mbsnrtowcs.c: Likewise.
64757         * tests/test-mbspbrk.c: Likewise.
64758         * tests/test-mbspcasecmp.c: Likewise.
64759         * tests/test-mbsrchr.c: Likewise.
64760         * tests/test-mbsrtowcs.c: Likewise.
64761         * tests/test-mbsspn.c: Likewise.
64762         * tests/test-mbsstr1.c: Likewise.
64763         * tests/test-mbsstr2.c: Likewise.
64764         * tests/test-mbsstr3.c: Likewise.
64765         * tests/test-memchr.c: Likewise.
64766         * tests/test-memchr2.c: Likewise.
64767         * tests/test-memcmp.c: Likewise.
64768         * tests/test-memmem.c: Likewise.
64769         * tests/test-memrchr.c: Likewise.
64770         * tests/test-mkdir.c: Likewise.
64771         * tests/test-mkdirat.c: Likewise.
64772         * tests/test-mkfifo.c: Likewise.
64773         * tests/test-mkfifoat.c: Likewise.
64774         * tests/test-mknod.c: Likewise.
64775         * tests/test-nanosleep.c: Likewise.
64776         * tests/test-nl_langinfo.c: Likewise.
64777         * tests/test-obstack-printf.c: Likewise.
64778         * tests/test-open.c: Likewise.
64779         * tests/test-openat.c: Likewise.
64780         * tests/test-pipe-filter-gi1.c: Likewise.
64781         * tests/test-pipe-filter-gi2-main.c: Likewise.
64782         * tests/test-pipe-filter-ii1.c: Likewise.
64783         * tests/test-pipe-filter-ii2-main.c: Likewise.
64784         * tests/test-pipe2.c: Likewise.
64785         * tests/test-popen.h: Likewise.
64786         * tests/test-posixtm.c: Likewise.
64787         * tests/test-pread.c: Likewise.
64788         * tests/test-printf-frexp.c: Likewise.
64789         * tests/test-printf-frexpl.c: Likewise.
64790         * tests/test-printf-posix.c: Likewise.
64791         * tests/test-priv-set.c: Likewise.
64792         * tests/test-quotearg.c: Likewise.
64793         * tests/test-random_r.c: Likewise.
64794         * tests/test-rawmemchr.c: Likewise.
64795         * tests/test-rbtree_list.c: Likewise.
64796         * tests/test-rbtree_oset.c: Likewise.
64797         * tests/test-rbtreehash_list.c: Likewise.
64798         * tests/test-readlink.c: Likewise.
64799         * tests/test-remove.c: Likewise.
64800         * tests/test-rename.c: Likewise.
64801         * tests/test-renameat.c: Likewise.
64802         * tests/test-rmdir.c: Likewise.
64803         * tests/test-round1.c: Likewise.
64804         * tests/test-roundf1.c: Likewise.
64805         * tests/test-roundl.c: Likewise.
64806         * tests/test-safe-alloc.c: Likewise.
64807         * tests/test-sameacls.c: Likewise.
64808         * tests/test-set-mode-acl.c: Likewise.
64809         * tests/test-setenv.c: Likewise.
64810         * tests/test-sigaction.c: Likewise.
64811         * tests/test-signbit.c: Likewise.
64812         * tests/test-sleep.c: Likewise.
64813         * tests/test-snprintf-posix.c: Likewise.
64814         * tests/test-snprintf.c: Likewise.
64815         * tests/test-sprintf-posix.c: Likewise.
64816         * tests/test-stat-time.c: Likewise.
64817         * tests/test-stat.c: Likewise.
64818         * tests/test-strcasestr.c: Likewise.
64819         * tests/test-strchrnul.c: Likewise.
64820         * tests/test-strerror.c: Likewise.
64821         * tests/test-striconv.c: Likewise.
64822         * tests/test-striconveh.c: Likewise.
64823         * tests/test-striconveha.c: Likewise.
64824         * tests/test-strsignal.c: Likewise.
64825         * tests/test-strstr.c: Likewise.
64826         * tests/test-strtod.c: Likewise.
64827         * tests/test-strverscmp.c: Likewise.
64828         * tests/test-symlink.c: Likewise.
64829         * tests/test-symlinkat.c: Likewise.
64830         * tests/test-trunc1.c: Likewise.
64831         * tests/test-trunc2.c: Likewise.
64832         * tests/test-truncf1.c: Likewise.
64833         * tests/test-truncf2.c: Likewise.
64834         * tests/test-truncl.c: Likewise.
64835         * tests/test-uname.c: Likewise.
64836         * tests/test-unlink.c: Likewise.
64837         * tests/test-unlinkat.c: Likewise.
64838         * tests/test-unsetenv.c: Likewise.
64839         * tests/test-usleep.c: Likewise.
64840         * tests/test-utimens.c: Likewise.
64841         * tests/test-utimensat.c: Likewise.
64842         * tests/test-vasnprintf-posix.c: Likewise.
64843         * tests/test-vasnprintf-posix2.c: Likewise.
64844         * tests/test-vasnprintf.c: Likewise.
64845         * tests/test-vasprintf-posix.c: Likewise.
64846         * tests/test-vasprintf.c: Likewise.
64847         * tests/test-vdprintf-posix.c: Likewise.
64848         * tests/test-vfprintf-posix.c: Likewise.
64849         * tests/test-vprintf-posix.c: Likewise.
64850         * tests/test-vsnprintf-posix.c: Likewise.
64851         * tests/test-vsnprintf.c: Likewise.
64852         * tests/test-vsprintf-posix.c: Likewise.
64853         * tests/test-wcrtomb.c: Likewise.
64854         * tests/test-wcsnrtombs.c: Likewise.
64855         * tests/test-wcsrtombs.c: Likewise.
64856         * tests/test-wctype.c: Likewise.
64857         * tests/test-wcwidth.c: Likewise.
64858         * tests/test-xfprintf-posix.c: Likewise.
64859         * tests/test-xmemdup0.c: Likewise.
64860         * tests/test-xprintf-posix.c: Likewise.
64861         * tests/test-xvasprintf.c: Likewise.
64862         * tests/unicase/test-locale-language.c: Likewise.
64863         * tests/unicase/test-mapping-part1.h: Likewise.
64864         * tests/unicase/test-predicate-part1.h: Likewise.
64865         * tests/unicase/test-u8-casecmp.c: Likewise.
64866         * tests/unicase/test-u8-casecoll.c: Likewise.
64867         * tests/unicase/test-u8-casefold.c: Likewise.
64868         * tests/unicase/test-u8-is-cased.c: Likewise.
64869         * tests/unicase/test-u8-is-casefolded.c: Likewise.
64870         * tests/unicase/test-u8-is-lowercase.c: Likewise.
64871         * tests/unicase/test-u8-is-titlecase.c: Likewise.
64872         * tests/unicase/test-u8-is-uppercase.c: Likewise.
64873         * tests/unicase/test-u8-tolower.c: Likewise.
64874         * tests/unicase/test-u8-totitle.c: Likewise.
64875         * tests/unicase/test-u8-toupper.c: Likewise.
64876         * tests/unicase/test-u16-casecmp.c: Likewise.
64877         * tests/unicase/test-u16-casecoll.c: Likewise.
64878         * tests/unicase/test-u16-casefold.c: Likewise.
64879         * tests/unicase/test-u16-is-cased.c: Likewise.
64880         * tests/unicase/test-u16-is-casefolded.c: Likewise.
64881         * tests/unicase/test-u16-is-lowercase.c: Likewise.
64882         * tests/unicase/test-u16-is-titlecase.c: Likewise.
64883         * tests/unicase/test-u16-is-uppercase.c: Likewise.
64884         * tests/unicase/test-u16-tolower.c: Likewise.
64885         * tests/unicase/test-u16-totitle.c: Likewise.
64886         * tests/unicase/test-u16-toupper.c: Likewise.
64887         * tests/unicase/test-u32-casecmp.c: Likewise.
64888         * tests/unicase/test-u32-casecoll.c: Likewise.
64889         * tests/unicase/test-u32-casefold.c: Likewise.
64890         * tests/unicase/test-u32-is-cased.c: Likewise.
64891         * tests/unicase/test-u32-is-casefolded.c: Likewise.
64892         * tests/unicase/test-u32-is-lowercase.c: Likewise.
64893         * tests/unicase/test-u32-is-titlecase.c: Likewise.
64894         * tests/unicase/test-u32-is-uppercase.c: Likewise.
64895         * tests/unicase/test-u32-tolower.c: Likewise.
64896         * tests/unicase/test-u32-totitle.c: Likewise.
64897         * tests/unicase/test-u32-toupper.c: Likewise.
64898         * tests/unicase/test-ulc-casecmp.c: Likewise.
64899         * tests/unicase/test-ulc-casecoll.c: Likewise.
64900         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64901         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64902         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64903         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64904         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64905         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64906         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64907         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64908         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64909         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64910         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64911         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64912         * tests/unictype/test-bidi_byname.c: Likewise.
64913         * tests/unictype/test-bidi_name.c: Likewise.
64914         * tests/unictype/test-bidi_of.c: Likewise.
64915         * tests/unictype/test-bidi_test.c: Likewise.
64916         * tests/unictype/test-block_list.c: Likewise.
64917         * tests/unictype/test-block_of.c: Likewise.
64918         * tests/unictype/test-block_test.c: Likewise.
64919         * tests/unictype/test-categ_and.c: Likewise.
64920         * tests/unictype/test-categ_and_not.c: Likewise.
64921         * tests/unictype/test-categ_byname.c: Likewise.
64922         * tests/unictype/test-categ_name.c: Likewise.
64923         * tests/unictype/test-categ_none.c: Likewise.
64924         * tests/unictype/test-categ_of.c: Likewise.
64925         * tests/unictype/test-categ_or.c: Likewise.
64926         * tests/unictype/test-categ_test_withtable.c: Likewise.
64927         * tests/unictype/test-combining.c: Likewise.
64928         * tests/unictype/test-decdigit.c: Likewise.
64929         * tests/unictype/test-digit.c: Likewise.
64930         * tests/unictype/test-mirror.c: Likewise.
64931         * tests/unictype/test-numeric.c: Likewise.
64932         * tests/unictype/test-pr_byname.c: Likewise.
64933         * tests/unictype/test-pr_test.c: Likewise.
64934         * tests/unictype/test-predicate-part1.h: Likewise.
64935         * tests/unictype/test-scripts.c: Likewise.
64936         * tests/unictype/test-sy_c_ident.c: Likewise.
64937         * tests/unictype/test-sy_java_ident.c: Likewise.
64938         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
64939         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
64940         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
64941         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
64942         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
64943         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
64944         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
64945         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
64946         * tests/uninorm/test-canonical-decomposition.c: Likewise.
64947         * tests/uninorm/test-compat-decomposition.c: Likewise.
64948         * tests/uninorm/test-composition.c: Likewise.
64949         * tests/uninorm/test-decomposing-form.c: Likewise.
64950         * tests/uninorm/test-decomposition.c: Likewise.
64951         * tests/uninorm/test-u8-nfc.c: Likewise.
64952         * tests/uninorm/test-u8-nfd.c: Likewise.
64953         * tests/uninorm/test-u8-nfkc.c: Likewise.
64954         * tests/uninorm/test-u8-nfkd.c: Likewise.
64955         * tests/uninorm/test-u8-normcmp.c: Likewise.
64956         * tests/uninorm/test-u8-normcoll.c: Likewise.
64957         * tests/uninorm/test-u16-nfc.c: Likewise.
64958         * tests/uninorm/test-u16-nfd.c: Likewise.
64959         * tests/uninorm/test-u16-nfkc.c: Likewise.
64960         * tests/uninorm/test-u16-nfkd.c: Likewise.
64961         * tests/uninorm/test-u16-normcmp.c: Likewise.
64962         * tests/uninorm/test-u16-normcoll.c: Likewise.
64963         * tests/uninorm/test-u32-nfc.c: Likewise.
64964         * tests/uninorm/test-u32-nfd.c: Likewise.
64965         * tests/uninorm/test-u32-nfkc.c: Likewise.
64966         * tests/uninorm/test-u32-nfkd.c: Likewise.
64967         * tests/uninorm/test-u32-normalize-big.c: Likewise.
64968         * tests/uninorm/test-u32-normcmp.c: Likewise.
64969         * tests/uninorm/test-u32-normcoll.c: Likewise.
64970         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
64971         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64972         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64973         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64974         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64975         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64976         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64977         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64978         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64979         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64980         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64981         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64982         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64983         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64984         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64985         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64986         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64987         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64988         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64989         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64990         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64991         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64992         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64993         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64994         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64995         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64996         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64997         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64998         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64999         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
65000         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
65001         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
65002         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
65003         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65004         * tests/uniwidth/test-u8-width.c: Likewise.
65005         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65006         * tests/uniwidth/test-u16-width.c: Likewise.
65007         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65008         * tests/uniwidth/test-u32-width.c: Likewise.
65009         * tests/uniwidth/test-uc_width.c: Likewise.
65010         * tests/uniwidth/test-uc_width2.c: Likewise.
65011         * modules/acl-tests (Files): Add tests/macros.h.
65012         * modules/areadlink-tests (Files): Likewise.
65013         * modules/areadlink-with-size-tests (Files): Likewise.
65014         * modules/areadlinkat-tests (Files): Likewise.
65015         * modules/areadlinkat-with-size-tests (Files): Likewise.
65016         * modules/argmatch-tests (Files): Likewise.
65017         * modules/argv-iter-tests (Files): Likewise.
65018         * modules/array-list-tests (Files): Likewise.
65019         * modules/array-mergesort-tests (Files): Likewise.
65020         * modules/array-oset-tests (Files): Likewise.
65021         * modules/avltree-list-tests (Files): Likewise.
65022         * modules/avltree-oset-tests (Files): Likewise.
65023         * modules/avltreehash-list-tests (Files): Likewise.
65024         * modules/base64-tests (Files): Likewise.
65025         * modules/binary-io-tests (Files): Likewise.
65026         * modules/bitrotate-tests (Files): Likewise.
65027         * modules/btowc-tests (Files): Likewise.
65028         * modules/byteswap-tests (Files): Likewise.
65029         * modules/c-ctype-tests (Files): Likewise.
65030         * modules/c-stack-tests (Files): Likewise.
65031         * modules/c-strcase-tests (Files): Likewise.
65032         * modules/c-strcasestr-tests (Files): Likewise.
65033         * modules/c-strstr-tests (Files): Likewise.
65034         * modules/canonicalize-lgpl-tests (Files): Likewise.
65035         * modules/canonicalize-tests (Files): Likewise.
65036         * modules/carray-list-tests (Files): Likewise.
65037         * modules/ceilf-tests (Files): Likewise.
65038         * modules/ceill-tests (Files): Likewise.
65039         * modules/chown-tests (Files): Likewise.
65040         * modules/cloexec-tests (Files): Likewise.
65041         * modules/copy-file-tests (Files): Likewise.
65042         * modules/count-one-bits-tests (Files): Likewise.
65043         * modules/dprintf-posix-tests (Files): Likewise.
65044         * modules/dup2-tests (Files): Likewise.
65045         * modules/dup3-tests (Files): Likewise.
65046         * modules/duplocale-tests (Files): Likewise.
65047         * modules/fbufmode-tests (Files): Likewise.
65048         * modules/fchdir-tests (Files): Likewise.
65049         * modules/fcntl-safer-tests (Files): Likewise.
65050         * modules/fcntl-tests (Files): Likewise.
65051         * modules/fdopendir-tests (Files): Likewise.
65052         * modules/fdutimensat-tests (Files): Likewise.
65053         * modules/fflush-tests (Files): Likewise.
65054         * modules/filevercmp-tests (Files): Likewise.
65055         * modules/flock-tests (Files): Likewise.
65056         * modules/floorf-tests (Files): Likewise.
65057         * modules/floorl-tests (Files): Likewise.
65058         * modules/fnmatch-tests (Files): Likewise.
65059         * modules/fopen-safer-tests (Files): Likewise.
65060         * modules/fopen-tests (Files): Likewise.
65061         * modules/fpending-tests (Files): Likewise.
65062         * modules/fprintf-posix-tests (Files): Likewise.
65063         * modules/fpurge-tests (Files): Likewise.
65064         * modules/freadable-tests (Files): Likewise.
65065         * modules/freadahead-tests (Files): Likewise.
65066         * modules/freading-tests (Files): Likewise.
65067         * modules/freadptr-tests (Files): Likewise.
65068         * modules/freadseek-tests (Files): Likewise.
65069         * modules/freopen-tests (Files): Likewise.
65070         * modules/frexp-nolibm-tests (Files): Likewise.
65071         * modules/frexp-tests (Files): Likewise.
65072         * modules/frexpl-nolibm-tests (Files): Likewise.
65073         * modules/frexpl-tests (Files): Likewise.
65074         * modules/fseek-tests (Files): Likewise.
65075         * modules/fseeko-tests (Files): Likewise.
65076         * modules/fstrcmp-tests (Files): Likewise.
65077         * modules/fsync-tests (Files): Likewise.
65078         * modules/ftell-tests (Files): Likewise.
65079         * modules/ftello-tests (Files): Likewise.
65080         * modules/func-tests (Files): Likewise.
65081         * modules/futimens-tests (Files): Likewise.
65082         * modules/fwritable-tests (Files): Likewise.
65083         * modules/fwriting-tests (Files): Likewise.
65084         * modules/getcwd-tests (Files): Likewise.
65085         * modules/getdate-tests (Files): Likewise.
65086         * modules/getdelim-tests (Files): Likewise.
65087         * modules/getdtablesize-tests (Files): Likewise.
65088         * modules/getgroups-tests (Files): Likewise.
65089         * modules/getline-tests (Files): Likewise.
65090         * modules/getndelim2-tests (Files): Likewise.
65091         * modules/glob-tests (Files): Likewise.
65092         * modules/hash-tests (Files): Likewise.
65093         * modules/i-ring-tests (Files): Likewise.
65094         * modules/iconv-tests (Files): Likewise.
65095         * modules/iconv_open-utf-tests (Files): Likewise.
65096         * modules/idpriv-drop-tests (Files): Likewise.
65097         * modules/idpriv-droptemp-tests (Files): Likewise.
65098         * modules/inet_ntop-tests (Files): Likewise.
65099         * modules/inet_pton-tests (Files): Likewise.
65100         * modules/isblank-tests (Files): Likewise.
65101         * modules/isfinite-tests (Files): Likewise.
65102         * modules/isinf-tests (Files): Likewise.
65103         * modules/isnan-tests (Files): Likewise.
65104         * modules/isnand-nolibm-tests (Files): Likewise.
65105         * modules/isnand-tests (Files): Likewise.
65106         * modules/isnanf-nolibm-tests (Files): Likewise.
65107         * modules/isnanf-tests (Files): Likewise.
65108         * modules/isnanl-nolibm-tests (Files): Likewise.
65109         * modules/isnanl-tests (Files): Likewise.
65110         * modules/lchown-tests (Files): Likewise.
65111         * modules/ldexpl-tests (Files): Likewise.
65112         * modules/link-tests (Files): Likewise.
65113         * modules/linkat-tests (Files): Likewise.
65114         * modules/linked-list-tests (Files): Likewise.
65115         * modules/linkedhash-list-tests (Files): Likewise.
65116         * modules/localename-tests (Files): Likewise.
65117         * modules/lseek-tests (Files): Likewise.
65118         * modules/lstat-tests (Files): Likewise.
65119         * modules/mbmemcasecmp-tests (Files): Likewise.
65120         * modules/mbmemcasecoll-tests (Files): Likewise.
65121         * modules/mbrtowc-tests (Files): Likewise.
65122         * modules/mbscasecmp-tests (Files): Likewise.
65123         * modules/mbscasestr-tests (Files): Likewise.
65124         * modules/mbschr-tests (Files): Likewise.
65125         * modules/mbscspn-tests (Files): Likewise.
65126         * modules/mbsinit-tests (Files): Likewise.
65127         * modules/mbsncasecmp-tests (Files): Likewise.
65128         * modules/mbsnrtowcs-tests (Files): Likewise.
65129         * modules/mbspbrk-tests (Files): Likewise.
65130         * modules/mbspcasecmp-tests (Files): Likewise.
65131         * modules/mbsrchr-tests (Files): Likewise.
65132         * modules/mbsrtowcs-tests (Files): Likewise.
65133         * modules/mbsspn-tests (Files): Likewise.
65134         * modules/mbsstr-tests (Files): Likewise.
65135         * modules/memchr-tests (Files): Likewise.
65136         * modules/memchr2-tests (Files): Likewise.
65137         * modules/memcmp-tests (Files): Likewise.
65138         * modules/memmem-tests (Files): Likewise.
65139         * modules/memrchr-tests (Files): Likewise.
65140         * modules/mkdir-tests (Files): Likewise.
65141         * modules/mkfifo-tests (Files): Likewise.
65142         * modules/mkfifoat-tests (Files): Likewise.
65143         * modules/mknod-tests (Files): Likewise.
65144         * modules/nanosleep-tests (Files): Likewise.
65145         * modules/nl_langinfo-tests (Files): Likewise.
65146         * modules/obstack-printf-tests (Files): Likewise.
65147         * modules/open-tests (Files): Likewise.
65148         * modules/openat-tests (Files): Likewise.
65149         * modules/pipe-filter-gi-tests (Files): Likewise.
65150         * modules/pipe-filter-ii-tests (Files): Likewise.
65151         * modules/pipe2-tests (Files): Likewise.
65152         * modules/popen-safer-tests (Files): Likewise.
65153         * modules/popen-tests (Files): Likewise.
65154         * modules/posixtm-tests (Files): Likewise.
65155         * modules/pread-tests (Files): Likewise.
65156         * modules/printf-frexp-tests (Files): Likewise.
65157         * modules/printf-frexpl-tests (Files): Likewise.
65158         * modules/printf-posix-tests (Files): Likewise.
65159         * modules/priv-set-tests (Files): Likewise.
65160         * modules/quotearg-tests (Files): Likewise.
65161         * modules/random_r-tests (Files): Likewise.
65162         * modules/rawmemchr-tests (Files): Likewise.
65163         * modules/rbtree-list-tests (Files): Likewise.
65164         * modules/rbtree-oset-tests (Files): Likewise.
65165         * modules/rbtreehash-list-tests (Files): Likewise.
65166         * modules/readlink-tests (Files): Likewise.
65167         * modules/remove-tests (Files): Likewise.
65168         * modules/rename-tests (Files): Likewise.
65169         * modules/renameat-tests (Files): Likewise.
65170         * modules/rmdir-tests (Files): Likewise.
65171         * modules/round-tests (Files): Likewise.
65172         * modules/roundf-tests (Files): Likewise.
65173         * modules/roundl-tests (Files): Likewise.
65174         * modules/safe-alloc-tests (Files): Likewise.
65175         * modules/setenv-tests (Files): Likewise.
65176         * modules/sigaction-tests (Files): Likewise.
65177         * modules/signbit-tests (Files): Likewise.
65178         * modules/sleep-tests (Files): Likewise.
65179         * modules/snprintf-posix-tests (Files): Likewise.
65180         * modules/snprintf-tests (Files): Likewise.
65181         * modules/sprintf-posix-tests (Files): Likewise.
65182         * modules/stat-tests (Files): Likewise.
65183         * modules/stat-time-tests (Files): Likewise.
65184         * modules/strcasestr-tests (Files): Likewise.
65185         * modules/strchrnul-tests (Files): Likewise.
65186         * modules/strerror-tests (Files): Likewise.
65187         * modules/striconv-tests (Files): Likewise.
65188         * modules/striconveh-tests (Files): Likewise.
65189         * modules/striconveha-tests (Files): Likewise.
65190         * modules/strsignal-tests (Files): Likewise.
65191         * modules/strstr-tests (Files): Likewise.
65192         * modules/strtod-tests (Files): Likewise.
65193         * modules/strverscmp-tests (Files): Likewise.
65194         * modules/symlink-tests (Files): Likewise.
65195         * modules/symlinkat-tests (Files): Likewise.
65196         * modules/trunc-tests (Files): Likewise.
65197         * modules/truncf-tests (Files): Likewise.
65198         * modules/truncl-tests (Files): Likewise.
65199         * modules/uname-tests (Files): Likewise.
65200         * modules/unicase/cased-tests (Files): Likewise.
65201         * modules/unicase/ignorable-tests (Files): Likewise.
65202         * modules/unicase/locale-language-tests (Files): Likewise.
65203         * modules/unicase/tolower-tests (Files): Likewise.
65204         * modules/unicase/totitle-tests (Files): Likewise.
65205         * modules/unicase/toupper-tests (Files): Likewise.
65206         * modules/unicase/u8-casecmp-tests (Files): Likewise.
65207         * modules/unicase/u8-casecoll-tests (Files): Likewise.
65208         * modules/unicase/u8-casefold-tests (Files): Likewise.
65209         * modules/unicase/u8-is-cased-tests (Files): Likewise.
65210         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
65211         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
65212         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
65213         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
65214         * modules/unicase/u8-tolower-tests (Files): Likewise.
65215         * modules/unicase/u8-totitle-tests (Files): Likewise.
65216         * modules/unicase/u8-toupper-tests (Files): Likewise.
65217         * modules/unicase/u16-casecmp-tests (Files): Likewise.
65218         * modules/unicase/u16-casecoll-tests (Files): Likewise.
65219         * modules/unicase/u16-casefold-tests (Files): Likewise.
65220         * modules/unicase/u16-is-cased-tests (Files): Likewise.
65221         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
65222         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
65223         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
65224         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
65225         * modules/unicase/u16-tolower-tests (Files): Likewise.
65226         * modules/unicase/u16-totitle-tests (Files): Likewise.
65227         * modules/unicase/u16-toupper-tests (Files): Likewise.
65228         * modules/unicase/u32-casecmp-tests (Files): Likewise.
65229         * modules/unicase/u32-casecoll-tests (Files): Likewise.
65230         * modules/unicase/u32-casefold-tests (Files): Likewise.
65231         * modules/unicase/u32-is-cased-tests (Files): Likewise.
65232         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
65233         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
65234         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
65235         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
65236         * modules/unicase/u32-tolower-tests (Files): Likewise.
65237         * modules/unicase/u32-totitle-tests (Files): Likewise.
65238         * modules/unicase/u32-toupper-tests (Files): Likewise.
65239         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
65240         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
65241         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
65242         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
65243         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
65244         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
65245         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
65246         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
65247         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
65248         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
65249         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
65250         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
65251         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
65252         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
65253         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
65254         * modules/unictype/bidicategory-name-tests (Files): Likewise.
65255         * modules/unictype/bidicategory-of-tests (Files): Likewise.
65256         * modules/unictype/bidicategory-test-tests (Files): Likewise.
65257         * modules/unictype/block-list-tests (Files): Likewise.
65258         * modules/unictype/block-of-tests (Files): Likewise.
65259         * modules/unictype/block-test-tests (Files): Likewise.
65260         * modules/unictype/category-C-tests (Files): Likewise.
65261         * modules/unictype/category-Cc-tests (Files): Likewise.
65262         * modules/unictype/category-Cf-tests (Files): Likewise.
65263         * modules/unictype/category-Cn-tests (Files): Likewise.
65264         * modules/unictype/category-Co-tests (Files): Likewise.
65265         * modules/unictype/category-Cs-tests (Files): Likewise.
65266         * modules/unictype/category-L-tests (Files): Likewise.
65267         * modules/unictype/category-Ll-tests (Files): Likewise.
65268         * modules/unictype/category-Lm-tests (Files): Likewise.
65269         * modules/unictype/category-Lo-tests (Files): Likewise.
65270         * modules/unictype/category-Lt-tests (Files): Likewise.
65271         * modules/unictype/category-Lu-tests (Files): Likewise.
65272         * modules/unictype/category-M-tests (Files): Likewise.
65273         * modules/unictype/category-Mc-tests (Files): Likewise.
65274         * modules/unictype/category-Me-tests (Files): Likewise.
65275         * modules/unictype/category-Mn-tests (Files): Likewise.
65276         * modules/unictype/category-N-tests (Files): Likewise.
65277         * modules/unictype/category-Nd-tests (Files): Likewise.
65278         * modules/unictype/category-Nl-tests (Files): Likewise.
65279         * modules/unictype/category-No-tests (Files): Likewise.
65280         * modules/unictype/category-P-tests (Files): Likewise.
65281         * modules/unictype/category-Pc-tests (Files): Likewise.
65282         * modules/unictype/category-Pd-tests (Files): Likewise.
65283         * modules/unictype/category-Pe-tests (Files): Likewise.
65284         * modules/unictype/category-Pf-tests (Files): Likewise.
65285         * modules/unictype/category-Pi-tests (Files): Likewise.
65286         * modules/unictype/category-Po-tests (Files): Likewise.
65287         * modules/unictype/category-Ps-tests (Files): Likewise.
65288         * modules/unictype/category-S-tests (Files): Likewise.
65289         * modules/unictype/category-Sc-tests (Files): Likewise.
65290         * modules/unictype/category-Sk-tests (Files): Likewise.
65291         * modules/unictype/category-Sm-tests (Files): Likewise.
65292         * modules/unictype/category-So-tests (Files): Likewise.
65293         * modules/unictype/category-Z-tests (Files): Likewise.
65294         * modules/unictype/category-Zl-tests (Files): Likewise.
65295         * modules/unictype/category-Zp-tests (Files): Likewise.
65296         * modules/unictype/category-Zs-tests (Files): Likewise.
65297         * modules/unictype/category-and-not-tests (Files): Likewise.
65298         * modules/unictype/category-and-tests (Files): Likewise.
65299         * modules/unictype/category-byname-tests (Files): Likewise.
65300         * modules/unictype/category-name-tests (Files): Likewise.
65301         * modules/unictype/category-none-tests (Files): Likewise.
65302         * modules/unictype/category-of-tests (Files): Likewise.
65303         * modules/unictype/category-or-tests (Files): Likewise.
65304         * modules/unictype/category-test-withtable-tests (Files): Likewise.
65305         * modules/unictype/combining-class-tests (Files): Likewise.
65306         * modules/unictype/ctype-alnum-tests (Files): Likewise.
65307         * modules/unictype/ctype-alpha-tests (Files): Likewise.
65308         * modules/unictype/ctype-blank-tests (Files): Likewise.
65309         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
65310         * modules/unictype/ctype-digit-tests (Files): Likewise.
65311         * modules/unictype/ctype-graph-tests (Files): Likewise.
65312         * modules/unictype/ctype-lower-tests (Files): Likewise.
65313         * modules/unictype/ctype-print-tests (Files): Likewise.
65314         * modules/unictype/ctype-punct-tests (Files): Likewise.
65315         * modules/unictype/ctype-space-tests (Files): Likewise.
65316         * modules/unictype/ctype-upper-tests (Files): Likewise.
65317         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
65318         * modules/unictype/decimal-digit-tests (Files): Likewise.
65319         * modules/unictype/digit-tests (Files): Likewise.
65320         * modules/unictype/mirror-tests (Files): Likewise.
65321         * modules/unictype/numeric-tests (Files): Likewise.
65322         * modules/unictype/property-alphabetic-tests (Files): Likewise.
65323         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
65324         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
65325         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
65326         Likewise.
65327         * modules/unictype/property-bidi-block-separator-tests (Files):
65328         Likewise.
65329         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
65330         Likewise.
65331         * modules/unictype/property-bidi-common-separator-tests (Files):
65332         Likewise.
65333         * modules/unictype/property-bidi-control-tests (Files): Likewise.
65334         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
65335         Likewise.
65336         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
65337         Likewise.
65338         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
65339         Likewise.
65340         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
65341         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
65342         Likewise.
65343         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
65344         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
65345         Likewise.
65346         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
65347         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
65348         * modules/unictype/property-bidi-segment-separator-tests (Files):
65349         Likewise.
65350         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
65351         * modules/unictype/property-byname-tests (Files): Likewise.
65352         * modules/unictype/property-combining-tests (Files): Likewise.
65353         * modules/unictype/property-composite-tests (Files): Likewise.
65354         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
65355         * modules/unictype/property-dash-tests (Files): Likewise.
65356         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
65357         * modules/unictype/property-default-ignorable-code-point-tests (Files):
65358         Likewise.
65359         * modules/unictype/property-deprecated-tests (Files): Likewise.
65360         * modules/unictype/property-diacritic-tests (Files): Likewise.
65361         * modules/unictype/property-extender-tests (Files): Likewise.
65362         * modules/unictype/property-format-control-tests (Files): Likewise.
65363         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
65364         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
65365         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
65366         * modules/unictype/property-hex-digit-tests (Files): Likewise.
65367         * modules/unictype/property-hyphen-tests (Files): Likewise.
65368         * modules/unictype/property-id-continue-tests (Files): Likewise.
65369         * modules/unictype/property-id-start-tests (Files): Likewise.
65370         * modules/unictype/property-ideographic-tests (Files): Likewise.
65371         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
65372         * modules/unictype/property-ids-trinary-operator-tests (Files):
65373         Likewise.
65374         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
65375         * modules/unictype/property-iso-control-tests (Files): Likewise.
65376         * modules/unictype/property-join-control-tests (Files): Likewise.
65377         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
65378         * modules/unictype/property-line-separator-tests (Files): Likewise.
65379         * modules/unictype/property-logical-order-exception-tests (Files):
65380         Likewise.
65381         * modules/unictype/property-lowercase-tests (Files): Likewise.
65382         * modules/unictype/property-math-tests (Files): Likewise.
65383         * modules/unictype/property-non-break-tests (Files): Likewise.
65384         * modules/unictype/property-not-a-character-tests (Files): Likewise.
65385         * modules/unictype/property-numeric-tests (Files): Likewise.
65386         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
65387         * modules/unictype/property-other-default-ignorable-code-point-tests
65388         (Files): Likewise.
65389         * modules/unictype/property-other-grapheme-extend-tests (Files):
65390         Likewise.
65391         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
65392         * modules/unictype/property-other-id-start-tests (Files): Likewise.
65393         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
65394         * modules/unictype/property-other-math-tests (Files): Likewise.
65395         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
65396         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
65397         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
65398         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
65399         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
65400         * modules/unictype/property-private-use-tests (Files): Likewise.
65401         * modules/unictype/property-punctuation-tests (Files): Likewise.
65402         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
65403         * modules/unictype/property-radical-tests (Files): Likewise.
65404         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
65405         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
65406         * modules/unictype/property-space-tests (Files): Likewise.
65407         * modules/unictype/property-terminal-punctuation-tests (Files):
65408         Likewise.
65409         * modules/unictype/property-test-tests (Files): Likewise.
65410         * modules/unictype/property-titlecase-tests (Files): Likewise.
65411         * modules/unictype/property-unassigned-code-value-tests (Files):
65412         Likewise.
65413         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
65414         * modules/unictype/property-uppercase-tests (Files): Likewise.
65415         * modules/unictype/property-variation-selector-tests (Files): Likewise.
65416         * modules/unictype/property-white-space-tests (Files): Likewise.
65417         * modules/unictype/property-xid-continue-tests (Files): Likewise.
65418         * modules/unictype/property-xid-start-tests (Files): Likewise.
65419         * modules/unictype/property-zero-width-tests (Files): Likewise.
65420         * modules/unictype/scripts-tests (Files): Likewise.
65421         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
65422         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
65423         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
65424         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
65425         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
65426         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
65427         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
65428         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
65429         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
65430         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
65431         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
65432         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
65433         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
65434         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
65435         * modules/uninorm/composition-tests (Files): Likewise.
65436         * modules/uninorm/decomposing-form-tests (Files): Likewise.
65437         * modules/uninorm/decomposition-tests (Files): Likewise.
65438         * modules/uninorm/filter-tests (Files): Likewise.
65439         * modules/uninorm/nfc-tests (Files): Likewise.
65440         * modules/uninorm/nfd-tests (Files): Likewise.
65441         * modules/uninorm/nfkc-tests (Files): Likewise.
65442         * modules/uninorm/nfkd-tests (Files): Likewise.
65443         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
65444         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
65445         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
65446         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
65447         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
65448         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
65449         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
65450         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
65451         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
65452         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
65453         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
65454         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
65455         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
65456         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
65457         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
65458         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
65459         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
65460         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
65461         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
65462         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
65463         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
65464         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
65465         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
65466         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
65467         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
65468         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
65469         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
65470         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
65471         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
65472         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
65473         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
65474         * modules/uniwidth/u8-width-tests (Files): Likewise.
65475         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
65476         * modules/uniwidth/u16-width-tests (Files): Likewise.
65477         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
65478         * modules/uniwidth/u32-width-tests (Files): Likewise.
65479         * modules/uniwidth/width-tests (Files): Likewise.
65480         * modules/unlink-tests (Files): Likewise.
65481         * modules/unsetenv-tests (Files): Likewise.
65482         * modules/usleep-tests (Files): Likewise.
65483         * modules/utimens-tests (Files): Likewise.
65484         * modules/utimensat-tests (Files): Likewise.
65485         * modules/vasnprintf-posix-tests (Files): Likewise.
65486         * modules/vasnprintf-tests (Files): Likewise.
65487         * modules/vasprintf-posix-tests (Files): Likewise.
65488         * modules/vasprintf-tests (Files): Likewise.
65489         * modules/vdprintf-posix-tests (Files): Likewise.
65490         * modules/vfprintf-posix-tests (Files): Likewise.
65491         * modules/vprintf-posix-tests (Files): Likewise.
65492         * modules/vsnprintf-posix-tests (Files): Likewise.
65493         * modules/vsnprintf-tests (Files): Likewise.
65494         * modules/vsprintf-posix-tests (Files): Likewise.
65495         * modules/wcrtomb-tests (Files): Likewise.
65496         * modules/wcsnrtombs-tests (Files): Likewise.
65497         * modules/wcsrtombs-tests (Files): Likewise.
65498         * modules/wctype-tests (Files): Likewise.
65499         * modules/wcwidth-tests (Files): Likewise.
65500         * modules/xmemdup0-tests (Files): Likewise.
65501         * modules/xprintf-posix-tests (Files): Likewise.
65502         * modules/xvasprintf-tests (Files): Likewise.
65504 2009-12-24  Eric Blake  <ebb9@byu.net>
65506         test-nanosleep: fix typo
65507         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
65508         patch.
65509         Reported by Bruno Haible.
65511 2009-12-24  Bruno Haible  <bruno@clisp.org>
65513         Reduce namespace pollution on glibc systems.
65514         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
65515         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
65516         systems.
65517         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
65518         <getopt.h> on glibc systems.
65519         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
65520         systems.
65521         * lib/fcntl.c: Include <unistd.h> here instead.
65523 2009-12-24  Bruno Haible  <bruno@clisp.org>
65525         * lib/stdlib.in.h (includes): Fix typo in today's commit.
65527 2009-12-24  Eric Blake  <ebb9@byu.net>
65529         tests: add signature checks
65530         * tests/signature.h (SIGNATURE_CHECK): New file.
65531         * modules/atexit-tests (Files): Use it.
65532         * modules/btowc-tests (Files): Likewise.
65533         * modules/canonicalize-lgpl-tests (Files): Likewise.
65534         * modules/ceilf-tests (Files): Likewise.
65535         * modules/ceill-tests (Files): Likewise.
65536         * modules/chown-tests (Files): Likewise.
65537         * modules/dprintf-posix-tests (Files): Likewise.
65538         * modules/dup2-tests (Files): Likewise.
65539         * modules/dup3-tests (Files): Likewise.
65540         * modules/duplocale-tests (Files): Likewise.
65541         * modules/fchdir-tests (Files): Likewise.
65542         * modules/fcntl-tests (Files): Likewise.
65543         * modules/fdopendir-tests (Files): Likewise.
65544         * modules/fflush-tests (Files): Likewise.
65545         * modules/flock-tests (Files): Likewise.
65546         * modules/floorf-tests (Files): Likewise.
65547         * modules/floorl-tests (Files): Likewise.
65548         * modules/fnmatch-tests (Files): Likewise.
65549         * modules/fopen-tests (Files): Likewise.
65550         * modules/fprintf-posix-tests (Files): Likewise.
65551         * modules/freopen-tests (Files): Likewise.
65552         * modules/frexp-nolibm-tests (Files): Likewise.
65553         * modules/frexp-tests (Files): Likewise.
65554         * modules/frexpl-nolibm-tests (Files): Likewise.
65555         * modules/frexpl-tests (Files): Likewise.
65556         * modules/fseek-tests (Files): Likewise.
65557         * modules/fseeko-tests (Files): Likewise.
65558         * modules/fsync-tests (Files): Likewise.
65559         * modules/ftell-tests (Files): Likewise.
65560         * modules/ftello-tests (Files): Likewise.
65561         * modules/futimens-tests (Files): Likewise.
65562         * modules/getaddrinfo-tests (Files): Likewise.
65563         * modules/getcwd-tests (Files): Likewise.
65564         * modules/getdelim-tests (Files): Likewise.
65565         * modules/getdtablesize-tests (Files): Likewise.
65566         * modules/getgroups-tests (Files): Likewise.
65567         * modules/gethostname-tests (Files): Likewise.
65568         * modules/getline-tests (Files): Likewise.
65569         * modules/getopt-posix-tests (Files): Likewise.
65570         * modules/gettimeofday-tests (Files): Likewise.
65571         * modules/glob-tests (Files): Likewise.
65572         * modules/iconv-tests (Files): Likewise.
65573         * modules/inet_ntop-tests (Files): Likewise.
65574         * modules/inet_pton-tests (Files): Likewise.
65575         * modules/isblank-tests (Files): Likewise.
65576         * modules/lchown-tests (Files): Likewise.
65577         * modules/ldexpl-tests (Files): Likewise.
65578         * modules/link-tests (Files): Likewise.
65579         * modules/linkat-tests (Files): Likewise.
65580         * modules/lseek-tests (Files): Likewise.
65581         * modules/lstat-tests (Files): Likewise.
65582         * modules/mbrtowc-tests (Files): Likewise.
65583         * modules/mbsinit-tests (Files): Likewise.
65584         * modules/mbsnrtowcs-tests (Files): Likewise.
65585         * modules/mbsrtowcs-tests (Files): Likewise.
65586         * modules/memchr-tests (Files): Likewise.
65587         * modules/memcmp-tests (Files): Likewise.
65588         * modules/memmem-tests (Files): Likewise.
65589         * modules/memrchr-tests (Files): Likewise.
65590         * modules/mkdir-tests (Files): Likewise.
65591         * modules/mkfifo-tests (Files): Likewise.
65592         * modules/mkfifoat-tests (Files): Likewise.
65593         * modules/mknod-tests (Files): Likewise.
65594         * modules/nanosleep-tests (Files): Likewise.
65595         * modules/nl_langinfo-tests (Files): Likewise.
65596         * modules/obstack-printf-tests (Files): Likewise.
65597         * modules/open-tests (Files): Likewise.
65598         * modules/openat-tests (Files): Likewise.
65599         * modules/perror-tests (Files): Likewise.
65600         * modules/pipe2-tests (Files): Likewise.
65601         * modules/poll-tests (Files): Likewise.
65602         * modules/popen-tests (Files): Likewise.
65603         * modules/posix_spawn-tests (Files): Likewise.
65604         * modules/posix_spawnp-tests (Files): Likewise.
65605         * modules/pread-tests (Files): Likewise.
65606         * modules/printf-posix-tests (Files): Likewise.
65607         * modules/pty-tests (Files): Likewise.
65608         * modules/random_r-tests (Files): Likewise.
65609         * modules/rawmemchr-tests (Files): Likewise.
65610         * modules/readlink-tests (Files): Likewise.
65611         * modules/remove-tests (Files): Likewise.
65612         * modules/rename-tests (Files): Likewise.
65613         * modules/renameat-tests (Files): Likewise.
65614         * modules/rmdir-tests (Files): Likewise.
65615         * modules/round-tests (Files): Likewise.
65616         * modules/roundf-tests (Files): Likewise.
65617         * modules/roundl-tests (Files): Likewise.
65618         * modules/select-tests (Files): Likewise.
65619         * modules/setenv-tests (Files): Likewise.
65620         * modules/sigaction-tests (Files): Likewise.
65621         * modules/sleep-tests (Files): Likewise.
65622         * modules/snprintf-posix-tests (Files): Likewise.
65623         * modules/snprintf-tests (Files): Likewise.
65624         * modules/sprintf-posix-tests (Files): Likewise.
65625         * modules/stat-tests (Files): Likewise.
65626         * modules/strcasestr-tests (Files): Likewise.
65627         * modules/strchrnul-tests (Files): Likewise.
65628         * modules/strerror-tests (Files): Likewise.
65629         * modules/strsignal-tests (Files): Likewise.
65630         * modules/strstr-tests (Files): Likewise.
65631         * modules/strtod-tests (Files): Likewise.
65632         * modules/strverscmp-tests (Files): Likewise.
65633         * modules/symlink-tests (Files): Likewise.
65634         * modules/symlinkat-tests (Files): Likewise.
65635         * modules/times-tests (Files): Likewise.
65636         * modules/trunc-tests (Files): Likewise.
65637         * modules/truncf-tests (Files): Likewise.
65638         * modules/truncl-tests (Files): Likewise.
65639         * modules/tsearch-tests (Files): Likewise.
65640         * modules/uname-tests (Files): Likewise.
65641         * modules/unlink-tests (Files): Likewise.
65642         * modules/unsetenv-tests (Files): Likewise.
65643         * modules/usleep-tests (Files): Likewise.
65644         * modules/utimensat-tests (Files): Likewise.
65645         * modules/vasprintf-tests (Files): Likewise.
65646         * modules/vdprintf-posix-tests (Files): Likewise.
65647         * modules/vfprintf-posix-tests (Files): Likewise.
65648         * modules/vprintf-posix-tests (Files): Likewise.
65649         * modules/vsnprintf-posix-tests (Files): Likewise.
65650         * modules/vsnprintf-tests (Files): Likewise.
65651         * modules/vsprintf-posix-tests (Files): Likewise.
65652         * modules/wcrtomb-tests (Files): Likewise.
65653         * modules/wcsnrtombs-tests (Files): Likewise.
65654         * modules/wcsrtombs-tests (Files): Likewise.
65655         * modules/wcwidth-tests (Files): Likewise.
65656         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
65657         * tests/test-isinf.c (isinf): Likewise.
65658         * tests/test-isnan.c (isnan): Likewise.
65659         * tests/test-signbit.c (signbit): Likewise.
65660         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
65661         declaration, either as macro or with correct signature.
65662         (select): Ensure function under test is declared with correct
65663         signature in correct header.
65664         * tests/test-atexit.c (atexit): Likewise.
65665         * tests/test-btowc.c (btowc): Likewise.
65666         * tests/test-canonicalize-lgpl.c (realpath)
65667         (canonicalize_file_name): Likewise.
65668         * tests/test-ceilf1.c (ceilf): Likewise.
65669         * tests/test-ceill.c (ceill): Likewise.
65670         * tests/test-chown.c (chown): Likewise.
65671         * tests/test-dprintf-posix.c (dprintf): Likewise.
65672         * tests/test-dup2.c (dup2): Likewise.
65673         * tests/test-dup3.c (dup3): Likewise.
65674         * tests/test-duplocale.c (duplocale): Likewise.
65675         * tests/test-fchdir.c (fchdir): Likewise.
65676         * tests/test-fchownat.c (fchownat): Likewise.
65677         * tests/test-fcntl.c (fcntl): Likewise.
65678         * tests/test-fdopendir.c (fdopendir): Likewise.
65679         * tests/test-fflush.c (fflush): Likewise.
65680         * tests/test-flock.c (flock): Likewise.
65681         * tests/test-floorf1.c (floorf): Likewise.
65682         * tests/test-floorl.c (floorl): Likewise.
65683         * tests/test-fnmatch.c (fnmatch): Likewise.
65684         * tests/test-fopen.c (fopen): Likewise.
65685         * tests/test-fprintf-posix.c (fprintf): Likewise.
65686         * tests/test-freopen.c (freopen): Likewise.
65687         * tests/test-frexp.c (frexp): Likewise.
65688         * tests/test-frexpl.c (frexpl): Likewise.
65689         * tests/test-fseek.c (fseek): Likewise.
65690         * tests/test-fseeko.c (fseeko): Likewise.
65691         * tests/test-fstatat.c (fstatat): Likewise.
65692         * tests/test-fsync.c (fsync): Likewise.
65693         * tests/test-ftell.c (ftell): Likewise.
65694         * tests/test-ftello.c (ftello): Likewise.
65695         * tests/test-futimens.c (futimens): Likewise.
65696         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
65697         (gai_strerror): Likewise.
65698         * tests/test-getcwd.c (getcwd): Likewise.
65699         * tests/test-getdelim.c (getdelim): Likewise.
65700         * tests/test-getdtablesize.c (getdtablesize): Likewise.
65701         * tests/test-getgroups.c (getgroups): Likewise.
65702         * tests/test-gethostname.c (gethostname): Likewise.
65703         * tests/test-getline.c (getline): Likewise.
65704         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
65705         Likewise.
65706         * tests/test-gettimeofday.c (gettimeofday): Likewise.
65707         * tests/test-glob.c (glob, globfree): Likewise.
65708         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
65709         * tests/test-inet_ntop.c (inet_ntop): Likewise.
65710         * tests/test-inet_pton.c (inet_pton): Likewise.
65711         * tests/test-isblank.c (isblank): Likewise.
65712         * tests/test-lchown.c (lchown): Likewise.
65713         * tests/test-ldexpl.c (ldexpl): Likewise.
65714         * tests/test-link.c (link): Likewise.
65715         * tests/test-linkat.c (linkat): Likewise.
65716         * tests/test-lseek.c (lseek): Likewise.
65717         * tests/test-lstat.c (lstat): Likewise.
65718         * tests/test-mbrtowc.c (mbrtowc): Likewise.
65719         * tests/test-mbsinit.c (mbsinit): Likewise.
65720         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
65721         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
65722         * tests/test-memchr.c (memchr): Likewise.
65723         * tests/test-memcmp.c (memcmp): Likewise.
65724         * tests/test-memmem.c (memmem): Likewise.
65725         * tests/test-memrchr.c (memrchr): Likewise.
65726         * tests/test-mkdir.c (mkdir): Likewise.
65727         * tests/test-mkdirat.c (mkdirat): Likewise.
65728         * tests/test-mkfifo.c (mkfifo): Likewise.
65729         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
65730         * tests/test-mknod.c (mknod): Likewise.
65731         * tests/test-nanosleep.c (nanosleep): Likewise.
65732         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
65733         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
65734         Likewise.
65735         * tests/test-open.c (open): Likewise.
65736         * tests/test-openat.c (openat): Likewise.
65737         * tests/test-perror.c (perror): Likewise.
65738         * tests/test-pipe2.c (pipe2): Likewise.
65739         * tests/test-poll.c (poll): Likewise.
65740         * tests/test-popen.c (popen, pclose): Likewise.
65741         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
65742         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
65743         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
65744         (posix_spawn_file_actions_destroy)
65745         (posix_spawn_file_actions_addclose)
65746         (posix_spawn_file_actions_addopen)
65747         (posix_spawn_file_actions_adddup2): Likewise.
65748         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
65749         * tests/test-pread.c (pread): Likewise.
65750         * tests/test-printf-posix.c (printf): Likewise.
65751         * tests/test-pty.c (openpty, forkpty): Likewise.
65752         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
65753         (random_r): Likewise.
65754         * tests/test-rawmemchr.c (rawmemchr): Likewise.
65755         * tests/test-readlink.c (readlink): Likewise.
65756         * tests/test-remove.c (remove): Likewise.
65757         * tests/test-rename.c (rename): Likewise.
65758         * tests/test-renameat.c (renameat): Likewise.
65759         * tests/test-rmdir.c (rmdir): Likewise.
65760         * tests/test-round1.c (round): Likewise.
65761         * tests/test-roundf1.c (roundf): Likewise.
65762         * tests/test-roundl.c (roundl): Likewise.
65763         * tests/test-setenv.c (setenv): Likewise.
65764         * tests/test-sigaction.c (sigaction): Likewise.
65765         * tests/test-sleep.c (sleep): Likewise.
65766         * tests/test-snprintf.c (snprintf): Likewise.
65767         * tests/test-sprintf-posix.c (sprintf): Likewise.
65768         * tests/test-stat.c (stat): Likewise.
65769         * tests/test-stpncpy.c (stpncpy): Likewise.
65770         * tests/test-strcasestr.c (strcasestr): Likewise.
65771         * tests/test-strchrnul.c (strchrnul): Likewise.
65772         * tests/test-strerror.c (strerror): Likewise.
65773         * tests/test-strsignal.c (strsignal): Likewise.
65774         * tests/test-strstr.c (strstr): Likewise.
65775         * tests/test-strtod.c (strtod): Likewise.
65776         * tests/test-strverscmp.c (strverscmp): Likewise.
65777         * tests/test-symlink.c (symlink): Likewise.
65778         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
65779         * tests/test-times.c (times): Likewise.
65780         * tests/test-trunc1.c (trunc): Likewise.
65781         * tests/test-truncf1.c (truncf): Likewise.
65782         * tests/test-truncl.c (truncl): Likewise.
65783         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
65784         Likewise.
65785         * tests/test-uname.c (uname): Likewise.
65786         * tests/test-unlink.c (unlink): Likewise.
65787         * tests/test-unlinkat.c (unlinkat): Likewise.
65788         * tests/test-unsetenv.c (unsetenv): Likewise.
65789         * tests/test-usleep.c (usleep): Likewise.
65790         * tests/test-utimensat.c (utimensat): Likewise.
65791         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
65792         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
65793         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
65794         * tests/test-vprintf-posix.c (vprintf): Likewise.
65795         * tests/test-vsnprintf.c (vsnprintf): Likewise.
65796         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
65797         * tests/test-wcrtomb.c (wcrtomb): Likewise.
65798         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
65799         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
65800         * tests/test-wcwidth.c (wcwidth): Likewise.
65802         build: pull in conditional headers during GNULIB_POSIXCHECK
65803         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
65804         definitions from any conditionally-included headers.
65805         * lib/stdlib.in.h (includes): Likewise.
65806         * lib/unistd.in.h (includes): Likewise.
65808 2009-12-24  Bruno Haible  <bruno@clisp.org>
65810         * tests/test-argv-iter.c: Include header file being tested immediately
65811         after config.h.
65812         * tests/test-base64.c: Likewise.
65813         * tests/test-flock.c: Likewise.
65814         * tests/test-fsync.c: Likewise.
65815         * tests/test-getdate.c: Likewise.
65816         * tests/test-getndelim2.c: Likewise.
65817         * tests/test-isfinite.c: Likewise.
65818         * tests/test-isinf.c: Likewise.
65819         * tests/test-strerror.c: Likewise.
65820         * tests/test-strsignal.c: Likewise.
65822 2009-12-23  Eric Blake  <ebb9@byu.net>
65824         unistd: work around cygwin bug
65825         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
65826         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
65827         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
65829 2009-12-23  Bruno Haible  <bruno@clisp.org>
65831         localename: More tests.
65832         * tests/test-localename.c (SIZEOF): New macro.
65833         (categories): New variable.
65834         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
65835         test_locale_name_default): Add test w.r.t. thread locale.
65836         (test_locale_name_thread): New function.
65837         (main): Invoke it.
65839         localename: Make aware of thread locale.
65840         * lib/localename.h (gl_locale_name_thread): New declaration.
65841         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
65842         behaviour with respect to thread locale.
65843         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
65844         <langinfo.h>, glthread/lock.h.
65845         (SIZE_BITS): New macro.
65846         (string_hash): New function.
65847         (struct hash_node): New type.
65848         (HASH_TABLE_SIZE): New macro.
65849         (struniq_hash_table, struniq_lock): New variables.
65850         (struniq): New function.
65851         (gl_locale_name_thread): New function.
65852         (gl_locale_name): Invoke it.
65853         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
65854         * modules/localename (Depends-on): Add lock.
65855         Reported by Mike Gran <spk121@yahoo.com>.
65857 2009-12-23  Eric Blake  <ebb9@byu.net>
65859         va-args: new module
65860         * modules/va-args: New file.
65861         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
65862         * MODULES.html.sh (Core language properties): Mention it.
65864         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
65865         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
65866         named alias for __attribute__((__unused__)).
65867         * lib/chown.c: Update client.
65868         * lib/fchmodat.c: Likewise.
65869         * lib/fts.c: Likewise.
65870         * lib/getdate.y: Likewise.
65871         * lib/getgroups.c: Likewise.
65872         * lib/getopt.c: Likewise.
65873         * lib/getugroups.c: Likewise.
65874         * lib/mkdir.c: Likewise.
65875         * lib/mkfifo.c: Likewise.
65876         * lib/mkfifoat.c: Likewise.
65877         * lib/mknod.c: Likewise.
65878         * lib/mknodat.c: Likewise.
65879         * lib/readlink.c: Likewise.
65880         * lib/se-context.in.h: Likewise.
65881         * lib/se-selinux.in.h: Likewise.
65882         * lib/sockets.c: Likewise.
65883         * lib/symlink.c: Likewise.
65884         * lib/symlinkat.c: Likewise.
65885         * lib/unicodeio.c: Likewise.
65886         * lib/unistr.h: Likewise.
65887         * tests/test-areadlink.c: Likewise.
65888         * tests/test-areadlinkat.c: Likewise.
65889         * tests/test-filenamecat.c: Likewise.
65890         * tests/test-fseeko.c: Likewise.
65891         * tests/test-ftello.c: Likewise.
65892         * tests/test-getdate.c: Likewise.
65893         * tests/test-getgroups.c: Likewise.
65894         * tests/test-gethostname.c: Likewise.
65895         * tests/test-quotearg.c: Likewise.
65896         * tests/test-version-etc.c: Likewise.
65897         * tests/test-xalloc-die.c: Likewise.
65898         * tests/test-xfprintf-posix.c: Likewise.
65899         * tests/test-xprintf-posix.c: Likewise.
65900         * tests/test-xvasprintf.c: Likewise.
65902         tests: avoid compiler warnings
65903         * tests/test-fcntl.c (main): Delete unused parameters.
65904         * tests/test-freopen-safer.c (main): Likewise.
65905         * tests/test-xalloc-die.c (main): Mark unused parameters.
65906         * tests/test-fseeko.c (main): Likewise.
65907         * tests/test-ftello.c (main): Likewise.
65908         * tests/test-nanosleep.c (main): Avoid declaration warning.
65909         * tests/test-sleep.c (main): Likewise.
65910         * tests/test-unsetenv.c (main): Silence warning about string
65911         literal.
65912         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
65914 2009-12-23  Bruno Haible  <bruno@clisp.org>
65916         * tests/test-localename.c (test_locale_name): New function, extracted
65917         from main. Also test mixed situations.
65918         (test_locale_name_posix, test_locale_name_environ,
65919         test_locale_name_default): New functions.
65920         (main): Invoke them all.
65921         * modules/localename-tests (configure.ac): Test for newlocale.
65923 2009-12-23  Bruno Haible  <bruno@clisp.org>
65925         unistd: Ensure getcwd gets declared before being overridden.
65926         * lib/unistd.in.h: Conditionally include <io.h>.
65928 2009-12-22  Bruno Haible  <bruno@clisp.org>
65930         wchar: Diagnose broken combination of glibc and gcc versions and flags.
65931         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
65932         (gl_WCHAR_H): Invoke it.
65933         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
65934         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
65935         Reported by Karl Berry <karl@freefriends.org>.
65937 2009-12-22  Eric Blake  <ebb9@byu.net>
65939         math, unistd: avoid redundant includes
65940         * lib/math.in.h (isnan): No need to re-include <math.h>.
65941         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
65943         getsubopt: work around cygwin bug
65944         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
65945         avoid conflicting with system getsubopt.
65946         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
65947         bug.
65949         getopt: synchronize from glibc
65950         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
65951         parameter order.  Adjust all callers.
65952         (_getopt_internal_r, main): Adjust quoting in error messages.
65953         Drop considerations for outdated POSIX 1003.2 error message.
65954         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
65955         callers.
65956         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
65958         test-getopt: test stderr behavior
65959         * modules/getopt-posix-tests (Depends-on): Add dup2.
65960         * tests/test-getopt.c (ASSERT): Avoid stderr.
65961         (main): Move stderr to a temporary file.
65962         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
65963         Instead, add parameter to inform caller if output occurred.
65964         (test_getopt): Adjust all existing tests to expect silence, and
65965         add new tests of leading ":".
65966         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
65967         glibc shortcomings with leading "-:" or "+:" in optstring.
65968         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65969         Likewise.
65970         * doc/posix-functions/getopt.texi (getopt): Likewise.
65972         test-getopt: enhance test
65973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
65974         supports optind=0.
65975         * tests/test-getopt.c (OPTIND_MIN): Move...
65976         * tests/test-getopt.h (OPTIND_MIN): ...here.
65977         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
65978         Require that optind=0 works, since modern BSD supports it in
65979         addition to optreset, and since coreutils expects it.
65980         (test_getopt_long_only): New test.
65981         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
65982         glibc shortcomings with 'W;', and enforcement of optind=0.
65983         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65984         Likewise.
65986 2009-12-21  Bruno Haible  <bruno@clisp.org>
65988         localename: Improvements for MacOS X and Cygwin.
65989         * lib/localename.h (gl_locale_name_environ): New declaration.
65990         * lib/localename.c (gl_locale_name_environ): New function, extracted from
65991         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
65992         (gl_locale_name_posix): Invoke it.
65993         (gl_locale_name_default): Add comments. Use Windows native API also on
65994         Cygwin.
65996 2009-12-21  Bruno Haible  <bruno@clisp.org>
65998         Update list of Win32 locale ids.
65999         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
66000         (LANG_SAMI): Renamed from LANG_SAAMI.
66001         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
66002         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
66003         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
66004         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
66005         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
66006         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
66007         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
66008         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
66009         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
66010         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
66011         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
66012         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
66013         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
66014         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
66015         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
66016         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
66017         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
66018         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
66019         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
66020         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
66021         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
66022         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
66023         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
66024         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
66025         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
66026         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
66027         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
66028         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
66029         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
66030         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
66031         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
66032         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
66033         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
66034         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
66035         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
66036         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
66037         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
66038         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
66039         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
66040         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
66041         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
66042         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
66043         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
66044         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
66045         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
66046         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
66047         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
66048         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
66049         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
66050         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
66051         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
66052         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
66053         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
66054         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
66055         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
66056         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
66057         Add more languages and countries for Sami, Sorbian. Add more countries
66058         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
66059         for Pashto. Change country for Syriac, Tswana.
66061 2009-12-21  Eric Blake  <ebb9@byu.net>
66063         test-utimens: avoid spurious failure
66064         * tests/test-chown.h (nap): Factor...
66065         * tests/nap.h: ...into new file.
66066         * tests/test-lchown.h (nap): Avoid duplication.
66067         * tests/test-utimens-common.h (nap): Use shared implementation,
66068         necessary on file systems with 1-second resolution.
66069         * modules/chown-tests (Files): Include new file.
66070         * modules/fdutimensat-tests (Files): Likewise.
66071         * modules/futimens-tests (Files): Likewise.
66072         * modules/lchown-tests (Files): Likewise.
66073         * modules/openat-tests (Files): Likewise.
66074         * modules/utimens-tests (Files): Likewise.
66075         * modules/utimensat-tests (Files): Likewise.
66077 2009-12-19  Eric Blake  <ebb9@byu.net>
66079         futimens, utimensat: work around Linux bug
66080         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
66081         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
66082         * lib/utimensat.c (rpl_utimensat): Work around it.
66083         * lib/futimens.c (rpl_futimens): Adjust comment.
66085         utimens: work around Linux ctime bug
66086         * lib/utimens.c (detect_ctime_bug): New helper function.
66087         (update_timespec): Differentiate between workaround needed for
66088         this bug vs. what is needed for systems that lack utimensat.
66089         (fdutimens, lutimens): Work around bug.
66091         utimens: check for ctime update
66092         * tests/test-utimens-common.h (check_ctime): Define.
66093         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
66094         * tests/test-futimens.h (test_futimens): Likewise.
66095         * tests/test-lutimens.h (test_lutimens): Likewise.
66096         * doc/posix-functions/futimens.texi (futimens): Document the bug.
66097         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
66099 2009-12-19  Bruno Haible  <bruno@clisp.org>
66101         dprintf-posix: Check against memory leak fixed on 2009-12-15.
66102         * tests/test-dprintf-posix2.sh: New file.
66103         * tests/test-dprintf-posix2.c: New file.
66104         * modules/dprintf-posix-tests (Files): Add them.
66105         (configure.ac): Check for getrlimit and setrlimit.
66106         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
66108 2009-12-19  Bruno Haible  <bruno@clisp.org>
66110         fprintf-posix: Check against memory leak fixed on 2009-12-15.
66111         * tests/test-fprintf-posix3.sh: New file.
66112         * tests/test-fprintf-posix3.c: New file.
66113         * modules/fprintf-posix-tests (Files): Add them.
66114         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
66116 2009-12-19  Eric Blake  <ebb9@byu.net>
66118         dirfd: fix prototype
66119         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
66120         * lib/dirfd.c (dirfd): Likewise.
66122         canonicalize: reduce memory usage
66123         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
66124         allocation to size.
66125         Reported by Solar Designer <solar@openwall.com>.
66127 2009-12-19  Bruno Haible  <bruno@clisp.org>
66129         New module attribute 'Applicability'.
66130         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
66131         * gnulib-tool: New option --extract-applicability.
66132         (func_usage): Document it.
66133         (sed_extract_prog): Recognize it.
66134         (func_get_applicability): New function.
66135         (func_import): Generalize handling of 'link-warning' module.
66136         * modules/link-warning (Applicability): New section.
66137         * modules/arg-nonnull (Applicability): New section.
66138         Repoted by Simon Josefsson <simon@josefsson.org>.
66140 2009-12-19  Bruno Haible  <bruno@clisp.org>
66142         fflush: tweak
66143         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
66144         * lib/fseeko.c (rpl_fseeko): Likewise.
66146 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
66148         * lib/gl_list.h: Fix typo in comment.
66150 2009-12-16  Eric Blake  <ebb9@byu.net>
66152         fcntl: use to simplify other modules
66153         * modules/cloexec (Depends-on): Add fcntl.
66154         * modules/fchdir (Depends-on): Likewise.
66155         * modules/fd-safer-flag (Depends-on): Likewise.
66156         * modules/unistd-safer (Depends-on): Likewise.
66157         * modules/dup3 (configure.ac): Set module indicator.
66158         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
66159         missing.
66160         * lib/fchdir.c (_gl_register_dup): Fix comment.
66161         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
66162         * lib/dup-safer.c (dup_safer): Likewise.
66163         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
66164         * lib/dup3.c (dup3): Likewise.
66165         * tests/test-fchdir.c (main): Enhance test.
66166         Fixes a dup_cloexec bug reported by Ondřej Vašík.
66168         fcntl: port portions of fcntl to mingw
66169         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
66170         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
66171         replacement for mingw.
66172         * modules/fcntl (Description): Update.
66173         (Depends-on): Add dup2.
66174         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
66175         * modules/fcntl-h (Makefile.am): Substitute it.
66176         * lib/fcntl.in.h (fcntl): Update declaration.
66177         (F_DUPFD, F_GETFD): New macros, when needed.
66178         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
66179         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
66180         * tests/test-fcntl.c (check_flags, main): Enhance test for items
66181         we now guarantee.
66183         fcntl: work around cygwin bug in F_DUPFD
66184         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
66185         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
66186         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
66187         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
66188         * doc/posix-functions/fcntl.texi (fcntl): Document it.
66190         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
66191         * modules/fcntl (Files): List new files.
66192         (configure.ac): Run a test.
66193         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
66194         * lib/fcntl.c (rpl_fcntl): Likewise.
66195         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
66196         (gl_FCNTL_H): Always replace fcntl.h.
66197         * modules/fcntl-h (Makefile.am): Substitute witnesses.
66198         * lib/fcntl.in.h (fcntl): Declare replacement.
66199         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
66200         needed, plus a witness.
66201         * doc/posix-functions/fcntl.texi (fcntl): Document this.
66202         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
66203         * tests/test-fcntl.c: New file.
66204         * modules/fcntl-tests: Likewise.
66206         binary-io: avoid potential compilation warning
66207         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
66208         directives.
66210         fflush: avoid compilation error on NetBSD
66211         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
66212         between off_t and fpos_t, since the latter is sometimes a struct.
66213         * lib/fseeko.c (rpl_fseeko): Likewise.
66214         Reported by Alexander Nasonov <alnsn@yandex.ru>.
66216 2009-12-15  Eric Blake  <ebb9@byu.net>
66218         fcntl-h, stdio, sys_ioctl: fix declarations
66219         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
66220         function must not take arguments.
66221         * lib/sys_ioctl.in.h (ioctl): Likewise.
66222         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
66223         (open): Add a link warning.
66225 2009-12-15  Jim Meyering  <meyering@redhat.com>
66227         areadlink, areadlink-with-size: relax license to LGPLv2+
66228         * modules/areadlink (License): Relax to LGPLv2+.
66229         * modules/areadlink-with-size (License): Likewise.
66231 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
66232             Bruno Haible  <bruno@clisp.org>
66234         *printf: Fix memory leak.
66235         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
66236         * lib/vfprintf.c (vfprintf): Likewise.
66237         * lib/dprintf.c (dprintf): Likewise.
66238         * lib/vdprintf.c (vdprintf): Likewise.
66240 2009-12-14  Eric Blake  <ebb9@byu.net>
66242         accept4: adjust module dependencies
66243         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
66245         utimens: one more try at avoiding compiler warning
66246         * lib/utimens.c (lutimens): Lower scope of result.
66248 2009-12-13  Bruno Haible  <bruno@clisp.org>
66250         Move the malloc checking from module 'list' to new module 'xlist'.
66251         * modules/xlist: New file.
66252         * lib/gl_xlist.h: New file.
66253         * lib/gl_xlist.c: New file.
66254         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
66255         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
66256         gl_list_add_last, gl_list_add_before, gl_list_add_after,
66257         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
66258         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
66259         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
66260         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
66261         gl_sortedlist_nx_add): New declarations.
66262         (struct gl_list_implementation): Rename and change methods accordingly.
66263         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
66264         (gl_list_nx_create): Renamed from gl_list_create.
66265         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
66266         (gl_list_nx_set_at): Renamed from gl_list_set_at.
66267         (gl_list_nx_add_first): Renamed from gl_list_add_first.
66268         (gl_list_nx_add_last): Renamed from gl_list_add_last.
66269         (gl_list_nx_add_before): Renamed from gl_list_add_before.
66270         (gl_list_nx_add_after): Renamed from gl_list_add_after.
66271         (gl_list_nx_add_at): Renamed from gl_list_add_at.
66272         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
66273         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
66274         gl_list_create_empty.
66275         (gl_list_nx_create): Renamed from gl_list_create.
66276         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
66277         (gl_list_nx_set_at): Renamed from gl_list_set_at.
66278         (gl_list_nx_add_first): Renamed from gl_list_add_first.
66279         (gl_list_nx_add_last): Renamed from gl_list_add_last.
66280         (gl_list_nx_add_before): Renamed from gl_list_add_before.
66281         (gl_list_nx_add_after): Renamed from gl_list_add_after.
66282         (gl_list_nx_add_at): Renamed from gl_list_add_at.
66283         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
66284         * lib/gl_array_list.c: Don't include xalloc.h.
66285         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
66286         NULL upon out-of-memory.
66287         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
66288         out-of-memory.
66289         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
66290         Change return type to 'int'.
66291         (gl_array_nx_set_at): Renamed from gl_array_set_at.
66292         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
66293         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
66294         upon out-of-memory.
66295         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
66296         upon out-of-memory.
66297         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
66298         upon out-of-memory.
66299         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
66300         upon out-of-memory.
66301         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
66302         out-of-memory.
66303         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
66304         Update.
66305         (gl_array_list_implementation): Update.
66306         * lib/gl_carray_list.c: Don't include xalloc.h.
66307         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
66308         Return NULL upon out-of-memory.
66309         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
66310         out-of-memory.
66311         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
66312         Change return type to 'int'.
66313         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
66314         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
66315         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
66316         upon out-of-memory.
66317         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
66318         upon out-of-memory.
66319         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
66320         out-of-memory.
66321         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
66322         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
66323         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
66324         Update.
66325         (gl_carray_list_implementation): Update.
66326         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
66327         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
66328         gl_linked_create_empty. Return NULL upon out-of-memory.
66329         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
66330         out-of-memory.
66331         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
66332         Change return type to 'int'. Return -1 upon out-of-memory.
66333         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
66334         out-of-memory.
66335         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
66336         upon out-of-memory.
66337         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
66338         upon out-of-memory.
66339         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
66340         NULL upon out-of-memory.
66341         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
66342         upon out-of-memory.
66343         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
66344         out-of-memory.
66345         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
66346         Update.
66347         * lib/gl_linked_list.c: Don't include xalloc.h.
66348         (gl_linked_list_implementation): Update.
66349         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
66350         (add_to_bucket): Change return type to 'int'.
66351         (gl_linkedhash_list_implementation): Update.
66352         * lib/gl_anytree_list1.h (free_subtree): New function.
66353         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
66354         gl_tree_create_empty. Return NULL upon out-of-memory.
66355         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
66356         Change return type to 'int'. Return -1 upon out-of-memory.
66357         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
66358         out-of-memory.
66359         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
66360         (gl_tree_remove_node): New function, moved here from
66361         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
66362         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
66363         Update.
66364         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
66365         malloc, not xmalloc. Return NULL upon out-of-memory.
66366         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
66367         out-of-memory.
66368         (gl_tree_remove_node_from_tree): New function, extracted from
66369         gl_tree_remove_node.
66370         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
66371         upon out-of-memory.
66372         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
66373         out-of-memory.
66374         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
66375         upon out-of-memory.
66376         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
66377         upon out-of-memory.
66378         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
66379         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
66380         not xmalloc. Return NULL upon out-of-memory.
66381         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
66382         out-of-memory.
66383         (gl_tree_remove_node_from_tree): New function, extracted from
66384         gl_tree_remove_node.
66385         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
66386         upon out-of-memory.
66387         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
66388         out-of-memory.
66389         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
66390         upon out-of-memory.
66391         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
66392         upon out-of-memory.
66393         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
66394         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
66395         gl_anytree_list1.h before gl_anyavltree_list2.h.
66396         (gl_avltree_list_implementation): Update.
66397         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
66398         gl_anytree_list1.h before gl_anyavltree_list2.h.
66399         (gl_rbtree_list_implementation): Update.
66400         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
66401         Change return type to 'int'. Return -1 upon out-of-memory. Use
66402         __builtin_expect.
66403         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
66404         (gl_avltreehash_list_implementation): Update.
66405         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
66406         (gl_rbtreehash_list_implementation): Update.
66407         * modules/array-list (Depends-on): Remove xalloc.
66408         * modules/carray-list (Depends-on): Likewise.
66409         * modules/linked-list (Depends-on): Likewise.
66410         * modules/linkedhash-list (Depends-on): Likewise.
66411         * modules/avltree-list (Depends-on): Likewise.
66412         * modules/rbtree-list (Depends-on): Likewise.
66413         * modules/avltreehash-list (Depends-on): Likewise.
66414         * modules/rbtreehash-list (Depends-on): Likewise.
66416         * modules/xsublist: New file.
66417         * lib/gl_xsublist.h: New file.
66418         * lib/gl_xsublist.c: New file.
66419         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
66420         (gl_sublist_nx_create): New declaration.
66421         * lib/gl_sublist.c: Don't include xalloc.h.
66422         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
66423         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
66424         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
66425         Change return type to 'int'. Return -1 upon out-of-memory.
66426         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
66427         upon out-of-memory.
66428         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
66429         NULL upon out-of-memory.
66430         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
66431         upon out-of-memory.
66432         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
66433         NULL upon out-of-memory.
66434         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
66435         NULL upon out-of-memory.
66436         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
66437         upon out-of-memory.
66438         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
66439         (gl_sublist_list_implementation): Update.
66440         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
66441         upon out-of-memory.
66442         * modules/sublist (Depends-on): Remove xalloc.
66444         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
66445         * tests/test-carray_list.c: Likewise.
66446         * tests/test-linked_list.c: Likewise.
66447         * tests/test-linkedhash_list.c: Likewise.
66448         * tests/test-avltree_list.c: Likewise.
66449         * tests/test-rbtree_list.c: Likewise.
66450         * tests/test-avltreehash_list.c: Likewise.
66451         * tests/test-rbtreehash_list.c: Likewise.
66452         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
66453         * modules/carray-list-tests (Makefile.am): Likewise.
66454         * modules/linked-list-tests (Makefile.am): Likewise.
66455         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66456         * modules/avltree-list-tests (Makefile.am): Likewise.
66457         * modules/rbtree-list-tests (Makefile.am): Likewise.
66458         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66459         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66461         * NEWS: Mention the changes.
66463         * lib/clean-temp.c: Include gl_xlist.h.
66464         * modules/clean-temp (Depends-on): Add xlist.
66466         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
66467         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
66469         * tests/test-array_oset.c: Include gl_xlist.h.
66470         * modules/array-oset-tests (Depends-on): Add xlist.
66472         Reported by José E. Marchesi <jemarch@gnu.org>.
66474 2009-12-13  Bruno Haible  <bruno@clisp.org>
66476         Move the malloc checking from module 'oset' to new module 'xoset'.
66477         * modules/xoset: New file.
66478         * lib/gl_xoset.h: New file.
66479         * lib/gl_xoset.c: New file.
66480         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
66481         declarations.
66482         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
66483         (struct gl_oset_implementation): Rename and change methods accordingly.
66484         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
66485         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
66486         'int'. Mark as __warn_unused_result__.
66487         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
66488         gl_oset_create_empty.
66489         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
66490         'int'.
66491         * lib/gl_array_oset.c: Don't include xalloc.h.
66492         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
66493         malloc, not xmalloc.
66494         (grow): Change return type to 'int'. Don't call xalloc_die.
66495         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
66496         to 'int'.
66497         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
66498         'int'.
66499         (gl_array_oset_implementation): Update.
66500         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
66501         gl_tree_create_empty.
66502         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
66503         'int'.
66504         * lib/gl_avltree_oset.c: Don't include xalloc.h.
66505         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
66506         xmalloc.
66507         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
66508         not xmalloc.
66509         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
66510         xmalloc.
66511         (gl_avltree_oset_implementation): Update.
66512         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
66513         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
66514         xmalloc.
66515         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
66516         not xmalloc.
66517         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
66518         xmalloc.
66519         (gl_rbtree_oset_implementation): Update.
66520         * modules/array-oset (Depends-on): Remove xalloc.
66521         * modules/avltree-oset (Depends-on): Likewise.
66522         * modules/rbtree-oset (Depends-on): Likewise.
66523         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
66524         * tests/test-avltree_oset.c: Likewise.
66525         * tests/test-rbtree_oset.c: Likewise.
66526         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66527         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
66528         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66529         * NEWS: Mention the change.
66531 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
66533         maint.mk: allow a project to override release-prep commands
66534         * top/maint.mk (alpha, beta, stable): Move release-preparatory
66535         commands into a new rule.
66536         (release-prep): New rule.
66537         (release-prep-hook): New overridable variable.
66539 2009-12-13  Bruno Haible  <bruno@clisp.org>
66541         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
66543 2009-12-13  Jim Meyering  <meyering@redhat.com>
66545         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
66546         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
66548 2009-12-12  Bruno Haible  <bruno@clisp.org>
66550         duplocale: Tweak.
66551         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
66553 2009-12-12  Karl Berry  <karl@gnu.org>
66555         * config/srclist.txt (strtoll.c): tab changes, no more sync.
66557 2009-12-12  Bruno Haible  <bruno@clisp.org>
66559         * m4/po.m4: Undo incorrect untabification.
66561 2009-12-12  Bruno Haible  <bruno@clisp.org>
66563         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
66564         * modules/c-strtod (Depends-on): Add locale.
66565         * modules/c-strtold (Depends-on): Likewise.
66567 2009-12-12  Bruno Haible  <bruno@clisp.org>
66569         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
66571 2009-12-11  Eric Blake  <ebb9@byu.net>
66573         setenv: relax requirement in light of POSIX ruling
66574         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
66575         not NULL.
66576         * tests/test-setenv.c (main): Relax test.
66577         * tests/test-unsetenv.c (main): Likewise.
66578         * doc/posix-functions/setenv.texi (setenv): Document this.
66579         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
66581 2009-12-11  Bruno Haible  <bruno@clisp.org>
66583         New module 'fd-safer-flag'.
66584         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
66585         * lib/dup-safer.c (dup_safer_flag): Remove function.
66586         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
66587         * lib/fd-safer.c (fd_safer_flag): Remove function.
66588         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
66589         * modules/cloexec (configure.ac): Drop indicator macro.
66590         * modules/fd-safer-flag: New file.
66591         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
66592         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
66593         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
66595 2009-12-11  Bruno Haible  <bruno@clisp.org>
66597         Tests for module 'nl_langinfo'.
66598         * modules/nl_langinfo-tests: New file.
66599         * tests/test-nl_langinfo.sh: New file.
66600         * tests/test-nl_langinfo.c: New file.
66602         New module 'nl_langinfo'.
66603         * lib/nl_langinfo.c: New file.
66604         * m4/nl_langinfo.m4: New file.
66605         * modules/nl_langinfo: New file.
66606         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
66608 2009-12-11  Bruno Haible  <bruno@clisp.org>
66610         Tests for module 'langinfo'.
66611         * modules/langinfo-tests: New file.
66612         * tests/test-langinfo.c: New file.
66614         New module 'langinfo'.
66615         * lib/langinfo.in.h: New file.
66616         * m4/langinfo_h.m4: New file.
66617         * modules/langinfo: New file.
66618         * doc/posix-headers/langinfo.texi: Mention the new module.
66620 2009-12-11  Bruno Haible  <bruno@clisp.org>
66622         * lib/config.charset: Untabify.
66624 2009-12-11  Bruno Haible  <bruno@clisp.org>
66626         * modules/unistd-safer (configure.ac): Drop indicator macro.
66628 2009-12-11  Bruno Haible  <bruno@clisp.org>
66630         Move pipe2-safer code to its own file.
66631         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
66632         * lib/pipe-safer.c (pipe2_safer): Remove function.
66633         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
66634         (Makefile.am): Add it to lib_SOURCES.
66636 2009-12-10  Bruno Haible  <bruno@clisp.org>
66638         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
66640 2009-12-10  Bruno Haible  <bruno@clisp.org>
66642         Declare which arguments expect non-NULL values, for GCC and clang.
66643         * build-aux/arg-nonnull.h: New file.
66644         * modules/arg-nonnull: New file.
66645         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
66646         (inet_ntop, inet_pton): Use it.
66647         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
66648         (closedir, dirfd, opendir, scandir, alphasort): Use it.
66649         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
66650         (open, openat): Use it.
66651         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
66652         (fnmatch): Use it.
66653         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
66654         (getopt, getopt_long, getopt_long_only): Use it.
66655         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
66656         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
66657         Use it.
66658         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
66659         (iconv_open): Use it.
66660         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
66661         (strtoimax, strtoumax): Use it.
66662         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
66663         (duplocale): Use it.
66664         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
66665         (frexp, frexpl): Use it.
66666         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
66667         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
66668         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
66669         (tsearch, tfind, tdelete, twalk): Use it.
66670         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
66671         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
66672         sigpending): Use it.
66673         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
66674         (posix_spawn, posix_spawnp, posix_spawnattr_init,
66675         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
66676         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
66677         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
66678         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
66679         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
66680         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
66681         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
66682         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
66683         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
66684         Use it.
66685         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
66686         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
66687         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
66688         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
66689         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
66690         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
66691         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
66692         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
66693         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
66694         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
66695         strtoull, unsetenv): Use it.
66696         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
66697         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
66698         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
66699         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
66700         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
66701         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
66702         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
66703         (strcasecmp, strncasecmp): Use it.
66704         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
66705         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
66706         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
66707         rpl_setsockopt): Use it.
66708         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
66709         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
66710         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
66711         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
66712         (gettimeofday): Use it.
66713         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
66714         (times): Use it.
66715         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
66716         (uname): Use it.
66717         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
66718         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
66719         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
66720         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
66721         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
66722         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
66723         unlinkat, write): Use it.
66724         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
66725         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
66726         * lib/argv-iter.h: Include arg-nonnull.h.
66727         (_ATTRIBUTE_NONNULL_): Remove macro.
66728         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
66729         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
66730         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
66731         optimization.
66732         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
66733         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
66734         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
66735         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
66736         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
66737         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
66738         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
66739         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
66740         * modules/arpa_inet (Depends-on): Add arg-nonnull.
66741         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
66742         * modules/dirent (Depends-on): Add arg-nonnull.
66743         (Makefile.am): Insert arg-nonnull.h into dirent.h.
66744         * modules/fcntl-h (Depends-on): Add arg-nonnull.
66745         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
66746         * modules/fnmatch (Depends-on): Add arg-nonnull.
66747         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
66748         * modules/getopt-posix (Depends-on): Add arg-nonnull.
66749         (Makefile.am): Insert arg-nonnull.h into getopt.h.
66750         * modules/glob (Depends-on): Add arg-nonnull.
66751         (Makefile.am): Insert arg-nonnull.h into glob.h.
66752         * modules/iconv_open (Depends-on): Add arg-nonnull.
66753         (Makefile.am): Insert arg-nonnull.h into iconv.h.
66754         * modules/inttypes (Depends-on): Add arg-nonnull.
66755         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
66756         * modules/locale (Depends-on): Add arg-nonnull.
66757         (Makefile.am): Insert arg-nonnull.h into locale.h.
66758         * modules/math (Depends-on): Add arg-nonnull.
66759         (Makefile.am): Insert arg-nonnull.h into math.h.
66760         * modules/netdb (Depends-on): Add arg-nonnull.
66761         (Makefile.am): Insert arg-nonnull.h into netdb.h.
66762         * modules/search (Depends-on): Add arg-nonnull.
66763         (Makefile.am): Insert arg-nonnull.h into search.h.
66764         * modules/signal (Depends-on): Add arg-nonnull.
66765         (Makefile.am): Insert arg-nonnull.h into signal.h.
66766         * modules/spawn (Depends-on): Add arg-nonnull.
66767         (Makefile.am): Insert arg-nonnull.h into spawn.h.
66768         * modules/stdio (Depends-on): Add arg-nonnull.
66769         (Makefile.am): Insert arg-nonnull.h into stdio.h.
66770         * modules/stdlib (Depends-on): Add arg-nonnull.
66771         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
66772         * modules/string (Depends-on): Add arg-nonnull.
66773         (Makefile.am): Insert arg-nonnull.h into string.h.
66774         * modules/strings (Depends-on): Add arg-nonnull.
66775         (Makefile.am): Insert arg-nonnull.h into strings.h.
66776         * modules/sys_socket (Depends-on): Add arg-nonnull.
66777         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
66778         * modules/sys_stat (Depends-on): Add arg-nonnull.
66779         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
66780         * modules/sys_time (Depends-on): Add arg-nonnull.
66781         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
66782         * modules/sys_times (Depends-on): Add arg-nonnull.
66783         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
66784         * modules/sys_utsname (Depends-on): Add arg-nonnull.
66785         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
66786         * modules/time (Depends-on): Add arg-nonnull.
66787         (Makefile.am): Insert arg-nonnull.h into time.h.
66788         * modules/unistd (Depends-on): Add arg-nonnull.
66789         (Makefile.am): Insert arg-nonnull.h into unistd.h.
66790         * modules/wchar (Depends-on): Add arg-nonnull.
66791         (Makefile.am): Insert arg-nonnull.h into wchar.h.
66792         * modules/argv-iter (Depends-on): Add arg-nonnull.
66793         * tests/test-canonicalize.c (null_ptr): New function.
66794         (main): Use it.
66795         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
66796         (main): Use it.
66797         * tests/test-memmem.c (null_ptr): New function.
66798         (main): Use it.
66799         Reported by Jim Meyering.
66801 2009-12-10  Bruno Haible  <bruno@clisp.org>
66803         Use spaces for indentation, not tabs.
66804         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
66805         * m4/*.m4: Untabify.
66806         * build-aux/*.h: Untabify.
66807         * tests/**/*.[hc]: Untabify.
66808         * README: New section "Indent with spaces, not TABs", based on
66809         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
66810         * NEWS: Mention the change.
66812 2009-12-10  Bruno Haible  <bruno@clisp.org>
66814         pty test: Fix link error.
66815         * modules/pty-tests (Makefile.am): Add the default LDADD value to
66816         test_pty_LDADD.
66818 2009-12-07  Simon Josefsson  <simon@josefsson.org>
66820         * modules/pty: New file.
66821         * modules/pty-tests: New file.
66822         * m4/pty.m4: New file.
66823         * tests/test-pty.c: New file.
66824         * doc/glibc-headers/pty.texi: Modified.
66825         * doc/glibc-functions/forkpty.texi: Modified.
66826         * doc/glibc-functions/openpty.texi: Modified.
66828 2009-12-10  Bruno Haible  <bruno@clisp.org>
66830         Avoid syntax error in C++ mode.
66831         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
66833 2009-12-10  Bruno Haible  <bruno@clisp.org>
66835         Use sed with option -e.
66836         * gnulib-tool (func_version, func_emit_copyright_notice,
66837         func_emit_initmacro_end, func_import, func_create_testdir): Pass
66838         option -e to sed.
66839         * modules/link-warning (Makefile.am): Likewise.
66841 2009-12-10  Jim Meyering  <meyering@redhat.com>
66843         mgetgroups: do not write bytes beyond end of malloc'd buffer
66844         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
66845         username, we call getgroups with a one-element-shorter buffer,
66846         but still told it the length was original, max_n_groups.
66848 2009-12-09  Eric Blake  <ebb9@byu.net>
66850         cloexec: relax license
66851         * modules/cloexec (Maintainer): Add myself.
66852         (License): Use LGPL, not GPL.
66854         link-warning: optimize generation
66855         * modules/link-warning (Makefile.am): Reduce process usage.
66857 2009-12-09  Bruno Haible  <bruno@clisp.org>
66859         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
66860         workaround was added on 2009-11-17.
66862 2009-12-09  Jim Meyering  <meyering@redhat.com>
66863             Bruno Haible  <bruno@clisp.org>
66865         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
66866         * modules/link-warning (Makefile.am): Make the comment-removing sed
66867         command more robust in the face of bootstrap-prepended comment lines.
66869 2009-12-09  Bruno Haible  <bruno@clisp.org>
66871         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
66872         most one group.
66874 2009-12-09  Simon Josefsson  <simon@josefsson.org>
66875             Bruno Haible  <bruno@clisp.org>
66877         * build-aux/link-warning.h: Add copyright notice.
66878         * modules/link-warning (Makefile.am): Generate link-warning.h from
66879         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
66880         * NEWS: Mention change in link-warning module.
66881         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
66882         * modules/dirent (Makefile.am): Add dependency to dirent.h.
66883         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
66884         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
66885         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
66886         * modules/math (Makefile.am): Add dependency to math.h.
66887         * modules/search (Makefile.am): Add dependency to search.h.
66888         * modules/signal (Makefile.am): Add dependency to signal.h.
66889         * modules/spawn (Makefile.am): Add dependency to spawn.h.
66890         * modules/stdio (Makefile.am): Add dependency to stdio.h.
66891         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
66892         * modules/string (Makefile.am): Add dependency to string.h.
66893         * modules/strings (Makefile.am): Add dependency to strings.h.
66894         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
66895         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
66896         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
66897         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
66898         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
66899         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
66900         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
66901         * modules/unistd (Makefile.am): Add dependency to unistd.h.
66902         * modules/wchar (Makefile.am): Add dependency to wchar.h.
66904 2009-12-09  Bruno Haible  <bruno@clisp.org>
66906         fchdir: Optimize away rpl_fstat when possible.
66907         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
66908         REPLACE_OPEN_DIRECTORY.
66909         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
66911 2009-12-09  Bruno Haible  <bruno@clisp.org>
66913         * lib/fchdir.c: Update comment.
66915 2009-12-09  Bruno Haible  <bruno@clisp.org>
66917         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
66919 2009-12-08  Eric Blake  <ebb9@byu.net>
66921         fchdir: avoid memory leak on re-registration.
66922         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
66924 2009-12-08  Jim Meyering  <meyering@redhat.com>
66926         init.sh: avoid Solaris 10 /bin/sh portability problem
66927         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
66928         sourced script:
66929           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
66930           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
66931           bar
66932         tests/init.sh relied on that, accepting a --set-path=DIR argument,
66933         and two tests used that idiom.
66934         * tests/init.sh: Update suggested usage comments.
66935         (path_prepend_): New function, to be used in place
66936         of the --src-path=DIR option.
66937         (setup_): Move PATH-prepending code into path_prepend_.
66938         * tests/test-pread.sh: Adapt to new usage.
66939         * tests/test-xalloc-die.sh: Likewise.
66941 2009-12-08  Simon Josefsson  <simon@josefsson.org>
66943         * doc/gnulib.texi (Glibc pty.h): Add.
66944         * doc/glibc-functions/forkpty.texi: Add.
66945         * doc/glibc-functions/openpty.texi: Add.
66946         Suggested by Bruno Haible.
66948 2009-12-08  Eric Blake  <ebb9@byu.net>
66950         fchdir: fix logic bugs
66951         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
66952         * tests/test-fchdir.c (main): Enhance test.
66953         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
66954         is in use.
66956         dup2: fix logic bugs
66957         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
66958         REPLACE_DUP2 to decide when rpl_dup2 is needed.
66959         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
66960         exists.
66961         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
66963 2009-12-07  Eric Blake  <ebb9@byu.net>
66965         unlink: fix m4 detection
66966         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
66968         unistd-safer: add unit test
66969         * modules/unistd-safer-tests: New file.
66970         * tests/test-dup-safer.c: Likewise.
66971         * tests/test-cloexec.c (setmode): Avoid compiler warning.
66972         * tests/test-dup2.c (setmode): Likewise.
66973         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
66975         cloexec: preserve text vs. binary across dup_cloexec
66976         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
66977         mode.
66978         * modules/dup2-tests (Depends-on): Add binary-io.
66979         * modules/cloexec-tests (Depends-on): Likewise.
66980         * tests/test-dup2.c (setmode, is_mode): New helpers.
66981         (main): Add tests that translation mode is preserved.
66982         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
66983         Reported by Bruno Haible.
66985         mgetgroups: reduce duplicate listings
66986         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
66987         resulting array.
66988         * tests/test-chown.h (test_chown): Simplify client.
66989         * tests/test-lchown.h (test_lchown): Likewise.
66991 2009-12-06  Bruno Haible  <bruno@clisp.org>
66993         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
66994         value.
66996 2009-12-06  Bruno Haible  <bruno@clisp.org>
66998         * lib/progname.c: Include stdio.h, stdlib.h.
66999         (set_program_name): Reject a NULL argument.
67001 2009-12-05  Eric Blake  <ebb9@byu.net>
67003         pipe2-safer: new module
67004         * modules/pipe2-safer: New file.
67005         * lib/unistd-safer.h (pipe2_safer): New prototype.
67006         * lib/unistd--.h (pipe2): New wrapper.
67007         * lib/pipe-safer.c (pipe2_safer): New function.
67008         * modules/pipe (Depends-on): Add pipe2-safer.
67009         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
67011         stdlib-safer: preserve cloexec flag for mkostemp[s]
67012         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
67013         fd_safer_flag.
67015         unistd-safer: allow preservation of cloexec status via flag
67016         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
67017         prototypes.
67018         * lib/dup-safer.c (dup_safer_flag): New function.
67019         * lib/fd-safer.c (fd_safer_flag): Likewise.
67020         * modules/cloexec (configure.ac): Set witness.
67022         test-dup2: enhance test
67023         * modules/dup2-tests (Depends-on): Add cloexec.
67024         * tests/test-dup2.c (main): Enhance test.
67026         cloexec: add dup_cloexec
67027         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
67028         header and comments.
67029         * lib/cloexec.c (set_cloexec_flag): Add comments.
67030         (dup_cloexec): New function, with mingw implementation borrowed
67031         from...
67032         * lib/w32spawn.h (dup_noinherit): ...here.
67033         * modules/execute (Depends-on): Add cloexec.
67034         * modules/pipe (Depends-on): Likewise.
67035         * modules/cloexec (Depends-on): Add dup2.
67036         * modules/cloexec-tests (Files): New file.
67037         * tests/test-cloexec.c: Likewise.
67039         test-xalloc-die: fix test for mingw
67040         * modules/xalloc-die-tests (Files): Add tests/init.sh.
67041         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
67042         directory and .exe suffix off argv[0] output.
67044         test-fseeko: fix test for mingw
67045         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
67046         than undefining fseek, so test will pass on mingw.
67048 2009-12-05  Bruno Haible  <bruno@clisp.org>
67050         * lib/progname.h (set_program_name): Clarify specification.
67051         * lib/progname.c (set_program_name): Likewise.
67052         Reported by Jim Meyering.
67054 2009-12-05  Jim Meyering  <meyering@redhat.com>
67056         maint.mk: backslash-escape parens in default regexp
67057         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
67058         backslash-escape the literal parentheses.
67060         maint.mk: news-date-check: use grep -E
67061         * top/maint.mk (today): Define a Make variable, not a...
67062         (news-date-check): ...shell variable.
67063         (news-date-regexp): Use the Make variable.
67064         Use grep's -E option.  Change the failing diagnostic to mention
67065         the variable, $(news-date-regexp).
67067 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
67069         maintainer-makefile: allow customization of NEWS entry format
67070         * top/maint.mk (news-date-regexp): New overridable variable.
67071         (news-date-check): Use it.
67073 2009-12-04  Eric Blake  <ebb9@byu.net>
67075         mgetgroups: add xgetgroups, and avoid ENOSYS failures
67076         * lib/mgetgroups.h (xgetgroups): New prototype.
67077         * lib/mgetgroups.c (xgetgroups): New wrapper.
67078         (mgetgroups): Handle ENOSYS.
67079         * modules/mgetgroups (Depends-on): Add realloc.
67080         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
67082         mgetgroups: avoid argument promotion issues with -1
67083         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
67084         for invalid gid_t.
67085         * tests/test-chown.h (getegid, test_chown): Likewise.
67086         * tests/test-lchown.h (getegid, test_lchown): Likewise.
67088 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
67090         exclude: Fix header file problems.
67091         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
67093 2009-12-01  Jim Meyering  <meyering@redhat.com>
67095         fts: fts_open: do not let an empty string cause immediate failure
67096         This is required in support of GNU rm, for which the command
67097         "rm A '' B" must process and remove both A and B, in spite of
67098         the empty string argument.
67099         * lib/fts.c (fts_open): Do not let the presence of an empty string
67100         cause fts_open to fail immediately.  Most fts-using tools must be
67101         able to process all arguments, in order, and can be expected to
67102         diagnose such arguments themselves.
67104 2009-11-30  Eric Blake  <ebb9@byu.net>
67106         utimens: fix compilation error
67107         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
67108         Declare variable at right scope.
67110 2009-11-29  Jim Meyering  <meyering@redhat.com>
67112         bootstrap: handle perl-5.11's changed --version output
67113         * build-aux/bootstrap (get_version): Handle perl separately,
67114         since perl-5.11's --version output is different.
67116 2009-11-28  Jim Meyering  <meyering@redhat.com>
67118         userspec: depend on the inttostr module, too
67119         * modules/userspec (Depends-on): Add inttostr.
67121         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
67122         * lib/userspec.c (parse_with_separator): Do not accept a user ID
67123         number of MAXUID when it evaluates to (uid_t) -1.
67124         Likewise for group ID.  Reported by Matt McCutchen in
67125         <http://savannah.gnu.org/bugs/?28113>
67127         userspec: reformat to use spaces, not TABs
67128         * lib/userspec.c: Expand TABs to spaces.
67129         Add Emacs' "indent-tabs-mode: nil" hint.
67131 2009-11-27  Eric Blake  <ebb9@byu.net>
67133         getopt-gnu: flush out another BSD bug
67134         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
67135         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
67136         flush out BSD bug.
67137         * tests/test-getopt.h (test_getopt): End lists with NULL.
67138         * tests/test-getopt_long.h (test_getopt_long): Likewise.
67139         (test_getopt_long_posix): Enhance test.
67140         * modules/getopt-posix-tests (Depends-on): Add stdbool.
67141         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
67142         getopt-gnu.
67143         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
67144         Likewise.
67146 2009-11-27  Simon Josefsson  <simon@josefsson.org>
67148         * modules/idpriv-droptemp-tests (Notice): Fix text.
67150 2009-11-27  Jim Meyering  <meyering@redhat.com>
67152         test-xalloc-die: avoid spurious failure due to libtool argv difference
67153         In a libtool-enabled project, this test would fail due to a difference
67154         in the emitted program name, e.g.,
67155         -test-xalloc-die: memory exhausted
67156         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
67157         Use program to avoid that.
67158         * modules/xalloc-die-tests (Depends-on): Add progname.
67159         * tests/test-xalloc-die.c: Include progname.h".
67160         (program_name): Remove decl.
67161         (main): Call set_program_name.
67162         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
67164 2009-11-26  Richard Jones  <rjones@redhat.com>
67166         w32sock: leave win32 error in place.
67167         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
67169 2009-11-26  Eric Blake  <ebb9@byu.net>
67171         init.sh: suggest to use skip_ and fail_ functions in comments
67172         * tests/init.sh: Add a sentence.
67174 2009-11-25  Bruno Haible  <bruno@clisp.org>
67176         init.sh: add documentation in comments
67177         * tests/init.sh: Add some developer and user documentation.
67179 2009-11-26  Jim Meyering  <meyering@redhat.com>
67181         init.sh: accommodate even those who specify bogus srcdir manually
67182         * tests/init.sh: Normally, srcdir is guaranteed by automake and
67183         configure-time tests to be sanitized, so that there is no need to
67184         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
67185         (with no double quotes) suffices.  However, since tests may be
67186         invoked manually, and since you may explicitly set srcdir to the
67187         name of a directory containing spaces, do quote its uses here.
67188         * tests/test-pread.sh: Likewise.
67189         Suggested by Bruno Haible.
67191         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
67192         * tests/test-pread.sh: Write no data into the pipe, because
67193         test-pread actually reads none.  This avoids a diagnostic,
67194         "bash: echo: write error: Broken pipe", that arises in the unusual
67195         event something is ignoring SIGPIPE, and might be interpreted
67196         as some sort of failure.  Reported by Bruno Haible.
67198 2009-11-25  Jim Meyering  <meyering@redhat.com>
67200         test-pread: cover failure with ESPIPE and EINVAL
67201         * tests/test-pread.c (main): Test for failure, too.
67202         * tests/test-pread.sh: Invoke with stdin on a pipe.
67203         Suggested by Eric Blake.
67205         pread: improvement and fix
67206         * modules/pread (Depends-on): Depend on lseek, for portability to
67207         e.g., mingw.  Suggested by Eric Blake.
67208         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
67210         unistd.in.h: correct declaration of pread
67211         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
67212         Reported by Richard W.M. Jones.
67214         test-pread.sh: distribute the test script
67215         * modules/pread-tests (Files): Include test-pread.sh.
67217         test-pread.sh: clean up
67218         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
67219         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
67220         That is unnecessary, since it's always ".".
67221         Suggestion from Eric Blake.
67223         test-pread.sh: make executable
67224         * tests/test-pread.sh: Set executable bit.
67225         Reported by Eric Blake.
67227         correct typo in test-pread.sh
67228         * tests/test-pread.sh: Add #! line.
67230         test pread
67231         * tests/test-pread.c: New file.
67232         * tests/test-pread.sh: Likewise.
67233         * modules/pread-tests: Likewise.
67235         pread: new module
67236         * modules/pread: New file.
67237         * lib/unistd.in.h (pread): Define/declare.
67238         * lib/pread.c (pread): New file.
67239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
67240         * modules/unistd (Makefile.am): Substitute witnesses.
67241         * doc/posix-functions/pread.texi (pread): Update.
67242         * MODULES.html.sh: Add pread.
67244 2009-11-25  Jim Meyering  <meyering@redhat.com>
67246         tests/init.sh: new file to be used via most *.sh tests
67247         * tests/init.sh: New file.
67249 2009-11-25  Eric Blake  <ebb9@byu.net>
67251         utimens: work around older Linux failure with symlinks
67252         * lib/utimens.c (lutimensat_works_really): New variable.
67253         (fdutimens, lutimens): Use it to manage kernels that support
67254         nanosecond times on files, but not on symlinks.
67255         Reported by Ondřej Vašík.
67257         utimes: fix configure grammar
67258         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
67260 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
67262         regex: Fix fastmap for multibyte character ranges.
67263         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
67264         characters when a multibyte character range is included.
67266 2009-11-22  Andy Wingo  <wingo@pobox.com>
67268         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
67269         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
67271 2009-11-24  Bruno Haible  <bruno@clisp.org>
67273         doc: Most *_l functions exist in MacOS X 10.5.
67274         * doc/posix-functions/duplocale.texi: Update platforms list.
67275         * doc/posix-functions/freelocale.texi: Likewise.
67276         * doc/posix-functions/newlocale.texi: Likewise.
67277         * doc/posix-functions/uselocale.texi: Likewise.
67278         * doc/posix-functions/isalnum_l.texi: Likewise.
67279         * doc/posix-functions/isalpha_l.texi: Likewise.
67280         * doc/posix-functions/isblank_l.texi: Likewise.
67281         * doc/posix-functions/iscntrl_l.texi: Likewise.
67282         * doc/posix-functions/isdigit_l.texi: Likewise.
67283         * doc/posix-functions/isgraph_l.texi: Likewise.
67284         * doc/posix-functions/islower_l.texi: Likewise.
67285         * doc/posix-functions/isprint_l.texi: Likewise.
67286         * doc/posix-functions/ispunct_l.texi: Likewise.
67287         * doc/posix-functions/isspace_l.texi: Likewise.
67288         * doc/posix-functions/isupper_l.texi: Likewise.
67289         * doc/posix-functions/iswalnum_l.texi: Likewise.
67290         * doc/posix-functions/iswalpha_l.texi: Likewise.
67291         * doc/posix-functions/iswblank_l.texi: Likewise.
67292         * doc/posix-functions/iswcntrl_l.texi: Likewise.
67293         * doc/posix-functions/iswctype_l.texi: Likewise.
67294         * doc/posix-functions/iswdigit_l.texi: Likewise.
67295         * doc/posix-functions/iswgraph_l.texi: Likewise.
67296         * doc/posix-functions/iswlower_l.texi: Likewise.
67297         * doc/posix-functions/iswprint_l.texi: Likewise.
67298         * doc/posix-functions/iswpunct_l.texi: Likewise.
67299         * doc/posix-functions/iswspace_l.texi: Likewise.
67300         * doc/posix-functions/iswupper_l.texi: Likewise.
67301         * doc/posix-functions/iswxdigit_l.texi: Likewise.
67302         * doc/posix-functions/isxdigit_l.texi: Likewise.
67303         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
67304         * doc/posix-functions/strcasecmp_l.texi: Likewise.
67305         * doc/posix-functions/strcoll_l.texi: Likewise.
67306         * doc/posix-functions/strfmon_l.texi: Likewise.
67307         * doc/posix-functions/strftime_l.texi: Likewise.
67308         * doc/posix-functions/strncasecmp_l.texi: Likewise.
67309         * doc/posix-functions/strxfrm_l.texi: Likewise.
67310         * doc/posix-functions/tolower_l.texi: Likewise.
67311         * doc/posix-functions/toupper_l.texi: Likewise.
67312         * doc/posix-functions/towctrans_l.texi: Likewise.
67313         * doc/posix-functions/towlower_l.texi: Likewise.
67314         * doc/posix-functions/towupper_l.texi: Likewise.
67315         * doc/posix-functions/wcscoll_l.texi: Likewise.
67316         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
67317         * doc/posix-functions/wctrans_l.texi: Likewise.
67318         * doc/posix-functions/wctype_l.texi: Likewise.
67319         * doc/glibc-functions/strptime_l.texi: Likewise.
67320         * doc/glibc-functions/strtod_l.texi: Likewise.
67321         * doc/glibc-functions/strtof_l.texi: Likewise.
67322         * doc/glibc-functions/strtol_l.texi: Likewise.
67323         * doc/glibc-functions/strtold_l.texi: Likewise.
67324         * doc/glibc-functions/strtoll_l.texi: Likewise.
67325         * doc/glibc-functions/strtoul_l.texi: Likewise.
67326         * doc/glibc-functions/strtoull_l.texi: Likewise.
67327         * doc/glibc-functions/wcsftime_l.texi: Likewise.
67328         * doc/glibc-functions/wcstod_l.texi: Likewise.
67329         * doc/glibc-functions/wcstof_l.texi: Likewise.
67330         * doc/glibc-functions/wcstol_l.texi: Likewise.
67331         * doc/glibc-functions/wcstold_l.texi: Likewise.
67332         * doc/glibc-functions/wcstoll_l.texi: Likewise.
67333         * doc/glibc-functions/wcstoul_l.texi: Likewise.
67334         * doc/glibc-functions/wcstoull_l.texi: Likewise.
67336 2009-11-24  Bruno Haible  <bruno@clisp.org>
67338         duplocale: Fix logic bug.
67339         * lib/duplocale.c: Don't include <langinfo.h>.
67340         (_NL_LOCALE_NAME): Remove macro.
67341         (rpl_duplocale): Use setlocale instead of nl_langinfo.
67342         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
67344 2009-11-23  Jim Meyering  <meyering@redhat.com>
67346         test-update-copyright: don't hard-code /usr/bin/perl
67347         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
67348         perl to print the current year.  Gilles Espinasse reported that
67349         the replaced use of perl was hard-coded as /usr/bin/perl.
67351 2009-11-23  Bruno Haible  <bruno@clisp.org>
67353         duplocale: Add support for glibc 2.3.x.
67354         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
67356 2009-11-22  Bruno Haible  <bruno@clisp.org>
67358         vasnprintf: Tiny optimization.
67359         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
67360         MacOS X.
67362 2009-11-22  Bruno Haible  <bruno@clisp.org>
67364         Tests for module 'duplocale'.
67365         * modules/duplocale-tests: New file.
67366         * tests/test-duplocale.c: New file.
67368         New module 'duplocale'.
67369         * m4/duplocale.m4: New file.
67370         * lib/locale.in.h (duplocale): New declaration.
67371         * lib/duplocale.c: New file.
67372         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
67373         gl_LOCALE_H_DEFAULTS): New macros.
67374         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
67375         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
67376         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
67377         REPLACE_DUPLOCALE.
67378         * modules/duplocale: New file.
67379         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
67381 2009-11-22  Bruno Haible  <bruno@clisp.org>
67383         * modules/locale-tests (configure.ac): Test for newlocale function.
67384         * tests/test-locale.c: When the system has extended locale functions,
67385         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
67387         locale: Make locale_t available when possible.
67388         * lib/locale.in.h: Include <xlocale.h> when it exists.
67389         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
67390         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
67391         * modules/locale (Depends-on): Add extensions.
67392         (Makefile.am): Also substitute HAVE_XLOCALE_H.
67393         * doc/posix-headers/locale.texi: Document the problem with locale_t.
67395 2009-11-22  Bruno Haible  <bruno@clisp.org>
67397         Add comments.
67398         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
67399         invocation.
67400         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67401         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
67402         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67404 2009-11-22  Bruno Haible  <bruno@clisp.org>
67406         error: account for the possibility of freopen (stdout).
67407         * lib/error.c: Include <unistd.h>.
67408         (flush_stdout): New function, extracted from error and error_at_line.
67409         Determine stdout's fd dynamically.
67410         (error, error_at_line): Invoke flush_stdout.
67411         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
67412         * modules/error (Depends-on): Add unistd.
67414 2009-11-22  Bruno Haible  <bruno@clisp.org>
67416         diffseq: Add comment.
67417         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
67419 2009-11-22  Jim Meyering  <meyering@redhat.com>
67421         c-stack: avoid defining an unused static function
67422         * lib/c-stack.c (find_stack_direction): Do not define this function
67423         when it will not be used.
67425         diffseq: avoid spurious gcc warnings
67426         * lib/diffseq.h (IF_LINT2): Define.
67427         (compareseq): Use it to initialize two members of "part".
67428         This avoids two used-uninitialized warnings.
67430 2009-11-21  Jim Meyering  <meyering@redhat.com>
67432         c-stack: avoid "ignoring return value of `write'" warning
67433         * lib/c-stack.c: Include "ignore-value.h".
67434         (die): Explicitly ignore each write return value.
67435         * modules/c-stack (Depends-on): Add ignore-value.
67437 2009-11-21  Bruno Haible  <bruno@clisp.org>
67439         diffseq: reduce scope of variable 'best'.
67440         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
67441         variable, earlier used for two different purposes.
67443 2009-11-21  Jim Meyering  <meyering@redhat.com>
67445         diffseq: remove useless assignment to "best"
67446         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
67447         assignment.  At that point "best" is already guaranteed to be zero.
67449 2009-11-20  Eric Blake  <ebb9@byu.net>
67451         build: mention ftp redirector in release announcements
67452         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
67453         values that used to come from cfg.mk; mention FTP redirect URL.
67454         * build-aux/announce-gen: Mention the mirror list.
67455         Suggested by Karl Berry.
67457         nanosleep: improve port to mingw
67458         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
67459         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
67460         LIB_NANOSLEEP, but only when needed.
67461         * modules/select (Link): Document LIBSOCKET.
67462         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
67463         enough.
67465         nanosleep: work around cygwin bug
67466         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
67467         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
67468         bug.
67469         (getnow): Delete, not needed.
67470         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
67471         LIB_CLOCK_GETTIME.
67472         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
67473         clock-time, gettime.
67474         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
67475         bug.
67476         * modules/nanosleep-tests: New test.
67477         * tests/test-nanosleep.c: New file.
67479         sleep: work around cygwin bug
67480         * lib/sleep.c (rpl_sleep): Work around the bug.
67481         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
67482         (gl_PREREQ_SLEEP): Delete unused macro.
67483         * modules/sleep (Depends-on): Add verify.
67484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
67485         * modules/unistd (Makefile.am): Substitute witness.
67486         * lib/unistd.in.h (sleep): Update prototype.
67487         * doc/posix-functions/sleep.texi (sleep): Document the bug.
67488         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
67489         * modules/sleep-tests (Depends-on): Check for alarm.
67491 2009-11-20  Jim Meyering  <meyering@redhat.com>
67493         maint.mk: improve sc_prohibit_magic_number_exit
67494         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
67495         so it does not match uses like System.exit(1).
67496         Add comments showing how to correct all offenders.
67498 2009-11-19  Eric Blake  <ebb9@byu.net>
67500         xalloc-die-tests: add missing library
67501         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
67503         test-xvasprintf: silence compiler warnings
67504         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
67505         empty string from gcc.
67507 2009-11-19  Jim Meyering  <meyering@redhat.com>
67509         xfreopen: new module, from coreutils
67510         * modules/xfreopen: New module.
67511         * lib/xfreopen.c: New file.
67512         * lib/xfreopen.h: New file.
67513         * MODULES.html.sh (File stream based Input/Output"): Add it.
67515 2009-11-19  Eric Blake  <ebb9@byu.net>
67517         manywarnings: depend on warnings
67518         * modules/manywarnings (Depends-on): Add warnings.
67520         build: avoid compiler warnings
67521         * lib/select.c (rpl_select): Delete unused variable.
67522         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
67524 2009-11-18  Eric Blake  <ebb9@byu.net>
67526         tests: avoid false negative with --with-packager
67527         * tests/test-version-etc.sh: Discard packager information.
67528         * tests/test-argp-version-etc-1.sh: Likewise.
67529         Reported by Mike Frysinger.
67531         utimens: fix regression on Solaris
67532         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
67533         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
67534         can only change fd timestamps via futimesat.  Instead, use an
67535         additional witness macro to avoid BSD bug.
67536         Reported by Jim Meyering.
67538 2009-11-17  Eric Blake  <ebb9@byu.net>
67540         usleep: use it to simplify tests
67541         * modules/stat-time-tests (Depends-on): Add usleep.
67542         (configure.ac): Drop usleep check.
67543         * modules/chown-tests (Depends-on, configure.ac): Likewise.
67544         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
67545         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
67546         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
67547         * modules/openat-tests (Depends-on, configure.ac): Likewise.
67548         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
67549         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
67550         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
67551         Likewise.
67552         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
67553         * tests/test-lchown.h (nap): Likewise.
67554         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
67555         * tests/test-stat-time.c (nap): Likewise.
67556         * tests/test-utimens-common.h (nap): Update comments.
67558         usleep: new module
67559         * modules/usleep: New file.
67560         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
67561         * lib/usleep.c (usleep): Likewise.
67562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
67563         * modules/unistd (Makefile.am): Substitute witnesses.
67564         * lib/unistd.in.h (usleep): Add declaration.
67565         * doc/pastposix-functions/usleep.texi (usleep): Document this.
67566         * MODULES.html.sh (Date and time): Likewise.
67567         * modules/usleep-tests (Depends-on): New test.
67568         * tests/test-usleep.c: New file.
67570         chown: work around OpenBSD bug
67571         * lib/chown.c (rpl_chown): Work around the bug.
67572         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
67573         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
67574         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
67575         * modules/chown (Depends-on): Add stdbool.
67576         * modules/lchown (Depends-on): Likewise.
67577         * doc/posix-functions/chown.texi (chown): Document the bug.
67578         * doc/posix-functions/lchown.texi (lchown): Likewise.
67579         * tests/test-lchown.h (test_chown): Relax test.
67581         mkstemp: avoid conflict with C++ keyword template
67582         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
67583         * lib/mkostemp.c (mkostemp): Likewise.
67584         * lib/mkostemps.c (mkostemps): Likewise.
67585         * lib/mkstemp.c (mkstemp): Likewise.
67586         * lib/mkstemps.c (mkstemps): Likewise.
67588         xalloc-die-tests: optimize
67589         * tests/test-xalloc-die.sh: Reduce number of processes.
67591 2009-11-17  Simon Josefsson  <simon@josefsson.org>
67593         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
67594         patch from ludo@gnu.org (Ludovic Courtès).
67596 2009-11-17  Jim Meyering  <meyering@redhat.com>
67598         version-etc: use proper license string
67599         * modules/version-etc (License): Use LGPL, not LGPLv3+.
67600         * modules/version-etc-fsf: Likewise.
67602 2009-11-17  Simon Josefsson  <simon@josefsson.org>
67604         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
67605         printed to stdout.  Deal with EOL differences.
67607 2009-11-17  Eric Blake  <ebb9@byu.net>
67609         unsetenv: work around Solaris bug
67610         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
67611         * lib/unsetenv.c (rpl_unsetenv): Work around it.
67612         Reported by Jim Meyering.
67614         vasnprintf: avoid compiler warnings
67615         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
67616         variables.
67617         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
67619 2009-11-17  Simon Josefsson  <simon@josefsson.org>
67621         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
67622         settings since xalloc-die is no longer the self test,
67623         xalloc-die.sh is.
67625 2009-11-17  Jim Meyering  <meyering@redhat.com>
67627         test-xalloc-die.sh: make the code agree with the commit log
67628         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
67629         at the end, just in case you happen to have a test-xalloc-die
67630         program in some other PATH directory.
67632         test-xalloc-die.sh: fix a portability bug
67633         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
67634         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
67635         Otherwise, argv[0] (as often seen in diagnostics) would be too
67636         system-dependent, sometimes with, and sometimes without the leading "./".
67638         version-etc-fsf: relax license to LGPLv3+
67639         * modules/version-etc-fsf (License): Relax license.
67641 2009-11-16  Eric Blake  <ebb9@byu.net>
67643         xalloc-die-tests: avoid printing null pointer
67644         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
67645         shell script.
67646         * tests/test-xalloc-die.c (program_name): Declare.
67647         * tests/test-xalloc-die.sh (tmpfiles): New file.
67649         setenv, unsetenv: work around various bugs
67650         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
67651         (setenv) [HAVE_SETENV]: Work around bugs.
67652         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
67653         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
67654         for bugs.
67655         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
67656         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
67657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
67658         * modules/stdlib (Makefile.am): Update substitutions.
67659         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
67660         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
67661         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
67662         * modules/setenv-tests: New test.
67663         * modules/unsetenv-tests: Likewise.
67664         * tests/test-setenv.c: New file.
67665         * tests/test-unsetenv.c: Likewise.
67667 2009-11-16  Jim Meyering  <meyering@redhat.com>
67669         version-etc: relax license to LGPLv3+
67670         * modules/version-etc (License): Relax license.
67672         better AC_REQUIRE expanded-before-required-warning avoidance
67673         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
67674         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
67675         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
67676         which is no longer needed.
67678 2009-11-16  Eric Blake  <ebb9@byu.net>
67680         test-freading: clean up temporary file
67681         * tests/test-freading.c (main): Remove file on success, and use
67682         ASSERT more liberally.
67683         Reported by Jim Meyering.
67685 2009-11-16  Jim Meyering  <meyering@redhat.com>
67687         avoid new AC_REQUIRE expanded-before-required warnings
67688         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
67689         merely using it.
67690         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
67691         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
67693 2009-11-15  Simon Josefsson  <simon@josefsson.org>
67695         * tests/test-xalloc-die.c: New file.
67696         * modules/xalloc-die-tests: New file.
67697         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
67698         XFAIL_TESTS so it can be appended by modules.
67700 2009-11-15  Simon Josefsson  <simon@josefsson.org>
67702         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
67703         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
67705 2009-11-14  Eric Blake  <ebb9@byu.net>
67707         fnmatch: avoid compiler warning
67708         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
67709         to silence compiler warning about mismatch signedness in ?:.
67710         Reported by Robert Millan.
67712         intprops: add double-inclusion guard
67713         * lib/intprops.h: Allow idempotent includes.
67714         Suggested by Bruce Korb.
67716         openat: detect Solaris fchownat bug
67717         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
67718         penalizing glibc chownat when only lchownat is broken.
67719         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
67720         trailing slash bugs.
67721         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
67722         * modules/openat-tests (Files): Include more files.
67723         (Depends-on): Add mgetgroups, sleep, stat-time.
67724         (configure.ac): Add additional checks.
67725         (Makefile.am): Build new test.
67726         * tests/test-fchownat.c: New file.
67728         lchown: detect Solaris and FreeBSD bug
67729         * lib/lchown.c (rpl_lchown): Work around bug.
67730         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
67731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
67732         * modules/unistd (Makefile.am): Populate it.
67733         * lib/unistd.in.h (lchown): Update declaration.
67734         * doc/posix-functions/lchown.texi (lchown): Document the bug.
67735         * modules/lchown-tests: New file.
67736         * tests/test-lchown.h (test_lchown): Likewise.
67737         * tests/test-lchown.c (main): Likewise.
67739         chown: detect Solaris and FreeBSD bug
67740         * lib/chown.c (rpl_chown): Work around bug.
67741         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
67742         (gl_PREREQ_CHOWN): Delete.
67743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
67744         * modules/unistd (Makefile.am): Populate it.
67745         * lib/unistd.in.h (chown): Update declaration.
67746         * lib/lchown.c (chown): Update client.
67747         * modules/lchown (Depends-on): Add lstat.
67748         * doc/posix-functions/chown.texi (chown): Document the bug.
67749         * doc/posix-functions/getgroups.texi (getgroups): Document
67750         getgroups pitfall.
67751         * modules/chown-tests: New file.
67752         * tests/test-chown.h (test_chown): Likewise.
67753         * tests/test-chown.c (main): Likewise.
67755 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
67757         gnulib-tool: correctly detect absence of m4 directories
67758         * gnulib-tool: Avoid extra newline on data passed to wc -l.
67760 2009-11-14  Jim Meyering  <meyering@redhat.com>
67762         maint.mk: Prohibit inclusion of "xalloc.h" without use.
67763         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
67765 2009-11-14  John W. Eaton  <jwe@gnu.org>
67767         strftime.h: wrap function declaration in extern "C" block
67768         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
67770 2009-11-13  Eric Blake  <ebb9@byu.net>
67772         getgroups: avoid compiler warning
67773         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
67775         getgroups: work around FreeBSD bug
67776         * lib/getgroups.c (rpl_getgroups): Work around the bug.
67777         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
67778         * doc/posix-functions/getgroups.texi (getgroups): Document it.
67779         * tests/test-getgroups.c (main): Fix buffer overrun.
67781         getgroups: avoid compilation failure
67782         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
67783         * modules/getgroups (Depends-on): Add stdint.
67785 2009-11-13  Jim Meyering  <meyering@redhat.com>
67787         test-getgroups: avoid compilation failure
67788         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
67790 2009-11-13  Eric Blake  <ebb9@byu.net>
67792         mgetgroups: new module, taken from coreutils
67793         * modules/mgetgroups: New file.
67794         * lib/mgetgroups.h: Likewise.
67795         * lib/mgetgroups.c (mgetgroups): Likewise.
67796         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
67797         * MODULES.html.sh (Users and groups): Mention it.
67799         getgroups: don't expose GETGROUPS_T to user
67800         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
67801         an element at a time if GETGROUPS_T is wrong size.
67802         * lib/getugroups.h (getugroups): Change signature.
67803         * lib/unistd.in.h (getgroups): Likewise.
67804         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
67805         signature needs fixing.
67806         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
67807         AC_TYPE_GETGROUPS.
67808         * modules/group-member (Depends-on): Add getgroups.
67809         * lib/group-member.c (group_info, get_group_info): Use gid_t.
67810         (group_member): Rely on getgroups replacement.
67811         * lib/getugroups.c (getugroups): Use gid_t.
67812         * tests/test-getgroups.c (main): Likewise.
67813         * NEWS: Mention the signature change.
67814         * doc/posix-functions/getgroups.texi (getgroups): Mention the
67815         problem with signature.
67816         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
67817         GETGROUPS_T is still useful for setgroups.
67819         getgroups, getugroups: provide stubs for mingw
67820         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
67821         * lib/getugroups.c (getugroups): Likewise.
67822         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
67823         function.  Modernize replacement scheme.
67824         (gl_PREREQ_GETGROUPS): Delete.
67825         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
67826         * modules/getgroups (configure.ac): Declare witness.
67827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
67828         * modules/unistd (Depends-on): Substitute witness.
67829         * lib/unistd.in.h (getgroups): Declare replacement.
67831         getgroups: avoid calling exit
67832         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
67833         drop xalloc.
67834         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
67835         dependencies.
67836         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
67837         exiting, in the rare case of malloc failure.
67839         getgroups: fix logic error
67840         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
67841         has more than 20 groups.
67842         * modules/getgroups-tests: New test.
67843         * tests/test-getgroups.c: New file.
67845 2009-11-13  Simon Josefsson  <simon@josefsson.org>
67847         * tests/test-base64.c: Improve.
67849 2009-11-13  Simon Josefsson  <simon@josefsson.org>
67851         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
67852         Blake <ebb9@byu.net>.
67854 2009-11-13  Simon Josefsson  <simon@josefsson.org>
67856         * tests/test-xvasprintf.c: Add %s%s related checks.
67858 2009-11-12  Eric Blake  <ebb9@byu.net>
67860         version-etc: match standards.texi style
67861         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
67862         and use <> only for URLs.
67864 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
67866         fts: do not fail on a submount during traversal
67867         * lib/fts.c (fts_build): Read the stat info again after opening
67868         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
67869         Original report at http://bugzilla.redhat.com/501848.
67871 2009-11-12  Jim Meyering  <meyering@redhat.com>
67873         bootstrap: sync from coreutils
67874         * build-aux/bootstrap (bootstrap_epilogue): New function.
67875         Use git_modules_config in one more place.  This make bootstrap's
67876         --gnulib-srcdir option more useful for testing.
67878         bootstrap: generalize autoheader check
67879         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
67880         AC_CONFIG_HEADERS.
67882 2009-11-11  Eric Blake  <ebb9@byu.net>
67884         mkfifoat: use new modules for Solaris and BSD bugs
67885         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
67886         * lib/mkfifoat.c (mknodat): Split...
67887         * lib/mknodat.c (mknodat): ...into new file.
67888         * modules/mkfifoat (Files): Ship new file.
67889         (Depends-on): Add mkfifo, mknod.
67890         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
67891         (Depends-on): Add symlink.
67892         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
67893         redundant with test_mkfifo.h.
67894         (do_mkfifoat, do_mknodat): New helpers.
67896         mknod: new module
67897         * modules/mknod: New file.
67898         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
67899         * lib/mknod.c (mknod): Likewise.
67900         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
67901         defaults.
67902         * modules/sys_stat (Makefile.am): Substitute them.
67903         * lib/sys_stat.in.h (mknod): Declare replacement.
67904         * MODULES.html.sh (Support for systems lacking POSIX:2008):
67905         Document it.
67906         * doc/posix-functions/mknod.texi (mknod): Likewise.
67907         * modules/mknod-tests: New test.
67908         * tests/test-mknod.c: Likewise.
67910         mkfifo: new module
67911         * modules/mkfifo: New file.
67912         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
67913         * lib/mkfifo.c (mkfifo): Likewise.
67914         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
67915         defaults.
67916         * modules/sys_stat (Makefile.am): Substitute them.
67917         * lib/sys_stat.in.h (mkfifo): Declare replacement.
67918         * MODULES.html.sh (Support for systems lacking POSIX:2008):
67919         Document it.
67920         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
67921         * modules/mkfifo-tests: New test.
67922         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
67923         from test-mkfifoat.c.
67924         * tests/test-mkfifo.c: New file.
67926         readlink: detect FreeBSD bug
67927         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
67928         slash on symlink.
67929         * doc/posix-functions/readlink.texi (readlink): Document the bug.
67930         * tests/test-readlink.h (test_readlink): Enhance test.
67932         symlink: detect FreeBSD bug
67933         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
67934         slash on symlink.
67935         * doc/posix-functions/symlink.texi (symlink): Document the bug.
67936         * tests/test-symlink.h (test_symlink): Enhance test.
67938 2009-11-10  Eric Blake  <ebb9@byu.net>
67940         link: detect FreeBSD bug
67941         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
67942         symlink.
67943         * doc/posix-functions/link.texi (link): Document the bug.
67944         * tests/test-link.h (test_link): Enhance test.
67945         * tests/test-linkat.c (main): Update caller.
67947         unlink, remove: detect FreeBSD bug
67948         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
67949         slash on symlink.
67950         * doc/posix-functions/unlink.texi (unlink): Document the bug.
67951         * doc/posix-functions/remove.texi (remove): Likewise.
67952         * tests/test-unlink.h (test_unlink): Enhance test.
67953         * tests/test-remove.c (main): Likewise.
67955 2009-11-09  Eric Blake  <ebb9@byu.net>
67957         rename: detect FreeBSD bug
67958         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
67959         slash on symlink.
67960         * modules/renameat-tests (Depends-on): Add filenamecat.
67961         * tests/test-rename.h (test_rename): Allow one more errno.
67962         * tests/test-renameat.c (main): Likewise.
67963         * doc/posix-functions/rename.texi (rename): Document the bug.
67965         open: detect FreeBSD bug
67966         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
67967         symlink.
67968         * doc/posix-functions/open.texi (open): Document the bug.
67969         * doc/posix-functions/utimes.texi (utimes): Likewise.
67970         * tests/test-open.h (test_open): Add parameters, and test symlink
67971         handling.
67972         * tests/test-open.c (main): Adjust caller.
67973         * tests/test-fcntl-safer.c (main): Likewise.
67974         * modules/open-tests (Depends-on): Add stdbool, symlink.
67975         * modules/fcntl-safer-tests (Depends-on): Likewise.
67976         * tests/test-openat.c (main): Add test-open tests.
67978         stat: detect FreeBSD bug
67979         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
67980         symlink.
67981         * doc/posix-functions/stat.texi (stat): Document the bug.
67982         * tests/test-stat.h (test_stat_func): Add argument.
67983         * tests/test-stat.c (main): Adjust caller.
67984         * tests/test-fstatat.c (main): Likewise.
67985         * modules/stat-tests (Depends-on): Add stdbool, symlink.
67986         Reported by Jim Meyering.
67988 2009-11-09  James Youngman  <jay@gnu.org>
67990         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
67991         * lib/strftime.c: Correct placement of #include "ignore-value.h".
67993 2009-11-08  Jim Meyering  <meyering@redhat.com>
67995         utimens: remove invalid futimesat call
67996         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
67997         It used the file descriptor of the target file as the DIR_FD
67998         parameter and NULL as the file name.  That caused failure with
67999         errno == EFAULT on FreeBSD-8.0-rc2
68001 2009-11-07  Eric Blake  <ebb9@byu.net>
68003         fflush, freadseek: use fseeko, not fseek
68004         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
68005         (clear_ungetc_buffer): Avoid potential problems on large files.
68006         * lib/freadseek.c (freadseek): Likewise.
68007         * modules/freadseek (Depends-on): Add fseeko.
68008         * modules/fseek (configure.ac): Set a witness.
68009         * tests/test-fflush.c (main): Use fseeko.
68010         * tests/test-fpurge.c (fseek): Disable link warning.
68011         * tests/test-freadable.c (fseek): Likewise.
68012         * tests/test-freading.c (fseek): Likewise.
68013         * tests/test-fseeko.c (fseek): Likewise.
68014         * tests/test-ftell.c (fseek): Likewise.
68015         * tests/test-ftello.c (fseek): Likewise.
68016         * tests/test-fwritable.c (fseek): Likewise.
68017         * tests/test-fwriting.c (fseek): Likewise.
68019 2009-11-06  Simon Josefsson  <simon@josefsson.org>
68021         * modules/memchr (Depends-on): Drop getpagesize dependency.
68023 2009-11-06  Simon Josefsson  <simon@josefsson.org>
68025         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
68026         Reported by Ludovic Courtès.
68027         * build-aux/pmccabe2html: Improve example usage.
68028         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
68030 2009-11-06  Jim Meyering  <meyering@redhat.com>
68032         do-release-commit-and-tag: New module.
68033         Automate the release-commit and tag process.
68034         * build-aux/do-release-commit-and-tag: New script, from coreutils.
68035         * modules/do-release-commit-and-tag: New file.
68036         * MODULES.html.sh (Support for maintaining and releasing): Add it.
68038 2009-11-06  Simon Josefsson  <simon@josefsson.org>
68040         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
68041         because test-select.c uses inet_pton.
68043 2009-11-06  Simon Josefsson  <simon@josefsson.org>
68045         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
68046         GETADDRINFO_LIB.  Bump serial number.
68047         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
68048         Suggested by Eric Blake <ebb9@byu.net>.
68050 2009-11-05  Eric Blake  <ebb9@byu.net>
68052         strtod: detect darwin bug
68053         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
68054         Reported by Leo Davis.
68056         freopen-safer: new module
68057         * modules/freopen-safer: New module.
68058         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
68059         * lib/freopen-safer.c (freopen_safer): New file.
68060         * lib/stdio-safer.h (freopen_safer): New declaration.
68061         * lib/stdio--.h (freopen): New override.
68062         * MODULES.html.sh (File stream based Input/Output): Mention it.
68063         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
68064         freopen-safer module.
68065         * doc/posix-functions/stderr.texi (stderr): Likewise.
68066         * doc/posix-functions/stdin.texi (stdin): Likewise.
68067         * doc/posix-functions/stdout.texi (stdout): Likewise.
68068         * modules/freopen-safer-tests: New test.
68069         * tests/test-reopen-safer.c: New file.
68071 2009-11-05  Jim Meyering  <meyering@redhat.com>
68073         maint.mk: Prohibit inclusion of "close-stream.h" without use.
68074         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
68076 2009-11-05  Simon Josefsson  <simon@josefsson.org>
68078         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
68080 2009-11-05  Simon Josefsson  <simon@josefsson.org>
68082         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
68084 2009-11-05  Simon Josefsson  <simon@josefsson.org>
68086         Fix link error.
68087         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
68088         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
68090 2009-11-05  Simon Josefsson  <simon@josefsson.org>
68092         * tests/test-func.c: Also test value of __func__.
68094 2009-11-05  Simon Josefsson  <simon@josefsson.org>
68096         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
68097         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
68099 2009-11-05  Bruno Haible  <bruno@clisp.org>
68101         Fix link error.
68102         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
68103         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
68104         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
68106 2009-11-05  Bruno Haible  <bruno@clisp.org>
68108         Tests for module 'inet_pton'.
68109         * modules/inet_pton-tests: New file.
68110         * tests/test-inet_pton.c: New file.
68112 2009-11-05  Bruno Haible  <bruno@clisp.org>
68114         Tests for module 'inet_ntop'.
68115         * modules/inet_ntop-tests: New file.
68116         * tests/test-inet_ntop.c: New file.
68118 2009-11-04  Eric Blake  <ebb9@byu.net>
68120         stdlib-safer: wrap all mkstemp variants
68121         * modules/mkostemp (configure.ac): Set witness.
68122         * modules/mkostemps (configure.ac): Likewise.
68123         * modules/mkstemps (configure.ac): Likewise.
68124         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
68125         (mkstemps_safer): Wrap more functions.
68126         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
68127         wrapping.
68128         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
68129         (mkstemps_safer): Implement the wrappers.
68131         mkstemps, mkostemps: new modules
68132         * modules/mkostemps: New module.
68133         * modules/mkstemps: Likewise.
68134         * lib/mkostemps.c (mkostemps): New file.
68135         * lib/mkstemps.c (mkstemps): Likewise.
68136         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
68137         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
68138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
68139         * modules/stdlib (Makefile.am): Substitute them.
68140         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
68141         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
68142         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
68143         * doc/gnulib.texi (Glibc stdlib.h): Include them.
68144         * MODULES.html.sh (File system functions): Mention them.
68146         tempname: resync from glibc
68147         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
68148         same values for __GT_FILE as glibc.  Abort even when assertions
68149         are disabled.
68150         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
68151         match its value otherwise.  Allow idempotent inclusion.
68152         * lib/mkdtemp.c (mkdtemp): Adjust caller.
68153         * lib/mkostemp.c (mkostemp): Likewise.
68154         * lib/mkstemp.c (mkstemp): Likewise.
68155         * lib/tmpfile.c (tmpfile): Likewise.
68156         * NEWS: Document this.
68158         utimens: fix use of futimens on older Linux
68159         * lib/utimens.c (fdutimens): Use updated, rather than original,
68160         timespec to avoid bug in older Linux kernel.
68161         Reported by Simon Josefsson.
68163 2009-11-04  Bruno Haible  <bruno@clisp.org>
68165         Make num_processors more flexible and consistent.
68166         * lib/nproc.h (enum nproc_query): New type.
68167         (num_processors): Add a 'query' argument.
68168         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
68169         (num_processors): Add a 'query' argument. Test the value of the
68170         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
68171         mingw, count the number of CPUs available for the current process.
68172         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
68173         Check for sched_getaffinity and sched_getaffinity_np.
68174         * modules/nproc (Depends-on): Add c-ctype, extensions.
68175         * NEWS: Mention the change.
68177 2009-11-03  Bruno Haible  <bruno@clisp.org>
68179         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
68181 2009-11-03  Jim Meyering  <meyering@redhat.com>
68183         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
68184         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
68185         if it is defined.
68187 2009-11-02  Eric Blake  <ebb9@byu.net>
68189         mktime, timegm: share common declaration
68190         * lib/mktime-internal.h: New file.
68191         * lib/mktime.c: Use it rather than open-coding a declaration.
68192         * lib/timegm.c: Likewise.
68193         * modules/mktime (Files): Ship it.
68194         * modules/timegm (Files): Likewise.
68195         Suggested by Bruno Haible.
68197         test-update-copyright: update test to match script changes
68198         * tests/test-update-copyright.sh: Avoid hard-coding perl
68199         location.  Don't update *.bak created by earlier runs.
68201 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68202             Simon Josefsson  <simon@josefsson.org>
68203             Bruno Haible  <bruno@clisp.org>
68205         Fix link error on Solaris 8.
68206         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
68207         also in libnsl. Define also INET_PTON_LIB.
68208         * modules/inet_pton (Link): New section.
68210 2009-11-02  Simon Josefsson  <simon@josefsson.org>
68211             Bruno Haible  <bruno@clisp.org>
68213         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
68214         * modules/inet_ntop (Link): New section.
68215         Reported by Boyan Kasarov <bkasarov@gmail.com>.
68217 2009-11-02  Eric Blake  <ebb9@byu.net>
68219         maint: avoid compiler warnings in m4 macros
68220         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
68221         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
68223 2009-11-02  Simon Josefsson  <simon@josefsson.org>
68225         * m4/pmccabe2html.m4: Remove file.
68226         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
68227         function.  Change maintainer.
68228         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
68229         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
68230         Courtès).
68232 2009-10-31  Eric Blake  <ebb9@byu.net>
68234         fseeko: fix m4 regression
68235         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
68236         regression from 2009-10-27.
68237         Reported by Ralf Wildenhues.
68239 2009-10-31  Jim Meyering  <meyering@redhat.com>
68241         inttostr: aesthetics and improved (compile-time) safety
68242         Define inttype_is_signed rather than inttype_is_unsigned,
68243         since the sole use is via "#if inttype_is_signed".
68244         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
68245         inttype_is_unsigned.
68246         * lib/offtostr.c (inttype_is_signed): Likewise.
68247         * lib/uinttostr.c (inttype_is_signed): Likewise.
68248         * lib/umaxtostr.c (inttype_is_signed): Likewise.
68249         * lib/inttostr.c (inttostr): Use verify to cross-check the
68250         inttype_is_signed value and the signedness of the actual type.
68251         * modules/inttostr (Depends-on): Add verify.
68253 2009-10-30  Eric Blake  <ebb9@byu.net>
68255         build: avoid compiler warnings
68256         * lib/fchmodat.c (lchmod): Mark unused variables.
68257         * lib/getopt.c (_getopt_initialize): Likewise.
68258         * lib/mktime.c (__mktime_internal): Provide prototype.
68259         * lib/inttostr.c (inttostr): Avoid compiler warning even with
68260         older gcc that do not understand #pragma GCC diagnostic.
68261         * lib/uinttostr.c (inttype_is_unsigned): Define.
68262         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
68264 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
68266         stat: fix compilation on AIX
68267         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
68268         only see struct stat64.
68270 2009-10-30  Eric Blake  <ebb9@byu.net>
68272         exclude: make more robust
68273         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
68274         rather than masking a coding bug.
68275         Suggested by Bruno Haible.
68277 2009-10-30  Jim Meyering  <meyering@redhat.com>
68279         perl scripts: remove #!/usr/bin/perl in favor of more portable...
68280         Rather than putting #!/usr/bin/perl on the first line,
68281         start with a variant of what's recommended by "man perlrun" that
68282         invokes the first "perl" program from your shell's search path.
68283         * build-aux/gitlog-to-changelog: Replace #!... as above.
68284         Add a "Local Variables" perl mode setting.
68285         Prompted by a patch from Ludovic Courtès.
68286         Improved by Eric Blake.
68287         * build-aux/useless-if-before-free: Likewise.
68288         * build-aux/announce-gen: Likewise.
68289         * build-aux/update-copyright: Likewise.
68291 2009-10-29  Eric Blake  <ebb9@byu.net>
68293         filenamecat-lgpl: adjust clients
68294         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
68295         filenamecat.
68296         * modules/renameat (Depends-on): Likewise.
68298         filenamecat: split into filenamecat-lgpl
68299         * modules/filenamecat-lgpl: New module.
68300         * modules/filenamecat (Files): Move library-safe files into
68301         filenamecat-lgpl.
68302         (Depends-on): Add filenamecat-lgpl.
68303         (configure.ac): Declare witness.
68304         * lib/filenamecat.h (file_name_concat): Only declare when using
68305         GPL module.
68306         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
68307         Move...
68308         * lib/filenamecat-lgpl.c: ...into new file.
68309         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
68310         (gl_FILE_NAME_CONCAT): Use it.
68311         * MODULES.html.sh (File system functions): Mention new module.
68313         argp: avoid memory leak
68314         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
68315         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
68316         base_name, since the latter malloc()s and can call exit().
68317         Leak introduced 2006-07-03.
68319         dirname-lgpl: adjust clients that don't need full dirname
68320         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
68321         * modules/filenamecat (Depends-on): Likewise.
68322         * modules/linkat (Depends-on): Likewise.
68323         * modules/mkancesdirs (Depends-on): Likewise.
68324         * modules/mkdir (Depends-on): Likewise.
68325         * modules/openat (Depends-on): Likewise.
68326         * modules/savewd (Depends-on): Likewise.
68327         * modules/rename (Depends-on): Likewise.
68328         (License): Relax license.
68329         * modules/mkdir-tests (Depends-on): Drop progname.
68330         (Makefile.am): Delete unneeded LDADD.
68331         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
68333         dirname: split into dirname-lgpl
68334         * modules/dirname-lgpl: New module.
68335         * modules/dirname (Files): Move library-safe files into
68336         dirname-lgpl.
68337         (Depends-on): Add dirname-lgpl.
68338         (configure.ac): Declare witness.
68339         * modules/double-slash-root (License): Relax license.
68340         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
68341         module.
68342         * lib/dirname.c (dir_len, mdir_name): Move...
68343         * lib/dirname-lgpl.c: ...into new file.
68344         * lib/basename.c (last_component, base_len): Move...
68345         * lib/basename-lgpl.c: ...into new file.
68346         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
68347         (gl_DIRNAME): Use it.
68348         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
68349         Mention new module.
68350         * modules/dirname-tests (Depends-on): Add progname.
68351         * tests/test-dirname.c (program_name): Delete.
68353         mkdir: make safe for libraries
68354         * modules/mkdir (Depends-on): Drop xalloc.
68355         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
68356         exit.
68358         tests: avoid some compiler warnings
68359         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
68360         literals.
68361         * tests/test-memchr.c (main): Avoid type mismatch.
68362         * tests/test-arpa_inet.c (main): Avoid unused parameters.
68363         * tests/test-base64.c (main): Likewise.
68364         * tests/test-getdelim.c (main): Likewise.
68365         * tests/test-gethostname.c (main): Likewise.
68366         * tests/test-getline.c (main): Likewise.
68367         * tests/test-netinet_in.c (main): Likewise.
68368         * tests/test-select.c (open_server_socket, main): Likewise.
68369         * tests/test-select-stdin.c (main): Likewise.
68370         * tests/test-sockets.c (main): Likewise.
68371         * tests/test-strsignal.c (main): Likewise.
68372         * tests/test-sys_select.c (main): Likewise.
68373         * tests/test-sys_socket.c (main): Likewise.
68374         * tests/test-u64.c (main): Likewise.
68375         * tests/test-xfprintf-posix.c (main): Likewise.
68376         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
68378         sockets: avoid compiler warning
68379         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
68381         maint: detect usage(1) and other suspicious exits
68382         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
68384 2009-10-29  Jim Meyering  <meyering@redhat.com>
68386         timespec: long-to-int truncation could make timespec_cmp malfunction
68387         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
68388         a multiple of 2^32 nanoseconds as no difference.
68390 2009-10-28  Jim Meyering  <meyering@redhat.com>
68392         fprintftime: wrap macro code argument in "do {...} while(0)"
68393         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
68394         cpy macro must be a statement that can be followed by a semicolon.
68395         Now that the else clause contains a comment and is hence longer
68396         than one line, I require curly braces.  That in turn requires
68397         that we wrap this code block in the standard do...while(0).
68399         fprintftime: remove stray semicolon from previous change
68400         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
68402         fprintftime: avoid a warning about ignored fwrite return value
68403         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
68404         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
68405         that is unsafe.
68406         * modules/fprintftime (Depends-on): Add ignore-value.
68408         exclude: avoid an unwarranted warning
68409         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
68411 2009-10-27  Eric Blake  <ebb9@byu.net>
68413         fseek: avoid compilation failure when fflush is replaced
68414         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
68415         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
68416         module is in use.
68417         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
68418         module is not in use; since REPLACE_FSEEK worked otherwise.
68419         (GNULIB_FTELLO): Likewise for ftell.
68420         Reported by Ian Beckwith and others.
68422 2009-10-27  Bruno Haible  <bruno@clisp.org>
68424         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
68425         Reported by Jim Meyering.
68427 2009-10-27  Jim Meyering  <jim@meyering.net>
68428             Bruno Haible  <bruno@clisp.org>
68430         Avoid warning despite dropping the return value of fwrite.
68431         * lib/unicodeio.c: Include ignore-value.h.
68432         (fwrite_success_callback): Explicitly ignore fwrite's return value.
68433         * modules/unicodeio (Depends-on): Add ignore-value.
68435 2009-10-26  Eric Blake  <ebb9@byu.net>
68437         areadlinkat: fix fallback path
68438         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
68439         pointer and zero.
68441 2009-10-22  Pádraig Brady  <P@draigBrady.com>
68443         Use a better IO block size for modern systems
68444         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
68445         * lib/md2.c: Likewise.
68446         * lib/md4.c: Likewise.
68447         * lib/md5.c: Likewise.
68448         * lib/sha1.c: Likewise.
68449         * lib/sha256.c: Likewise.
68450         * lib/sha512.c: Likewise.
68452 2009-10-22  Eric Blake  <ebb9@byu.net>
68454         tests: avoid several compiler warnings
68455         * tests/test-getcwd.c (main): Avoid buffer underflow.
68456         * tests/test-getdate.c (main): String literals are not safe with
68457         putenv, so use setenv.  Declare unused argument.
68458         * modules/getdate-tests (Depends-on): Add setenv.
68459         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
68460         problems with string literals in char *.
68461         * tests/test-hash.c (main): Avoid shadowing declaration.
68462         (insert_new): Treat string literals as char const *.
68463         * tests/test-getopt.h (test_getopt): Likewise.
68464         (getopt_loop): Alter types to minimize casting elsewhere.
68465         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
68466         (test_getopt_long_posix): Likewise.
68467         (do_getopt_long): Add wrapper to minimize casting.
68468         * tests/test-atexit.c (clear_temp_file): Use void.
68469         * tests/test-areadlink-with-size.c (main): Declare unused
68470         arguments.
68471         * tests/test-areadlink.c (main): Likewise.
68472         * tests/test-areadlinkat-with-size.c (main): Likewise.
68473         * tests/test-areadlinkat.c (main): Likewise.
68474         * tests/test-canonicalize-lgpl.c (main): Likewise.
68475         * tests/test-canonicalize.c (main): Likewise.
68476         * tests/test-dirent-safer.c (main): Likewise.
68477         * tests/test-dirname.c (main): Likewise.
68478         * tests/test-dup2.c (main): Likewise.
68479         * tests/test-fchdir.c (main): Likewise.
68480         * tests/test-fcntl-h.c (main): Likewise.
68481         * tests/test-fcntl-safer.c (main): Likewise.
68482         * tests/test-fdopendir.c (main): Likewise.
68483         * tests/test-fdutimensat.c (main): Likewise.
68484         * tests/test-fflush.c (main): Likewise.
68485         * tests/test-filenamecat.c (main): Likewise.
68486         * tests/test-filevercmp.c (main): Likewise.
68487         * tests/test-fopen-safer.c (main): Likewise.
68488         * tests/test-fopen.c (main): Likewise.
68489         * tests/test-fpending.c (main): Likewise.
68490         * tests/test-fpurge.c (main): Likewise.
68491         * tests/test-freading.c (main): Likewise.
68492         * tests/test-fstatat.c (main): Likewise.
68493         * tests/test-fsync.c (main): Likewise.
68494         * tests/test-futimens.c (main): Likewise.
68495         * tests/test-getndelim2.c (main): Likewise.
68496         * tests/test-gettimeofday.c (main): Likewise.
68497         * tests/test-getopt.c (main): Likewise.
68498         * tests/test-i-ring.c (main): Likewise.
68499         * tests/test-inttypes.c (main): Likewise.
68500         * tests/test-link.c (main): Likewise.
68501         * tests/test-lstat.c (main): Likewise.
68502         * tests/test-math.c (main): Likewise.
68503         * tests/test-md5.c (main): Likewise.
68504         * tests/test-memchr2.c (main): Likewise.
68505         * tests/test-memrchr.c (main): Likewise.
68506         * tests/test-mkdir.c (main): Likewise.
68507         * tests/test-mkdirat.c (main): Likewise.
68508         * tests/test-mkfifoat.c (main): Likewise.
68509         * tests/test-open.c (main): Likewise.
68510         * tests/test-openat-safer.c (main): Likewise.
68511         * tests/test-openat.c (main): Likewise.
68512         * tests/test-quotearg.c (main): Likewise.
68513         * tests/test-rawmemchr.c (main): Likewise.
68514         * tests/test-readlink.c (main): Likewise.
68515         * tests/test-remove.c (main): Likewise.
68516         * tests/test-rename.c (main): Likewise.
68517         * tests/test-renameat.c (main): Likewise.
68518         * tests/test-rmdir.c (main): Likewise.
68519         * tests/test-sha1.c (main): Likewise.
68520         * tests/test-signal.c (main): Likewise.
68521         * tests/test-sigaction.c (main): Likewise.
68522         * tests/test-stat.c (main): Likewise.
68523         * tests/test-stat-time.c (main): Likewise.
68524         * tests/test-stddef.c (main): Likewise.
68525         * tests/test-stdint.c (main): Likewise.
68526         * tests/test-stdio.c (main): Likewise.
68527         * tests/test-stdlib.c (main): Likewise.
68528         * tests/test-strchrnul.c (main): Likewise.
68529         * tests/test-strerror.c (main): Likewise.
68530         * tests/test-string.c (main): Likewise.
68531         * tests/test-strtod.c (main): Likewise.
68532         * tests/test-strverscmp.c (main): Likewise.
68533         * tests/test-symlink.c (main): Likewise.
68534         * tests/test-symlinkat.c (main): Likewise.
68535         * tests/test-sys_stat.c (main): Likewise.
68536         * tests/test-sys_time.c (main): Likewise.
68537         * tests/test-time.c (main): Likewise.
68538         * tests/test-unistd.c (main): Likewise.
68539         * tests/test-unlink.c (main): Likewise.
68540         * tests/test-unlinkat.c (main): Likewise.
68541         * tests/test-utimens.c (main): Likewise.
68542         * tests/test-utimensat.c (main): Likewise.
68543         * tests/test-version-etc.c (main): Likewise.
68544         * tests/test-wchar.c (main): Likewise.
68545         * tests/test-wctype.c (main): Likewise.
68546         * tests/test-xprintf-posix.c (main): Likewise.
68547         * tests/test-posixtm.c (main): Likewise.
68548         (STREQ): Delete unused macro.
68549         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
68550         shadowed variables.
68551         * tests/test-memchr.c (main): Likewise.
68553 2009-10-21  Eric Blake  <ebb9@byu.net>
68555         areadlinkat: avoid failure on older glibc
68556         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
68557         rather than mis-comparing 0 against FUNC_RESULT of char*.
68559 2009-10-21  Bruno Haible  <bruno@clisp.org>
68561         * modules/stpncpy (License): Relicense under LGPLv2+.
68562         Reported by David Lutterkort <lutter@redhat.com>.
68564 2009-10-20  Eric Blake  <ebb9@byu.net>
68566         utimensat: work around Solaris 9 bug
68567         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
68568         has trailing slash bugs.
68569         * tests/test-lutimens.h (test_lutimens): Enhance test.
68570         * tests/test-utimens.h (test_utimens): Likewise.
68571         * doc/posix-functions/utime.texi (utime): Enhance documentation.
68572         * doc/posix-functions/utimes.texi (utimes): Likewise.
68573         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
68574         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
68575         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
68576         * doc/posix-functions/futimens.texi (futimens): Likewise.
68578         fdutimensat: new module
68579         * modules/fdutimensat: New file.
68580         * lib/fdutimensat.c (fdutimensat): Likewise.
68581         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
68582         * MODULES.html.sh (File system functions): Mention module.
68583         * modules/fdutimensat-tests: New test.
68584         * tests/test-fdutimensat.c: Likewise.
68586         doc: regenerate INSTALL
68587         * doc/INSTALL: Reflect recent autoconf update.
68588         * doc/INSTALL.ISO: Likewise.
68589         * doc/INSTALL.UTF-8: Likewise.
68591 2009-10-20  Pádraig Brady  <P@draigBrady.com>
68593         acl: warn if ACL support is not detected
68594         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
68596 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
68598         * lib/nproc.h: Add extern "C" block for C++.
68600 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
68601             Bruno Haible  <bruno@clisp.org>
68603         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
68604         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
68605         * doc/posix-functions/isalpha.texi: Likewise.
68606         * doc/posix-functions/isblank.texi: Likewise.
68607         * doc/posix-functions/iscntrl.texi: Likewise.
68608         * doc/posix-functions/isdigit.texi: Likewise.
68609         * doc/posix-functions/isgraph.texi: Likewise.
68610         * doc/posix-functions/islower.texi: Likewise.
68611         * doc/posix-functions/isprint.texi: Likewise.
68612         * doc/posix-functions/ispunct.texi: Likewise.
68613         * doc/posix-functions/isspace.texi: Likewise.
68614         * doc/posix-functions/isupper.texi: Likewise.
68615         * doc/posix-functions/isxdigit.texi: Likewise.
68617 2009-10-18  Bruno Haible  <bruno@clisp.org>
68619         Tests for module 'isblank'.
68620         * modules/isblank-tests: New file.
68621         * tests/test-isblank.c: New file.
68623         New module 'isblank'.
68624         * lib/isblank.c: New file.
68625         * m4/isblank.m4: New file.
68626         * modules/isblank: New file.
68627         * doc/posix-functions/isblank.texi: Mention the new module.
68629 2009-10-18  Bruno Haible  <bruno@clisp.org>
68631         New module 'ctype'.
68632         * lib/ctype.in.h: New file.
68633         * m4/ctype.m4: New file.
68634         * modules/ctype: New file.
68635         * doc/posix-headers/ctype.texi: Mention the new module.
68637 2009-10-18  Jim Meyering  <meyering@redhat.com>
68639         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
68640         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
68641         right after its initialization, rather than farther down.
68642         Keeping these in close proximity makes it easier to ensure
68643         that each such variable is initialized.  E.g.,
68645             LIB_CLOCK_GETTIME=
68646             AC_SUBST([LIB_CLOCK_GETTIME])
68648         This change also increments these serial numbers.
68649         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
68650         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68653 2009-10-18  Bruno Haible  <bruno@clisp.org>
68655         Don't let environment variables perturb build.
68656         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
68657         (gl_PREREQ_GETHRXTIME): ... not here.
68659 2009-10-18  Bruno Haible  <bruno@clisp.org>
68661         Avoid symlink attack in localcharset module.
68662         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
68663         (O_NOFOLLOW): Define fallback.
68664         (get_charset_aliases): Don't open the file if it is a symbolic link.
68665         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
68666         gl_FCNTL_H.
68667         (gl_FCNTL_H): Require it.
68668         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
68669         * modules/localcharset (Files): Add m4/fcntl_h.m4.
68670         Reported by Fergal Glynn <fglynn@veracode.com>.
68672 2009-10-18  Bruno Haible  <bruno@clisp.org>
68674         Implement nproc for mingw.
68675         * lib/nproc.c: Include <windows.h>
68676         (num_processors): On native Windows platforms, try GetSystemInfo.
68678 2009-10-18  Bruno Haible  <bruno@clisp.org>
68680         Implement nproc for IRIX.
68681         * lib/nproc.c: Include <sys/sysmp.h>.
68682         (num_processors): On IRIX systems, try sysmp.
68683         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
68685 2009-10-18  Bruno Haible  <bruno@clisp.org>
68687         Implement nproc for HP-UX.
68688         * lib/nproc.c: Include <sys/pstat.h>
68689         (num_processors): On HP-UX systems, try pstat_getdynamic.
68690         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
68691         pstat_getdynamic.
68693 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
68694             Bruno Haible  <bruno@clisp.org>
68696         Implement nproc for NetBSD, OpenBSD.
68697         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
68698         (ARRAY_SIZE): New macro.
68699         (num_processors): On BSD systems, try sysctl of HW_NCPU.
68700         * m4/nproc.m4: New file.
68701         * modules/nproc (Files): Add m4/nproc.m4.
68702         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
68703         (Makefile.am): Instead, augment lib_SOURCES.
68705 2009-10-18  Bruno Haible  <bruno@clisp.org>
68707         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
68708         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
68709         sys/param.h.
68711 2009-10-16  Eric Blake  <ebb9@byu.net>
68713         utimensat: new module
68714         * modules/utimensat: New file.
68715         * lib/utimensat.c (utimensat): Likewise.
68716         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
68717         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
68718         so we can work around Linux bugs.
68719         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
68720         * modules/sys_stat (Makefile.am): Substitute them.
68721         * lib/sys_stat.in.h (utimensat): Declare it.
68722         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
68723         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
68724         * modules/utimensat-tests: New test.
68725         * tests/test-utimensat.c: Likewise.
68727         utimens: let lutimens work on non-symlinks
68728         * lib/utimens.c (lutimens): Fall back to utimens rather than
68729         failing with ENOSYS, when file is not a symlink.
68730         (utimens): Reduce redirection.
68731         * tests/test-lutimens.h (test_lutimens): Update test to cover
68732         non-symlinks.
68733         * tests/test-utimens.h (test_utimens): Update test to cover
68734         symlinks.
68735         * tests/test-utimens.c (main): Update caller.
68737         utimens: cache whether utimensat syscall works
68738         * lib/utimens.c (utimensat_works_really): New cache variable.
68739         (fdutimens, lutimens): Use it to avoid failing syscall.
68741         test-stat-time, test-utimens: improve portability
68742         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
68743         ext4 on alpha, and for cygwin.
68744         * tests/test-utimens-common.h: New file.
68745         (nap): Factor delays into single function.
68746         * tests/test-lutimens.h (test_lutimens): Use new header.
68747         * tests/test-futimens.h (test_futimens): Likewise.
68748         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
68749         timestamps to occur from same machine, as was done previously for
68750         test_utimens.
68751         * modules/utimens-tests (Files): Ship new file.
68752         * modules/futimens-tests (Files): Likewise.
68753         Reported in part by Jim Meyering.
68755         sys_stat: sort replacement declarations
68756         * lib/sys_stat.in.h: Sort declarations.
68757         * lib/futimens.c (futimens): Fix typo.
68759 2009-10-15  Jim Meyering  <meyering@redhat.com>
68761         don't let environment settings perturb build
68762         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
68763         could cause a configure-time and/or build-time malfunction.
68764         Typically, a configure-time function-in-library test is performed
68765         via code like this:
68767           LIB_VAR=
68768           AC_SUBST([LIB_VAR])
68769           prefix_saved_LIBS=$LIBS
68770             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
68771                        [test "$ac_cv_search_FUNC" = "none required" ||
68772                         LIB_VAR=$ac_cv_search_FUNC])
68773           LIBS=$prefix_saved_LIBS
68775         However, in each of the files affected by this change, the LIB_VAR=
68776         initialization was omitted.  Thus, when set in the environment, its
68777         value would propagate into generated Makefiles when FUNC is not found
68778         in LIB_NAME.
68779         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
68780         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68783 2009-10-14  Eric Blake  <ebb9@byu.net>
68785         fchdir: avoid infinite recursion in mingw
68786         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
68787         recursing.
68789         test-stat-time: port to mingw
68790         * tests/test-stat-time.c (force_unlink): Return a value.
68791         (test_ctime) [W32]: Fix compilation error.
68792         (nap): Don't call usleep with too large an argument.  Use
68793         force_unlink.
68794         * doc/pastposix-functions/usleep.texi (usleep): Document the
68795         portability issue.
68797 2009-10-13  Jim Meyering  <meyering@redhat.com>
68799         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
68800         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
68801         * modules/pipe-filter-ii: Likewise.
68802         * modules/sys_socket-tests: Likewise.
68803         * modules/tsearch-tests: Likewise.
68804         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
68805         (check): Depend on it.
68807 2009-10-12  Eric Blake  <ebb9@byu.net>
68809         utimens-tests: port to NFS file systems
68810         * tests/test-utimens.h (test_utimens): Refactor utimecmp
68811         comparisons to avoid spurious failures from timestamp drift
68812         between NFS machines.
68814 2009-10-12  Eric Blake  <ebb9@byu.net>
68816         stat-time-tests: minor cleanups
68817         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
68818         * tests/test-stat-time.c (nap): Separate assignment from call.
68819         Suggested by Paolo Bonzini and Bruno Haible.
68821         sys_stat: guarantee struct timespec
68822         * lib/sys_stat.in.h (includes): Always include <time.h>
68823         * modules/sys_stat (Depends-on): Add time.
68824         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
68825         mode_t permission values.
68826         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
68827         get at subsecond timestamps.
68829 2009-10-10  Eric Blake  <ebb9@byu.net>
68831         futimens: new module
68832         * modules/futimens: New file.
68833         * lib/futimens.c (futimens): Likewise.
68834         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
68835         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
68836         we can work around Linux bugs.
68837         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
68838         * modules/sys_stat (Makefile.am): Substitute them.
68839         * lib/sys_stat.in.h (futimens): Declare it.
68840         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
68841         * doc/posix-functions/futimens.texi (futimens): Likewise.
68842         * modules/futimens-tests: New test.
68843         * tests/test-futimens.c: Likewise.
68845         utimens: introduce fdutimens
68846         * lib/utimens.h (fdutimens): New prototype.
68847         * lib/utimens.c (gl_futimens): Move guts...
68848         (fdutimens): ...to new interface.
68849         * tests/test-utimens.c (do_fdutimens): Use it.
68851         utimens: add UTIME_NOW and UTIME_OMIT support
68852         * lib/utimens.c (validate_timespec, update_timespec): New helper
68853         functions.
68854         (gl_futimens, lutimens): Use them.
68855         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
68856         stdbool, sys_stat.
68857         (Link): Mention resulting library dependency.
68858         * modules/utimecmp (Link): Likewise.
68859         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
68860         (Makefile.am): Pick up library dependency.
68861         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
68862         definition.
68863         * tests/test-sys_stat.c: Test the definitions.
68864         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
68865         * NEWS: Document library dependency.
68867         utimecmp: support symlink timestamps
68868         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
68869         hashing when possible.  Use pathconf when available.
68870         (SYSCALL_RESOLUTION): Recognize tighter resolution.
68871         * modules/utimecmp (Depends-on): Add lstat.
68873         utimens: add lutimens interface
68874         * lib/utimens.c (lutimens): New function.
68875         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
68876         * lib/utimens.h (lutimens): Declare new interface.
68877         * tests/test-utimens.c (main): Enhance test.
68878         * tests/test-lutimens.h (test_lutimens): New file.
68879         * modules/utimens-tests (Files): Distribute it.
68880         (Depends-on): Add symlink.
68881         (configure.ac): Check for usleep.
68883         utimens: validate futimens usage
68884         * lib/utimens.c (gl_futimens): Require valid fd up front, using
68885         fewer syscalls on failure later on.  Avoid compiler warning on
68886         mingw.
68887         * modules/utimens (Depends-on): Add dup2.
68889         utimens: add test
68890         * modules/utimens-tests: New test.
68891         * tests/test-utimens.h: New file.
68892         * tests/test-futimens.h: Likewise.
68893         * tests/test-utimens.c: Likewise.
68895         doc: mention timestamp portability issues
68896         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
68897         instead.
68898         * doc/posix-functions/utime.texi (utime): Likewise.
68899         * doc/posix-functions/utimes.texi (utimes): Likewise.
68900         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
68901         instead.
68902         * doc/posix-functions/futimens.texi (futimens): Mention utimens
68903         module.
68904         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
68905         Mention weakness with symlink timestamps.
68906         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
68907         to utimensat/futimens instead.
68908         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
68910         test-dup2: enhance test
68911         * tests/test-dup2.c (main): Also check AT_FDCWD.
68913         test-stat-time: avoid more spurious failures
68914         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
68915         xfs; and avoid race if the two timestamps cross quantization edge.
68917         relocatable: prefer 'file system' over 'filesystem'
68918         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
68919         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
68920         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
68921         * doc/relocatable.texi (Enabling Relocatability): Likewise.
68922         * lib/relocatable.c (compute_curr_prefix): Likewise.
68924 2009-10-10  Jim Meyering  <meyering@redhat.com>
68926         stat-time-tests: check for the usleep function
68927         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
68929 2009-10-10  Bruno Haible  <bruno@clisp.org>
68931         * modules/xnanosleep: Put the Link section after the Include section.
68933 2009-10-09  Eric Blake  <ebb9@byu.net>
68935         dup2: work around FreeBSD 6.1 bug
68936         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
68937         * doc/posix-functions/dup2.texi (dup2): Document it.
68938         Reported by Nelson H. F. Beebe and Jim Meyering.
68940         test-stat-time: port to buggy NFS clients
68941         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
68942         (test_ctime): Also skip test if mtime and ctime are skewed.
68944         maint: prefer 'file system' over 'filesystem'
68945         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
68946         * doc/posix-functions/lstat.texi (lstat): Likewise.
68947         * lib/file-has-acl.c (file_has_acl): Likewise.
68948         * lib/fwriteerror.c [TEST]: Likewise.
68949         * tests/test-areadlink.h (test_areadlink): Likewise.
68950         * tests/test-areadlinkat-with-size.c (main): Likewise.
68951         * tests/test-areadlinkat.c (main): Likewise.
68952         * tests/test-canonicalize-lgpl.c (main): Likewise.
68953         * tests/test-canonicalize.c (main): Likewise.
68954         * tests/test-fstatat.c (main): Likewise.
68955         * tests/test-linkat.c (main): Likewise.
68956         * tests/test-lstat.h (test_lstat_func): Likewise.
68957         * tests/test-mkdir.h (test_mkdir): Likewise.
68958         * tests/test-readlink.h (test_readlink): Likewise.
68959         * tests/test-remove.c (main): Likewise.
68960         * tests/test-rename.h (test_rename): Likewise.
68961         * tests/test-renameat.c (main): Likewise.
68962         * tests/test-rmdir.h (test_rmdir_func): Likewise.
68963         * tests/test-symlink.h (test_symlink): Likewise.
68964         * tests/test-symlinkat.c (main): Likewise.
68965         * tests/test-unlink.h (test_unlink_func): Likewise.
68966         * tests/test-unlinkat.c (main): Likewise.
68968         maint: make realtime library usage explicit
68969         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
68970         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
68971         * modules/settime (Link): Likewise.
68972         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
68974         test-stat-time: speed up execution
68975         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
68976         warning on mingw.
68977         (nap): New helper function.
68978         (prepare_test): Use it to reduce sleep time.
68979         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
68980         execution.
68981         * modules/stat-time-tests (configure.ac): Check for usleep.
68983 2009-10-09  Jim Meyering  <meyering@redhat.com>
68985         selinux-h: always use getfilecon wrappers
68986         * lib/getfilecon.c: New file.
68987         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
68988         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
68989         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
68990         (fgetfilecon): Provide a stub.
68991         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
68992         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
68993         file unconditionally.
68994         When <selinux/selinux.h> is found, arrange to use wrappers.
68995         * modules/selinux-h (Files): Add getfilecon.c.
68996         (Makefile.am): Substitute include-next-related bits
68997         into the now-always-generated selinux/selinux.h file.
68998         * doc/glibc-functions/lgetfilecon.texi: New file.
68999         * doc/glibc-functions/fgetfilecon.texi: New file.
69000         * doc/glibc-functions/getfilecon.texi: New file.
69001         * doc/glibc-functions/getfilecon-desc.texi: New file.
69002         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
69003         which to pull in the new files.
69004         * MODULES.html.sh (Misc): Add selinux-h.
69006 2009-10-08  Jim Meyering  <meyering@redhat.com>
69008         unistd: fix comment typo
69009         * lib/unistd.in.h (euidaccess): Fix a comment typo.
69011 2009-10-08  Eric Blake  <ebb9@byu.net>
69013         areadlink: use SIZE_MAX consistently
69014         * modules/areadlink (Depends-on): Add stdint.
69015         * modules/areadlink-with-size (Depends-on): Likewise.
69016         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
69017         gives NULL; drop sys/types, since unistd gives size_t; and add
69018         stdint for SIZE_MAX.
69019         (SIZE_MAX): Rely on headers.
69020         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
69021         and add stdint.
69022         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
69023         (SIZE_MAX): Likewise.
69024         (INITIAL_BUF_SIZE): Turn into enum.
69025         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
69027 2009-10-08  Jim Meyering  <meyering@redhat.com>
69029         areadlinkat: avoid compilation failure
69030         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
69031         Fix typo in comment.
69033 2009-10-07  Eric Blake  <ebb9@byu.net>
69035         areadlinkat-with-size: new module
69036         * modules/areadlinkat-with-size: New module.
69037         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
69038         * lib/areadlink.h (areadlinkat): Declare it.
69039         * MODULES.html.sh (File system functions): Mention it.
69040         * modules/areadlinkat-with-size-tests: New test.
69041         * tests/test-areadlinkat-with-size.c: New file.
69043         xreadlinkat: new module
69044         * modules/xreadlinkat: New module.
69045         * lib/xreadlinkat.c (xreadlinkat): New file.
69046         * lib/xreadlink.h (xreadlinkat): Declare it.
69047         * MODULES.html.sh (File system functions): Mention it.
69049         areadlinkat: new module
69050         * lib/at-func.c (FUNC_FAIL): New define.
69051         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
69052         * modules/areadlinkat: New module.
69053         * lib/linkat.c (areadlinkat): Move...
69054         * lib/areadlinkat.c (areadlinkat): ...to new file.
69055         * lib/areadlink.h (areadlinkat): Declare it.
69056         * modules/linkat (Depends-on): Add areadlinkat.
69057         * MODULES.html.sh (File system functions): Mention it.
69058         * modules/areadlinkat-tests: New test.
69059         * tests/test-areadlinkat.c: New file.
69061         areadlink, areadlink-with-size: add tests
69062         * modules/areadlink-tests: New test.
69063         * modules/areadlink-with-size-tests: Likewise.
69064         * tests/test-areadlink.h: New file.
69065         * tests/test-areadlink.c: Likewise.
69066         * tests/test-areadlink-with-size.c: Likewise.
69068         maint: minor cleanups
69069         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
69070         _UNUSED_PARAMETER_ instead.
69071         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
69072         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
69073         * modules/linkat-tests (Files): Distribute test-link.h.
69075         openat, utimens: whitespace cleanup
69076         * lib/openat.c: Prefer space throughout, rather than mix of 8
69077         spaces vs. tabs.
69078         * lib/at-func.c: Likewise.
69079         * lib/utimens.c: Likewise.
69081         openat: avoid using wrong fd
69082         * lib/openat.c (openat_permissive): Reject user's fd if saving the
69083         working directory chooses same fd.
69084         * lib/at-func.c (AT_FUNC_NAME): Likewise.
69086         mkdir, mkdirat: fix cygwin 1.5.x bug
69087         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
69088         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
69089         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
69090         bug.
69091         (gl_PREREQ_MKDIR): Delete unused macro.
69092         * modules/mkdir (Files): Track file rename.
69093         (configure.ac): Update macro name.
69094         * modules/openat (Depends-on): Add mkdir.
69095         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
69097         mkdir, mkdirat: add tests
69098         * modules/mkdir-tests: New test.
69099         * tests/test-mkdir.h: New file.
69100         * tests/test-mkdir.c: Likewise.
69101         * tests/test-mkdirat.c: Likewise.
69102         * modules/openat-tests (Files): Add new files.
69103         (Makefile.am): Run new test.
69105 2009-10-06  Eric Blake  <ebb9@byu.net>
69107         doc: tweak *at function documentation
69108         * doc/posix-functions/faccessat.texi (faccessat): Mention
69109         known issue with replacement.
69110         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
69111         * doc/posix-functions/linkat.texi (linkat): Likewise.
69112         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
69113         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
69114         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
69115         * doc/posix-functions/renameat.texi (renameat): Likewise.
69116         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
69118         openat: fix GNU/Hurd bug in unlinkat
69119         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
69120         broken.
69121         * doc/posix-functions/unlink.texi (unlink): Document this.
69122         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
69124         fdopendir: fix GNU/Hurd bug
69125         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
69126         allowing non-directory fds.
69127         * lib/fdopendir.c (rpl_fdopendir): Work around it.
69128         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
69129         * modules/dirent (Makefile.am): Substitute it.
69130         * lib/dirent.in.h (fdopendir): Declare replacement.
69131         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
69132         * tests/test-fdopendir.c (main): Test something other than
69133         /dev/null, since on Hurd that behaves like a directory.
69135         test-symlink: port to GNU/Hurd
69136         * tests/test-symlink.h (test_symlink): Relax expected errno.
69138         doc: tweak more cygwin information
69139         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
69140         now compatible with glibc.
69141         * doc/posix-functions/getopt.texi (getopt): Likewise.
69143         getopt-gnu: add another test
69144         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
69145         guarantee behavior relied on by m4.
69146         * tests/test-getopt.c (main): Use it.
69147         * modules/getopt-posix-tests (Depends-on): Add setenv.
69148         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
69150         getopt: fix compilation on darwin
69151         * lib/getopt.in.h (includes): Leave breadcrumbs during system
69152         include.
69153         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
69154         Reported by Ludovic Courtès.
69156 2009-10-06  Bruno Haible  <bruno@clisp.org>
69158         * modules/size_max (Description): Discourage its use.
69159         Reported by Simon Josefsson.
69161 2009-10-06  Jim Meyering  <meyering@redhat.com>
69163         linkat: avoid compilation failure
69164         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
69166 2009-10-05  Eric Blake  <ebb9@byu.net>
69168         linkat: support Linux 2.6.17
69169         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
69170         linkat on Linux, but allow cache variable override.
69171         * lib/linkat.c (rpl_linkat): Define override.
69172         * modules/linkat (Depends-on): Add symlinkat.
69173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
69174         * modules/unistd (Makefile.am): Substitute it.
69175         * lib/unistd.in.h (linkat): Declare replacement.
69176         Reported by Pádraig Brady.
69178         quotearg: port test to systems with C.UTF-8 locale
69179         * tests/test-quotearg.c (struct result_strings): Add another
69180         member, differentiating between C.ASCII and C.UTF-8 handling.
69181         (compare_strings): Add parameter.
69182         (main): Adjust all callers.
69184         getopt: avoid clash with FreeBSD _getopt_internal
69185         * lib/getopt.in.h (_getopt_internal): Override the name.
69186         * lib/getopt_int.h (includes): Pick up any overrides.
69187         Reported by Reuben Thomas.
69189         hash: allow C89 compilation
69190         * lib/hash.c (check_tuning): Move declaration before statement.
69191         Reported by Reuben Thomas.
69193 2009-10-05  Karl Berry  <karl@gnu.org>
69195         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
69197 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
69198             Bruno Haible  <bruno@clisp.org>
69200         * lib/uname.c (uname): Use a table-driven algorithm to compute
69201         Windows NT versions.
69203 2009-10-04  Bruno Haible  <bruno@clisp.org>
69205         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
69206         program_invocation_short_name.
69207         * modules/progname (configure.ac): Test for presence of
69208         program_invocation_short_name.
69209         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
69211 2009-10-04  Bruno Haible  <bruno@clisp.org>
69213         * lib/progname.c (set_program_name): Fix comment.
69214         Reported by Jim Meyering.
69216 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
69217             Bruno Haible  <bruno@clisp.org>
69219         * lib/uname.c: Include <string.h>.
69220         (uname): Do only one call to GetVersionEx in the common case.
69222 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
69223             Bruno Haible  <bruno@clisp.org>
69225         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
69226         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
69227         (uname): Add support for Windows CE and various non-x86 CPU types.
69229 2009-10-03  Bruno Haible  <bruno@clisp.org>
69231         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
69232         invocation to tests/configure.ac.
69233         Reported by Ian Beckwith <ianb@erislabs.net>.
69235 2009-10-02  Eric Blake  <ebb9@byu.net>
69237         fchdir: avoid compiler warning
69238         * lib/fchdir.c (canonicalize_file_name)
69239         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
69241         test-open: support mingw errno values
69242         * tests/test-open.h (test_open): Relax test.
69243         * tests/test-fopen.h (test_fopen): Likewise.
69244         * tests/test-openat-safer.c (main): Likewise.
69246         open: fix opening directory on mingw
69247         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
69249         test-open: on GNU/Hurd, /dev/null is a directory
69250         * tests/test-fopen.h (main): Rename...
69251         (test_fopen): ...to this.  Use a guaranteed non-directory when
69252         confirming open behavior on trailing slash.
69253         * tests/test-openat-safer.c (main): Likewise.
69254         * tests/test-open.h (main): Likewise....
69255         (test_open): ...to this.
69256         * tests/test-fopen.c (main): Adjust caller.
69257         * tests/test-fopen-safer.c (main): Likewise.
69258         * tests/test-open.c (main): Likewise.
69259         * tests/test-fcntl-safer.c (main): Likewise.
69260         Reported by Samuel Thibault.
69262         rename, fchdir: don't ignore chdir failure
69263         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
69264         * lib/rename.c (rpl_rename) [W32]: Likewise.
69265         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
69266         an empty destination directory if source cannot be renamed,
69267         although there is still possibility for failure.
69268         * doc/posix-functions/rename.texi (rename): Document the race.
69269         Reported by Jim Meyering.
69271         maint: cleanup whitespace in recent commits
69272         * lib/rename.c (rpl_rename): Remove tabs.
69273         * tests/test-link.h (test_link): Likewise.
69274         * lib/fchdir.c (get_name): Likewise.
69275         Reported by Jim Meyering.
69277 2009-10-02  Ben Pfaff  <blp@gnu.org>
69279         relocatable-prog-wrapper: Add missing dependency on
69280         double-slash-root.
69281         * modules/relocatable-prog-wrapper: Add dependency.
69282         Reported by Ian Beckwith <ianb@erislabs.net>.
69284 2009-10-02  Eric Blake  <ebb9@byu.net>
69286         renameat: fix Solaris bugs
69287         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
69288         needed fixing.
69289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
69290         * modules/stdio (Makefile.am): Substitute it.
69291         * lib/stdio.in.h (renameat): Declare replacement.
69292         * lib/renameat.c (rpl_renameat): Implement fix.
69294         renameat: new module
69295         * modules/renameat: New file.
69296         * lib/renameat.c (renameat): Likewise.
69297         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
69298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
69299         * modules/stdio (Makefile.am): Substitute them.
69300         * lib/stdio.in.h (renameat): Declare it.
69301         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
69302         * doc/posix-functions/renameat.texi (renameat): Likewise.
69303         * modules/renameat-tests: New test.
69304         * tests/test-renameat.c: Likewise.
69306         rename: fix mingw bugs
69307         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
69308         directory overwrite bugs.
69310         rename: fix another cygwin 1.5 bug
69311         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
69312         checks.
69313         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
69314         unnecessary cygwin workarounds.  Also work around bug with moving
69315         full directory onto an empty one.
69316         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
69318         rename-dest-slash: merge into rename module
69319         * modules/rename-dest-slash (Status): Mark obsolete.
69320         (Depends-on): Add rename.
69321         (Files): Let rename do it all.
69322         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
69323         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
69324         * m4/rename-dest-slash.m4: ...so this file can be deleted.
69325         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
69326         * lib/rename.c (rpl_rename): Update comments.
69328         rename: fix cygwin 1.5.x bugs
69329         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
69330         * lib/rename.c (rpl_rename): Work around them.
69331         * modules/rename (Depends-on): Add same-inode.
69333         rename: fix Solaris 10 bug
69334         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
69335         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
69336         was the only bug.
69338         rename: fix Solaris 9 bug
69339         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
69340         on non-directory.  Avoid calling exit.
69341         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
69342         strdup.
69343         * modules/rename-tests (Depends-on): Drop lstat.
69344         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
69345         (gl_PREREQ_RENAME): Delete unused macro.
69347         rename-dest-slash: fix NetBSD bug
69348         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
69349         links.
69350         * modules/rename-dest-slash (Depends-on): Add same-inode.
69352         rename-tests: new test, exposes several platform bugs
69353         * modules/rename-tests: New file.
69354         * tests/test-rename.h: Likewise.
69355         * tests/test-rename.c: Likewise.
69356         * doc/posix-functions/rename.texi (rename): Improve documentation,
69357         including bugs that will eventually be fixed in gnulib.
69359 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
69361         * lib/uname.c: Include <stdlib.h>
69362         (uname): Assume version info is available.
69364 2009-10-02  Jim Meyering  <meyering@redhat.com>
69366         gnu-web-doc-update: correct --help output
69367         * build-aux/gnu-web-doc-update: Make --help output relevant.
69369         gnu-web-doc-update: add standard options
69370         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
69372         gnu-web-doc-update: New module.
69373         Use this script to automatically update the on-line web documentation
69374         for your GNU project at http://www.gnu.org/software/$pkg/manual/
69375         * modules/gnu-web-doc-update: New file, from coreutils.
69376         * build-aux/gnu-web-doc-update: New script.
69378 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
69380         link: LoadLibrary is not needed.
69381         * lib/link.c: Use GetModuleHandle.
69383 2009-10-01  Eric Blake  <ebb9@byu.net>
69385         getopt: bump serial number
69386         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
69387         change.
69389         tests: tighten link, rmdir, and remove tests
69390         * tests/test-link.h (includes): No need to use <config.h> here.
69391         Clean up if directory hard link was created, otherwise test for
69392         trailing '.'.
69393         * tests/test-linkat.c (main): Simplify.
69394         * tests/test-remove.c (main): Enhance test for trailing '.'.
69395         * tests/test-rmdir.h (test_rmdir_func): Likewise.
69397 2009-10-01  Jim Meyering  <meyering@redhat.com>
69399         maint.mk: requiring "make major" was annoying, for a "minor" release.
69400         What is intended is "stable", to contrast with alpha and beta,
69401         so require "make stable", not "make major".
69402         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
69403         (get_tool_versions): Likewise.
69404         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
69406 2009-09-30  Ben Pfaff  <blp@gnu.org>
69408         Fix broken build of replacement for Windows tmpfile().
69409         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
69410         flags argument added along with the 'mkostemp' module.
69412 2009-09-28  Bruno Haible  <bruno@clisp.org>
69414         Avoid identifier clash with POSIX function 'remove' defined as a macro.
69415         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
69416         to 'remove_elt'.
69417         (gl_list_remove): Update.
69418         * lib/gl_list.c (gl_list_remove): Update.
69419         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
69420         to 'remove_elt'.
69421         (gl_oset_remove): Update.
69422         * lib/gl_list.c (gl_oset_remove): Update.
69423         Reported by Eric Blake.
69425 2009-09-28  Eric Blake  <ebb9@byu.net>
69427         doc: mention yet more cygwin 1.7 status
69428         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
69429         cygwin.
69430         * doc/glibc-functions/execvpe.texi (execvpe): New file.
69431         * doc/gnulib.texi (Glibc unistd.h): Mention it.
69433         argp: fix test failure
69434         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
69435         that are not upper-case.  Pass correct range to tolower.
69437 2009-09-27  Jim Meyering  <meyering@redhat.com>
69439         test-yesno: work around sparc-dash here-document infelicity
69440         Without this change, the literal \177 byte in a here document
69441         would make dash 0.5.5.1-3 access uninitialized memory.
69442         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
69443         Instead, use a marker, "@", and filter through tr to create the desired
69444         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
69446 2009-09-27  Bruno Haible  <bruno@clisp.org>
69448         Disable untested support for new flavours of ACLs on AIX.
69449         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
69450         progress.
69451         * lib/set-mode-acl.c (qset_acl): Likewise.
69453 2008-12-07  Bruno Haible  <bruno@clisp.org>
69455         Add support for new flavours of ACLs on AIX. (Untested.)
69456         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
69457         (file_has_acl): Add support for newer AIX.
69458         * lib/set-mode-acl.c (qset_acl): Likewise.
69459         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
69460         Rainer Tammer <tammer@tammer.net>.
69462 2009-09-26  Eric Blake  <ebb9@byu.net>
69464         argp: fix compilation of getopt
69465         * lib/getopt.in.h (includes): Use different guard than glibc.
69466         Reported by Sergey Poznyakoff.
69468         doc: mention more cygwin 1.7 status
69469         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
69470         bug.
69471         * doc/posix-functions/execl.texi (execl): Likewise.
69472         * doc/posix-functions/execle.texi (execle): Likewise.
69473         * doc/posix-functions/execlp.texi (execlp): Likewise.
69474         * doc/posix-functions/execv.texi (execv): Likewise.
69475         * doc/posix-functions/execve.texi (execve): Likewise.
69476         * doc/posix-functions/execvp.texi (execvp): Likewise.
69477         * doc/glibc-functions/canonicalize_file_name.texi
69478         (canonicalize_file_name): Cygwin 1.7 now provides this.
69479         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
69480         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
69481         on AT_SYMLINK_NOFOLLOW.
69483 2009-09-24  Eric Blake  <ebb9@byu.net>
69485         test-linkat: make test more robust
69486         * tests/test-linkat.c (main): Avoid collision with EEXIST.
69488         getopt: fix inclusion guards for cygwin
69489         * modules/getopt-posix (Depends-on): Add include-next.
69490         (Makefile.am): Substitute more items in replacement header.
69491         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
69492         <getopt.h>.
69493         * lib/getopt.in.h (includes): Use split inclusion guard, and
69494         prefer <getopt.h> over include <unistd.h> when one is present.
69495         (option): Also override name of 'struct option'.
69497         same-inode: revert prior change; it is not yet ready
69498         * NEWS: Undo mention of this change.
69499         * lib/same-inode.h (same-inode.h): Undo tri-state change.
69500         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
69501         * lib/cycle-check.c (cycle_check): Likewise.
69502         * lib/same.c (same_name): Likewise.
69503         * lib/at-func2.c (at_func2): Likewise.
69505 2009-09-23  Eric Blake  <ebb9@byu.net>
69507         linkat: new module
69508         * modules/linkat: New file.
69509         * lib/at-func2.c (at_func2): Likewise.
69510         * lib/linkat.c (linkat): Likewise.
69511         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
69512         * lib/openat-priv.h (at_func2): Add declaration.
69513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
69514         * modules/unistd (Makefile.am): Substitute them.
69515         * lib/unistd.in.h (linkat): Declare it.
69516         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
69517         * doc/posix-functions/linkat.texi (linkat): Likewise.
69518         * doc/posix-functions/link.texi (link): Tweak wording.
69519         * tests/test-link.c (main): Move guts...
69520         * tests/test-link.h (test_link): ...into new file.
69521         * modules/linkat-tests: New test.
69522         * tests/test-linkat.c: Likewise.
69523         * modules/link-tests (Files): Ship new file.
69524         (Depends-on): Add stdbool.
69526         dirname: add library-safe mdir_name
69527         * lib/dirname.h (mdir_name): New prototype.
69528         * lib/dirname.c (dir_name): Move guts...
69529         (mdir_name): ...to new function that avoids xalloc_die.
69531         fchdir: another mingw fix
69532         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
69533         * lib/fchdir.c (get_name): New helper method; skips canonicalize
69534         on mingw (where it has not yet been ported), and make it optional
69535         elsewhere.
69536         (_gl_register_fd): Use it.
69538         same-inode: make SAME_INODE tri-state, to port to mingw
69539         * NEWS: Mention this change.
69540         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
69541         st_ino always being 0.
69542         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
69543         * lib/cycle-check.c (cycle_check): Likewise.
69544         * lib/same.c (same_name): Likewise.
69546         lstat: avoid mingw compilation error
69547         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
69548         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
69549         lstat ourselves.
69550         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
69551         was adequate.
69552         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
69553         the checks for lstat.
69554         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
69556         link: fix test failure on Solaris 9
69557         * lib/link.c (rpl_link): Don't assume link will catch bogus
69558         trailing slash on source.
69560         test-symlinkat: enhance test
69561         * tests/test-readlink.c (main): Move guts...
69562         * tests/test-readlink.h (test_readlink): ...into new file.
69563         * tests/test-symlink.c (main): Move guts...
69564         * tests/test-symlink.h (test_symlink): ...into new file.
69565         * tests/test-symlinkat.c (main): Use new files for further
69566         coverage.
69567         (do_symlink, do_readlink): New helper functions.
69568         * modules/symlink-tests (Files): Ship new file.
69569         (Depends-on): Add stdbool.
69570         * modules/readlink-tests (Files): Ship new file.
69571         (Depends-on): Add stdbool.
69572         * modules/symlinkat-tests (Files): Use new files.
69574 2009-09-23  Eric Blake  <ebb9@byu.net>
69576         readlink: document portability issue with symlink length
69577         * doc/posix-functions/lstat.texi (lstat): Mention that some file
69578         systems have bogus st_size on symlinks, and mention the
69579         areadlink-with-size module.
69580         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
69581         * doc/posix-functions/readlink.texi (readlink): Mention the
69582         areadlink module, and ERANGE failure.
69583         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
69584         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
69586         readlink: fix Solaris 9 bug with trailing slash
69587         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
69588         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
69589         * doc/posix-functions/readlink.texi (readlink): Document this.
69590         * modules/readlink-tests: New test.
69591         * tests/test-readlink.c: Likewise.
69593         readlink: fix cygwin 1.5.x bug with return type
69594         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
69595         * lib/unistd.in.h (readlink): Use ssize_t.
69596         * lib/readlink.c (readlink): Likewise.
69597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
69598         * modules/unistd (Makefile.am): Substitute it.
69599         * lib/unistd.in.h (readlink): Declare replacement.
69600         * doc/posix-functions/readlink.texi (readlink): Document this.
69602         symlink: use throughout gnulib
69603         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
69604         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
69605         symlink is not used.
69606         * modules/symlinkat (Depends-on): Add symlink.
69607         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
69608         * modules/canonicalize-tests (Depends-on): Likewise.
69609         * modules/lstat-tests (Depends-on): Likewise.
69610         * modules/openat-tests (Depends-on): Likewise.
69611         * modules/remove-tests (Depends-on): Likewise.
69612         * modules/rmdir-tests (Depends-on): Likewise.
69613         * modules/unlink-tests (Depends-on): Likewise.
69614         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
69615         * tests/test-canonicalize.c (symlink): Likewise.
69616         * tests/test-fstatat.c (symlink): Likewise.
69617         * tests/test-lstat.c (symlink): Likewise.
69618         * tests/test-remove.c (symlink): Likewise.
69619         * tests/test-rmdir.c (symlink): Likewise.
69620         * tests/test-unlink.c (symlink): Likewise.
69621         * tests/test-unlinkat.c (symlink): Likewise.
69623         symlink: new module, for Solaris 9 bug
69624         * modules/symlink: New file.
69625         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
69626         * lib/symlink.c: Likewise.
69627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
69628         * modules/unistd (Makefile.am): Substitute them.
69629         * lib/unistd.in.h (symlink): Declare replacement.
69630         * MODULES.html.sh (File system functions): Mention it.
69631         * doc/posix-functions/symlink.texi (symlink): Likewise.
69632         * modules/symlink-tests: New test.
69633         * tests/test-symlink.c: Likewise.
69635 2009-09-23  Bruno Haible  <bruno@clisp.org>
69637         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
69638         when needed.
69639         Test case: gnulib-tool --import --with-tests atexit inttypes.
69640         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
69642 2009-09-23  Bruno Haible  <bruno@clisp.org>
69644         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
69645         subcommand, not in a subshell.
69647 2009-09-22  Eric Blake  <ebb9@byu.net>
69649         unistd: sort replacement declarations
69650         * lib/unistd.in.h: Sort declarations.
69652         open, openat: minor optimization
69653         * lib/open.c (open): If open succeeded, len is non-zero.
69654         * lib/openat.c (rpl_openat): Likewise.
69656         link-follow: ensure correct result
69657         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
69658         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
69659         distinguish between possible failures.
69661 2009-09-21  Eric Blake  <ebb9@byu.net>
69663         fts: avoid compiler warning
69664         * lib/fts.c (dirent_inode_sort_may_be_useful)
69665         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
69667 2009-09-19  Bruno Haible  <bruno@clisp.org>
69669         * lib/progreloc.c (canonicalize_file_name): New declaration.
69671 2009-09-19  Eric Blake  <ebb9@byu.net>
69673         link: fix quoting
69674         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
69676         openat: fix openat bugs on Solaris 9
69677         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
69678         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
69679         * modules/openat (Depends-on): Add open.
69680         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
69681         * modules/fcntl-h (Makefile.am): Substitute it.
69682         * lib/fcntl.in.h (openat): Declare replacement.
69683         * doc/posix-functions/openat.texi (openat): Document this.
69685         openat: move fstatat and unlinkat into correct files
69686         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
69687         compiled.
69688         * lib/openat.c (fstatat, unlinkat): Move...
69689         * lib/fstatat.c (fstatat): ...into correct files.
69690         * lib/unlinkat.c (unlinkat): Likewise.
69692         openat: fix unlinkat bugs on Solaris 9
69693         * lib/unlinkat.c (unlinkat): New file.
69694         * modules/openat (Depends-on): Add unlink.
69695         (Files): Distribute it.
69696         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
69697         trailing slash behavior is broken.
69698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
69699         * modules/unistd (Makefile.am): Substitute it.
69700         * lib/unistd.in.h (unlinkat): Declare replacement.
69701         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
69703         openat: fix fstatat bugs on Solaris 9
69704         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
69705         stat.
69706         * doc/posix-functions/fstatat.texi (fstatat): Document this.
69708         test-unlinkat: enhance test, to expose Solaris 9 bug
69709         * tests/test-unlink.c (main): Factor guts...
69710         * tests/test-unlink.h (test_rmdir_func): ...into new file.
69711         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
69712         * tests/test-rmdir.c (main): Adjust caller.
69713         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
69714         (unlinker): New helper function.
69715         (rmdirat): Enhance check.
69716         * modules/rmdir-tests (Depends-on): Add stdbool.
69717         * modules/unlink-tests (Depends-on): Likewise.
69718         (Files): Add test-unlink.h.
69719         * modules/openat-tests (Files): Likewise.
69720         (Depends-on): Add unlinkdir.
69722         test-fstatat: new test, to expose Solaris 9 bugs
69723         * tests/test-stat.c (main): Factor guts...
69724         * tests/test-stat.h (test_stat_func): ...into new file.
69725         * tests/test-lstat.c (main): Factor guts...
69726         * tests/test-lstat.h (test_lstat_func): ...into new file.
69727         * tests/test-fstatat.c: New file.
69728         * modules/stat-tests (Files): Add test-stat.h.
69729         * modules/lstat-tests (Files): Add test-lstat.h.
69730         (Depends-on): Add stdbool.
69731         * modules/openat-tests (Depends-on): Add pathmax.
69732         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
69733         (Makefile.am): Run new test.
69735         remove: new module, for mingw and Solaris 9 bugs
69736         * modules/remove: New file.
69737         * lib/remove.c: Likewise.
69738         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
69739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
69740         * modules/stdio (Makefile.am): Use them.
69741         * lib/stdio.in.h (remove): Declare replacement.
69742         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
69743         * doc/posix-functions/remove.texi (remove): Likewise.
69744         * modules/remove-tests: New test.
69745         * tests/test-remove.c: Likewise.
69747         unlink: new module, for Solaris 9 bug
69748         * modules/unlink: New file.
69749         * lib/unlink.c: Likewise.
69750         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
69751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
69752         * modules/unistd (Makefile.am): Use them.
69753         * lib/unistd.in.h (stat): Declare replacement.
69754         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
69755         * doc/posix-functions/unlink.texi (unlink): Likewise.
69756         * modules/unlink-tests: New test.
69757         * tests/test-unlink.c: Likewise.
69759         lstat: fix Solaris 9 bug
69760         * lib/lstat.c (lstat): Also check for trailing slash on
69761         non-symlink, non-directories.  Use stat module to simplify logic.
69762         * doc/posix-functions/lstat.texi (lstat): Document it.
69763         * modules/lstat-tests (Depends-on): Add errno, same-inode.
69764         (configure.ac): Check for symlink.
69765         * tests/test-lstat.c (main): Add more tests.
69767         stat: add as dependency to other modules
69768         * modules/chown (Depends-on): Add stat.
69769         * modules/euidaccess (Depends-on): Likewise.
69770         * modules/fchdir (Depends-on): Likewise.
69771         * modules/isdir (Depends-on): Likewise.
69772         * modules/link (Depends-on): Likewise.
69773         * modules/lstat (Depends-on): Likewise.
69774         * modules/mkdir-p (Depends-on): Likewise.
69775         * modules/modechange (Depends-on): Likewise.
69776         * modules/open (Depends-on): Likewise.
69777         * modules/readlink (Depends-on): Likewise.
69778         * modules/same (Depends-on): Likewise.
69780         stat: fix Solaris 9 bug
69781         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
69782         slash.
69783         * lib/stat.c (rpl_stat): Work around it.
69784         * doc/posix-functions/stat.texi (stat): Update documentation.
69786         stat: new module, for mingw bug
69787         * modules/stat: New file.
69788         * lib/stat.c: Likewise.
69789         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
69790         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
69791         * modules/sys_stat (Makefile.am): Use them.
69792         * lib/sys_stat.in.h (stat): Declare replacement.
69793         * lib/openat.c (fstatat): Deal with lstat and stat being function
69794         macros.
69795         * modules/openat (Depends-on): Add inline.
69796         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
69797         * doc/posix-functions/stat.texi (stat): Likewise.
69798         * modules/stat-tests: New test.
69799         * tests/test-stat.c: Likewise.
69801 2009-09-19  Jim Meyering  <meyering@redhat.com>
69803         syntax-check: detect unnecessary inclusion of canonicalize.h
69804         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
69806 2009-09-19  Eric Blake  <ebb9@byu.net>
69808         canonicalize-lgpl: adjust clients to use correct header
69809         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
69810         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
69811         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
69812         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
69813         * lib/progreloc.c (includes): Likewise.
69815 2009-09-19  Jim Meyering  <meyering@redhat.com>
69817         test-posixtm.c: correct a comment
69818         * tests/test-posixtm.c: Correct first-line comment.
69819         Spotted by Eric Blake.
69821 2009-09-16  Jim Meyering  <meyering@redhat.com>
69823         posixtm-tests: make T const-correct; add a test case
69824         * tests/test-posixtm.c (T): Declare const.
69825         Add a test for -(2^31+1).
69826         Remove useless can-succeed-only-in-2002 test.
69828         posixtm-tests: adjust the sole failing test
69829         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
69830         expected output matches what mktime now produces.  Cross-checked via
69831         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
69833         posixtm: move #ifdef'd tests into a new module
69834         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
69835         * tests/test-posixtm.c: ... this new file.
69836         * modules/posixtm-tests: New module.
69838 2009-09-19  Eric Blake  <ebb9@byu.net>
69840         openat: simplify use of at-func.c
69841         * lib/at-func.c (includes): Include prerequisites here, to
69842         simplify requirements on client files.
69843         * lib/openat-priv.h: Add double-inclusion guard.
69844         * lib/faccessat.c (includes): Simplify.
69845         * lib/fchmodat.c (includes): Likewise.
69846         * lib/fchownat.c (includes): Likewise.
69847         * lib/mkdirat.c (includes): Likewise.
69848         * lib/mkfifoat.c (includes): Likewise.
69849         * lib/symlinkat.c (includes): Likewise.
69851         openat: allow return of fd 0
69852         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
69853         * modules/save-cwd (Depends-on): Replace fcntl-safer with
69854         unistd-safer.
69855         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
69856         <fcntl.h>; this module does not leak fds.
69857         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
69858         must be allowed to return 0, leaving openat_safer to add the
69859         safety.
69860         (openat_permissive): Avoid writing to just-opened fd 2 if
69861         restoring the current directory fails.
69862         * lib/openat-die.c (openat_restore_fail): Add comment.
69863         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
69864         (save_cwd): Guarantee safe fd, but without use of open_safer.
69865         * tests/test-openat.c: New test.
69866         * modules/openat-tests (Files, Makefile.am): Distribute and build
69867         new file.
69869         relocatable-prog-wrapper: fix build
69870         * modules/relocatable-prog-wrapper (Files): Update name of
69871         canonicalize m4 file, broken on 2009-09-17.
69872         Reported by emad hajjar <aleppos@hotmail.com>.
69874 2009-09-19  Bruno Haible  <bruno@clisp.org>
69876         * lib/safe-alloc.h: Use the standard header with GPL copyright.
69877         * lib/safe-alloc.c: Likewise.
69878         Reported by Ian Beckwith <ianb@erislabs.net>.
69880 2009-09-18  Bruno Haible  <bruno@clisp.org>
69882         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
69883         Reported by <erobles@sensacd.com.mx>.
69885 2009-09-17  Eric Blake  <ebb9@byu.net>
69887         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
69888         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
69889         slashes when checking if last component is missing.
69890         * tests/test-canonicalize.c (main): Test this.
69892         canonicalize, canonicalize-lgpl: honor // if distinct from /
69893         * modules/canonicalize (Files): Add double-slash-root.m4.
69894         * modules/canonicalize-lgpl (Files): Likewise.
69895         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
69896         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
69897         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
69898         fallback definition.
69899         (canonicalize_filename_mode): Use it to protect //.
69900         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
69901         (__realpath): Likewise.
69902         * tests/test-canonicalize.c (main): Test this.
69903         * tests/test-canonicalize-lgpl.c (main): Likewise.
69904         * modules/canonicalize-tests (Depends-on): Add same-inode.
69905         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
69907         canonicalize-lgpl: fix glibc bug with trailing slash
69908         * m4/canonicalize-lgpl.m4: Move contents...
69909         * m4/canonicalize.m4: ...here.
69910         (gl_CANONICALIZE_LGPL): Factor realpath check...
69911         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
69912         glibc 2.3.5 bug, fixed 2005-04-27.
69913         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
69914         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
69915         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
69916         * modules/canonicalize-lgpl (Files): Manage file rename.
69917         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
69918         * modules/stdlib (Makefile.am): Substitute witness.
69919         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
69920         is needed.
69921         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
69922         replacement is required.
69923         * lib/canonicalize.c (canonicalize_file_name): Likewise.
69924         * doc/glibc-functions/canonicalize_file_name.texi
69925         (canonicalize_file_name): Document this.
69926         * doc/posix-functions/realpath.texi (realpath): Likewise.
69928         canonicalize-lgpl: reject non-directory with trailing slash
69929         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
69930         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
69931         catches failures in glibc 2.3.5.
69932         * tests/test-canonicalize.c (main): Likewise.
69934         canonicalize-lgpl: use native realpath if it works
69935         * lib/canonicalize-lgpl.c (realpath): Guard with
69936         FUNC_REALPATH_WORKS.
69937         * lib/stdlib.in.h (realpath): Make declaration optional based on
69938         HAVE_REALPATH.
69939         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
69940         native realpath works.
69941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
69942         * modules/stdlib (Makefile.am): Substitute witness.
69944         canonicalize, canonicalize-lgpl: use <stdlib.h>
69945         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
69946         (Include): Mention <stdlib.h>.
69947         (configure.ac): Mention functions we provide.
69948         * modules/canonicalize (configure.ac): Likewise.
69949         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
69950         realpath if canonicalize_file_name is missing.
69951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
69952         * modules/stdlib (Makefile.am): Substitute witnesses.
69953         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
69954         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
69955         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
69956         * NEWS: Document this.
69957         * doc/glibc-functions/canonicalize_file_name.texi
69958         (canonicalize_file_name): Likewise.
69959         * doc/posix-functions/realpath.texi (realpath): Likewise.
69960         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
69962         test-canonicalize: consolidate into single C program
69963         * tests/test-canonicalize.sh: Delete; move setup into...
69964         * tests/test-canonicalize.c (main): ...the program, making it
69965         easier to run in debugger.  Add some tests.
69966         * modules/canonicalize-tests (Files): Remove unused file.
69967         (Depends-on): Add progname.
69968         (configure.ac, Makefile.am): Simplify.
69970         test-canonicalize-lgpl: consolidate into single C program
69971         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
69972         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
69973         easier to run in debugger.  Add some tests.
69974         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
69975         (configure.ac, Makefile.am): Simplify.
69977         canonicalize: avoid resolvepath
69978         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
69979         unnecessary checks.
69980         * lib/canonicalize.c (includes): Simplify.
69981         (canonicalize_file_name): Drop resolvepath implementation.
69982         * modules/canonicalize (Depends-on): Drop filenamecat.
69984         canonicalize: don't lose errno
69985         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
69986         over calls to free.
69988         canonicalize: simplify errno handling
69989         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
69990         assignment.
69992         canonicalize, canonicalize-lgpl: update module dependencies
69993         * modules/canonicalize (Depends-on): Add extensions, lstat,
69994         pathmax, stdlib.
69995         (Files): Drop pathmax.h.
69996         (configure.ac): Adjust macro name.
69997         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
69998         lstat, stdlib, sys_stat.
69999         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
70000         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
70001         extensions.
70002         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
70003         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
70004         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
70005         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
70006         declaration, if available.
70007         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
70008         we can rely on the readlink module.
70009         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
70010         (includes): Use <unistd.h> unconditionally.
70012 2009-09-17  Eric Blake  <ebb9@byu.net>
70014         maint: make Include sections of modules consistent
70015         * modules/alloca: Use only header name; no need to list #include.
70016         * modules/alloca-opt: Likewise.
70017         * modules/arpa_inet: Likewise.
70018         * modules/canon-host: Likewise.
70019         * modules/configmake: Likewise.
70020         * modules/dirent: Likewise.
70021         * modules/eealloc: Likewise.
70022         * modules/environ: Likewise.
70023         * modules/fchdir: Likewise.
70024         * modules/fcntl: Likewise.
70025         * modules/fcntl-h: Likewise.
70026         * modules/gethrxtime: Likewise.
70027         * modules/gettime: Likewise.
70028         * modules/ignore-value: Likewise.
70029         * modules/inet_ntop: Likewise.
70030         * modules/inet_pton: Likewise.
70031         * modules/inttypes: Likewise.
70032         * modules/isnand-nolibm: Likewise.
70033         * modules/isnanf-nolibm: Likewise.
70034         * modules/mbchar: Likewise.
70035         * modules/mbfile: Likewise.
70036         * modules/mbiter: Likewise.
70037         * modules/mbuiter: Likewise.
70038         * modules/netdb: Likewise.
70039         * modules/netinet_in: Likewise.
70040         * modules/nproc: Likewise.
70041         * modules/pagealign_alloc: Likewise.
70042         * modules/poll: Likewise.
70043         * modules/printf-frexp: Likewise.
70044         * modules/pthread: Likewise.
70045         * modules/putenv: Likewise.
70046         * modules/random_r: Likewise.
70047         * modules/relocatable-prog: Likewise.
70048         * modules/search: Likewise.
70049         * modules/select: Likewise.
70050         * modules/selinux-h: Likewise.
70051         * modules/settime: Likewise.
70052         * modules/signal: Likewise.
70053         * modules/size_max: Likewise.
70054         * modules/socklen: Likewise.
70055         * modules/ssize_t: Likewise.
70056         * modules/stdarg: Likewise.
70057         * modules/stdbool: Likewise.
70058         * modules/stddef: Likewise.
70059         * modules/stdint: Likewise.
70060         * modules/stdio: Likewise.
70061         * modules/stdlib: Likewise.
70062         * modules/string: Likewise.
70063         * modules/strings: Likewise.
70064         * modules/sys_file: Likewise.
70065         * modules/sys_ioctl: Likewise.
70066         * modules/sys_select: Likewise.
70067         * modules/sys_socket: Likewise.
70068         * modules/sys_stat: Likewise.
70069         * modules/sys_time: Likewise.
70070         * modules/sys_times: Likewise.
70071         * modules/sys_utsname: Likewise.
70072         * modules/sys_wait: Likewise.
70073         * modules/sysexits: Likewise.
70074         * modules/time: Likewise.
70075         * modules/times: Likewise.
70076         * modules/tmpfile: Likewise.
70077         * modules/trim: Likewise.
70078         * modules/unistd: Likewise.
70079         * modules/wchar: Likewise.
70080         * modules/wctype: Likewise.
70082 2009-09-17  Bruno Haible  <bruno@clisp.org>
70084         Make getdate.y compile on QNX and NetBSD 5 / i386.
70085         * m4/getdate.m4 (gl_GETDATE): Conditionally define
70086         TIME_T_FITS_IN_LONG_INT.
70087         * lib/getdate.y (long_time_t): New type.
70088         (relative_time): Change type of 'seconds' field to long_time_t.
70089         (get_date): Update types of local variables. Check against overflow
70090         during conversion from long_time_t to time_t.
70091         Reported by Matt Kraai <kraai@ftbfs.org>
70092         and Hasso Tepper <hasso@netbsd.org>.
70094 2009-09-17  Bruno Haible  <bruno@clisp.org>
70096         * modules/COPYING: Update copyright years.
70097         * modules/README: Likeiwse.
70098         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
70099         Reported by Ian Beckwith <ianb@erislabs.net>.
70101 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
70103         * users.txt: Update references for gnuit package.
70105 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
70107         * m4/getdelim.m4: Fix typo in copyright line.
70109 2009-09-17  Bruno Haible  <bruno@clisp.org>
70111         * lib/atoll.c: Use the standard header with GPL copyright.
70112         * lib/argz.in.h: Likewise.
70113         * lib/glob.c: Likewise.
70114         * lib/glob-libc.h: Likewise.
70115         * lib/random_r.c: Likewise.
70116         * lib/siglist.h: Likewise.
70117         * lib/strsignal.c: Likewise.
70118         Reported by Ian Beckwith <ianb@erislabs.net>.
70120 2009-09-17  Eric Blake  <ebb9@byu.net>
70122         rmdir: ensure correct dependency order
70123         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
70125 2009-09-17  Bruno Haible  <bruno@clisp.org>
70127         Disable assertion that fails on NetBSD 5 / i386.
70128         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
70129         Reported by Sam Steingold <sds@gnu.org>
70130         and Hasso Tepper <hasso@netbsd.org>.
70132 2009-09-16  Eric Blake  <ebb9@byu.net>
70134         unlinkdir: port to mingw
70135         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
70136         on which no one can unlink a directory.
70138         stdlib: sort witness names
70139         * modules/stdlib (Makefile.am): Sort replacements.
70140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
70141         * lib/stdlib.in.h: Likewise.
70143         parse-duration-tests: avoid link failure
70144         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
70145         LIBINTL.
70146         Reported by Tom G. Christensen.
70148         openat-tests: ensure unlinkat behaves like rmdir
70149         * tests/test-rmdir.c (main): Factor guts...
70150         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
70151         * modules/rmdir-tests (Files): Ship new file.
70152         * modules/openat-tests: New test.
70153         * tests/test-unlinkat.c: Likewise.
70155         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
70156         * modules/rmdir-errno (Status, Notice): Now obsolete.
70158         rmdir: work around cygwin 1.5.x and mingw bugs
70159         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
70160         * lib/rmdir.c (rmdir): Work around it.
70161         * modules/rmdir (Status, Notice): No longer obsolete.
70162         (Files): Add dos.m4.
70163         (Depends-on): Add unistd.
70164         (configure.ac): Set witnesses.
70165         (License): Relax to LGPLv2+.
70166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
70167         * modules/unistd (Makefile.am): Substitute witnesses.
70168         * lib/unistd.in.h (rmdir): Declare replacement.
70169         * doc/posix-functions/rmdir.texi (rmdir): Document this.
70170         * modules/rmdir-tests: New tests.
70171         * tests/test-rmdir.c: Likewise.
70173 2009-09-15  Eric Blake  <ebb9@byu.net>
70175         fchdir: improve use of replacement functions
70176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
70177         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
70178         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
70179         REPLACE_CLOSEDIR.
70180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
70181         * modules/sys_stat (Makefile.am): Substitute correct witness.
70182         * modules/dirent (Makefile.am): Likewise.
70183         * modules/unistd (Makefile.am): Likewise.
70184         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
70185         * lib/unistd.in.h (dup): Likewise.
70186         * lib/sys_stat.in.h (fstat): Likewise.
70188         maint: ignore gnulib-tool temp files
70189         * .gitignore: Ignore files created during gnulib-tool --test.
70191 2009-09-13  Jim Meyering  <meyering@redhat.com>
70193         posixtm: don't reject a time that specify "60" as the number of seconds
70194         * lib/posixtm.c (posixtime): The code to reject invalid dates
70195         would also reject a time specified with the .60 suffix.
70196         But POSIX allows that, in order to accommodate leap seconds.
70197         So don't reject it.
70198         (main): Adjust tests accordingly.
70199         * modules/posixtm (Depends-on): Add stpcpy.
70201 2009-09-11  Jim Meyering  <meyering@redhat.com>
70203         announce-gen: include [$release_type] in emitted Subject:
70204         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
70205         e.g., [stable] in the emitted Subject: line.
70207 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70209         Remove obsolete macros from several modules.
70210         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
70211         obsolete Autoconf macros with their modern counterparts.
70212         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
70213         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
70214         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
70215         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70216         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
70217         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
70218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
70219         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
70220         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
70221         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
70222         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
70223         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
70224         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
70225         * m4/sockets.m4 (gl_SOCKETS): Likewise.
70226         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
70227         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
70228         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
70229         * m4/time_r.m4 (gl_TIME_R): Likewise.
70230         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
70231         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
70232         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70234         Fix copyright header in build-aux scripts.
70235         * build-aux/git-version-gen: Fix copyright header to match GPLv3
70236         recommendation.
70237         * build-aux/ncftpput-ftp: Likewise.
70238         * build-aux/update-copyright: Likewise.
70240 2009-09-09  Eric Blake  <ebb9@byu.net>
70242         test-link: allow Linux choice of errno
70243         * tests/test-link.c (main): Relax test for alternate error.
70245         strndup: fix improper m4 caching
70246         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
70247         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
70248         (gl_PREREQ_STRNDUP): Delete.
70249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
70250         * modules/string (Makefile.am): Substitute it.
70251         * lib/string.in.h (strndup): Modernize prototype.
70253         getcwd: port to mingw
70254         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
70255         different from the POSIX assumptions made throughout the getcwd
70256         module; fortunately, the mingw getcwd does not need replacement.
70257         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
70258         * modules/getcwd-tests: New test.
70259         * tests/test-getcwd.c: Likewise.
70261         link: fix platform bugs
70262         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
70263         * lib/link.c (link): Work around them.  Fix related mingw bug.
70264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
70265         * modules/unistd (Makefile.am): Substitute it.
70266         * lib/unistd.in.h (link): Declare replacement.
70267         * doc/posix-functions/link.texi (link): Document this.
70268         * modules/link (Depends-on): Add strdup-posix, sys_stat.
70270         test-link: consolidate into single C program, test more cases
70271         * tests/test-link.sh: Delete.
70272         * tests/test-link.c: Test more error conditions.  Exposes bugs on
70273         at least Cygwin and Solaris.
70274         * modules/link-tests (Files): Remove unused file.
70275         (Depends-on): Add errno, sys_stat.
70276         (Makefile.am): Simplify.
70278 2009-09-08  Bruno Haible  <bruno@clisp.org>
70280         Work around towlower, towupper bug on mingw.
70281         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
70282         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
70283         * doc/posix-functions/towlower.texi: Mention the mingw bug.
70284         * doc/posix-functions/towupper.texi: Likewise.
70285         Reported by Eric Blake.
70287 2009-09-08  Jim Meyering  <meyering@redhat.com>
70289         build: don't try to run autoheader if we don't use it
70290         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
70291         is not used in configure.ac.
70293 2009-09-08  Eric Blake  <ebb9@byu.net>
70295         euidaccess: fix compilation error
70296         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
70298         rawmemchr: relax license
70299         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
70300         okay.
70301         Reported by Jim Meyering.
70303         mkfifoat: new module
70304         * modules/mkfifoat: New file.
70305         * lib/mkfifoat.c: Likewise.
70306         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
70307         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
70308         * modules/sys_stat (Makefile.am): Use them.
70309         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
70310         * MODULES.html.sh (File system functions): Mention module.
70311         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
70312         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
70313         * modules/mkfifoat-tests: New test.
70314         * tests/test-mkfifoat.c: Likewise.
70316         strchrnul: relax license
70317         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
70318         okay.
70319         Reported by Jim Meyering.
70321 2009-09-08  Eric Blake  <ebb9@byu.net>
70323         fstatat: fix compilation on Solaris
70324         * lib/fstatat.c (includes): Add fcntl.h.
70325         Reported by Pádraig Brady.
70327 2009-09-07  Eric Blake  <ebb9@byu.net>
70329         rename: modernize replacement
70330         * modules/rename (Depends-on): Add stdio.
70331         (configure.ac): Declare witness.
70332         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
70333         stdio take care of replacement.
70334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
70335         * modules/stdio (Makefile.am): Substitute them.
70336         * lib/stdio.in.h (rename): Declare replacement.
70337         * lib/rename.c (includes): Allow cross-compilation to non-windows
70338         machines.
70339         * doc/posix-functions/rename.texi (rename): Improve
70340         documentation.
70342         stdio: sort witness names
70343         * modules/stdio (Makefile.am): Sort replacements.
70344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70345         * lib/stdio.in.h: Likewise.
70347         getcwd: minor cleanups
70348         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
70349         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
70351         openat: provide more convenience names
70352         * modules/faccessat (configure.ac): Add C witness.
70353         * lib/unistd.in.h (readlinkat): Fix typo.
70354         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
70355         convenience wrappers.
70356         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
70357         wrappers in syntax checks.
70359 2009-09-06  Eric Blake  <ebb9@byu.net>
70361         doc: fix comments in recent patches
70362         * lib/faccessat.c: Mention correct function.
70363         * lib/fchmodat.c: Likewise.
70364         * lib/fchownat.c: Likewise.
70365         * lib/symlinkat.c: Likewise.
70366         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
70367         constants.
70369         faccessat, symlinkat: continue cleanup of previous patch
70370         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
70371         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
70372         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
70373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
70374         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
70375         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
70376         set.
70378 2009-09-06  Bruno Haible  <bruno@clisp.org>
70380         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
70381         (fstatat): Declare if GNULIB_FSTATAT is set.
70382         (mkdirat): Declare if GNULIB_MKDIRAT is set.
70383         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
70384         (unlinkat): Declare if GNULIB_UNLINKAT is set.
70385         * modules/fcntl-h (Files): Remove m4/openat.m4.
70386         * modules/sys_stat (Files): Remove m4/openat.m4.
70387         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
70388         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
70389         * modules/unistd (Files): Remove m4/openat.m4.
70390         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
70391         GNULIB_OPENAT.
70392         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
70393         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
70394         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
70395         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
70396         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
70397         gl_OPENAT_DEFAULTS.
70398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
70399         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
70400         Don't require gl_OPENAT_DEFAULTS.
70401         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
70402         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
70403         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
70404         (gl_OPENAT_DEFAULTS): Remove macro.
70406 2009-09-06  Bruno Haible  <bruno@clisp.org>
70408         * modules/openat (configure.ac): Remove unneeded witness.
70410 2009-09-06  Bruno Haible  <bruno@clisp.org>
70412         Set errno to ENOSYS when a function is entirely unsupported.
70413         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
70414         EOPNOTSUPP.
70415         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
70416         * modules/chown (Depends-on): Remove errno.
70418 2009-09-06  Bruno Haible  <bruno@clisp.org>
70420         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
70422 2009-09-06  Bruno Haible  <bruno@clisp.org>
70424         * lib/sys_stat.in.h: Fix preprocessor command indentation.
70426 2009-09-06  Ben Pfaff  <blp@gnu.org>
70427             Bruno Haible  <bruno@clisp.org>
70429         Work around a glibc bug in strtok_r.
70430         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
70431         Undefine if UNDEFINE_STRTOK_R is set.
70432         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
70433         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70434         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
70435         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
70436         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
70437         UNDEFINE_STRTOK_R.
70438         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
70440 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
70442         exclude: minor fix
70443         * lib/exclude.c: Include wctype.h
70445 2009-09-06  Akim Demaille  <demaille@gostai.com>
70447         bootstrap: improve error message
70448         * build-aux/bootstrap (find_tool): Upon failure, report the list
70449         of candidates.
70450         Honor the initial value of the envvar.
70452 2009-09-05  Eric Blake  <ebb9@byu.net>
70454         symlinkat: new module
70455         * modules/symlinkat: New file.
70456         * lib/symlinkat.c: Likewise.
70457         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
70458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
70459         * modules/unistd (Makefile.am): Use them.
70460         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
70461         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
70462         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
70463         * MODULES.html.sh (File system functions): Mention module.
70464         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
70465         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
70466         * modules/symlinkat-tests: New test.
70467         * tests/test-symlinkat.c: Likewise.
70469         test-openat-safer: add more checks
70470         * tests/test-openat-safer.c (main): Check more code paths.
70472 2009-09-05  Jim Meyering  <meyering@redhat.com>
70474         syntax-check: detect unnecessary inclusion of openat.h
70475         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
70477 2009-09-05  Bruno Haible  <bruno@clisp.org>
70479         Support towlower, towupper.
70480         * doc/posix-functions/towlower.texi: Mention module wctype.
70481         * doc/posix-functions/towupper.texi: Likewise.
70482         * lib/wctype.in.h (towlower, towupper): New functions.
70483         * tests/test-wctype.c: Include stdio.h, stdlib.h.
70484         (ASSERT): New macro.
70485         (e): New variable.
70486         (main): Test also towlower, towupper. Test WEOF argument.
70487         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
70489 2009-09-05  Bruno Haible  <bruno@clisp.org>
70491         Fix conversion behaviour when the input is invalid.
70492         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
70493         mark occurring in first pass of indirect conversion.
70494         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
70495         input.
70496         Found by clang's static analyzer.
70498 2009-09-05  Bruno Haible  <bruno@clisp.org>
70500         * tests/test-striconveh.c (main): Test indirect conversion on platforms
70501         where direct conversion is possible.
70503 2009-09-04  Eric Blake  <ebb9@byu.net>
70505         openat: fail with ENOENT on empty name
70506         * lib/openat-proc.c (openat_proc_name): Special-case the empty
70507         buffer.
70509         link-follow: fix logic bug in prior patch
70510         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
70511         reversed sense of yes and no in prior patch.  Avoid confusing
70512         compilation failure with desired semantics.
70514         link-follow: accommodate mingw and cross-compilation
70515         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
70516         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
70517         cross-compilation results to -1, to make linkat easier to
70518         implement when cross-compiling.  Trivially support mingw.
70519         * modules/link-follow (configure.ac): Call new name.
70520         * NEWS: Mention this.
70522 2009-09-03  Eric Blake  <ebb9@byu.net>
70524         faccessat: compile replacement
70525         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
70526         needed.
70528         fts: fix compilation error
70529         * lib/fts.c (includes): Re-add "openat.h", for
70530         openat_needs_fchdir.
70532         faccessat: new module
70533         * modules/faccessat: New file.
70534         * lib/faccessat.c: Likewise.
70535         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
70536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
70537         * modules/unistd (Makefile.am): Use it.
70538         * lib/unistd.in.h (faccessat): Declare it.
70539         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
70540         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
70541         * MODULES.html.sh (File system functions): Mention it.
70542         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
70543         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
70545         euidaccess: prefer POSIX over non-standard implementation
70546         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
70547         * lib/euidaccess.c (euidaccess): Use it if available.
70549         openat: make template easier to use
70550         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
70551         AT_FUNC_F2 to be undefined.
70552         (VALIDATE_FLAG): New macro; use it to reject bad flags.
70553         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
70554         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
70555         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
70556         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
70557         Likewise.
70558         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
70559         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
70560         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
70561         Likewise.
70563         openat: declare in POSIX headers
70564         * NEWS: Mention this.
70565         * modules/openat (configure.ac): Declare witnesses.
70566         (Depends-on): Add fcntl-h, sys_stat, unistd.
70567         (Include): Mention correct headers.
70568         * modules/fcntl-h (Depends-on): Add link-warning.
70569         (Files): Add openat.m4.
70570         (Makefile.am): Substitute witnesses.
70571         * modules/sys_stat (Files, Makefile.am): Likewise.
70572         * modules/unistd (Files, Makefile.am): Likewise.
70573         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
70574         (gl_OPENAT_DEFAULTS): New macro.
70575         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
70576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
70577         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
70578         (SYS_STAT_H): Remove unused variable.
70579         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
70580         * lib/fcntl--.h (includes): Remove unneeded header.
70581         * lib/openat-safer.c (includes): Likewise.
70582         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
70583         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
70584         appropriate headers.
70585         (__OPENAT_PREFIX): Delete.
70586         * lib/fcntl.in.h (openat): Provide declaration.
70587         (AT_FDCWD): Fix Solaris bug.
70588         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
70589         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
70590         * lib/fchmodat.c (includes):  Adjust to find declaration.
70591         * lib/fchownat.c (includes): Likewise.
70592         * lib/mkdirat.c (includes): Likewise.
70593         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
70594         still visible.
70596 2009-09-02  Eric Blake  <ebb9@byu.net>
70598         errno: use consistently
70599         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
70600         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
70601         * lib/canonicalize.c (ELOOP): Likewise.
70602         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
70603         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
70604         * lib/lchown.c (EOPNOTSUPP): Likewise.
70605         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
70606         * lib/savewd.c (ESTALE): Likewise.
70607         * lib/settime.c (ENOSYS): Likewise.
70608         * lib/utimens.c (ENOSYS): Likewise.
70609         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
70610         * lib/chdir-safer.c (ELOOP): Likewise.
70611         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
70612         * modules/c-stack (Depends-on): Add errno.
70613         * modules/canonicalize (Depends-on): Likewise.
70614         * modules/chdir-safer (Depends-on): Likewise.
70615         * modules/fdopendir (Depends-on): Likewise.
70616         * modules/inet_ntop (Depends-on): Likewise.
70617         * modules/inet_pton (Depends-on): Likewise.
70618         * modules/lchown (Depends-on): Likewise.
70619         * modules/openat (Depends-on): Likewise.
70620         * modules/savewd (Depends-on): Likewise.
70621         * modules/settime (Depends-on): Likewise.
70622         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
70624         fts: avoid leaking fds
70625         * modules/fts (Depends-on): Add cloexec.
70626         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
70627         flag.
70629         fts: make directory fds more robust
70630         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
70631         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
70633         backupfile, chdir-long, fts, savedir: make safer
70634         * lib/backupfile.c (includes): Use "dirent--.h", since
70635         numbered_backup can write to stderr during readdir.
70636         * lib/savedir.c (includes): Likewise.
70637         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
70638         emulation can write to stderr on failure.
70639         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
70640         * lib/getcwd.c: Document why opendir_safer is unused.
70641         * lib/glob.c: Likewise.
70642         * lib/scandir.c: Likewise.
70643         * lib/openat-proc.c: Likewise, for open_safer.
70644         * modules/backupfile (Depends-on): Add dirent-safer.
70645         * modules/savedir (Depends-on): Likewise.
70646         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
70647         * modules/chdir-long (Depends-on): Add openat-safer.
70649         openat-safer: new module
70650         * modules/openat-safer: New file.
70651         * lib/openat-safer.c: Likewise.
70652         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
70653         * lib/fcntl-safer.h (openat_safer): Declare.
70654         * lib/fcntl--.h (openat): Override.
70655         * MODULES.html.sh (File descriptor based I/O): Mention it.
70656         * lib/openat.h: Add double-inclusion guards.
70657         * lib/openat.c (includes): Only include "fcntl-safer.h", not
70658         "fcntl--.h", so we can implement openat.
70659         * modules/openat-safer-tests: New test.
70660         * tests/test-openat-safer.c: New file.
70662         dirent-safer: new module
70663         * modules/dirent-safer: New file.
70664         * lib/dirent--.h: Likewise.
70665         * lib/dirent-safer.h: Likewise.
70666         * lib/opendir-safer.c: Likewise.
70667         * m4/dirent-safer.m4: Likewise.
70668         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
70669         * modules/dirent-safer-tests: New test.
70670         * tests/test-dirent-safer.c: New file.
70671         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
70673         fdopendir: optimize on mingw
70674         * lib/unistd.in.h (_gl_directory_name): New prototype.
70675         * lib/fchdir.c (_gl_directory_name): Implement it.
70676         (fchdir): Use it to simplify implementation.
70677         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
70678         fchdir, when available, to avoid calling [f]chdir().
70680         fdopendir: split into its own module
70681         * lib/openat.c (fdopendir): Move...
70682         * lib/fdopendir.c: ...into new file.
70683         * modules/fdopendir: New module.
70684         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
70685         * modules/openat (Depends-on): Add fdopendir.
70686         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
70687         fdopendir here.
70688         * modules/savedir (Depends-on): Only need fdopendir, not full
70689         openat.
70690         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
70691         * lib/openat.h (fdopendir): Drop prototype.
70692         * lib/dirent.in.h (fdopendir): Provide prototype.
70693         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
70694         * modules/dirent (Makefile.am): Substitute them.
70695         * MODULES.html.sh (File system functions): Mention it.
70696         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
70697         * modules/fdopendir-tests: New file.
70698         * tests/test-fdopendir.c: Likewise.
70700         fchdir: use more consistent macro convention
70701         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
70702         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
70703         REPLACE_FCHDIR, rather than relying on config.h macros.
70704         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
70705         inside a single make-time REPLACE_FCHDIR block, rather than using
70706         the config.h FCHDIR_REPLACEMENT.
70707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
70708         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
70709         Manage fstat replacement.
70710         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
70711         REPLACE_FCHDIR.
70712         * modules/sys_stat (Files): Add m4/unistd_h.m4.
70713         (Makefile.am): Substitute REPLACE_FCHDIR.
70714         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
70715         FCHDIR_REPLACEMENT.
70716         * lib/dup-safer.c (dup_safer): Likewise.
70717         * lib/dup2.c (rpl_dup2): Likewise.
70718         * lib/dup3.c (rpl_dup3): Likewise.
70719         * lib/open.c (rpl_open): Likewise.
70721         fchdir: simplify error handling, and support dup3
70722         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
70723         stdbool, malloc-posix, realloc-posix.
70724         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
70725         (ensure_dirs_slot): Return false on allocation failure.
70726         (rpl_dup2): Delete.
70727         (_gl_register_dup): New function.
70728         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
70729         (_gl_register_fd): Close fd on allocation failure.
70730         * lib/fcntl.in.h (_gl_register_fd): Update signature.
70731         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
70732         prototype.
70733         (rpl_dup2_fchdir): Delete prototype.
70734         * lib/open.c (open): Update caller.
70735         * lib/dup2.c (dup2): Track fchdir metadata.
70736         * lib/dup3.c (dup3): Likewise.
70737         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
70738         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
70740 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70742         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
70743         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
70744         don't pass arguments to AC_OUTPUT.
70746 2009-09-02  Bruno Haible  <bruno@clisp.org>
70748         * modules/mkdtemp (License): Relicense under LGPLv2+.
70749         Reported by Paolo Bonzini.
70751 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70753         Replace uses of obsolete autoconf macros in Jim's modules.
70754         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
70755         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
70756         can evoke a warning from autoconf when run with -Wobsolete
70757         enabled.  They were declared obsolete for good reasons (see
70758         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
70759         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
70760         should not continue using the deprecated macros.
70761         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
70762         obsolete Autoconf macros with modern counterparts.
70763         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70764         * m4/dos.m4 (gl_AC_DOS): Likewise.
70765         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
70766         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
70767         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
70768         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
70769         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
70770         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
70771         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
70772         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
70773         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
70774         Likewise.
70775         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
70776         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70777         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
70778         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
70779         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70780         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70782 2009-09-01  Eric Blake  <ebb9@byu.net>
70784         fchdir: fix off-by-one bug in previous patch
70785         * lib/fchdir.c (rpl_fstat): Use correct bounds.
70786         (_gl_unregister_fd): Delete useless if.
70788 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
70790         maint.mk: sort the list of syntax-check rules
70791         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
70792         easier to get a sense of progress when the rules are run sequentially
70793         and take a long time.
70795 2009-09-01  Simon Josefsson  <simon@josefsson.org>
70797         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
70798         * modules/netinet_in: Likewise.
70799         * modules/sys_file: Likewise.
70800         * modules/sys_ioctl: Likewise.
70801         * modules/sys_select: Likewise.
70802         * modules/sys_socket: Likewise.
70803         * modules/sys_stat: Likewise.
70804         * modules/sys_time: Likewise.
70805         * modules/sys_times: Likewise.
70806         * modules/sys_utsname: Likewise.
70807         * modules/sys_wait: Likewise.
70809 2009-09-01  Jim Meyering  <meyering@redhat.com>
70811         fts: help ensure that return values are not ignored
70812         * lib/fts_.h (__GNUC_PREREQ): Define.
70813         (__attribute_warn_unused_result__): Define.
70814         (fts_children, fts_close, fts_open, fts_read): Declare with
70815         __attribute_warn_unused_result__.
70817         fts: fts_close now fails also when closing a dir file descriptor fails
70818         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
70819         and propagate to caller, along with errno.
70821         announce-gen: correct formatting in --help output
70822         * build-aux/announce-gen (usage): Move the one-line description in
70823         --help output "up", to where it belongs, just after Usage:.
70825 2009-08-31  Eric Blake  <ebb9@byu.net>
70827         fchdir: port to mingw
70828         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
70829         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
70830         opened, then use a substitute.
70831         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
70832         replacement.
70833         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
70834         (_gl_register_fd): No need to check stat if open already filters
70835         all directories.
70836         (fchdir): Fix error condition to match POSIX.
70837         * modules/fchdir (Depends-on): Add sys_stat.
70838         * doc/posix-functions/open.texi (open): Document the limitation.
70839         * modules/fchdir-tests: New file.
70840         * tests/test-fchdir.c: Likewise.
70842         canonicalize: allow cross-testing from cygwin to mingw
70843         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
70844         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
70845         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
70846         Likewise.
70847         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
70848         target does not support symlinks.
70849         * tests/test-canonicalize-lgpl.sh: Likewise.
70851         chown: avoid compilation warning on mingw
70852         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
70853         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
70854         mingw.
70855         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
70856         * modules/chown (Depends-on): Add errno.
70858 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
70860         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
70861         command.
70863 2009-08-31  Jim Meyering  <meyering@redhat.com>
70865         canonicalize: remove useless initialization
70866         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
70867         initialization of local, "end".
70869 2009-08-30  Bruno Haible  <bruno@clisp.org>
70871         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
70872         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
70873         ENOSYS.
70875 2009-08-30  Bruno Haible  <bruno@clisp.org>
70877         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
70878         /usr/xpg4/bin/tr when it exists.
70879         * tests/test-pipe-filter-gi1.sh: Likewise.
70881 2009-08-30  Bruno Haible  <bruno@clisp.org>
70883         Work around deficient /usr/bin/id program on Solaris.
70884         * tests/test-file-has-acl.sh (ID): New variable.
70885         * tests/test-set-mode-acl.sh (ID): Likewise.
70886         * tests/test-copy-acl.sh (ID): Likewise.
70887         * tests/test-copy-file.sh (ID): Likewise.
70889 2009-08-30  Bruno Haible  <bruno@clisp.org>
70891         New module 'xstriconveh'.
70892         * lib/xstriconveh.h: New file.
70893         * lib/xstriconveh.c: New file.
70894         * modules/xstriconveh: New file.
70896 2009-08-30  Bruno Haible  <bruno@clisp.org>
70898         Make it easier to use mem_cd_iconveh.
70899         * lib/striconveh.h (iconveh_t): New type.
70900         (iconveh_open, iconveh_close): New declarations.
70901         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
70902         with a single 'const iconveh_t *' argument.
70903         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
70904         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
70905         with a single 'const iconveh_t *' argument.
70906         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
70907         * tests/test-striconveh.c (main): Update.
70908         * NEWS: Mention the change.
70910 2009-08-30  Bruno Haible  <bruno@clisp.org>
70912         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
70913         problem.
70915 2009-08-30  Bruno Haible  <bruno@clisp.org>
70917         Work around iconv_open problem on Solaris.
70918         * lib/iconv_open-solaris.gperf: New file.
70919         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
70920         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
70921         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
70922         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
70923         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
70924         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
70926 2009-08-29  Jim Meyering  <meyering@redhat.com>
70928         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
70929         * top/maint.mk (cvs-check): Remove target; it was just an alias
70930         to the better-named vc-diff-check.
70931         (maintainer-distcheck): Remove rule.  It was used only from
70932         the (alpha/beta/major) target, and all of its commands but one
70933         were coreutils-specific.
70934         (vc-dist): Remove rule.
70935         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
70936         Run vc-diff-check, not vc-dist.
70937         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
70939 2009-08-27  Bruno Haible  <bruno@clisp.org>
70941         * tests/test-bitrotate.c (main): Remove test that uses a shift count
70942         of 0.
70944 2009-08-27  Bruno Haible  <bruno@clisp.org>
70946         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
70947         compilers.
70948         * doc/func.texi: Document the SunPRO C bug.
70950 2009-08-27  Bruno Haible  <bruno@clisp.org>
70952         Fix link error on Solaris.
70953         * tests/test-parse-duration.c (xstrdup): Remove function.
70955 2009-08-26  Pádraig Brady  <P@draigbrady.com>
70957         ignore-value: handle pointer types, too
70958         * lib/ignore-value.h (__attribute__): Remove definition.
70959         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
70960         of a more concise and more-often effective "(void) i" statement.
70961         (ignore_ptr): New function to suppress warnings from functions that
70962         return pointers, and to make it explicit that one function doesn't
70963         handle all cases.
70965 2009-08-25  Bruno Haible  <bruno@clisp.org>
70967         dup2: work around a Linux bug.
70968         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
70969         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
70970         * doc/posix-functions/dup2.texi: Mention the Linux bug.
70971         Reported by Simon Josefsson.
70973 2009-08-25  Jim Meyering  <meyering@redhat.com>
70975         libguestfs uses gnulib
70976         * users.txt: Add libguestfs.
70978 2009-08-24  Eric Blake  <ebb9@byu.net>
70980         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
70981         * lib/pipe2.c (includes): Add binary-io.h.
70982         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
70984 2009-08-24  Bruno Haible  <bruno@clisp.org>
70986         Tolerate declared but missing accept4 syscall.
70987         * lib/accept4.c (accept4): Invoke original accept4 function first, if
70988         available.
70989         * lib/sys_socket.in.h (accept4): If the function is already present,
70990         override it.
70991         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
70992         * modules/accept4 (Makefile.am): Compile accept4.c always.
70993         Reported by Paolo Bonzini and Eric Blake.
70995 2009-08-23  Bruno Haible  <bruno@clisp.org>
70997         New module 'accept4'.
70998         * lib/sys_socket.in.h (accept4): New declaration.
70999         * lib/accept4.c: New file.
71000         * m4/accept4.m4: New file.
71001         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
71002         GNULIB_ACCEPT4, HAVE_ACCEPT4.
71003         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
71004         HAVE_ACCEPT4.
71005         * modules/accept4: New file.
71006         * doc/glibc-functions/accept4.texi: Mention the new module.
71008 2009-08-24  Jim Meyering  <meyering@redhat.com>
71010         progname: also set global program_invocation_name, when possible
71011         Before this change, a libtool-enabled program that calls glibc's
71012         error function would report the program name as
71013         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
71014         * modules/progname (configure.ac): Check for a declaration of
71015         program_invocation_name.
71016         * lib/progname.c:  Include <errno.h>.
71017         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
71018         Set program_invocation_name.
71020 2009-08-23  Bruno Haible  <bruno@clisp.org>
71022         * lib/dup3.c: Include <string.h>.
71024 2009-08-23  Bruno Haible  <bruno@clisp.org>
71026         * lib/dup3.c (dup3): Test only once whether the system actually exists.
71027         * lib/pipe2.c (pipe2): Likewise.
71028         Suggested by Eric Blake.
71030 2009-08-23  Bruno Haible  <bruno@clisp.org>
71032         Tolerate declared but missing dup3 syscall.
71033         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
71034         * lib/unistd.in.h (dup3): If the function is already present,
71035         override it.
71036         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
71037         * modules/dup3 (Makefile.am): Compile dup3.c always.
71038         Reported by Paolo Bonzini.
71040 2009-08-23  Bruno Haible  <bruno@clisp.org>
71042         Tolerate declared but missing pipe2 syscall.
71043         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
71044         available.
71045         * lib/unistd.in.h (pipe2): If the function is already present,
71046         override it.
71047         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
71048         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
71049         Reported by Paolo Bonzini.
71051 2009-08-23  Bruno Haible  <bruno@clisp.org>
71053         * lib/pipe2.c (pipe2): Move #ifs inside function.
71055 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
71057         quotearg: document limitations of quote_these_too
71058         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
71059         those limitations are created.
71060         * lib/quotearg.h (set_char_quoting): Document that digits and
71061         letters that are special after backslash are not permitted.
71062         (quotearg_char): Cross-reference set_char_quoting documentation.
71064 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
71066         quotearg: implement custom_quoting_style
71067         * lib/quotearg.c: (struct quoting_options): Add left_quote and
71068         right_quote fields.
71069         (set_custom_quoting): New public function.
71070         (quotearg_buffer_restyled): Add left_quote and right_quote
71071         arguments, handle them very much like locale quoting, and update
71072         all uses.
71073         (quotearg_n_custom): New public function.
71074         (quotearg_n_custom_mem): New public function.
71075         (quotearg_custom): New public function.
71076         (quotearg_custom_mem): New public function.
71077         * lib/quotearg.h: Prototype and document new public functions.
71078         (enum quoting_style): For escape_quoting_style and
71079         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
71080         ignored even though they're otherwise like c_quoting_style.
71081         Add custom_quoting_style member and document with comparison to
71082         clocale_quoting_style.
71083         * tests/test-quotearg.c (custom_quotes): New array.
71084         (custom_results): New array.
71085         (main): Extend to test custom quoting.
71087 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
71089         quotearg: fix right quote escaping when it's in quote_these_too
71090         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
71091         quote, be sure to prepend only one backslash.
71092         * tests/test-quotearg.c (use_quote_double_quotes): New function.
71093         (main): Test it.
71095 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
71097         quotearg-tests: test escaping of embedded locale quotes
71098         * tests/test-quotearg.c (struct result_strings): Add member for
71099         new input.
71100         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
71101         (inputs): Add new input.
71102         (results_g): Add expected results.
71103         (flag_results): Likewise.
71104         (locale_results): Likewise.
71105         (compare_strings): Check those.
71107 2009-08-23  Bruno Haible  <bruno@clisp.org>
71109         Tests for module 'dup3'.
71110         * modules/dup3-tests: New file.
71111         * tests/test-dup3.c: New file.
71113         New module 'dup3'.
71114         * lib/unistd.in.h (dup3): New declaration.
71115         * lib/dup3.c: New file.
71116         * m4/dup3.m4: New file.
71117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
71118         HAVE_DUP3.
71119         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
71120         * modules/dup3: New file.
71121         * doc/glibc-functions/dup3.texi: Mention the new module.
71123 2009-08-23  Bruno Haible  <bruno@clisp.org>
71125         Tweak the dup2 test.
71126         * tests/test-dup2.c (main): Create the test file empty. Verify that an
71127         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
71128         the test file is still empty. Fix argument order of lseek.
71130 2009-08-23  Bruno Haible  <bruno@clisp.org>
71132         Avoid test link errors when the modules getopt-gnu, gettext are used.
71133         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
71134         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
71136 2009-08-23  Bruno Haible  <bruno@clisp.org>
71138         Fix getdtablesize() on mingw.
71139         * lib/getdtablesize.c (getdtablesize): Implement differently.
71140         * lib/unistd.in.h (getdtablesize): Improve comment.
71142 2009-08-23  Bruno Haible  <bruno@clisp.org>
71144         New module 'mkostemp'.
71145         Based on Ulrich Drepper's 2007-08-10 change in glibc.
71146         * lib/stdlib.in.h (mksotemp): New declaration.
71147         * lib/mkostemp.c: New file, from glibc with modifications.
71148         * lib/tempname.h (GT_FILE): Remove outdated comment.
71149         (gen_tempname): Add flags argument.
71150         * lib/tempname.c (__GT_BIGFILE): Remove macro.
71151         (__GT_FILE): Map to 1.
71152         (small_open, large_open): Remove macros.
71153         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
71154         * lib/mkstemp.c (mkstemp): Update.
71155         * lib/mkdtemp.c (mkdtemp): Likewise.
71156         * m4/mkostemp.m4: New file.
71157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
71158         HAVE_MKOSTEMP.
71159         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
71160         HAVE_MKOSTEMP.
71161         * modules/mkostemp: New file, based on modules/mkstemp.
71162         * doc/glibc-functions/mkostemp.texi: Mention the new module.
71163         * NEWS: Mention the change.
71165 2009-08-23  Bruno Haible  <bruno@clisp.org>
71167         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
71168         Reported by Eric Blake.
71170 2009-08-23  Bruno Haible  <bruno@clisp.org>
71172         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
71173         Reported by Eric Blake.
71175 2009-08-23  Bruno Haible  <bruno@clisp.org>
71177         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
71178         * modules/pipe2 (Depends-on): Likewise.
71180 2009-08-23  Eric Blake  <ebb9@byu.net>
71182         fcntl-h: add O_TTY_INIT support
71183         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
71184         * tests/test-fcntl-h.c (o): Test it.
71185         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
71187         fcntl-h: rename from fcntl, in preparation for fcntl(2)
71188         * modules/fcntl: Move <fcntl.h> header replacement...
71189         * modules/fcntl-h: ...to new name, so as not to collide with
71190         like-named function.
71191         * tests/test-fcntl.c: Rename...
71192         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
71193         * modules/fcntl-tests: Rename...
71194         * modules/fcntl-h-tests: ...to this.  Update test file name.
71195         * modules/chdir-long (Depends-on): Update clients.
71196         * modules/chdir-safer (Depends-on): Likewise.
71197         * modules/fcntl-safer (Depends-on): Likewise.
71198         * modules/fts (Depends-on): Likewise.
71199         * modules/mkancesdirs (Depends-on): Likewise.
71200         * modules/mkdir-p (Depends-on): Likewise.
71201         * modules/open (Depends-on): Likewise.
71202         * modules/savewd (Depends-on): Likewise.
71203         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
71204         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
71206 2009-08-22  Bruno Haible  <bruno@clisp.org>
71208         * modules/binary-io (License): Relicense under LGPL.
71209         * modules/pipe2 (License): Likewise.
71211 2009-08-22  Bruno Haible  <bruno@clisp.org>
71213         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
71214         return value.
71215         * lib/pipe-filter-gi.c (filter_init): Likewise.
71216         Reported by Eric Blake.
71218 2009-08-22  Bruno Haible  <bruno@clisp.org>
71220         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
71221         * modules/pipe (Depends-on): Add pipe2.
71223 2009-08-22  Bruno Haible  <bruno@clisp.org>
71225         Tests for module 'pipe2'.
71226         * modules/pipe2-tests: New file.
71227         * tests/test-pipe2.c: New file.
71229         New module 'pipe2'.
71230         * lib/unistd.in.h (pipe2): New declaration.
71231         * lib/pipe2.c: New file.
71232         * m4/pipe2.m4: New file.
71233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
71234         HAVE_PIPE2.
71235         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
71236         * modules/pipe2: New file.
71237         * doc/glibc-functions/pipe2.texi: Mention the new module.
71239 2009-08-22  Bruno Haible  <bruno@clisp.org>
71241         Reference some new glibc functions.
71242         * doc/glibc-functions/accept4.texi: New file.
71243         * doc/glibc-functions/dup3.texi: New file.
71244         * doc/glibc-functions/mkostemp.texi: New file.
71245         * doc/glibc-functions/pipe2.texi: New file.
71246         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
71247         (Glibc sys/socket.h): Refer to accept4.
71248         (Glibc unistd.h): Refer to dup3, pipe2.
71249         Reported by Eric Blake.
71251 2009-08-22  Jim Meyering  <meyering@redhat.com>
71252             Bruno Haible  <bruno@clisp.org>
71254         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
71255         This makes it so packages using automake-1.11's silent-rules option
71256         can print e.g., a single "GEN    configmake.h" line, rather than
71257         the 30+ statements that perform the job.  If you want to see the
71258         actual commands, you can still run "make V=1".
71259         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
71260         so that make output is abbreviated when those variables are defined
71261         appropriately.
71262         * modules/argz: Likewise.
71263         * modules/arpa_inet: Likewise.
71264         * modules/byteswap: Likewise.
71265         * modules/configmake: Likewise.
71266         * modules/dirent: Likewise.
71267         * modules/errno: Likewise.
71268         * modules/fcntl: Likewise.
71269         * modules/float: Likewise.
71270         * modules/fnmatch: Likewise.
71271         * modules/getopt-posix: Likewise.
71272         * modules/glob: Likewise.
71273         * modules/iconv_open: Likewise.
71274         * modules/inttypes: Likewise.
71275         * modules/localcharset: Likewise.
71276         * modules/locale: Likewise.
71277         * modules/math: Likewise.
71278         * modules/netdb: Likewise.
71279         * modules/netinet_in: Likewise.
71280         * modules/poll: Likewise.
71281         * modules/posix_spawnp-tests: Likewise.
71282         * modules/sched: Likewise.
71283         * modules/search: Likewise.
71284         * modules/selinux-h: Likewise.
71285         * modules/signal: Likewise.
71286         * modules/spawn: Likewise.
71287         * modules/stdarg: Likewise.
71288         * modules/stdbool: Likewise.
71289         * modules/stddef: Likewise.
71290         * modules/stdint: Likewise.
71291         * modules/stdio: Likewise.
71292         * modules/stdlib: Likewise.
71293         * modules/string: Likewise.
71294         * modules/strings: Likewise.
71295         * modules/sys_file: Likewise.
71296         * modules/sys_ioctl: Likewise.
71297         * modules/sys_select: Likewise.
71298         * modules/sys_socket: Likewise.
71299         * modules/sys_stat: Likewise.
71300         * modules/sys_time: Likewise.
71301         * modules/sys_times: Likewise.
71302         * modules/sys_utsname: Likewise.
71303         * modules/sys_wait: Likewise.
71304         * modules/sysexits: Likewise.
71305         * modules/time: Likewise.
71306         * modules/unistd: Likewise.
71307         * modules/wchar: Likewise.
71308         * modules/wctype: Likewise.
71310 2009-08-22  Jim Meyering  <meyering@redhat.com>
71312         announce-gen: detect write failure
71313         * build-aux/announce-gen: Add Coda at end.
71314         Remove equivalent-but-more-verbose block at top.
71316 2009-08-19  Akim Demaille  <demaille@gostai.com>
71318         bootstrap: --help to stdout.
71319         * bootstrap (usage): Don't send --help to stderr.
71320         Use a here doc instead of a long string.
71322 2009-08-21  Eric Blake  <ebb9@byu.net>
71324         test-popen-safer: split from test-popen
71325         * tests/test-popen.c (main): Move...
71326         * tests/test-popen.h: ...into new file.
71327         * tests/test-popen-safer2.c: New file.
71328         * modules/popen-tests (Files): Add test-popen.h.
71329         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
71330         Suggested by Bruno Haible.
71332         test-fcntl-safer: split from test-open
71333         * tests/test-open.c (main): Move...
71334         * tests/test-open.h: ...into new file.
71335         * tests/test-fcntl-safer.c: New file.
71336         * modules/open-tests (Files): Add test-open.h.
71337         * modules/fcntl-safer-tests: New file.
71338         Suggested by Bruno Haible.
71340         test-fopen-safer: split from test-fopen
71341         * tests/test-fopen.c (main): Move...
71342         * tests/test-fopen.h: ...into new file.
71343         * tests/test-fopen-safer.c: New file.
71344         * modules/fopen-tests (Files): Add test-fopen.h.
71345         * modules/fopen-safer-tests: New file.
71346         Suggested by Bruno Haible.
71348 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
71350         popen-safer: test O_CLOEXEC at run-time.
71351         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
71353 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
71355         fcntl: move more flags to the header
71356         * lib/cloexec.c: Do not define FD_CLOEXEC here.
71357         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
71358         * lib/fcntl.in.h: Do both things here.
71360 2009-08-21  Jim Meyering  <meyering@redhat.com>
71362         consistently remove $@-t before redirecting to it
71363         * modules/argz: Remove $@-t and $@ before redirecting to the former.
71364         * modules/alloca-opt: Likewise.
71365         * modules/byteswap: Likewise.
71366         * modules/fnmatch: Likewise.
71367         * modules/getopt-posix: Likewise.
71368         * modules/glob: Likewise.
71369         * modules/poll: Likewise.
71370         * modules/posix_spawnp-tests: Likewise.
71371         * modules/sys_socket: Likewise.
71372         * modules/sysexits: Likewise.
71374 2009-08-21  Eric Blake  <ebb9@byu.net>
71376         popen: simplify access to original popen
71377         * lib/popen.c (rpl_popen): No need to worry about popen being a
71378         macro.
71379         Reported by Bruno Haible.
71381 2009-08-20  Eric Blake  <ebb9@byu.net>
71383         build: avoid some compiler warnings
71384         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
71385         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
71386         type.
71387         (new_exclude_segment, excluded_file_pattern_p)
71388         (excluded_file_name_p): Reduce scope.
71389         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
71390         old-style declaration.
71392 2009-08-20  Simon Josefsson  <simon@josefsson.org>
71394         * tests/test-exclude1.sh: Handle Windows EOL.
71395         * tests/test-exclude2.sh: Likewise.
71396         * tests/test-exclude3.sh: Likewise.
71397         * tests/test-exclude4.sh: Likewise.
71398         * tests/test-exclude5.sh: Likewise.
71399         * tests/test-exclude6.sh: Likewise.
71400         * tests/test-exclude7.sh: Likewise.
71402 2009-08-19  Akim Demaille  <demaille@gostai.com>
71404         bootstrap: find sha1sum when named gsha1sum.
71405         * bootstrap (find_tool): New.
71406         ($SHA1SUM): New.
71407         Use it.
71409 2009-08-20  Jim Meyering  <meyering@redhat.com>
71411         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
71412         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
71413         expression that converts "." in a file name to "\." in the resulting
71414         regexp.  Start with a dummy statement, so that prior shell variable
71415         definitions are expanded portably.  Reported by Simon Josefsson.
71417 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
71419         Fix polling for writeability of a screen buffer.
71420         * lib/poll.c: Distinguish input and screen buffers for the
71421         Win32 implementation.
71422         * lib/select.c: Likewise.
71424 2009-08-19  Eric Blake  <ebb9@byu.net>
71426         popen-safer: prevent popen from clobbering std descriptors
71427         * modules/popen-safer: New file.
71428         * lib/popen-safer.c: Likewise.
71429         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
71430         * lib/stdio--.h (popen): Provide override.
71431         * lib/stdio-safer.h (popen_safer): Provide declaration.
71432         * tests/test-popen.c (includes): Partially test this.
71433         * modules/popen-safer-tests: New file, for more tests.
71434         * tests/test-popen-safer.c: Likewise.
71435         * MODULES.html.sh (file stream based Input/Output): Mention it.
71437         tests: test some of the *-safer modules
71438         * modules/fopen-safer (Depends-on): Add fopen.
71439         * modules/fcntl-safer (Depends-on): Add fcntl.
71440         * modules/stdlib-safer (Depends-on): Add stdlib.
71441         (configure.ac): Set indicator.
71442         * modules/unistd-safer (configure.ac): Likewise.
71443         * modules/tmpfile-safer (configure.ac): Likewise.
71444         (Depends-on): Add tmpfile.
71445         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
71446         active.
71447         * tests/test-fopen.c (includes): Test safer versions when they are
71448         in use.
71449         * tests/test-open.c (includes): Likewise.
71451         popen: fix cygwin 1.5 bug when stdin closed
71452         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
71453         * modules/popen: New file.
71454         * modules/popen-tests: Likewise.
71455         * tests/test-popen.c: Likewise.
71456         * m4/popen.m4: Likewise.
71457         * lib/popen.c: Likewise.
71458         * lib/stdio.in.h (popen): New declaration.
71459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
71460         * modules/stdio (Makefile.am): Likewise.
71461         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
71463 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
71465         maint.mk: give full control over update-copyright exclusions
71466         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
71467         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
71468         (update-copyright): Don't force inclusion of top-level
71469         ChangeLog.  Don't force exclusion of all COPYING files, but make
71470         them the default exclusion instead.
71472 2009-08-16  Bruno Haible  <bruno@clisp.org>
71474         Fix test failures on Solaris 10.
71475         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
71476         tests when Solaris iconv() is used.
71477         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71478         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71479         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71480         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71481         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71483 2009-08-16  Bruno Haible  <bruno@clisp.org>
71485         Fix test failures on Solaris 10.
71486         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
71487         'tr' program and pass it as first argument.
71488         * tests/test-pipe-filter-gi1.sh: Likewise.
71489         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
71490         program as first argument.
71491         * tests/test-pipe-filter-gi1.c (main): Likewise.
71493 2009-08-16  Eric Blake  <ebb9@byu.net>
71495         fpurge: fix previous commits
71496         * modules/fpurge (Makefile.am): Make replacement conditional,
71497         partially reverting 2007-04-29 change; missed in previous
71498         attempt.
71499         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
71500         is missing.
71502 2009-08-16  Bruno Haible  <bruno@clisp.org>
71504         Clarify fpurge's effect on the file position.
71505         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
71506         * tests/test-fpurge.c (main): Make a second pass for checking the file
71507         position.
71509 2009-08-16  Bruno Haible  <bruno@clisp.org>
71511         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
71512         declaration of fpurge is missing.
71513         * tests/test-fpurge.c (main): Check that the file has not more contents
71514         than expected. Close the file before removing it.
71516 2009-08-15  Eric Blake  <ebb9@byu.net>
71518         fpurge: don't wrap working cygwin implementation
71519         * lib/fpurge.c (fpurge): Fix comment typo.
71520         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
71521         1.7 to avoid replacement.
71522         * tests/test-fpurge.c (main): Enhance test.
71524 2009-08-15  Eric Blake  <ebb9@byu.net>
71525         and Jim Meyering  <meyering@redhat.com>
71527         test-update-copyright: skip if perl is insufficient
71528         * tests/test-update-copyright.sh: Failure to run maintainer tool
71529         should not cause testsuite failure on cygwin 1.5.
71531 2009-08-14  Eric Blake  <ebb9@byu.net>
71533         doc: mention more functions added in cygwin 1.7.0
71534         * doc/posix-headers/limits.texi (limits.h): Update for recent
71535         cygwin additions.
71536         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
71537         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
71538         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
71539         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
71540         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
71542 2009-08-14  Eric Blake  <ebb9@byu.net>
71544         maint.mk: simplify update-copyright rule
71545         * top/maint.mk (update-copyright-local): Delete, and document how
71546         to do it in cfg.mk instead.
71547         (update-copyright-exclude-regexp): Delete, and document how to do
71548         it in .x-update-copyright instead.
71549         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
71550         exclude ChangeLog.
71552 2009-08-14  Bruno Haible  <bruno@clisp.org>
71554         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
71556 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
71558         maint.mk: support update-copyright-env
71559         * top/maint.mk (update-copyright-env): Define place-holder.
71560         (update-copyright): Expand $(update-copyright-env) before
71561         invoking update-copyright.
71563 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
71565         update-copyright: implement forced reformatting
71566         * build-aux/update-copyright: Implement and document
71567         UPDATE_COPYRIGHT_FORCE.
71568         * tests/test-update-copyright.sh: Test it.
71570 2009-08-14  Eric Blake  <ebb9@byu.net>
71571         and Bruno Haible  <bruno@clisp.org>
71573         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
71574         * tests/test-locale.c: Revert previous patch related to NULL.
71575         * tests/test-stdio.c: Likewise.
71576         * tests/test-stdlib.c: Likewise.
71577         * tests/test-string.c: Likewise.
71578         * tests/test-unistd.c: Likewise.
71579         * modules/time-tests (Depends-on): Add verify.
71580         * modules/wchar-tests (Depends-on): Likewise.
71581         * tests/test-time.c: Test for NULL compliance.
71582         * tests/test-wchar.c: Likewise.
71583         * modules/locale (Depends-on): Add stddef.
71584         * modules/stdio (Depends-on): Likewise.
71585         * modules/stdlib (Depends-on): Likewise.
71586         * modules/string (Depends-on): Likewise.
71587         * modules/time (Depends-on): Likewise.
71588         * modules/unistd (Depends-on): Likewise.
71589         * modules/wchar (Depends-on): Likewise.
71590         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
71591         * lib/stdlib.in.h (includes): Likewise.
71592         * lib/string.in.h (includes): Likewise.
71593         * lib/time.in.h (includes): Likewise.
71594         * lib/unistd.in.h (includes): Likewise.
71595         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
71596         replaced.
71597         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
71598         * m4/stddef_h.m4: New file.
71599         * modules/stddef: Likewise.
71600         * lib/stddef.in.h: Likewise.
71601         * modules/stddef-tests: Likewise.
71602         * tests/test-stddef.c: Likewise.
71603         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
71604         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
71605         * doc/posix-headers/locale.texi (locale.h): Likewise.
71606         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
71607         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
71608         * doc/posix-headers/string.texi (string.h): Likewise.
71609         * doc/posix-headers/time.texi (time.h): Likewise.
71610         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
71611         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
71613 2009-08-14  Eric Blake  <ebb9@byu.net>
71615         doc: improve git diff of texinfo files
71616         * .gitattributes: Add rule for *.texi files, with hint on how to
71617         use it.
71618         Copied from m4, and based on a report by Bruno Haible.
71620 2009-08-14  Bruno Haible  <bruno@clisp.org>
71622         Disable multithread support by default on Cygwin 1.5.x for real.
71623         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
71625 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
71627         update-copyright: much ado about intervals
71628         * build-aux/update-copyright: Implement and document
71629         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
71630         of copyright year intervals.
71631         Also, document UPDATE_COPYRIGHT_YEAR.
71632         * tests/test-update-copyright.sh: Test it.
71634         update-copyright: convert 2-digit to 4-digit years
71635         * build-aux/update-copyright: Implement and document.
71636         * tests/test-update-copyright.sh: Update.
71638 2009-08-14  Jim Meyering  <meyering@redhat.com>
71640         test-exclude: avoid coreutils "make check" failure
71641         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
71642         just as in test-argmatch.c.
71644 2009-08-13  Eric Blake  <ebb9@byu.net>
71646         test-dup2: fix bad assumption
71647         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
71648         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
71650         test-version-etc: fix CRLF portability issue
71651         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
71652         recognize \r.
71653         * tests/test-argp-version-etc-1.sh: Likewise.
71655         getopt: update client modules
71656         * modules/argp (Depends-on): Use getopt-gnu.
71657         * modules/git-merge-changelog (Depends-on): Likewise.
71658         * modules/long-options (Depends-on): Likewise.
71659         * modules/xstrtol (Depends-on): Likewise.
71661 2009-08-13  Simon Josefsson  <simon@josefsson.org>
71663         * tests/test-version-etc.sh: Don't fail on different
71664         project/version.  Don't fail on CRLF differences.  Rewrite to use
71665         multiple -e instead of multiple sed forks, suggested by Eric Blake
71666         <ebb9@byu.net>.
71667         * tests/test-argp-version-etc-1.sh: Likewise.
71669 2009-08-13  Simon Josefsson  <simon@josefsson.org>
71671         * tests/test-version-etc.sh: Don't fail on different
71672         project/version.
71674 2009-08-12  Bruno Haible  <bruno@clisp.org>
71676         Tests for modules 'getopt-posix', 'getopt-gnu'.
71677         * modules/getopt-posix-tests: New file.
71678         * tests/test-getopt.c: New file.
71679         * tests/test-getopt.h: New file.
71680         * tests/test-getopt_long.h: New file.
71682         New modules 'getopt-posix', 'getopt-gnu'.
71683         * modules/getopt-gnu: New file, renamed from modules/getopt.
71684         * modules/getopt-posix: New file.
71685         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
71686         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
71687         (gl_GETOPT): Remove macro.
71688         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
71689         Disable the test against BSD systems that declare optreset. Test
71690         against mingw bug. Test against lack of support of optional arguments
71691         on many platforms.
71692         * doc/glibc-headers/getopt.texi: Update module name and list of
71693         relevant platforms.
71694         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
71695         'getopt-gnu' and more portability problems.
71696         * NEWS: Mention the changes.
71698 2009-08-12  Bruno Haible  <bruno@clisp.org>
71700         Ensure that optarg etc. get declared by <unistd.h>.
71701         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
71702         AC_USE_SYSTEM_EXTENSIONS.
71703         * modules/getopt (Depends-on): Add 'extensions'.
71705 2009-08-12  Bruno Haible  <bruno@clisp.org>
71707         Avoid test link errors.
71708         * modules/pipe-filter-ii-tests (Makefile.am): Define
71709         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
71710         * modules/pipe-filter-gi-tests (Makefile.am): Define
71711         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
71712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
71714 2009-08-12  Bruno Haible  <bruno@clisp.org>
71716         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
71717         gl_GETOPT_SUBSTITUTE before.
71718         (gl_GETOPT): Use it.
71719         * m4/argp.m4 (gl_ARGP): Update.
71720         Reported by Sergey Poznyakoff.
71722         * m4/getopt.m4: Reorder macros.
71723         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
71724         (gl_GETOPT_SUBSTITUTE): Remove macro.
71726 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
71728         Minor improvement in gitlog-to-changelog
71730         * build-aux/gitlog-to-changelog: New option `--format' makes
71731         output format string configurable.
71733 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
71735         Optimize exclude: use hash tables for non-wildcard patterns.
71737         * lib/exclude.c: Include hash.h and mbuiter.h
71738         (struct exclude_pattern, exclude_segment): New data types.
71739         (struct exclude): Rewrite.
71740         (fnmatch_pattern_has_wildcards): New function.
71741         (new_exclude_segment, free_exclude_segment): New functions.
71742         (excluded_file_pattern_p, excluded_file_name_p): New functions.
71743         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
71744         * lib/exclude.h (is_fnmatch_pattern): New prototype.
71745         * modules/exclude: Depend on hash and mbuiter.
71747         * modules/exclude-tests: New file.
71748         * tests/test-exclude.c: New file.
71749         * tests/test-exclude1.sh: New file.
71750         * tests/test-exclude2.sh: New file.
71751         * tests/test-exclude3.sh: New file.
71752         * tests/test-exclude4.sh: New file.
71753         * tests/test-exclude5.sh: New file.
71754         * tests/test-exclude6.sh: New file.
71755         * tests/test-exclude7.sh: New file.
71757 2009-08-12  Bruno Haible  <bruno@clisp.org>
71759         Ensure that getopt() gets declared by <unistd.h>.
71760         * lib/unistd.in.h: Conditionally include getopt.h.
71761         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
71762         Set GNULIB_UNISTD_H_GETOPT.
71763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71764         GNULIB_UNISTD_H_GETOPT.
71765         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
71767 2009-08-12  Bruno Haible  <bruno@clisp.org>
71769         Clarify logic.
71770         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
71771         gl_replace_getopt instead of GETOPT_H.
71773 2009-08-12  Bruno Haible  <bruno@clisp.org>
71775         * m4/getopt.m4: Add comments.
71777 2009-08-12  Bruno Haible  <bruno@clisp.org>
71779         Disable multithread support by default on Cygwin 1.5.x.
71780         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
71781         set gl_use_threads=no if not specified otherwise.
71783 2009-08-11  Bruno Haible  <bruno@clisp.org>
71785         Avoid compilation error on NetBSD 5.0.
71786         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
71787         * tests/test-stdio.c: Likewise.
71788         * tests/test-stdlib.c: Likewise.
71789         * tests/test-string.c: Likewise.
71790         * tests/test-unistd.c: Likewise.
71791         Reported by Greg Troxel <gdt@ir.bbn.com>
71792         at <https://savannah.gnu.org/support/?106973>.
71794 2009-08-11  Bruno Haible  <bruno@clisp.org>
71796         * modules/dup2-tests (Depends-on): Remove close.
71798         Undo 2009-07-19 commit.
71799         * modules/acl-tests (Depends-on): Remove close.
71800         * modules/binary-io-tests (Depends-on): Likewise.
71801         * modules/closein-tests (Depends-on): Likewise.
71802         * modules/flock-tests (Depends-on): Likewise.
71803         * modules/fsync-tests (Depends-on): Likewise.
71804         * modules/lseek-tests (Depends-on): Likewise.
71805         * modules/pipe-tests (Depends-on): Likewise.
71806         * modules/posix_spawn-tests (Depends-on): Likewise.
71807         * modules/posix_spawnp-tests (Depends-on): Likewise.
71808         * modules/stat-time-tests (Depends-on): Likewise.
71809         * modules/yesno-tests (Depends-on): Likewise.
71811 2009-08-10  Bruno Haible  <bruno@clisp.org>
71813         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
71815 2009-08-10  Bruno Haible  <bruno@clisp.org>
71817         Fix a gcc warning.
71818         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
71820 2009-08-10  Bruno Haible  <bruno@clisp.org>
71822         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
71823         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
71824         not only the first time.
71825         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
71826         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
71827         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
71828         is 1, not only the first time.
71830 2009-08-10  Bruno Haible  <bruno@clisp.org>
71832         Make it possible to use module 'gethostname' without module 'close'.
71833         * lib/unistd.in.h (close): Evoke a link error only if
71834         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
71835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71836         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71837         * modules/unistd (Makefile.am): Substitute
71838         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71839         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
71840         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
71841         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
71842         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71843         * modules/sys_ioctl (Makefile.am): Substitute
71844         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71845         * modules/socket (configure.ac): On native Windows, set
71846         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
71847         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71848         Reported by Sam Steingold <sds@gnu.org>.
71850 2009-08-10  Bruno Haible  <bruno@clisp.org>
71852         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
71853         * modules/ioctl (configure.ac): Likewise.
71855 2009-08-10  Bruno Haible  <bruno@clisp.org>
71857         Avoid collision between gnulib wrapper and libintl wrapper.
71858         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
71859         already defined in intl/printf.c.
71860         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
71861         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
71863 2009-08-09  Bruno Haible  <bruno@clisp.org>
71865         Make <sys/select.h> really self-contained, also on Solaris 10.
71866         * lib/sys_select.in.h: Include <string.h>.
71867         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
71868         Solaris 10 problem.
71869         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
71870         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
71871         Reported by Jim Meyering.
71873 2009-08-09  Bruno Haible  <bruno@clisp.org>
71875         Avoid warnings from 'aclocal' that are due to a use of macro name
71876         AM_XGETTEXT_OPTION that is not defined in automake.
71877         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
71878         automake.
71879         * modules/error (configure.ac): Likewise.
71880         * modules/propername (configure.ac): Likewise.
71881         * modules/vasprintf (configure.ac): Likewise.
71882         * modules/verror (configure.ac): Likewise.
71883         * modules/xprintf (configure.ac): Likewise.
71884         * modules/xvasprintf (configure.ac): Likewise.
71886 2009-08-08  Bruno Haible  <bruno@clisp.org>
71888         Avoid compilation error in C++ mode.
71889         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
71890         Reported by Sam Steingold <sds@gnu.org>.
71892 2009-08-08  Bruno Haible  <bruno@clisp.org>
71894         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
71895         for the various Unix platforms.
71896         * doc/posix-headers/limits.texi: Update platforms list regarding
71897         HOST_NAME_MAX.
71898         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
71900 2009-08-07  Jim Meyering  <meyering@redhat.com>
71902         selinux-at: fix typo in a comment
71903         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
71904         Spotted by Paolo Bonzini.
71906         selinux-at: remove redundant m4 code, add documentation
71907         * modules/selinux-at (configure.ac): Remove redundant code.
71908         LIB_SELINUX is already set via the dependent module, selinux-h.
71909         (Include): Add quotes around selinux-at.h.
71910         * lib/selinux-at.h: Add documentation.
71911         Reported by Bruno Haible in
71912         http://marc.info/?l=gnulib-bug&m=124958988300749
71914 2009-08-07  Bruno Haible  <bruno@clisp.org>
71916         Avoid link error on MacOS X 10.3 and 10.4.
71917         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
71918         on non-ELF systems.
71919         * lib/argp-pv.c (argp_program_version): Likewise.
71920         Reported by Simon Josefsson.
71922 2009-08-07  Simon Josefsson  <simon@josefsson.org>
71924         * tests/test-version-etc.sh: Use $EXEEXT.
71926 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
71928         update-copyright: update documentation to point to maint.mk
71929         * build-aux/update-copyright: Here.
71931 2009-08-06  Jim Meyering  <meyering@redhat.com>
71933         maint.mk: support update-copyright-local
71934         * top/maint.mk (update-copyright-local): Define place-holder.
71935         (update-copyright): Depend on $(update-copyright-local).
71937 2009-08-06  Jim Meyering  <meyering@redhat.com>
71939         selinux-at: new module
71940         Initially written for coreutils, this module will soon be
71941         used by findutils, too.
71942         * MODULES.html.sh [Misc]: Add selinux-at.
71943         * lib/selinux-at.h: New file, from coreutils.
71944         * lib/selinux-at.c: Likewise.
71945         * modules/selinux-at: Likewise.
71946         (License): Change from LGPL to GPL, since it depends
71947         on the GPL'd openat module.
71949         doc: update README
71950         * README: Remove references to cogito.
71951         Remove cvs-repo-updating instructions from 2007.
71952         Don't imply that CVS is better if you have limited disk space.
71954 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71956         update-copyright: support C-style comments
71957         * build-aux/update-copyright: Implement and document.
71958         * tests/test-update-copyright.sh: Test.
71960 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71962         update-copyright: support omitted "(C)"
71963         * build-aux/update-copyright: Implement and document.  Also,
71964         allow variable whitespace before "(C)".
71965         * tests/test-update-copyright.sh: Test.
71967 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71969         update-copyright: don't trip on non-FSF copyright statements
71970         * build-aux/update-copyright: Fix so that the first correctly
71971         formatted FSF copyright statement is recognized no matter what
71972         appears before it.  Update documentation.
71973         * tests/test-update-copyright.sh: Test that.
71975 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71977         update-copyright: clean up code a little
71978         * build-aux/update-copyright: Append "_re" to the name of any
71979         variable holding a regular expression.
71980         Replace "old" and "new" with "stmt" in variable names.
71981         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
71982         handled correctly.
71983         Format code more consistently.
71985 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71987         update-copyright-tests: improve portability
71988         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
71989         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
71991 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
71993         update-copyright: support @copyright{} and &copy;
71994         * build-aux/update-copyright: Implement and document.
71995         * tests/test-update-copyright.sh: Test.
71997 2009-08-04  Jim Meyering  <meyering@redhat.com>
71999         update-copyright-tests: correctly test EOL=\r\n handling
72000         * tests/test-update-copyright.sh: Put \r at the end of some lines
72001         for the dos-eol tests.  Based on a patch by Joel E. Denny.
72003         maint.mk: make update-copyright exclusion list more configurable
72004         * top/maint.mk (update-copyright): Default to excluding COPYING,
72005         but allow an override, in case someone does want to update that file.
72007         maint.mk: don't update copyright date in COPYING
72008         * top/maint.mk (update-copyright): Exclude COPYING.
72010         maint.mk: add a copyright-updating rule
72011         * top/maint.mk (update-copyright): New rule.
72012         Derived from coreutils/Makefile.am.
72014         update-copyright: rename some variables
72015         * build-aux/update-copyright: Rename a few variables for clarity.
72016         Tweak syntax.  List Joel E. Denny as coauthor.
72018 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
72020         update-copyright: fix bug for 2-digit last year and add tests
72021         * build-aux/update-copyright: Fix bug.
72022         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
72023         specified.
72024         * modules/update-copyright-tests: New
72025         * tests/test-update-copyright.sh: New.
72027 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
72029         update-copyright: handle leading tabs in line prefix
72030         * build-aux/update-copyright: Count leading tabs as 8 spaces
72031         when computing margin.  This helps with the formatting of
72032         ChangeLogs, for example.
72033         Fix documentation a little.
72035 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
72037         update-copyright: support EOL=\r\n
72038         * build-aux/update-copyright: Implement that.
72040 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
72042         update-copyright: automatically format copyright statements
72043         * build-aux/update-copyright: Implement that.
72044         Also, be a little more predictable and safer by always failing
72045         when the full copyright format is not perfectly recognized as an
72046         unbroken whole.  Discussed at
72047         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
72048         Rewrite documentation.
72050 2009-08-03  Bruno Haible  <bruno@clisp.org>
72052         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
72054 2009-08-02  Bruno Haible  <bruno@clisp.org>
72056         Tests for module 'uname'.
72057         * modules/uname-tests: New file.
72058         * tests/test-uname.c: New file.
72060         New module 'uname'.
72061         * lib/uname.c: New file.
72062         * m4/uname.m4: New file.
72063         * modules/uname: New file.
72064         * doc/posix-functions/uname.texi: Mention the new module.
72066 2009-08-02  Bruno Haible  <bruno@clisp.org>
72068         Tests for module 'sys_utsname'.
72069         * modules/sys_utsname-tests: New file.
72070         * tests/test-sys_utsname.c: New file.
72072         New module 'sys_utsname'.
72073         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
72074         * m4/sys_utsname_h.m4: New file.
72075         * modules/sys_utsname: New file.
72076         * doc/posix-headers/sys_utsname.texi: Mention the new module.
72078 2009-08-02  Bruno Haible  <bruno@clisp.org>
72080         Implicitly initialize the sockets library.
72081         * lib/gethostname.c: Include sockets.h.
72082         (rpl_gethostname): Invoke gl_sockets_startup.
72083         * lib/socket.c: Include sockets.h.
72084         (rpl_socket): Invoke gl_sockets_startup.
72085         * modules/gethostname (Depends-on): Add sockets.
72086         * modules/socket (Depends-on): Likewise.
72087         * tests/test-poll.c: Don't include sockets.h.
72088         (main): Don't invoke gl_sockets_startup.
72089         * tests/test-select.c: Don't include sockets.h.
72090         (main): Don't invoke gl_sockets_startup.
72092 2009-08-02  Bruno Haible  <bruno@clisp.org>
72094         Allow multiple calls to gl_sockets_startup.
72095         * lib/sockets.c (initialized_sockets_version): New variable.
72096         (gl_sockets_startup): Do nothing if already called for this or a higher
72097         version.
72098         (gl_sockets_cleanup): Reset initialized_sockets_version.
72100 2009-08-03  Simon Josefsson  <simon@josefsson.org>
72102         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
72103         different project/version.
72105 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
72106             Bruno Haible  <bruno@clisp.org>
72108         Tests for module 'pipe-filter-gi'.
72109         * modules/pipe-filter-gi-tests: New file.
72110         * tests/test-pipe-filter-gi1.sh: New file.
72111         * tests/test-pipe-filter-gi1.c: New file.
72112         * tests/test-pipe-filter-gi2.sh: New file.
72113         * tests/test-pipe-filter-gi2-main.c: New file.
72114         * tests/test-pipe-filter-gi2-child.c: New file.
72116         New module 'pipe-filter-gi'.
72117         * lib/pipe-filter-gi.c: New file.
72118         * modules/pipe-filter-gi: New file.
72120 2009-08-02  Bruno Haible  <bruno@clisp.org>
72121             Paolo Bonzini  <bonzini@gnu.org>
72123         Tests for module 'pipe-filter-ii'.
72124         * modules/pipe-filter-ii-tests: New file.
72125         * tests/test-pipe-filter-ii1.sh: New file.
72126         * tests/test-pipe-filter-ii1.c: New file.
72127         * tests/test-pipe-filter-ii2.sh: New file.
72128         * tests/test-pipe-filter-ii2-main.c: New file.
72129         * tests/test-pipe-filter-ii2-child.c: New file.
72131         New module 'pipe-filter-ii'.
72132         * lib/pipe-filter.h: New file.
72133         * lib/pipe-filter-ii.c: New file.
72134         * lib/pipe-filter-aux.h: New file.
72135         * modules/pipe-filter-ii: New file.
72137 2009-08-02  Simon Josefsson  <simon@josefsson.org>
72139         * lib/gc-libgcrypt.c: Change copyright to FSF.
72140         * lib/gc-gnulib.c: Likewise.
72142 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
72144         * lib/gethostname.c: Include limits.h.
72146 2009-08-02  Simon Josefsson  <simon@josefsson.org>
72147             Bruno Haible  <bruno@clisp.org>
72149         Ensure HOST_NAME_MAX as part of the gethostname module.
72150         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
72151         define also HOST_NAME_MAX.
72152         * tests/test-gethostname.c: Include <limits.h>.
72153         (main): Check also HOST_NAME_MAX.
72154         * doc/posix-headers/limits.texi: Document the mingw problem.
72156 2009-08-02  Bruno Haible  <bruno@clisp.org>
72158         * lib/gethostname.c (gethostname): Fix handling of large len argument.
72159         Add comments.
72161 2009-03-31  Simon Josefsson  <simon@josefsson.org>
72163         * lib/gethostname.c: Add Windows wrapper.
72164         * m4/gethostname.m4: Look for gethostname in -lws2_32.
72165         * modules/gethostname: Depend on sys_socket & errno, for also
72166         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
72167         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
72169 2009-07-31  Jim Meyering  <meyering@redhat.com>
72171         getloadavg: fix symbol name in comment
72172         * lib/getloadavg.c: Correct a typo I introduced when adding
72173         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
72174         Matt Kraai spotted the problem.
72176 2009-07-29  Matt Kraai  <mkraai@beckman.com>
72178         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
72179         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
72180         code also if ! defined N_NAME_POINTER.
72181         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
72182         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
72183         but the n_name member is a 12-byte array.
72185 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
72187         update-copyright: generalize comment handling
72188         * build-aux/update-copyright: Handle copyright statements
72189         within more comment styles.
72190         Document usage.
72191         Report any file with an external copyright holder or parse failure.
72193 2009-07-29  Jim Meyering  <meyering@redhat.com>
72195         mktime: correct setting of REPLACE_MKTIME
72196         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
72198         update-copyright: new module
72199         * modules/update-copyright: New file.
72200         * build-aux/update-copyright: New file.
72201         * MODULES.html.sh (maint+release support): Add update-copyright.
72203 2009-07-27  Bruno Haible  <bruno@clisp.org>
72205         Fix compilation error when <ctime> is used and mktime is replaced.
72206         * lib/time.in.h (mktime): New declaration.
72207         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
72208         REPLACE_MKTIME instead of defining mktime in config.h.
72209         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
72210         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
72211         Reported by Ross McFarland <rwmcfa1@neces.com>.
72213 2009-07-27  Bruno Haible  <bruno@clisp.org>
72215         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
72216         Reported by Matt Kraai <mkraai@beckman.com>.
72218 2009-07-25  Jim Meyering  <meyering@redhat.com>
72220         maint.mk: avoid warnings about missing files
72221         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
72222         diagnostic when .prev-version does not exist.
72223         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
72224         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
72225         nonexistent cfg.mk.
72226         Suggestions from Simon Josefsson.
72228 2009-07-25  Bruno Haible  <bruno@clisp.org>
72230         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
72231         defined as macros. Needed on QNX 6.4.1.
72232         Reported by Matt Kraai <mkraai@beckman.com>.
72234 2009-07-23  Jim Meyering  <meyering@redhat.com>
72236         maint.mk: invoke "make dist" with a working value of XZ_OPT
72237         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
72239 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
72241         Make fseeko.c compile on QNX.
72242         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
72244 2009-07-22  Peter Simons  <simons@cryp.to>
72246         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
72247         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
72248         * lib/md4.h: Likewise.
72249         * lib/md5.h: Likewise.
72250         * lib/sha1.h: Likewise.
72251         * lib/sha256.h: Likewise.
72252         * lib/sha512.h: Likewise.
72254         tests-sha1: don't assign literal string to 'char *' variable
72255         * tests/test-sha1.c (main): Declare locals with "const" to match
72256         attributes of the right hand side.
72258 2009-07-21  Eric Blake  <ebb9@byu.net>
72260         dup2: fix more mingw problems
72261         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
72262         fd to itself.
72263         * doc/posix-functions/dup2.texi (dup2): Document the bug.
72264         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
72265         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
72266         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
72267         care of mingw bugs.
72269 2009-07-21  Jim Meyering  <meyering@redhat.com>
72271         vc-list-files: avoid failure when /bin/sh is dash
72272         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
72273         On some Debian based systems, /bin/sh is a symlink to dash, and running
72274         this command would omit the "/" following each 'tests' prefix:
72275           dash -x build-aux/vc-list-files -C . tests
72276         That is because bash and dash work differently:
72277           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
72278           bash ok
72279           dash odd
72281 2009-07-21  Eric Blake  <ebb9@byu.net>
72283         dup2-tests: test previous patch
72284         * modules/dup2-tests: New file.
72285         * tests/test-dup2.c: Likewise.
72286         * tests/test-open.c (main): Avoid unspecified behavior.
72287         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
72288         test.
72290         dup2: work around mingw and cygwin 1.5 bug
72291         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
72292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
72293         * modules/unistd (Makefile.am): Substitute it.
72294         * lib/unistd.in.h (dup2): Declare the replacement.
72295         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
72296         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
72297         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
72298         * modules/execute (Depends-on): Add dup2.
72299         * modules/fseterr (Depends-on): Likewise.
72300         * modules/pipe (Depends-on): Likewise.
72301         * modules/posix_spawn-internal (Depends-on): Likewise.
72303 2009-07-21  Bruno Haible  <bruno@clisp.org>
72305         * modules/.gitattributes: New file.
72307 2009-07-20  Bruno Haible  <bruno@clisp.org>
72309         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
72310         (main): Use it.
72312 2009-07-20  Eric Blake  <ebb9@byu.net>
72314         test-pipe: make a bit more robust.
72315         * tests/test-pipe.c (myerr): Allow error messages regardless of
72316         what we do to stderr.
72317         (test_pipe): Rearrange to avoid deadlock.
72318         (child_main): Try a larger read, to ensure we avoided deadlock.
72319         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
72320         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
72321         if misused.
72323 2009-07-19  Jim Meyering  <meyering@redhat.com>
72325         fts: avoid false-positive cycle-detection
72326         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
72327         for each new command line argument.
72329 2009-07-19  Bruno Haible  <bruno@clisp.org>
72331         Fix build error on mingw with the modules sys_select and unistd.
72332         * modules/acl-tests (Depends-on): Add close.
72333         * modules/binary-io-tests (Depends-on): Likewise.
72334         * modules/closein-tests (Depends-on): Likewise.
72335         * modules/flock-tests (Depends-on): Likewise.
72336         * modules/fsync-tests (Depends-on): Likewise.
72337         * modules/lseek-tests (Depends-on): Likewise.
72338         * modules/pipe-tests (Depends-on): Likewise.
72339         * modules/posix_spawn-tests (Depends-on): Likewise.
72340         * modules/posix_spawnp-tests (Depends-on): Likewise.
72341         * modules/stat-time-tests (Depends-on): Likewise.
72342         * modules/yesno-tests (Depends-on): Likewise.
72344 2009-07-19  Bruno Haible  <bruno@clisp.org>
72346         Unify conditionals.
72347         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
72348         macros, not at the compiler macros.
72349         * lib/pipe.c: Likewise.
72350         * lib/execute.c: Likewise.
72351         * lib/spawni.c: Likewise.
72353 2009-07-19  Bruno Haible  <bruno@clisp.org>
72355         Fix handling of closed stdin/stdout/stderr on mingw.
72356         * lib/w32spawn.h: Include unistd.h.
72357         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
72358         file descriptor with O_NOINHERIT flag.
72359         (fd_safer_noinherit): New function, based on fd-safer.c.
72360         (dup_safer_noinherit): New function, based on dup-safer.c.
72361         (undup_safer_noinherit): New function.
72362         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
72363         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
72364         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
72365         instead of fd_safer.
72366         * tests/test-pipe.c: Include <windows.h>.
72367         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
72368         result.
72370         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
72371         from main.
72372         (test_pipe): Pass an extra argument for disambiguation.
72373         (main): Invoke parent_main or child_main.
72375         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
72376         consistently.
72378 2009-07-18  Eric Blake  <ebb9@byu.net>
72380         test-pipe: fix mingw build
72381         * tests/test-pipe.c (main): Avoid fcntl on mingw.
72383 2009-07-18  Bruno Haible  <bruno@clisp.org>
72385         * modules/pipe-tests (Makefile.am): Fix typo.
72387 2009-07-18  Eric Blake  <ebb9@byu.net>
72389         error: fix mingw build
72390         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
72391         Reported by Bruno Haible.
72393         error: avoid undefined use of stdout
72394         * lib/error.c (error, error_at_line): Check that fd 1 is open
72395         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
72396         is handling faults and the close_stdout module wants to report the
72397         detection of closed stdout as an error.
72399 2009-07-17  Eric Blake  <ebb9@byu.net>
72401         pipe: be robust in face of closed fds
72402         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
72403         should cause child to misbehave.
72404         * modules/pipe-tests: New module.
72405         * tests/test-pipe.c: New file.
72406         * tests/test-pipe.sh: New file.
72407         Reported by Akim Demaille.
72409 2009-07-14  Bruno Haible  <bruno@clisp.org>
72411         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
72412         Reported by anonymous kc.
72414 2009-07-07  Jim Meyering  <meyering@redhat.com>
72416         maint.mk: don't look for translatable strings in *.m4 or *.mk
72417         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
72418         when searching for translatable strings.
72420 2009-07-05  Jim Meyering  <meyering@redhat.com>
72422         remove superfluous parentheses in STREQ definition
72423         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
72424         * lib/getugroups.c (STREQ): Likewise.
72425         * lib/fnmatch.c (STREQ): Likewise.
72426         Spotted by Bruno Haible.
72428 2009-07-04  Jim Meyering  <meyering@redhat.com>
72430         argv-iter: new module
72431         * MODULES.html.sh: Add argv-iter.
72432         * lib/argv-iter.c, lib/argv-iter.h: New files.
72433         * modules/argv-iter: New file.
72434         * modules/argv-iter-tests: New file.
72435         * tests/test-argv-iter.c: Test it.
72437 2009-07-04  Bruno Haible  <bruno@clisp.org>
72439         Fix assertion.
72440         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
72441         contains more exact copies of a given entry than file2, leave the extra
72442         copies unpaired rather than aborting.
72443         Reported by Eric Blake.
72445 2009-07-02  Bruno Haible  <bruno@clisp.org>
72447         Speedup git-merge-changelog for git cherry-pick.
72448         * lib/git-merge-changelog.c (struct entries_mapping): New type.
72449         (entries_mapping_get): New function, extracted from compute_mapping.
72450         (entries_mapping_reverse_get): New function.
72451         (compute_mapping): Add a 'full' argument. Return the result in a
72452         'struct entries_mapping'.
72453         (main): Update. Access the mappings through entries_mapping_get.
72454         Reported by Eric Blake.
72456 2009-07-02  Bruno Haible  <bruno@clisp.org>
72458         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
72459         best_i.
72461 2009-07-02  Bruno Haible  <bruno@clisp.org>
72463         Speed up approximate search for matching ChangeLog entries.
72464         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
72465         argument. Call fstrcmp_bounded instead of fstrcmp.
72466         (compute_mapping, try_split_merged_entry, main): Update callers.
72468 2009-07-02  Bruno Haible  <bruno@clisp.org>
72470         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
72472 2009-06-30  Bruno Haible  <bruno@clisp.org>
72474         Reduce the number of uc_is_cased calls.
72475         * lib/unicase.h (casing_suffix_context_t): Add
72476         'first_char_except_ignorable' field.
72477         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
72478         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
72479         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
72480         Update initializer.
72481         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
72482         case-ignorable characters.
72483         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
72484         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
72485         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
72486         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
72487         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
72489 2009-06-30  Bruno Haible  <bruno@clisp.org>
72491         Tests for module 'unicase/ignorable'.
72492         * modules/unicase/ignorable-tests: New file.
72493         * tests/unicase/test-ignorable.c: New file, generated by
72494         gen-uni-tables.
72496         Tests for module 'unicase/cased'.
72497         * modules/unicase/cased-tests: New file.
72498         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
72499         * tests/unicase/test-predicate-part1.h: New file, derived from
72500         tests/unictype/test-predicate-part1.h.
72501         * tests/unicase/test-predicate-part2.h: New file, same as
72502         tests/unictype/test-predicate-part2.h.
72504         Fix evaluation of "Before C" condition of FINAL_SIGMA.
72505         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
72506         (output_casing_properties): New function.
72507         (main): Call it.
72508         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
72509         * lib/unicase/cased.c: Include unictype/bitmap.h.
72510         (uc_is_cased): Define through a bitmap lookup.
72511         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
72512         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
72513         (uc_is_case_ignorable): Define through a bitmap lookup.
72514         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
72515         lib/unictype/bitmap.h.
72516         (Depends-on): Add inline. Clean up.
72517         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
72518         lib/unictype/bitmap.h.
72519         (Depends-on): Add inline. Clean up.
72520         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
72521         recognition.
72522         * tests/unicase/test-u16-tolower.c (main): Likewise.
72523         * tests/unicase/test-u32-tolower.c (main): Likewise.
72525 2009-06-30  Bruno Haible  <bruno@clisp.org>
72527         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
72528         * lib/unicase/u16-casemap.c: Likewise.
72529         * lib/unicase/u32-casemap.c: Likewise.
72531 2009-06-29  Bruno Haible  <bruno@clisp.org>
72533         Define u32_casefold as a wrapper around u32_ct_casefold.
72534         * lib/unicase/u32-casefold.c: Update.
72535         * modules/unicase/u32-casefold (Depends-on): Add
72536         unicase/u32-ct-casefold, unicase/empty-prefix-context,
72537         unicase/empty-suffix-context. Clean up.
72539         Define u16_casefold as a wrapper around u16_ct_casefold.
72540         * lib/unicase/u16-casefold.c: Update.
72541         * modules/unicase/u16-casefold (Depends-on): Add
72542         unicase/u16-ct-casefold, unicase/empty-prefix-context,
72543         unicase/empty-suffix-context. Clean up.
72545         Define u8_casefold as a wrapper around u8_ct_casefold.
72546         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
72547         * lib/unicase/u8-casefold.c: Update.
72548         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
72549         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
72551         Define u32_totitle as a wrapper around u32_ct_totitle.
72552         * lib/unicase/u32-totitle.c: Update.
72553         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
72554         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
72556         Define u16_totitle as a wrapper around u16_ct_totitle.
72557         * lib/unicase/u16-totitle.c: Update.
72558         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
72559         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
72561         Define u8_totitle as a wrapper around u8_ct_totitle.
72562         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
72563         functions.
72564         (FUNC): Delegate to U_CT_TOTITLE.
72565         * lib/unicase/u8-totitle.c: Update.
72566         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
72567         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
72569         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
72570         invocation.
72571         * modules/unicase/u32-tolower (Depends-on): Add
72572         unicase/empty-prefix-context, unicase/empty-suffix-context.
72574         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
72575         invocation.
72576         * modules/unicase/u16-tolower (Depends-on): Add
72577         unicase/empty-prefix-context, unicase/empty-suffix-context.
72579         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
72580         * modules/unicase/u8-tolower (Depends-on): Add
72581         unicase/empty-prefix-context, unicase/empty-suffix-context.
72583         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
72584         invocation.
72585         * modules/unicase/u32-toupper (Depends-on): Add
72586         unicase/empty-prefix-context, unicase/empty-suffix-context.
72588         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
72589         invocation.
72590         * modules/unicase/u16-toupper (Depends-on): Add
72591         unicase/empty-prefix-context, unicase/empty-suffix-context.
72593         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
72594         * modules/unicase/u8-toupper (Depends-on): Add
72595         unicase/empty-prefix-context, unicase/empty-suffix-context.
72597         New module 'unicase/u32-ct-casefold'.
72598         * lib/unicase/u32-ct-casefold.c: New file.
72599         * modules/unicase/u32-ct-casefold: New file.
72601         New module 'unicase/u16-ct-casefold'.
72602         * lib/unicase/u16-ct-casefold.c: New file.
72603         * modules/unicase/u16-ct-casefold: New file.
72605         New module 'unicase/u8-ct-casefold'.
72606         * lib/unicase/u8-ct-casefold.c: New file.
72607         * lib/unicase/u-ct-casefold.h: New file, derived from
72608         lib/unicase/u-casefold.h.
72609         * modules/unicase/u8-ct-casefold: New file.
72611         New module 'unicase/u32-ct-totitle'.
72612         * lib/unicase/u32-ct-totitle.c: New file.
72613         * modules/unicase/u32-ct-totitle: New file.
72615         New module 'unicase/u16-ct-totitle'.
72616         * lib/unicase/u16-ct-totitle.c: New file.
72617         * modules/unicase/u16-ct-totitle: New file.
72619         New module 'unicase/u8-ct-totitle'.
72620         * lib/unicase/u8-ct-totitle.c: New file.
72621         * lib/unicase/u-ct-totitle.h: New file, derived from
72622         lib/unicase/u-totitle.h.
72623         * modules/unicase/u8-ct-totitle: New file.
72625         New module 'unicase/u32-ct-tolower'.
72626         * lib/unicase/u32-ct-tolower.c: New file.
72627         * modules/unicase/u32-ct-tolower: New file.
72629         New module 'unicase/u16-ct-tolower'.
72630         * lib/unicase/u16-ct-tolower.c: New file.
72631         * modules/unicase/u16-ct-tolower: New file.
72633         New module 'unicase/u8-ct-tolower'.
72634         * lib/unicase/u8-ct-tolower.c: New file.
72635         * modules/unicase/u8-ct-tolower: New file.
72637         New module 'unicase/u32-ct-toupper'.
72638         * lib/unicase/u32-ct-toupper.c: New file.
72639         * modules/unicase/u32-ct-toupper: New file.
72641         New module 'unicase/u16-ct-toupper'.
72642         * lib/unicase/u16-ct-toupper.c: New file.
72643         * modules/unicase/u16-ct-toupper: New file.
72645         New module 'unicase/u8-ct-toupper'.
72646         * lib/unicase/u8-ct-toupper.c: New file.
72647         * modules/unicase/u8-ct-toupper: New file.
72649         Add context arguments to u*_casemap functions.
72650         * lib/unicase/unicasemap.h: Include unicase.h.
72651         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
72652         suffix_context arguments.
72653         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
72654         functions.
72655         (FUNC): Add prefix_context and suffix_context arguments. Use
72656         uc_is_cased and uc_is_case_ignorable.
72657         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
72658         * lib/unicase/u16-casemap.c: Likewise.
72659         * lib/unicase/u32-casemap.c: Likewise.
72660         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
72661         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
72662         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
72663         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
72664         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
72665         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
72667         New module 'unicase/u32-suffix-context'.
72668         * lib/unicase/u32-suffix-context.c: New file.
72669         * modules/unicase/u32-suffix-context: New file.
72671         New module 'unicase/u16-suffix-context'.
72672         * lib/unicase/u16-suffix-context.c: New file.
72673         * modules/unicase/u16-suffix-context: New file.
72675         New module 'unicase/u8-suffix-context'.
72676         * lib/unicase/u8-suffix-context.c: New file.
72677         * lib/unicase/u-suffix-context.h: New file.
72678         * modules/unicase/u8-suffix-context: New file.
72680         New module 'unicase/empty-suffix-context'.
72681         * lib/unicase/empty-suffix-context.c: New file.
72682         * modules/unicase/empty-suffix-context: New file.
72684         New module 'unicase/u32-prefix-context'.
72685         * lib/unicase/u32-prefix-context.c: New file.
72686         * modules/unicase/u32-prefix-context: New file.
72688         New module 'unicase/u16-prefix-context'.
72689         * lib/unicase/u16-prefix-context.c: New file.
72690         * modules/unicase/u16-prefix-context: New file.
72692         New module 'unicase/u8-prefix-context'.
72693         * lib/unicase/u8-prefix-context.c: New file.
72694         * lib/unicase/u-prefix-context.h: New file.
72695         * lib/unicase/context.h: New file.
72696         * modules/unicase/u8-prefix-context: New file.
72698         New module 'unicase/empty-prefix-context'.
72699         * lib/unicase/empty-prefix-context.c: New file.
72700         * modules/unicase/empty-prefix-context: New file.
72702         New module 'unicase/ignorable'.
72703         * lib/unicase/ignorable.c: New file.
72704         * modules/unicase/ignorable: New file.
72706         New module 'unicase/cased'.
72707         * lib/unicase/caseprop.h: New file.
72708         * lib/unicase/cased.c: New file.
72709         * modules/unicase/cased: New file.
72711         New functions for case mapping of substrings.
72712         * lib/unicase.h (casing_prefix_context_t): New type.
72713         (unicase_empty_prefix_context): New variable.
72714         (u8_casing_prefix_context, u16_casing_prefix_context,
72715         u32_casing_prefix_context, u8_casing_prefixes_context,
72716         u16_casing_prefixes_context, u32_casing_prefixes_context): New
72717         declarations.
72718         (casing_suffix_context_t): New type.
72719         (unicase_empty_suffix_context): New variable.
72720         (u8_casing_suffix_context, u16_casing_suffix_context,
72721         u32_casing_suffix_context, u8_casing_suffixes_context,
72722         u16_casing_suffixes_context, u32_casing_suffixes_context,
72723         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
72724         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
72725         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
72726         declarations.
72728 2009-06-28  Jim Meyering  <meyering@redhat.com>
72730         boostrap: indent only with spaces
72731         * build-aux/bootstrap: Indent only with spaces, never TABs.
72733         bootstrap: split long lines
72734         * build-aux/bootstrap: Keep line length < 80.
72736         bootstrap: sync from coreutils
72737         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
72738         just as autoreconf does.  Verify a list of prerequisite
72739         package-name,version-number pairs if defined in bootstrap.conf.
72740         Refer to README-prereq, if prerequisites are not satisfied.
72742 2009-06-27  Eric Blake  <ebb9@byu.net>
72744         tests: add test for bogus NULL definition
72745         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
72746         * tests/test-stdlib.c: Likewise.
72747         * tests/test-string.c: Likewise.
72748         * tests/test-locale.c: Likewise.
72749         * tests/test-unistd.c: Likewise.
72750         * modules/stdio-tests (Depends-on): Add verify.
72751         * modules/stdlib-tests (Depends-on): Likewise.
72752         * modules/string-tests (Depends-on): Likewise.
72753         * modules/locale-tests (Depends-on): Likewise.
72754         * modules/unistd-tests (Depends-on): Likewise.
72756 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
72758         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
72759         self-explaining comment.
72760         * m4/selinux-selinux-h: Update serial.
72761         (gl_LIBSELINUX): New macro, adding a warning for missing development
72762         packages to code extracted from...
72763         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
72764         Add warning for missing development packages here, too.
72766 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
72768         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
72770 2009-06-25  Eric Blake  <ebb9@byu.net>
72772         version-etc: fix regression
72773         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
72774         gcc.
72775         (version_etc): Use it, to catch bugs with trailing NULL.
72776         * lib/version-etc.c (version_etc_arn): Delete unused argument.
72777         (version_etc_va): Fix logic bug.
72778         * modules/version-etc-tests: Add test.
72779         * tests/test-version-etc.c: New file.
72780         * tests/test-version-etc.sh: Likewise.
72782 2009-06-25  Sam Steingold  <sds@gnu.org>
72784         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
72785         mbtowc declaration.
72787 2009-06-25  Eric Blake  <ebb9@byu.net>
72789         fpurge: migrate into <stdio.h>
72790         * lib/fpurge.h: Delete...
72791         * lib/stdio.in.h (fpurge): ...and declare here, instead.
72792         * lib/fpurge.c (fpurge): Change declaring header.
72793         * modules/fpurge (Files): Drop deleted file.
72794         (Depends-on): Add stdio.
72795         (configure.ac): Set witness.
72796         * modules/stdio (Makefile.am): Support fpurge macros.
72797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
72798         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
72799         * lib/fflush.c: Update client.
72800         * tests/test-fpurge.c: Likewise.
72801         * NEWS: Mention the change.
72803 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72805         * lib/argp-version-etc.c (program_authors): Add const
72806         qualifier.
72807         * lib/version-etc.c: Fix typos in the comments.
72808         * modules/argp-version-etc: Depends on version-etc.
72810 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72812         argp-version-etc: new module.
72814         * lib/argp-version-etc.c: New file.
72815         * lib/argp-version-etc.h: New file.
72816         * modules/argp-version-etc: New file.
72817         * modules/argp-version-etc-tests: New file.
72818         * tests/test-argp-version-etc.c: New test.
72819         * tests/test-argp-version-etc-1.sh: New test.
72821 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72823         Provide additional interfaces and documentation for version-etc
72824         module.
72826         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
72827         interfaces.
72828         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
72829         prototypes.
72831 2009-06-24  Bruno Haible  <bruno@clisp.org>
72833         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
72834         HAVE_LIB${NAME} macro.
72835         Reported by Sam Steingold <sds@gnu.org>.
72837 2009-06-23  Simon Josefsson  <simon@josefsson.org>
72839         * modules/hash-tests (test_hash_LDADD): Link to libintl when
72840         needed.
72842 2009-06-21  Bruno Haible  <bruno@clisp.org>
72844         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
72845         work.
72846         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
72847         together with LIB${NAME}, LTLIB${NAME}.
72848         Reported by Sam Steingold <sds@gnu.org>.
72850 2009-06-20  Jim Meyering  <meyering@redhat.com>
72852         tests: make sc_require_test_exit_idiom more generic
72853         * top/maint.mk (Exit_witness_file): New overridable variable.
72854         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
72855         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
72857 2009-06-19  Jim Meyering  <meyering@redhat.com>
72859         hash: reverse order of src/dst parameters in an internal interface
72860         * lib/hash.c (transfer_entries): Reverse order of parameters to
72861         put DST before SRC.  Adjust callers.
72863         tests: test-hash: avoid wholesale duplication
72864         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
72865         Instead, use a loop and add a single conditional.
72867         tests: test-hash: allow seed selection via a command line argument
72868         * tests/test-hash.c (get_seed): New function.
72869         (main): Use it.
72871 2009-06-19  Eric Blake  <ebb9@byu.net>
72873         hash: avoid memory leak on allocation failure
72874         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
72875         failure.  Factor repeated algorithm...
72876         (transfer_entries): ...into new helper routine.
72877         (hash_delete): React to hash_rehash return value.
72879         hash: reduce memory pressure in hash_rehash no-op case
72880         * lib/hash.c (next_prime): Avoid overflow.
72881         (hash_initialize): Factor bucket size computation...
72882         (compute_bucket_size): ...into new helper function.
72883         (hash_rehash): Use new function and open coding to reduce memory
72884         pressure, and avoid a memory leak in USE_OBSTACK code.
72885         Reported by Jim Meyering.
72887 2009-06-18  Eric Blake  <ebb9@byu.net>
72889         hash: make rotation more obvious
72890         * modules/hash (Depends-on): Add bitrotate and stdint.
72891         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
72892         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
72893         (SIZE_MAX): Rely on headers for definition.
72894         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
72895         (raw_hasher): Use rotr_sz.
72896         Suggested by Jim Meyering.
72898         hash: fix memory leak in last patch
72899         * lib/hash.c (hash_rehash): Avoid memory leak.
72901         hash: avoid no-op rehashing
72902         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
72904         hash: provide default callback functions
72905         * lib/hash.c (raw_hasher, raw_comparator): New functions.
72906         (hash_initialize): Use them as defaults.
72907         * tests/test-hash.c (main): Test this.
72909         hash: minor optimization
72910         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
72911         when possible.
72912         (hash_initialize): Document this promise.
72913         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
72914         * tests/test-hash.c (hash_compare_strings): Test this.
72916 2009-06-18  Bruno Haible  <bruno@clisp.org>
72918         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
72919         going to be replaced anyway.
72921 2009-06-18  Bruno Haible  <bruno@clisp.org>
72923         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
72924         in one place.
72925         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
72926         be replaced anyway.
72928 2009-06-18  Eric Blake  <ebb9@byu.net>
72930         hash: check for resize before insertion
72931         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
72932         threshold before insertion, so that a pathological hash_rehash
72933         that fills every bucket can still trigger another rehash.
72935 2009-06-18  Jim Meyering  <meyering@redhat.com>
72937         hash-tests: add a loop around the small tests
72938         * tests/test-hash.c (main): Repeat small tests with selected
72939         small initial table sizes.
72941 2009-06-17  Eric Blake  <ebb9@byu.net>
72943         hash: minor cleanups
72944         * lib/hash.h (hash_entry): Make opaque, by moving...
72945         * lib/hash.c (hash_entry): ...here.
72946         (hash_insert): Clarify restrictions on what can be inserted.
72947         (hash_get_next): Clarify when it is safe to remove an element
72948         during traversal.
72949         (check_tuning): Skip verification when tuning is known safe.
72950         (hash_initialize): Clarify restrictions on tuning.
72952 2009-06-17  Jim Meyering  <jim@meyering.net>
72953         and Eric Blake  <ebb9@byu.net>
72955         hash-tests: new module
72956         * modules/hash-tests: New file.
72957         * tests/test-hash.c: New file.
72959 2009-06-17  Eric Blake  <ebb9@byu.net>
72961         strstr-simple: document new module
72962         * MODULES.html.sh: Document new module.
72964         strstr, strcasestr: replace on platforms with broken memchr
72965         * modules/strstr: Split into...
72966         * modules/strstr-simple: ...new module that does not care about
72967         performance, but does care about glibc bug.
72968         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
72969         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
72970         if platform memchr is broken, per Debian bug 521737.
72971         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
72972         memchr.
72973         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
72974         * doc/posix-functions/strstr.texi (strstr): Document the fix.
72975         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
72976         * modules/mountlist (Depends-on): Add strstr-simple.
72977         * modules/gen-uni-tables (Depends-on): Likewise.
72978         * modules/argz (Depends-on): Add strstr.
72980 2009-06-17  Bruno Haible  <bruno@clisp.org>
72982         * modules/posix_spawn-internal (Depends-on): Add errno.
72984 2009-06-17  Bruno Haible  <bruno@clisp.org>
72986         Define missing ESTALE on Interix 3.5.
72987         * lib/errno.in.h (ESTALE): Assign a value if missing.
72988         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
72989         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
72990         missing.
72991         * doc/posix-headers/errno.texi: Mention the Interix bug.
72992         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
72994 2009-06-15  Eric Blake  <ebb9@byu.net>
72996         memchr, memchr2: add valgrind exception
72997         * lib/memchr.valgrind: New file.
72998         * lib/memchr2.valgrind: New file.
72999         * modules/memchr (Files): Distribute valgrind file.
73000         * modules/memchr2 (Files): Likewise.
73002         docs: memchr is no longer obsolete
73003         * MODULES.html.sh: Move memchr from obsolete to string.h section.
73004         * lib/string.in.h (memchr): Simplify logic.
73006 2009-06-14  Jim Meyering  <meyering@redhat.com>
73008         link-follow: fix the "checking..." message to not mention trailing slash
73009         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
73010         never considered trailing slashes.
73012 2009-06-14  Bruno Haible  <bruno@clisp.org>
73014         * m4/memchr.m4: Mention also the bug on IA-64.
73015         * doc/posix-functions/memchr.texi: Likewise.
73017 2009-06-12  Eric Blake  <ebb9@byu.net>
73019         memchr: detect broken x86_64 and alpha implementations
73020         * modules/memchr-tests (Depends-on): Move mmap detection...
73021         * modules/memchr (Depends-on): ...here.
73022         (configure.ac): Set indicator.
73023         * lib/string.in.h (memchr): Declare replacement.
73024         * modules/string (Makefile.am): Trigger replacement.
73025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
73026         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
73027         bugs.
73028         * doc/posix-functions/memchr.texi (memchr): Document the bug.
73029         * modules/getpagesize (License): Relax license.
73031 2009-06-11  Bruno Haible  <bruno@clisp.org>
73033         * lib/idpriv.h: Add more references.
73035 2009-06-08  Bruno Haible  <bruno@clisp.org>
73037         Tests for module 'idpriv-droptemp'.
73038         * modules/idpriv-droptemp-tests: New file.
73039         * tests/test-idpriv-droptemp.sh: New file.
73040         * tests/test-idpriv-droptemp.su.sh: New file.
73041         * tests/test-idpriv-droptemp.c: New file.
73043         New module 'idpriv-droptemp'.
73044         * lib/idpriv-droptemp.c: New file.
73045         * modules/idpriv-droptemp: New file.
73047 2009-06-08  Bruno Haible  <bruno@clisp.org>
73049         Tests for module 'idpriv-drop'.
73050         * modules/idpriv-drop-tests: New file.
73051         * tests/test-idpriv-drop.sh: New file.
73052         * tests/test-idpriv-drop.su.sh: New file.
73053         * tests/test-idpriv-drop.c: New file.
73055         New module 'idpriv-drop'.
73056         * lib/idpriv.h: New file.
73057         * lib-idpriv-drop.c: New file.
73058         * m4/idpriv.m4: New file.
73059         * modules/idpriv-drop: New file.
73061 2009-06-08  Bruno Haible  <bruno@clisp.org>
73063         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
73064         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
73065         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
73066         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
73067         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
73068         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
73069         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
73071 2009-06-08  Eric Blake  <ebb9@byu.net>
73073         test-strstr: use memory fence, when possible
73074         * tests/test-strstr.c (main): Use memory fence, in order to be
73075         more likely to trigger Debian bug 521737.
73076         * modules/strstr-tests (Files): Pull in additional files.
73078         memchr: no longer obsolete, for wider field testing
73079         * modules/memchr (Status, Notice): Delete, this module is no
73080         longer obsolete.
73081         * modules/vasnprintf (Depends-on): Add memchr.
73083 2009-06-07  Jim Meyering  <meyering@redhat.com>
73085         hash: declare some functions with the warn_unused_result attribute
73086         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
73088 2009-06-07  Bruno Haible  <bruno@clisp.org>
73090         * tests/test-alignof.c: Don't test int64_t if it does not exist.
73091         Reported by Eric Blake.
73093 2009-06-06  Eric Blake  <ebb9@byu.net>
73095         test-alignof: fix typo with long double
73096         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
73097         compiler error.
73099 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
73101         Escape non-texinfo { and }s.
73102         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
73103         markup error.
73105 2009-06-04  Jim Meyering  <meyering@redhat.com>
73107         gitlog-to-changelog: don't infloop on an empty commit log
73108         * build-aux/gitlog-to-changelog: Warn about an empty log message.
73109         Reported by Boris Petersen <transacid@centerim.org>.
73111 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
73113         version-etc: extend for packagers
73114         Add three new configure options, intended for packagers:
73115           --with-packager="packager name"
73116           --with-packager-version="packager-specific version"
73117           --with-packager-bug-reports="packager bug reporting"
73118         An example with coreutils:
73119           $ ./configure \
73120             --with-packager=Gentoo \
73121             --with-packager-bug-report=http://bugs.gentoo.org/ \
73122             --with-packager-version="patchset 1.6"
73123           $ ./src/ls --version | head -n2
73124           ls (GNU coreutils) 7.1-dirty
73125           Packaged by Gentoo (patchset 1.6)
73126         Note that the bug reporting info via --help doesn't show up because
73127         coreutils uses its own custom emit_bug_reporting_address() implementation
73128         in src/system.h.  If it didn't, it'd look like:
73129           $ ./src/ls --help | tail -n4
73130           Report bugs to <bug-coreutils@gnu.org>.
73131           Report Gentoo bugs to <http://bugs.gentoo.org/>.
73132           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
73133           General help using GNU software: <http://www.gnu.org/gethelp/>.
73134         * lib/version-etc.c: Print new information, if provided.
73135         * m4/version-etc.m4: New file.
73136         * modules/version-etc (Files): Add m4/version-etc.m4.
73137         (configure.ac): Add gl_VERSION_ETC.
73139 2009-05-31  Bruno Haible  <bruno@clisp.org>
73141         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
73142         and 'int64_t'.
73143         * modules/alignof-tests (Dependencies): Add stdint.
73144         Reported by Eric Blake.
73146 2009-05-31  Bruno Haible  <bruno@clisp.org>
73148         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
73149         restriction due to compiler bugs.
73150         Reported by Eric Blake.
73152 2009-05-31  Simon Josefsson  <simon@josefsson.org>
73153             Bruno Haible  <bruno@clisp.org>
73155         Fix test-alignof failure.
73156         * lib/alignof.h (alignof_slot): New macro.
73157         (alignof_type): New macro, with the same semantics as the previous
73158         'alignof'.
73159         (alignof): Alias to alignof_slot.
73160         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
73161         check that the results are usable as constant expressions.
73163 2009-05-31  Bruno Haible  <bruno@clisp.org>
73165         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
73166         * tests/test-memchr.c (main): Check that memchr does not read past the
73167         first occurrence of the byte.
73168         * tests/test-strstr.c (main): Update comment.
73169         Suggested by Eric Blake.
73171 2009-05-30  Bruno Haible  <bruno@clisp.org>
73173         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
73174         detail how to use dumpbin.
73175         Reported by David Byron <dbyron@dbyron.com>.
73177 2009-06-02  Simon Josefsson  <simon@josefsson.org>
73179         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
73181 2009-06-02  Simon Josefsson  <simon@josefsson.org>
73183         * m4/manywarnings.m4: Add GCC 4.4 warnings.
73185 2009-05-28  Bruno Haible  <bruno@clisp.org>
73187         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
73188         build-aux/ files.
73190 2009-05-28  Simon Josefsson  <simon@josefsson.org>
73192         * gnulib-tool (func_import): Transform license on build-aux/ files too.
73194 2009-05-27  Simon Josefsson  <simon@josefsson.org>
73196         * gnulib-tool (sed_transform_main_lib_file)
73197         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
73198         regexps.
73200 2009-05-26  Simon Josefsson  <simon@josefsson.org>
73202         * tests/test-strstr.c: Add another self-test.
73203         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
73204         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
73206 2009-05-23  Bruno Haible  <bruno@clisp.org>
73208         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
73209         change.
73211 2009-05-21  Bruno Haible  <bruno@clisp.org>
73213         Simplify use of mode_t varargs.
73214         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
73215         uses 'mode_t' or 'int'.
73216         * lib/openat.c (openat): Likewise.
73217         * lib/open-safer.c (open_safer): Likewise.
73218         * m4/mode_t.m4: New file.
73219         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
73220         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
73221         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
73222         * modules/open (Files): Add m4/mode_t.m4.
73223         * modules/openat (Files): Likewise.
73224         * modules/fcntl-safer (Files): Likewise.
73225         Suggested by Eric Blake.
73227 2009-05-21  Pádraig Brady  <P@draigbrady.com>
73229         * doc/glibc-functions/fallocate.texi: New file.
73230         * doc/gnulib.texi: Include it.
73232 2009-05-21  Eric Blake  <ebb9@byu.net>
73233             Bruno Haible  <bruno@clisp.org>
73235         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
73236         invocations.
73237         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73239 2009-05-21  Eric Blake  <ebb9@byu.net>
73240             Bruno Haible  <bruno@clisp.org>
73242         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
73243         include_next. Fix of 2008-11-20 commit.
73244         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
73245         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
73246         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
73247         NEXT_MATH_H.
73248         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
73249         instead of NEXT_MATH_H.
73251 2009-05-21  Bruno Haible  <bruno@clisp.org>
73253         Avoid redefinition warnings for SIZE_MAX.
73254         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
73255         Reported by Simon Josefsson.
73257 2009-05-21  Bruno Haible  <bruno@clisp.org>
73259         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
73260         AC_CACHE_VAL.
73262 2009-05-20  Bruno Haible  <bruno@clisp.org>
73264         Make zeroptr.h work on mingw.
73265         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
73266         mprotect.
73267         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
73268         * modules/memchr2-tests (configure.ac): Likewise.
73269         * modules/memcmp-tests (configure.ac): Likewise.
73270         * modules/memmem-tests (configure.ac): Likewise.
73271         * modules/memrchr-tests (configure.ac): Likewise.
73272         Reported by Simon Josefsson.
73274 2009-05-20  Simon Josefsson  <simon@josefsson.org>
73276         * tests/test-glob.c: Include string.h for strcmp prototype.
73278 2009-05-20  Simon Josefsson  <simon@josefsson.org>
73280         * modules/getdelim (Depends-on): Add explicit stdint, although it
73281         was implicitly already pulled in via realloc-posix.
73282         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
73284 2009-05-20  Simon Josefsson  <simon@josefsson.org>
73286         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
73287         G. Christensen" <tgc@jupiterrise.com>.
73288         * m4/sys_socket_h.m4: Check for sa_family_t.
73289         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
73290         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
73291         * tests/test-sys_socket.c: Check that sa_family_t works.
73293 2009-05-18  Eric Blake  <ebb9@byu.net>
73295         maint.mk: allow gnulib_dir in VPATH build
73296         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
73298 2009-05-15  Jim Meyering  <meyering@redhat.com>
73300         maint.mk: Give gnulib_dir a default definition.
73301         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
73302         Thus, most packages no longer need to specify this variable in cfg.mk
73304 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
73306         rename.m4: fix typos that would make non-mingw cross-configure fail
73307         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
73309 2009-05-13  Eric Blake  <ebb9@byu.net>
73311         mmap-anon: avoid out-of-order autoconf expansion
73312         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
73313         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
73314         * modules/memchr-tests (Depends-on): Add extensions.
73315         * modules/memchr2-tests (Depends-on): Add extensions.
73316         * modules/memcmp-tests (Depends-on): Add extensions.
73317         * modules/memmem-tests (Depends-on): Add extensions.
73318         * modules/memrchr-tests (Depends-on): Add extensions.
73320 2009-05-13  Bruno Haible  <bruno@clisp.org>
73322         Make some tests ISO C 99 compliant.
73323         * tests/zerosize-ptr.h: New file.
73324         * tests/test-memchr.c: Include zerosize-ptr.h.
73325         (main): Use a zero-size object pointer instead of NULL.
73326         * tests/test-memchr2.c: Include zerosize-ptr.h.
73327         (main): Use a zero-size object pointer instead of NULL.
73328         * tests/test-memcmp.c: Include zerosize-ptr.h.
73329         (main): Use a zero-size object pointer instead of NULL.
73330         * tests/test-memmem.c: Include zerosize-ptr.h.
73331         (main): Use a zero-size object pointer instead of NULL.
73332         * tests/test-memrchr.c: Include zerosize-ptr.h.
73333         (main): Use a zero-size object pointer instead of NULL.
73334         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
73335         m4/mmap-anon.m4.
73336         (Depends-on): Add getpagesize.
73337         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
73338         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
73339         m4/mmap-anon.m4.
73340         (Depends-on): Add getpagesize.
73341         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
73342         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
73343         m4/mmap-anon.m4.
73344         (Depends-on): Add getpagesize.
73345         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
73346         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
73347         m4/mmap-anon.m4.
73348         (Depends-on): Add getpagesize.
73349         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
73350         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
73351         m4/mmap-anon.m4.
73352         (Depends-on): Add getpagesize.
73353         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
73355 2009-05-12  Bruno Haible  <bruno@clisp.org>
73357         Tests for module 'alignof'.
73358         * modules/alignof-tests: New file.
73359         * tests/test-alignof.c: New file.
73361 2009-05-12  Bruno Haible  <bruno@clisp.org>
73363         Fix alignof macro.
73364         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
73365         vendor compilers that are always correct.
73367 2009-05-12  Bruno Haible  <bruno@clisp.org>
73369         Make the MAP_ANONYMOUS detection work on HP-UX 11.
73370         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
73371         not whether its fully works.
73373 2009-05-12  Bruno Haible  <bruno@clisp.org>
73375         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
73377 2009-05-12  Jim Meyering  <meyering@redhat.com>
73379         * top/maint.mk: Adjust backslash alignment.
73381 2009-05-11  Simon Josefsson  <simon@josefsson.org>
73383         * top/maint.mk: Make $(srcdir)/build-aux configurable.
73385 2009-05-11  Eric Blake  <ebb9@byu.net>
73387         argp: avoid undefined behavior
73388         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
73389         macros.
73391 2009-05-08  Simon Josefsson  <simon@josefsson.org>
73393         * tests/test-vc-list-files-git.sh: Do git config of user.email and
73394         user.name to prevent git commit from complaining.
73396 2009-05-10  Bruno Haible  <bruno@clisp.org>
73398         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
73399         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
73400         it rewrites every file name only once.
73401         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
73403 2009-05-08  Bruno Haible  <bruno@clisp.org>
73405         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
73406         instead of 'max'.
73408 2009-05-08  Simon Josefsson  <simon@josefsson.org>
73410         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
73411         sockaddr_storage test.
73413 2009-05-07  Simon Josefsson  <simon@josefsson.org>
73415         * modules/sys_socket (Makefile.am): Substitute
73416         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
73417         * m4/sys_socket_h.m4: Check for sockaddr_storage.
73418         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
73419         * tests/test-sys_socket.c: Check sockaddr_storage.
73421 2009-05-08  Bruno Haible  <bruno@clisp.org>
73423         New module 'alignof'.
73424         * lib/alignof.h: New file.
73425         * modules/alignof: New file.
73427 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
73428             Bruno Haible  <bruno@clisp.org>
73430         Fix test-file-has-acl on FreeBSD.
73431         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
73432         mask is implicitly added.
73433         * tests/test-file-has-acl.c: Include <signal.h>.
73434         (main): Terminate the test after 5 seconds.
73435         * modules/acl-tests (configure.ac): Check for alarm function.
73437 2009-05-04  Bruno Haible  <bruno@clisp.org>
73439         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
73440         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
73441         * modules/errno (configure.ac): Drop AC_REQUIRE.
73442         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
73443         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
73445 2009-05-04  Simon Josefsson  <simon@josefsson.org>
73447         * modules/glob-tests: New module.
73448         * tests/test-glob.c: Add.
73450 2009-05-04  Simon Josefsson  <simon@josefsson.org>
73452         * modules/fnmatch-tests: New module.
73453         * tests/test-fnmatch.c: Add.
73455 2009-05-04  Eric Blake  <ebb9@byu.net>
73457         maint: make the new no-submodule-changes rule VPATH-safe
73458         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
73460 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
73461             Bruno Haible  <bruno@clisp.org>
73463         acl: Fix infinite loop on FreeBSD.
73464         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
73465         of return value from acl_get_entry.
73466         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
73467         Likewise.
73469 2009-05-03  Bruno Haible  <bruno@clisp.org>
73471         * lib/acl-internal.h (acl_entries): Clarify return value.
73472         * lib/acl_entries.c (acl_entries): Likewise.
73474 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
73476         Bug fix in acl module.
73477         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
73479 2009-05-03  Bruno Haible  <bruno@clisp.org>
73481         Create gperf-generated file in the source dir, not in the build dir.
73482         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
73483         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
73484         * modules/unicase/locale-language (unicase/locale-languages.h):
73485         Likewise.
73486         * modules/unicase/special-casing (unicase/special-casing-table.h):
73487         Likewise.
73488         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
73489         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
73490         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
73491         Reported by Ralf Wildenhues.
73493 2009-05-03  Bruno Haible  <bruno@clisp.org>
73495         * modules/fnmatch (Description, configure.ac): Taken from
73496         fnmatch-posix.
73497         * modules/fnmatch-posix: Turn into a symbolic reference to the
73498         'fnmatch' module, and deprecate.
73499         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
73501 2009-05-03  Bruno Haible  <bruno@clisp.org>
73503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
73504         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
73505         Reported by Ralf Wildenhues.
73507 2009-05-04  Simon Josefsson  <simon@josefsson.org>
73509         * m4/fnmatch.m4: Fix fnmatch re-define.
73511 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
73513         priv-set: new module and tests; adapt write-any-file
73514         * lib/priv-set.c: New file.
73515         * lib/priv-set.h: New file.
73516         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
73517         * lib/write-any-file.c: Simplify by using priv-set module.
73518         * m4/priv-set.m4: New file.
73519         * modules/priv-set: New file.
73520         * modules/unlinkdir: Add dependency on priv-set module.
73521         * modules/write-any-file: Likewise.
73523         Tests for module 'priv-set'.
73524         * modules/priv-set-tests: New file.
73525         * tests/test-priv-set.c: New file.
73527 2009-05-03  Jim Meyering  <meyering@redhat.com>
73528             Bruno Haible  <bruno@clisp.org>
73530         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
73531         use the converted UTF-8 variant of the name instead.
73533 2009-05-03  Jim Meyering  <meyering@redhat.com>
73535         tests: tighten some getdate tests
73536         * tests/test-getdate.c (main): Tighten tests: require equality,
73537         not just greater than.  Set TZ envvar to UTC0.
73539 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
73541         getdate: correctly interpret "next monday" when run on a Monday
73542         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
73543         that e.g., "next tues" (when run on a tuesday) results in a date
73544         that is one week in the future, and not today's date.
73545         I.e., add a week when the wday is the same as the current one.
73546         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
73547         and earlier by Martin Bernreuther and Jan Minář.
73548         * tests/test-getdate.c (main): Check that "next DAY" is always in
73549         the future and that "last DAY" is always in the past.
73551 2009-05-02  Jim Meyering  <meyering@redhat.com>
73553         build: ensure that a release build fails when a submodule is unclean
73554         * top/maint.mk (no-submodule-changes): New rule.
73555         (alpha beta major): Depend on it.
73557 2009-05-02  Bruno Haible  <bruno@clisp.org>
73559         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
73560         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
73561         shell variable gl_fnmatch_required to detect which variant is
73562         requested.
73563         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
73564         gl_FUNC_FNMATCH_POSIX.
73565         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
73566         exclude fnmatch-posix.
73568 2009-05-02  Bruno Haible  <bruno@clisp.org>
73570         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
73571         * modules/mbsrtowcs (License): Change to LGPLv2+.
73572         * modules/strnlen1 (License): Likewise.
73573         Reported by Simon Josefsson.
73575 2009-05-02  Bruno Haible  <bruno@clisp.org>
73577         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
73578         "cross".
73579         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
73580         gnulib-tool was called with option --source-base=lib.
73582 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73584         Use automake *-local hooks without commands, for extensibility.
73585         * modules/localcharset (Makefile.am): Rename install-exec-local
73586         rule to install-exec-localcharset, and make it a prerequisite of
73587         install-exec-local.  Likewise, rename the uninstall-local rule to
73588         uninstall-localcharset, and make it a prerequisite of the former.
73590 2009-05-01  Bruno Haible  <bruno@clisp.org>
73592         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
73593         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
73594         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
73595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
73596         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
73597         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
73598         m4/locale-zh.m4, m4/codeset.m4.
73600         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
73601         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
73602         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
73603         m4/locale-zh.m4.
73605         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
73606         REPLACE_WCRTOMB if mbstate_t must be replaced.
73607         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
73608         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
73610 2009-05-01  Bruno Haible  <bruno@clisp.org>
73612         Avoid compiler warnings when redefining macros defined by <libintl.h>.
73613         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
73614         dngettext, dcngettext, textdomain, bindtextdomain,
73615         bind_textdomain_codeset): Undefine before redefining.
73617 2009-04-30  Bruno Haible  <bruno@clisp.org>
73619         Fix bug introduced on 2009-04-25.
73620         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
73621         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
73622         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
73623         is defined.
73624         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
73625         is defined.
73626         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
73627         is defined.
73628         Reported by Elbert_Pol <elbert.pol@gmail.com>.
73630 2009-04-28  Bruno Haible  <bruno@clisp.org>
73632         Comment tweaks.
73633         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
73634         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
73635         * lib/unicase.h (u*_casexfrm): Likewise.
73636         Reported by Paolo Bonzini.
73638 2009-04-28  Bruno Haible  <bruno@clisp.org>
73640         Fix a compilation error.
73641         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
73642         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
73643         Reported by Jim Meyering.
73645 2009-04-27  Bruno Haible  <bruno@clisp.org>
73647         New module 'libunistring'.
73648         * modules/libunistring: New file.
73649         * m4/libunistring.m4: New file.
73650         * MODULES.html.sh (Unicode string functions): Add it.
73652 2009-04-27  Eric Blake  <ebb9@byu.net>
73654         maint.mk: allow package-specific header to provide <config.h>
73655         * top/maint.mk (sc_require_config_h): New variable.
73656         (sc_require_config_h, sc_require_config_h_first): Use it.
73658 2009-04-27  Simon Josefsson  <simon@josefsson.org>
73660         * top/maint.mk (sc_avoid_if_before_free): Except
73661         useless-if-before-free script.
73663 2009-04-27  Eric Blake  <ebb9@byu.net>
73665         maintainer-makefile: depend on all required helper scripts
73666         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
73667         useless-if-before-free.
73668         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
73669         version, rather than assuming gnulib checkout is available.
73670         Reported by Simen Josefsson.
73672 2009-04-26  Bruno Haible  <bruno@clisp.org>
73674         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
73675         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
73676         "../" or "..".
73678 2009-04-26  Bruno Haible  <bruno@clisp.org>
73680         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
73681         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
73682         AC_LIB_HAVE_LINKFLAGS.
73684 2009-04-26  Bruno Haible  <bruno@clisp.org>
73686         Simplify calling convention of u*_conv_from_encoding.
73687         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
73688         u32_conv_from_encoding): Expect a resultbuf argument and return the
73689         result directly as a pointer.
73690         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
73691         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
73692         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
73693         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
73694         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
73695         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
73696         Update.
73697         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
73698         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
73699         * lib/vasnprintf.c (VASNPRINTF): Update.
73700         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
73701         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
73702         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
73703         * NEWS: Mention the change.
73705 2009-04-26  Bruno Haible  <bruno@clisp.org>
73707         Simplify calling convention of u*_conv_to_encoding.
73708         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
73709         u32_conv_to_encoding): Expect a resultbuf argument and return the
73710         result directly as a pointer.
73711         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
73712         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
73713         freeing scaled_offsets if mem_iconveha failed.
73714         * lib/unicase/u-casexfrm.h (FUNC): Update.
73715         * lib/uninorm/u-normxfrm.h (FUNC): Update.
73716         * lib/vasnprintf.c (VASNPRINTF): Update.
73717         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
73718         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
73719         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
73720         * NEWS: Mention the change.
73722 2009-04-26  Bruno Haible  <bruno@clisp.org>
73724         Avoid test failures on AIX and OSF/1.
73725         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
73726         malloc(0).
73727         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
73728         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
73729         Likewise.
73730         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
73731         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
73732         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
73733         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
73734         * doc/posix-functions/malloc.texi: Document the portability problem
73735         related to malloc(0).
73737 2009-04-26  Bruno Haible  <bruno@clisp.org>
73739         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
73740         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
73741         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
73743 2009-04-25  Bruno Haible  <bruno@clisp.org>
73745         Avoid link error when creating a namespace clean library.
73746         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
73747         as macro with arguments if already defined as an alias.
73748         * lib/signbitf.c (gl_signbitf): Don't undefine.
73749         * lib/signbitd.c (gl_signbitd): Don't undefine.
73750         * lib/signbitl.c (gl_signbitl): Don't undefine.
73752 2009-04-25  Jim Meyering  <meyering@redhat.com>
73754         vc-list-files: fix another quoting bug
73755         * build-aux/vc-list-files: Avoid sed backslash expansion
73756         of pathological directory names.
73758 2009-04-25  Eric Blake  <ebb9@byu.net>
73760         vc-list-files: fix shell quoting error
73761         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
73762         timestamp.
73764 2009-04-25  Jim Meyering  <meyering@redhat.com>
73766         vc-list-files: restore lost functionality with subdir argument
73767         * build-aux/vc-list-files: When given a non-"." sub-directory
73768         argument, substitute the $dir/ prefix back onto each resulting name.
73769         Otherwise, coreutils' root_tests check would fail.
73771 2009-04-24  Eric Blake  <ebb9@byu.net>
73773         vc-list-files: ignore git symlinks
73774         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
73775         than ls-files, to ignore git symlinks.
73777         maint.mk: import improvements from m4
73778         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
73779         (move_if_change): Delete unused macro.
73780         (news-date-check, vc-diff-check): Support VPATH builds.
73781         (announcement): Likewise.  Split --bootstrap-tools list...
73782         (boostrap-tools): ...into separate list, which can be overridden
73783         in cfg.mk.
73784         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
73785         requiring dependency on useless-if-before-free module.
73786         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
73787         Support VPATH builds.
73789 2009-04-24  Jim Meyering  <meyering@redhat.com>
73791         maint.mk: remove coreutils-specific rules and variables
73792         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
73793         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
73794         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
73796         maint.mk: remove obsolete rule
73797         * top/maint.mk (rel-check): Remove rule.
73798         (WGET, WGETFLAGS): Remove now-unused variables.
73800 2009-04-24  Simon Josefsson  <simon@josefsson.org>
73802         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
73803         consistency.
73805         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
73806         '$(PATH_SEPARATOR)' instead of ':'.
73808 2009-04-24  Simon Josefsson  <simon@josefsson.org>
73810         * lib/getopt1.c (main): Use 'const' for static array.
73812 2009-04-24  Simon Josefsson  <simon@josefsson.org>
73814         * top/maint.mk: Sync with coreutils.
73815         * NEWS: Explain incompatibilities.
73817 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73818             Bruno Haible  <bruno@clisp.org>
73820         Fix cross-compilation results.
73821         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
73822         statement, as third argument of AC_TRY_RUN.
73823         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
73824         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
73825         Likewise.
73826         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
73827         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
73828         Likewise.
73829         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
73830         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
73831         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
73833 2009-04-20  Bruno Haible  <bruno@clisp.org>
73835         Avoid test failure on mingw.
73836         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
73838 2009-04-20  Bruno Haible  <bruno@clisp.org>
73840         Avoid compilation error on mingw.
73841         * modules/localename-tests (Depends-on): Add locale.
73843 2009-04-19  Bruno Haible  <bruno@clisp.org>
73845         Support for building a shared library on Windows platforms.
73846         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
73847         (main): Test the presence of UNINORM_NFC here.
73848         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
73849         (main): Test the presence of UNINORM_NFD here.
73850         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
73851         (main): Test the presence of UNINORM_NFKC here.
73852         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
73853         (main): Test the presence of UNINORM_NFKD here.
73855 2009-04-19  Bruno Haible  <bruno@clisp.org>
73857         Avoid a compiler warning.
73858         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
73859         Change type of variable 'sequence'.
73861 2009-04-19  Bruno Haible  <bruno@clisp.org>
73863         * modules/configmake (Makefile.am): When the contents of configmake.h
73864         does not change, arrange to preserve its modification time.
73866 2009-04-17  Simon Josefsson  <simon@josefsson.org>
73868         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
73869         gettext domain.
73871 2009-04-16  Jim Meyering  <meyering@redhat.com>
73873         useless-if-before-free: improve conversion code
73874         * build-aux/useless-if-before-free: Adjust code-in-comment to match
73875         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
73877 2009-04-14  Bruno Haible  <bruno@clisp.org>
73879         * modules/fcntl (Depends-on): Add extensions.
73880         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
73882 2009-04-12  Ben Pfaff  <blp@gnu.org>
73884         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
73885         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
73887 2009-03-20  Ben Pfaff  <blp@gnu.org>
73889         Make rename replace existing destinations on Windows.
73890         * m4/rename.m4: Add test for Mingw.
73891         * lib/rename.c: Add rename replacement that uses MoveFileEx with
73892         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
73893         * doc/posix-functions/rename.texi: Document.
73895 2009-04-10  Bruno Haible  <bruno@clisp.org>
73897         New include file "iconveh.h".
73898         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
73899         * lib/striconveh.h: Include it.
73900         (enum iconv_ilseq_handler): Remove definition.
73901         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
73902         striconveh.h.
73903         * lib/striconveha.c: Include striconveh.h.
73904         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
73905         * modules/striconveh (Files): Add lib/iconveh.h.
73906         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
73907         lib/striconveh.h.
73909 2009-04-10  Bruno Haible  <bruno@clisp.org>
73911         * lib/uniconv.h: Update comment.
73913 2009-04-10  Bruno Haible  <bruno@clisp.org>
73915         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
73916         always.
73917         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
73918         * lib/unistr/u16-mbtouc-aux.c: Likewise.
73919         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
73920         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
73921         "unistring-notinline.h", so that the function gets defined always.
73922         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
73923         * lib/unistr/u8-uctomb.c: Likewise.
73924         * lib/unistr/u16-mbtouc.c: Likewise.
73925         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
73926         * lib/unistr/u16-uctomb.c: Likewise.
73927         * lib/unistr/u32-mbtouc.c: Likewise.
73928         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
73929         * lib/unistr/u32-uctomb.c: Likewise.
73931 2009-04-10  Bruno Haible  <bruno@clisp.org>
73933         Mark 'utime' obsolete.
73934         * modules/utime (Status, Notice): New sections.
73935         Suggested by Jim Meyering.
73937         Fix cross-compile guess for utime test.
73938         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
73939         autoconf.
73940         * doc/posix-functions/utime.texi: Give more precisions.
73941         Reported by Jan <ipif@ymail.com>.
73943 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
73945         filevercmp: correct today's change
73946         * lib/filevercmp.c: Also handle coreutils' test inputs.
73947         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
73949         Fix regression in 'filevercmp' module. Thanks Sven Joachim
73950         for reporting it.
73951         * lib/filevercmp.c: Special handle for "", "." and "..".
73952         * tests/test-filevercmp.c: Enlarge the set suite.
73954 2009-04-07  Jim Meyering  <meyering@redhat.com>
73956         useless-if-before-free: show how to remove braced useless free, too
73957         * build-aux/useless-if-before-free: still only in a comment, though.
73959 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
73961         maint.mk: import changes to syntax-check macros from coreutils
73962         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
73963         Use them in the relevant macros.
73965 2009-04-06  Bruno Haible  <bruno@clisp.org>
73967         Fix unportable use of bit-fields.
73968         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
73969         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
73970         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
73972 2009-04-06  Bruno Haible  <bruno@clisp.org>
73974         Avoid test failures on AIX and OSF/1.
73975         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
73976         that malloc(0) = NULL.
73977         * tests/unicase/test-u8-tolower.c (check): Likewise.
73978         * tests/unicase/test-u8-totitle.c (check): Likewise.
73979         * tests/unicase/test-u8-toupper.c (check): Likewise.
73980         * tests/unicase/test-u16-casefold.c (check): Likewise.
73981         * tests/unicase/test-u16-tolower.c (check): Likewise.
73982         * tests/unicase/test-u16-totitle.c (check): Likewise.
73983         * tests/unicase/test-u16-toupper.c (check): Likewise.
73984         * tests/unicase/test-u32-casefold.c (check): Likewise.
73985         * tests/unicase/test-u32-tolower.c (check): Likewise.
73986         * tests/unicase/test-u32-totitle.c (check): Likewise.
73987         * tests/unicase/test-u32-toupper.c (check): Likewise.
73988         * tests/uninorm/test-u8-nfc.c (check): Likewise.
73989         * tests/uninorm/test-u8-nfd.c (check): Likewise.
73990         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
73991         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
73992         * tests/uninorm/test-u16-nfc.c (check): Likewise.
73993         * tests/uninorm/test-u16-nfd.c (check): Likewise.
73994         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
73995         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
73996         * tests/uninorm/test-u32-nfc.c (check): Likewise.
73997         * tests/uninorm/test-u32-nfd.c (check): Likewise.
73998         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
73999         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
74001 2009-04-05  Bruno Haible  <bruno@clisp.org>
74003         Work around an autoconf limitation.
74004         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
74005         comment line if it would be longer than 3 KB.
74007 2009-04-05  Bruno Haible  <bruno@clisp.org>
74009         Avoid test failure with libiconv-1.13.
74010         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
74011         of the expected test results.
74013 2009-04-05  Bruno Haible  <bruno@clisp.org>
74015         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
74016         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
74017         that it should be installed.
74019 2009-04-05  Bruno Haible  <bruno@clisp.org>
74021         * gnulib-tool: New option --copy-file.
74022         (func_usage): Document it.
74023         (func_dest_tmpfilename): Moved out of func_import.
74024         (func_add_file, func_update_file): New functions, extracted from
74025         func_import.
74026         (func_import): Update.
74028 2009-04-05  Karl Berry  <karl@gnu.org>
74030         * README: prominently mention gnulib-tool.
74031         Rearrange sections so getting the code is near the top.
74033 2009-04-05  Bruno Haible  <bruno@clisp.org>
74035         * lib/unicase.h: Mention u*_cmp2.
74036         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
74037         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
74038         * lib/unicase/ulc-casecmp.c: Likewise.
74039         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
74040         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
74041         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
74042         unistr/u8-cmp.
74043         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
74044         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
74045         unistr/u16-cmp.
74046         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
74047         unistr/u32-cmp.
74049         * lib/uninorm.h: Mention u*_cmp2.
74050         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
74051         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
74052         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
74053         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
74054         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
74055         unistr/u8-cmp.
74056         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
74057         unistr/u16-cmp.
74058         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
74059         unistr/u32-cmp.
74061         New module 'unistr/u32-cmp2'.
74062         * lib/unistr/u32-cmp2.c: New file.
74063         * modules/unistr/u32-cmp2: New file.
74065         New module 'unistr/u16-cmp2'.
74066         * lib/unistr/u16-cmp2.c: New file.
74067         * modules/unistr/u16-cmp2: New file.
74069         New module 'unistr/u8-cmp2'.
74070         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
74071         * lib/unistr/u8-cmp2.c: New file.
74072         * lib/unistr/u-cmp2.h: New file.
74073         * modules/unistr/u8-cmp2: New file.
74075 2009-04-05  Bruno Haible  <bruno@clisp.org>
74077         * lib/unictype.h (uc_property_is_valid): New macro.
74078         * tests/unictype/test-pr_byname.c (main): Use it.
74080         * lib/unistr.h: Doc fixes.
74081         * lib/uniconv.h: Doc fixes.
74082         * lib/unictype.h: Doc fixes.
74084 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
74086         Port coreutils 7.2 to Solaris 8.
74088         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
74089         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
74090         for Solaris 8.  This is a bit of a hack, as it means it's the
74091         caller's responsibility to add -lnsl if needed, but most likely it
74092         won't be needed since only getaddrinfo uses this and getaddrinfo
74093         isn't needed on Solaris 8.
74095         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
74096         problem to Solaris 8 encountered with coreutils 7.2, which
74097         resulted in a message "fnmatch.c:292: warning: passing argument 4
74098         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
74099         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
74101 2009-04-03  Simon Josefsson  <simon@josefsson.org>
74103         * m4/ld-version-script.m4: Add FIXME comment.
74105 2009-04-02  Simon Josefsson  <simon@josefsson.org>
74107         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
74108         SOVERSION variable.
74110 2009-04-02  Bruno Haible  <bruno@clisp.org>
74112         * Makefile (info, html, dvi, pdf): Combine the rules.
74113         Suggested by Jim Meyering.
74115 2009-04-01  Bruno Haible  <bruno@clisp.org>
74117         * Makefile (info, html, dvi, pdf): New targets.
74118         Reported by Reuben Thomas <rrt@sc3d.org>.
74120 2009-04-01  Bruno Haible  <bruno@clisp.org>
74122         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
74123         can be put into PATH.
74124         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
74126 2009-04-01  Bruno Haible  <bruno@clisp.org>
74128         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
74130 2009-04-01  Bruno Haible  <bruno@clisp.org>
74132         Rename module 'visibility'.
74133         * modules/lib-symbol-visibility: Renamed from modules/visibility.
74134         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
74135         * doc/gnulib.texi: Update.
74136         * MODULES.html.sh (Misc): Update.
74137         * NEWS: Mention the change.
74139 2009-04-01  Simon Josefsson  <simon@josefsson.org>
74141         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
74142         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
74143         Eric Blake <ebb9@byu.net> for review.
74144         * MODULES.html.sh: Add lib-msvc-compat.
74145         * doc/gnulib.texi: Link to new section.
74146         * m4/ld-output-def.m4: New file.
74147         * doc/ld-output-def.texi: New file.
74149 2009-04-01  Simon Josefsson  <simon@josefsson.org>
74151         Rename ld-version-script to lib-symbol-versions.  Suggested by
74152         Bruno Haible <bruno@clisp.org>.
74153         * modules/ld-version-script: Renamed to lib-symbol-versions.
74154         * doc/ld-version-script.texi: Fix module name.
74155         * MODULES.html.sh: Add lib-symbol-versions.
74157 2009-03-31  Simon Josefsson  <simon@josefsson.org>
74159         * modules/u64-tests: New file.
74160         * tests/test-u64.c: New file.
74162 2009-03-04  Simon Josefsson  <simon@josefsson.org>
74164         * MODULES.html.sh: Mention u64.
74165         * modules/u64: New module.
74166         * modules/crypto/sha512: Depend on u64 module instead of providing
74167         u64.h.
74169 2009-03-27  Eric Blake  <ebb9@byu.net>
74171         test-strerror: make debugging EAI_SYSTEM easier
74172         * modules/getaddrinfo-tests (Depends-on): Add strerror.
74173         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
74174         failure was EAI_SYSTEM.
74176 2009-03-25  Bruno Haible  <bruno@clisp.org>
74178         Fix a problem with --enable-relocatable on Solaris 7.
74179         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
74180         since 2008-02-24.
74182 2009-03-25  Eric Blake  <ebb9@byu.net>
74184         test-sockets: avoid gcc warning
74185         * tests/test-sockets.c (main): Silence compiler warning.
74187 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
74189         New modules nproc, pthread, contributed by Glen Lenker.
74191         * MODULES.html.sh: Add pthread, nproc.
74192         * lib/nproc.c: New file.
74193         * lib/nproc.h: New file.
74194         * lib/pthread.in.h: New file.
74195         * m4/pthread.m4: New file.
74196         * modules/nproc: New file.
74197         * modules/pthread: New file.
74199 2009-03-24  Simon Josefsson  <simon@josefsson.org>
74201         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
74202         New variable.
74204 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
74206         filevercmp: handle simple~ and numbered.~3~ backup suffixes
74207         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
74208         * tests/test-filevercmp.c: Add tests for backup suffixes.
74210 2009-03-24  Simon Josefsson  <simon@josefsson.org>
74212         * modules/stdlib (Depends-on): Add stdint, needed when defining
74213         struct random_data on, for example, HP-UX 10.20.  Reported by
74214         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
74216 2009-03-24  Simon Josefsson  <simon@josefsson.org>
74218         * lib/readline.c (readline): Call fflush on stdout after printing
74219         prompt.
74221 2009-03-20  Bruno Haible  <bruno@clisp.org>
74223         Remove dependency from 'close' module to -lws2_32 on native Windows.
74224         * lib/close-hook.h: New file.
74225         * lib/close-hook.c: New file.
74226         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
74227         w32sock.h.
74228         (_gl_close_fd_maybe_socket): Remove function.
74229         (rpl_close): Invoke execute_all_close_hooks instead of
74230         _gl_close_fd_maybe_socket.
74231         * lib/sockets.c: Include close-hook.h, w32sock.h.
74232         (close_fd_maybe_socket): New function, essentially from lib/close.c.
74233         (close_sockets_hook): New variable.
74234         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
74235         (gl_sockets_cleanup): Unregister it.
74236         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
74237         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
74238         * modules/close-hook: New file.
74239         * modules/close (Files): Remove lib/w32sock.h.
74240         (Depends-on): Add close-hook.
74241         (Link): Remove section.
74242         * modules/sockets (Files): Add lib/w32sock.h.
74243         (Depends-on): Add close-hook.
74244         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
74245         invocation.
74246         * NEWS: Mention that LIB_CLOSE is gone.
74248 2009-03-23  Eric Blake  <ebb9@byu.net>
74250         signal-tests: test previous patch
74251         * tests/test-signal.c: New file.
74252         * modules/signal-tests: Likewise.
74254         signal.h: always support 'volatile sig_atomic_t'
74255         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
74256         (gl_SIGNAL_H_DEFAULTS): Add a default.
74257         * modules/signal (Makefile.am): Substitute if needed.
74258         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
74259         users can blindly add volatile.
74260         * doc/posix-headers/signal.texi (signal.h): Document it.
74261         Reported by Matthew Woehlke.
74263 2009-03-23  Jim Meyering  <meyering@redhat.com>
74265         pathmax: PATH_MAX: use pathconf only when available
74266         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
74267         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
74268         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
74269         This avoids a link failure in a PSP cross-compilation environment
74270         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
74272         * lib/vasnprintf.c (divide): Fix typo in comment.
74274 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74276         * gnulib-tool (func_filter_filelist): Fix comment.
74278 2009-03-20  Bruno Haible  <bruno@clisp.org>
74280         Make sockets.h self-contained.
74281         * lib/sockets.c: Include sockets.h first.
74282         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
74284 2009-03-19  Eric Blake  <ebb9@byu.net>
74286         doc: mention more functions added in cygwin 1.7.0
74287         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
74288         addition.
74289         * doc/posix-functions/log2f.texi: Likewise.
74291 2009-03-19  Jim Meyering  <meyering@redhat.com>
74293         fsusage: avoid syntax error due to statement-before-declaration
74294         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
74295         after all declarations.  Reported by Matthew Woehlke in
74296         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
74298 2009-03-18  Eric Blake  <ebb9@byu.net>
74300         build-aux/compile: sync from automake
74301         * build-aux/compile: New file, from automake.
74302         * config/srclist.txt: Mention build-aux/compile.
74304 2009-03-17  Bruno Haible  <bruno@clisp.org>
74306         * lib/git-merge-changelog.c: Fix typo in comment.
74307         Reported by Reuben Thomas <rrt@sc3d.org>.
74309 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
74311         * m4/regex.m4: update and improve help for
74312         --without-included-regex.
74314 2009-03-17  Simon Josefsson  <simon@josefsson.org>
74316         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
74317         failure on missing include files.
74319 2009-03-17  Eric Blake  <ebb9@byu.net>
74321         doc: mention more functions added in cygwin 1.7.0
74322         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
74323         addition.
74324         * doc/posix-functions/fwscanf.texi: Likewise.
74325         * doc/posix-functions/swprintf.texi: Likewise.
74326         * doc/posix-functions/swscanf.texi: Likewise.
74327         * doc/posix-functions/vfwprintf.texi: Likewise.
74328         * doc/posix-functions/vfwscanf.texi: Likewise.
74329         * doc/posix-functions/vswprintf.texi: Likewise.
74330         * doc/posix-functions/vswscanf.texi: Likewise.
74331         * doc/posix-functions/vwprintf.texi: Likewise.
74332         * doc/posix-functions/vwscanf.texi: Likewise.
74333         * doc/posix-functions/wcscasecmp.texi: Likewise.
74334         * doc/posix-functions/wcsdup.texi: Likewise.
74335         * doc/posix-functions/wcsftime.texi: Likewise.
74336         * doc/posix-functions/wcsncasecmp.texi: Likewise.
74337         * doc/posix-functions/wprintf.texi: Likewise.
74338         * doc/posix-functions/wscanf.texi: Likewise.
74339         * doc/glibc-functions/gethostbyname2.texi: Likewise.
74341 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74343         maint.mk: really add $(AM_MAKEFLAGS)
74344         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
74345         was inadvertently omitted in the last commit.
74346         Spotted by Bruno Haible.
74348         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
74349         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
74350         $(AM_MAKEFLAGS)' rather than plain `make'.
74352         gnulib-tool: execute $MAKE not make
74353         * gnulib-tool: Default $MAKE to 'make'.
74354         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
74355         than make.  Initialize $MAKE in the do-autobuild script.
74357         gnulib-tool: use $MAKE not make in generated files
74358         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
74359         make, in generated files.  Initialize $MAKE in the do-autobuild
74360         script.
74362         * top/GNUmakefile (_have-git-version-gen): Fix typo.
74364         GNUmakefile: disable parallelism only for multiple, recursive targets
74365         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
74366         additions in the Makefile.
74367         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
74368         by Automake.
74369         (.NOTPARALLEL): Only disable parallel builds if multiple targets
74370         are listed on the command line and at least one of them is
74371         listed in $(ALL_RECURSIVE_TARGETS).
74373 2009-03-14  Bruno Haible  <bruno@clisp.org>
74375         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
74376         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
74377         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
74378         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
74379         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
74380         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
74381         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
74382         unistr/u8-uctomb.
74383         * modules/unistr/u8-strchr (Depends-on): Likewise.
74384         * modules/unistr/u8-strrchr (Depends-on): Likewise.
74385         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
74386         unistr/u16-uctomb.
74387         * modules/unistr/u16-strchr (Depends-on): Likewise.
74388         * modules/unistr/u16-strrchr (Depends-on): Likewise.
74390 2009-03-12  Bruno Haible  <bruno@clisp.org>
74392         Work around select() bug on Interix 3.5.
74393         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
74394         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
74395         * m4/select.m4: New file.
74396         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
74397         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
74398         * modules/select (Files): Add m4/select.m4.
74399         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
74400         * modules/nanosleep (Depends-on): Add select.
74401         * modules/poll (Depends-on): Likewise.
74402         * doc/posix-functions/select.texi: Mention the Interix bug.
74403         Reported by Markus Duft <mduft@gentoo.org>.
74405         * lib/select.c: Renamed from lib/winsock-select.c.
74406         * modules/select (Files): Add lib/select.c, remove
74407         lib/winsock-select.c.
74408         (configure.ac): Update.
74410 2009-03-12  Jim Meyering  <meyering@redhat.com>
74412         avoid gcc warnings about unused macro definitions
74413         * lib/readtokens.c (STREQ): Remove unused definition.
74414         * lib/xmalloc.c (SIZE_MAX): Likewise.
74415         * lib/openat-die.c (N_): Likewise.
74416         * lib/mountlist.c (SIZE_MAX): Remove definition.
74417         Instead, include <stdint.h>.
74418         * lib/readutmp.c: Likewise.
74419         * modules/readutmp (Depends-on): Add stdint.
74420         * modules/mountlist (Depends-on): Add stdint.
74421         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
74423 2009-03-10  Bruno Haible  <bruno@clisp.org>
74425         Tests for module 'mbmemcasecoll'.
74426         * modules/mbmemcasecoll-tests: New file.
74427         * tests/test-mbmemcasecoll1.sh: New file.
74428         * tests/test-mbmemcasecoll2.sh: New file.
74429         * tests/test-mbmemcasecoll3.sh: New file.
74430         * tests/test-mbmemcasecoll.c: New file.
74432         New module 'mbmemcasecoll'.
74433         * lib/mbmemcasecoll.h: New file.
74434         * lib/mbmemcasecoll.c: New file.
74435         * modules/mbmemcasecoll: New file.
74437         * tests/test-mbmemcasecmp.h: New file, extracted from
74438         tests/test-mbmemcasecmp.c.
74439         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
74440         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
74441         (main): Update.
74442         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
74444 2009-03-09  Bruno Haible  <bruno@clisp.org>
74446         Tests for module 'mbmemcasecmp'.
74447         * modules/mbmemcasecmp-tests: New file.
74448         * tests/test-mbmemcasecmp1.sh: New file.
74449         * tests/test-mbmemcasecmp2.sh: New file.
74450         * tests/test-mbmemcasecmp3.sh: New file.
74451         * tests/test-mbmemcasecmp.c: New file.
74453         New module 'mbmemcasecmp'.
74454         * lib/mbmemcasecmp.h: New file.
74455         * lib/mbmemcasecmp.c: New file.
74456         * modules/mbmemcasecmp: New file.
74458 2009-03-09  Bruno Haible  <bruno@clisp.org>
74460         Tests for module 'unicase/ulc-casecoll'.
74461         * modules/unicase/ulc-casecoll-tests: New file.
74462         * tests/unicase/test-ulc-casecoll1.sh: New file.
74463         * tests/unicase/test-ulc-casecoll2.sh: New file.
74464         * tests/unicase/test-ulc-casecoll.c: New file.
74466         New module 'unicase/ulc-casecoll'.
74467         * lib/unicase.h (ulc_casecoll): New declaration.
74468         * lib/unicase/ulc-casecoll.c: New file.
74469         * modules/unicase/ulc-casecoll: New file.
74471         New module 'unicase/ulc-casexfrm'.
74472         * lib/unicase.h (ulc_casexfrm): New declaration.
74473         * lib/unicase/ulc-casexfrm.c: New file.
74474         * modules/unicase/ulc-casexfrm: New file.
74476 2009-03-09  Bruno Haible  <bruno@clisp.org>
74478         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
74479         invocations.
74481         * m4/mbscasecmp.m4: Remove file.
74482         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
74483         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
74485         * m4/mbscasestr.m4: Remove file.
74486         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
74487         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
74489         * m4/mbschr.m4: Remove file.
74490         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
74491         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
74493         * m4/mbscspn.m4: Remove file.
74494         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
74495         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
74497         * m4/mbslen.m4: Remove file.
74498         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
74499         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
74501         * m4/mbsncasecmp.m4: Remove file.
74502         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
74503         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
74505         * m4/mbsnlen.m4: Remove file.
74506         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
74507         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
74509         * m4/mbspbrk.m4: Remove file.
74510         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
74511         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
74513         * m4/mbspcasecmp.m4: Remove file.
74514         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
74515         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
74517         * m4/mbsrchr.m4: Remove file.
74518         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
74519         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
74521         * m4/mbssep.m4: Remove file.
74522         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
74523         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
74525         * m4/mbsspn.m4: Remove file.
74526         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
74527         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
74529         * m4/mbsstr.m4: Remove file.
74530         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
74531         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
74533         * m4/mbstok_r.m4: Remove file.
74534         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
74535         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
74537         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
74539         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
74540         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
74542         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
74544 2009-03-08  Bruno Haible  <bruno@clisp.org>
74546         Tests for module 'unicase/ulc-casecmp'.
74547         * modules/unicase/ulc-casecmp-tests: New file.
74548         * tests/unicase/test-ulc-casecmp1.sh: New file.
74549         * tests/unicase/test-ulc-casecmp2.sh: New file.
74550         * tests/unicase/test-ulc-casecmp.c: New file.
74552         New module 'unicase/ulc-casecmp'.
74553         * lib/unicase.h (ulc_casecmp): New declaration.
74554         * lib/unicase/ulc-casecmp.c: New file.
74555         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
74556         'const SRC_UNIT *'.
74557         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
74558         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
74559         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
74560         * modules/unicase/ulc-casecmp: New file.
74562         Tests for module 'unicase/u32-is-cased'.
74563         * modules/unicase/u32-is-cased-tests: New file.
74564         * tests/unicase/test-u32-is-cased.c: New file.
74566         Tests for module 'unicase/u16-is-cased'.
74567         * modules/unicase/u16-is-cased-tests: New file.
74568         * tests/unicase/test-u16-is-cased.c: New file.
74570         Tests for module 'unicase/u8-is-cased'.
74571         * modules/unicase/u8-is-cased-tests: New file.
74572         * tests/unicase/test-u8-is-cased.c: New file.
74573         * tests/unicase/test-is-cased.h: New file.
74575         New module 'unicase/u32-is-cased'.
74576         * lib/unicase/u32-is-cased.c: New file.
74577         * modules/unicase/u32-is-cased: New file.
74579         New module 'unicase/u16-is-cased'.
74580         * lib/unicase/u16-is-cased.c: New file.
74581         * modules/unicase/u16-is-cased: New file.
74583         New module 'unicase/u8-is-cased'.
74584         * lib/unicase/u8-is-cased.c: New file.
74585         * lib/unicase/u-is-cased.h: New file.
74586         * modules/unicase/u8-is-cased: New file.
74588         Tests for module 'unicase/u32-is-casefolded'.
74589         * modules/unicase/u32-is-casefolded-tests: New file.
74590         * tests/unicase/test-u32-is-casefolded.c: New file.
74592         Tests for module 'unicase/u16-is-casefolded'.
74593         * modules/unicase/u16-is-casefolded-tests: New file.
74594         * tests/unicase/test-u16-is-casefolded.c: New file.
74596         Tests for module 'unicase/u8-is-casefolded'.
74597         * modules/unicase/u8-is-casefolded-tests: New file.
74598         * tests/unicase/test-u8-is-casefolded.c: New file.
74599         * tests/unicase/test-is-casefolded.h: New file.
74601         New module 'unicase/u32-is-casefolded'.
74602         * lib/unicase/u32-is-casefolded.c: New file.
74603         * modules/unicase/u32-is-casefolded: New file.
74605         New module 'unicase/u16-is-casefolded'.
74606         * lib/unicase/u16-is-casefolded.c: New file.
74607         * modules/unicase/u16-is-casefolded: New file.
74609         New module 'unicase/u8-is-casefolded'.
74610         * lib/unicase/u8-is-casefolded.c: New file.
74611         * modules/unicase/u8-is-casefolded: New file.
74613         Tests for module 'unicase/u32-is-titlecase'.
74614         * modules/unicase/u32-is-titlecase-tests: New file.
74615         * tests/unicase/test-u32-is-titlecase.c: New file.
74617         Tests for module 'unicase/u16-is-titlecase'.
74618         * modules/unicase/u16-is-titlecase-tests: New file.
74619         * tests/unicase/test-u16-is-titlecase.c: New file.
74621         Tests for module 'unicase/u8-is-titlecase'.
74622         * modules/unicase/u8-is-titlecase-tests: New file.
74623         * tests/unicase/test-u8-is-titlecase.c: New file.
74624         * tests/unicase/test-is-titlecase.h: New file.
74626         New module 'unicase/u32-is-titlecase'.
74627         * lib/unicase/u32-is-titlecase.c: New file.
74628         * modules/unicase/u32-is-titlecase: New file.
74630         New module 'unicase/u16-is-titlecase'.
74631         * lib/unicase/u16-is-titlecase.c: New file.
74632         * modules/unicase/u16-is-titlecase: New file.
74634         New module 'unicase/u8-is-titlecase'.
74635         * lib/unicase/u8-is-titlecase.c: New file.
74636         * modules/unicase/u8-is-titlecase: New file.
74638         Tests for module 'unicase/u32-is-lowercase'.
74639         * modules/unicase/u32-is-lowercase-tests: New file.
74640         * tests/unicase/test-u32-is-lowercase.c: New file.
74642         Tests for module 'unicase/u16-is-lowercase'.
74643         * modules/unicase/u16-is-lowercase-tests: New file.
74644         * tests/unicase/test-u16-is-lowercase.c: New file.
74646         Tests for module 'unicase/u8-is-lowercase'.
74647         * modules/unicase/u8-is-lowercase-tests: New file.
74648         * tests/unicase/test-u8-is-lowercase.c: New file.
74649         * tests/unicase/test-is-lowercase.h: New file.
74651         New module 'unicase/u32-is-lowercase'.
74652         * lib/unicase/u32-is-lowercase.c: New file.
74653         * modules/unicase/u32-is-lowercase: New file.
74655         New module 'unicase/u16-is-lowercase'.
74656         * lib/unicase/u16-is-lowercase.c: New file.
74657         * modules/unicase/u16-is-lowercase: New file.
74659         New module 'unicase/u8-is-lowercase'.
74660         * lib/unicase/u8-is-lowercase.c: New file.
74661         * modules/unicase/u8-is-lowercase: New file.
74663         Tests for module 'unicase/u32-is-uppercase'.
74664         * modules/unicase/u32-is-uppercase-tests: New file.
74665         * tests/unicase/test-u32-is-uppercase.c: New file.
74667         Tests for module 'unicase/u16-is-uppercase'.
74668         * modules/unicase/u16-is-uppercase-tests: New file.
74669         * tests/unicase/test-u16-is-uppercase.c: New file.
74671         Tests for module 'unicase/u8-is-uppercase'.
74672         * modules/unicase/u8-is-uppercase-tests: New file.
74673         * tests/unicase/test-u8-is-uppercase.c: New file.
74674         * tests/unicase/test-is-uppercase.h: New file.
74676         New module 'unicase/u32-is-uppercase'.
74677         * lib/unicase/u32-is-uppercase.c: New file.
74678         * modules/unicase/u32-is-uppercase: New file.
74680         New module 'unicase/u16-is-uppercase'.
74681         * lib/unicase/u16-is-uppercase.c: New file.
74682         * modules/unicase/u16-is-uppercase: New file.
74684         New module 'unicase/u8-is-uppercase'.
74685         * lib/unicase/u8-is-uppercase.c: New file.
74686         * modules/unicase/u8-is-uppercase: New file.
74688         New module 'unicase/u32-is-invariant'.
74689         * lib/unicase/u32-is-invariant.c: New file.
74690         * modules/unicase/u32-is-invariant: New file.
74692         New module 'unicase/u16-is-invariant'.
74693         * lib/unicase/u16-is-invariant.c: New file.
74694         * modules/unicase/u16-is-invariant: New file.
74696         New module 'unicase/u8-is-invariant'.
74697         * lib/unicase/u8-is-invariant.c: New file.
74698         * lib/unicase/invariant.h: New file.
74699         * lib/unicase/u-is-invariant.h: New file.
74700         * modules/unicase/u8-is-invariant: New file.
74702         Tests for module 'unicase/u32-casecoll'.
74703         * modules/unicase/u32-casecoll-tests: New file.
74704         * tests/unicase/test-u32-casecoll.c: New file.
74706         Tests for module 'unicase/u16-casecoll'.
74707         * modules/unicase/u16-casecoll-tests: New file.
74708         * tests/unicase/test-u16-casecoll.c: New file.
74710         Tests for module 'unicase/u8-casecoll'.
74711         * modules/unicase/u8-casecoll-tests: New file.
74712         * tests/unicase/test-u8-casecoll.c: New file.
74714         New module 'unicase/u32-casecoll'.
74715         * lib/unicase/u32-casecoll.c: New file.
74716         * modules/unicase/u32-casecoll: New file.
74718         New module 'unicase/u16-casecoll'.
74719         * lib/unicase/u16-casecoll.c: New file.
74720         * modules/unicase/u16-casecoll: New file.
74722         New module 'unicase/u8-casecoll'.
74723         * lib/unicase/u8-casecoll.c: New file.
74724         * lib/unicase/u-casecoll.h: New file.
74725         * modules/unicase/u8-casecoll: New file.
74727         New module 'unicase/u32-casexfrm'.
74728         * lib/unicase/u32-casexfrm.c: New file.
74729         * modules/unicase/u32-casexfrm: New file.
74731         New module 'unicase/u16-casexfrm'.
74732         * lib/unicase/u16-casexfrm.c: New file.
74733         * modules/unicase/u16-casexfrm: New file.
74735         New module 'unicase/u8-casexfrm'.
74736         * lib/unicase/u8-casexfrm.c: New file.
74737         * lib/unicase/u-casexfrm.h: New file.
74738         * modules/unicase/u8-casexfrm: New file.
74740         Tests for module 'unicase/u32-casecmp'.
74741         * modules/unicase/u32-casecmp-tests: New file.
74742         * tests/unicase/test-u32-casecmp.c: New file.
74744         Tests for module 'unicase/u16-casecmp'.
74745         * modules/unicase/u16-casecmp-tests: New file.
74746         * tests/unicase/test-u16-casecmp.c: New file.
74748         Tests for module 'unicase/u8-casecmp'.
74749         * modules/unicase/u8-casecmp-tests: New file.
74750         * tests/unicase/test-u8-casecmp.c: New file.
74751         * tests/unicase/test-casecmp.h: New file.
74753         New module 'unicase/u32-casecmp'.
74754         * lib/unicase/u32-casecmp.c: New file.
74755         * modules/unicase/u32-casecmp: New file.
74757         New module 'unicase/u16-casecmp'.
74758         * lib/unicase/u16-casecmp.c: New file.
74759         * modules/unicase/u16-casecmp: New file.
74761         New module 'unicase/u8-casecmp'.
74762         * lib/unicase/u8-casecmp.c: New file.
74763         * lib/unicase/u-casecmp.h: New file.
74764         * modules/unicase/u8-casecmp: New file.
74766         Tests for module 'unicase/u32-casefold'.
74767         * modules/unicase/u32-casefold-tests: New file.
74768         * tests/unicase/test-u32-casefold.c: New file.
74770         Tests for module 'unicase/u16-casefold'.
74771         * modules/unicase/u16-casefold-tests: New file.
74772         * tests/unicase/test-u16-casefold.c: New file.
74774         Tests for module 'unicase/u8-casefold'.
74775         * modules/unicase/u8-casefold-tests: New file.
74776         * tests/unicase/test-u8-casefold.c: New file.
74778         New module 'unicase/u32-casefold'.
74779         * lib/unicase/u32-casefold.c: New file.
74780         * modules/unicase/u32-casefold: New file.
74782         New module 'unicase/u16-casefold'.
74783         * lib/unicase/u16-casefold.c: New file.
74784         * modules/unicase/u16-casefold: New file.
74786         New module 'unicase/u8-casefold'.
74787         * lib/unicase/u8-casefold.c: New file.
74788         * lib/unicase/u-casefold.h: New file.
74789         * modules/unicase/u8-casefold: New file.
74791         New module 'unicase/tocasefold'.
74792         * lib/unicase/casefold.h: New file.
74793         * lib/unicase/tocasefold.c: New file.
74794         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
74795         * modules/unicase/tocasefold: New file.
74797         Tests for module 'unicase/u32-totitle'.
74798         * modules/unicase/u32-totitle-tests: New file.
74799         * tests/unicase/test-u32-totitle.c: New file.
74801         Tests for module 'unicase/u16-totitle'.
74802         * modules/unicase/u16-totitle-tests: New file.
74803         * tests/unicase/test-u16-totitle.c: New file.
74805         Tests for module 'unicase/u8-totitle'.
74806         * modules/unicase/u8-totitle-tests: New file.
74807         * tests/unicase/test-u8-totitle.c: New file.
74809         New module 'unicase/u32-totitle'.
74810         * lib/unicase/u32-totitle.c: New file.
74811         * modules/unicase/u32-totitle: New file.
74813         New module 'unicase/u16-totitle'.
74814         * lib/unicase/u16-totitle.c: New file.
74815         * modules/unicase/u16-totitle: New file.
74817         New module 'unicase/u8-totitle'.
74818         * lib/unicase/u8-totitle.c: New file.
74819         * lib/unicase/u-totitle.h: New file.
74820         * modules/unicase/u8-totitle: New file.
74822         Tests for module 'unicase/u32-tolower'.
74823         * modules/unicase/u32-tolower-tests: New file.
74824         * tests/unicase/test-u32-tolower.c: New file.
74826         Tests for module 'unicase/u16-tolower'.
74827         * modules/unicase/u16-tolower-tests: New file.
74828         * tests/unicase/test-u16-tolower.c: New file.
74830         Tests for module 'unicase/u8-tolower'.
74831         * modules/unicase/u8-tolower-tests: New file.
74832         * tests/unicase/test-u8-tolower.c: New file.
74834         New module 'unicase/u32-tolower'.
74835         * lib/unicase/u32-tolower.c: New file.
74836         * modules/unicase/u32-tolower: New file.
74838         New module 'unicase/u16-tolower'.
74839         * lib/unicase/u16-tolower.c: New file.
74840         * modules/unicase/u16-tolower: New file.
74842         New module 'unicase/u8-tolower'.
74843         * lib/unicase/u8-tolower.c: New file.
74844         * modules/unicase/u8-tolower: New file.
74846         Tests for module 'unicase/u32-toupper'.
74847         * modules/unicase/u32-toupper-tests: New file.
74848         * tests/unicase/test-u32-toupper.c: New file.
74850         Tests for module 'unicase/u16-toupper'.
74851         * modules/unicase/u16-toupper-tests: New file.
74852         * tests/unicase/test-u16-toupper.c: New file.
74854         Tests for module 'unicase/u8-toupper'.
74855         * modules/unicase/u8-toupper-tests: New file.
74856         * tests/unicase/test-u8-toupper.c: New file.
74858         New module 'unicase/u32-toupper'.
74859         * lib/unicase/u32-toupper.c: New file.
74860         * modules/unicase/u32-toupper: New file.
74862         New module 'unicase/u16-toupper'.
74863         * lib/unicase/u16-toupper.c: New file.
74864         * modules/unicase/u16-toupper: New file.
74866         New module 'unicase/u8-toupper'.
74867         * lib/unicase/u8-toupper.c: New file.
74868         * modules/unicase/u8-toupper: New file.
74870         New module 'unicase/u32-casemap'.
74871         * lib/unicase/u32-casemap.c: New file.
74872         * modules/unicase/u32-casemap: New file.
74874         New module 'unicase/u16-casemap'.
74875         * lib/unicase/u16-casemap.c: New file.
74876         * modules/unicase/u16-casemap: New file.
74878         New module 'unicase/u8-casemap'.
74879         * lib/unicase/unicasemap.h: New file.
74880         * lib/unicase/u8-casemap.c: New file.
74881         * lib/unicase/u-casemap.h: New file.
74882         * modules/unicase/u8-casemap: New file.
74884         New module 'unicase/special-casing'.
74885         * lib/unicase/special-casing.h: New file.
74886         * lib/unicase/special-casing.c: New file.
74887         * lib/unicase/special-casing-table.gperf: New file, generated by
74888         gen-uni-tables.c.
74889         * modules/unicase/special-casing: New file.
74891         Tests for module 'unicase/locale-language'.
74892         * modules/unicase/locale-language-tests: New file.
74893         * tests/unicase/test-locale-language.sh: New file.
74894         * tests/unicase/test-locale-language.c: New file.
74896         New module 'unicase/locale-language'.
74897         * lib/unicase/locale-language.c: New file.
74898         * lib/unicase/locale-languages.gperf: New file.
74899         * modules/unicase/locale-language: New file.
74901         Generate more tables for case conversion and case folding.
74902         * lib/gen-uni-tables.c (SCC_*): New enum items.
74903         (struct special_casing_rule): New type.
74904         (casing_rules, num_casing_rules, allocated_casing_rules): New
74905         variables.
74906         (add_casing_rule, fill_casing_rules): New functions.
74907         (struct casefold_rule): New type.
74908         (casefolding_rules, num_casefolding_rules,
74909         allocated_casefolding_rules): New variables.
74910         (fill_casefolding_rules): New function.
74911         (unicode_casefold): New variable.
74912         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
74913         sort_casing_rules, output_casing_rules): New functions.
74914         (main): Accept to more arguments: SpecialCasing.txt and
74915         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
74916         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
74917         Output mapping for casefolding.
74919         * lib/unicase.h: Include stdbool.h, uninorm.h.
74920         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
74921         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
74922         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
74923         arguments.
74924         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
74925         resultp arguments.
74926         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
74927         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
74928         resultp arguments.
74929         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
74930         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
74931         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
74932         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
74933         declarations.
74934         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
74936 2009-03-08  Bruno Haible  <bruno@clisp.org>
74938         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
74939         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
74940         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
74941         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
74943 2009-03-07  Bruno Haible  <bruno@clisp.org>
74945         Adjust u*_normcmp, u*_normcoll API.
74946         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
74947         u16_normcoll, u32_normcoll): Change failure conventions.
74948         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
74949         errno and return -1.
74950         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
74952 2009-03-07  Bruno Haible  <bruno@clisp.org>
74954         Tests for module 'uninorm/u32-normcoll'.
74955         * modules/uninorm/u32-normcoll-tests: New file.
74956         * tests/uninorm/test-u32-normcoll.c: New file.
74958         Tests for module 'uninorm/u16-normcoll'.
74959         * modules/uninorm/u16-normcoll-tests: New file.
74960         * tests/uninorm/test-u16-normcoll.c: New file.
74962         Tests for module 'uninorm/u8-normcoll'.
74963         * modules/uninorm/u8-normcoll-tests: New file.
74964         * tests/uninorm/test-u8-normcoll.c: New file.
74966 2009-03-07  Bruno Haible  <bruno@clisp.org>
74968         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
74969         tests/uninorm/test-u32-normcmp.c.
74970         * tests/uninorm/test-u32-normcmp.c: Include it.
74971         (test_nonascii): New function, extracted from main. Add some more
74972         tests.
74973         (main): Invoke test_ascii and test_nonascii.
74974         * modules/uninorm/u32-normcmp-tests (Files): Add
74975         tests/uninorm/test-u32-normcmp.h.
74976         (Depends-on): Remove uninorm/u32-normcmp.
74978         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
74979         tests/uninorm/test-u16-normcmp.c.
74980         * tests/uninorm/test-u16-normcmp.c: Include it.
74981         (test_nonascii): New function, extracted from main. Add some more
74982         tests.
74983         (main): Invoke test_ascii and test_nonascii.
74984         * modules/uninorm/u16-normcmp-tests (Files): Add
74985         tests/uninorm/test-u16-normcmp.h.
74986         (Depends-on): Remove uninorm/u16-normcmp.
74988         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
74989         tests/uninorm/test-u8-normcmp.c.
74990         * tests/uninorm/test-u8-normcmp.c: Include it.
74991         (test_nonascii): New function, extracted from main. Add some more
74992         tests.
74993         (main): Invoke test_ascii and test_nonascii.
74994         * modules/uninorm/u8-normcmp-tests (Files): Add
74995         tests/uninorm/test-u8-normcmp.h.
74996         (Depends-on): Remove uninorm/u8-normcmp.
74998 2009-03-07  Bruno Haible  <bruno@clisp.org>
75000         New module 'uninorm/u32-normcoll'.
75001         * lib/uninorm/u32-normcoll.c: New file.
75002         * modules/uninorm/u32-normcoll: New file.
75004         New module 'uninorm/u16-normcoll'.
75005         * lib/uninorm/u16-normcoll.c: New file.
75006         * modules/uninorm/u16-normcoll: New file.
75008         New module 'uninorm/u8-normcoll'.
75009         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
75010         declarations.
75011         * lib/uninorm/u8-normcoll.c: New file.
75012         * lib/uninorm/u-normcoll.h: New file.
75013         * modules/uninorm/u8-normcoll: New file.
75015         New module 'uninorm/u32-normxfrm'.
75016         * lib/uninorm/u32-normxfrm.c: New file.
75017         * modules/uninorm/u32-normxfrm: New file.
75019         New module 'uninorm/u16-normxfrm'.
75020         * lib/uninorm/u16-normxfrm.c: New file.
75021         * modules/uninorm/u16-normxfrm: New file.
75023         New module 'uninorm/u8-normxfrm'.
75024         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
75025         declarations.
75026         * lib/uninorm/u8-normxfrm.c: New file.
75027         * lib/uninorm/u-normxfrm.h: New file.
75028         * modules/uninorm/u8-normxfrm: New file.
75030 2009-03-07  Bruno Haible  <bruno@clisp.org>
75032         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
75033         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
75034         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
75036 2009-03-07  Bruno Haible  <bruno@clisp.org>
75038         New module 'memxfrm'.
75039         * lib/memxfrm.h: New file.
75040         * lib/memxfrm.c: New file.
75041         * modules/memxfrm: New file.
75043 2009-03-07  Bruno Haible  <bruno@clisp.org>
75045         New module 'memcmp2'.
75046         * lib/memcmp2.h: New file.
75047         * lib/memcmp2.c: New file.
75048         * modules/memcmp2: New file.
75050 2009-03-07  Bruno Haible  <bruno@clisp.org>
75052         Tests for module 'uninorm/decomposing-form'.
75053         * modules/uninorm/decomposing-form-tests: New file.
75054         * tests/uninorm/test-decomposing-form.c: New file.
75056         New module 'uninorm/decomposing-form'.
75057         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
75058         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
75059         Add 'decomposing_variant' field.
75060         * lib/uninorm/decomposing-form.c: New file.
75061         * lib/uninorm/nfc.c (uninorm_nfc): Update.
75062         * lib/uninorm/nfd.c (uninorm_nfd): Update.
75063         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
75064         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
75065         * modules/uninorm/decomposing-form: New file.
75066         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
75067         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
75069 2009-03-07  Bruno Haible  <bruno@clisp.org>
75071         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
75072         strings.
75074 2009-03-06  Bruno Haible  <bruno@clisp.org>
75076         Tests for module 'uninorm/u32-normcmp'.
75077         * tests/uninorm/test-u32-normcmp.c: New file.
75078         * modules/uninorm/u32-normcmp-tests: New file.
75080         Tests for module 'uninorm/u16-normcmp'.
75081         * tests/uninorm/test-u16-normcmp.c: New file.
75082         * modules/uninorm/u16-normcmp-tests: New file.
75084         Tests for module 'uninorm/u8-normcmp'.
75085         * tests/uninorm/test-u8-normcmp.c: New file.
75086         * modules/uninorm/u8-normcmp-tests: New file.
75088         New module 'uninorm/u32-normcmp'.
75089         * lib/uninorm/u32-normcmp.c: New file.
75090         * modules/uninorm/u32-normcmp: New file.
75092         New module 'uninorm/u16-normcmp'.
75093         * lib/uninorm/u16-normcmp.c: New file.
75094         * modules/uninorm/u16-normcmp: New file.
75096         New module 'uninorm/u8-normcmp'.
75097         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
75098         declarations.
75099         * lib/uninorm/u8-normcmp.c: New file.
75100         * lib/uninorm/u-normcmp.h: New file.
75101         * modules/uninorm/u8-normcmp: New file.
75103 2009-03-06  Bruno Haible  <bruno@clisp.org>
75105         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
75106         Reported by Eric Blake.
75108 2009-03-06  Eric Blake  <ebb9@byu.net>
75109             Bruno Haible  <bruno@clisp.org>
75111         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
75112         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
75113         condition.
75114         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
75115         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
75116         condition.
75117         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
75119 2009-03-06  Eric Blake  <ebb9@byu.net>
75121         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
75122         to avoid compiler warnings.
75123         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
75125 2009-03-05  Bruno Haible  <bruno@clisp.org>
75127         * tests/test-ftell.c (main): Disable test beyond end of file on
75128         FreeMiNT.
75129         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
75131 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
75133         * lib/filevercmp.c: Move hidden files up in ordering.
75134         * tests/test-filevercmp.c: Add tests for hidden files.
75136 2009-03-04  Bruno Haible  <bruno@clisp.org>
75138         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
75139         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
75140         AM_CFLAGS.
75141         Reported by Simon Josefsson.
75143 2009-03-03  Bruno Haible  <bruno@clisp.org>
75145         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
75146         Reported by Simon Josefsson.
75148         * doc/ld-version-script.texi: Update node reference.
75150 2009-03-03  Bruno Haible  <bruno@clisp.org>
75152         * modules/visibility (License): Change to 'unlimited'.
75153         Suggested by Simon Josefsson.
75155 2009-03-03  Jim Meyering  <meyering@redhat.com>
75157         unlinkdir: cannot_unlink_dir may modify process state
75158         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
75159         it's neither thread-safe nor appropriate for use in a library.
75161 2009-03-03  Eric Blake  <ebb9@byu.net>
75163         test-closein: silence test under Darwin
75164         * tests/test-closein.sh: Ignore stderr from cat, since we don't
75165         care if it dies from EPIPE or EBADF.
75167 2009-03-03  Bruno Haible  <bruno@clisp.org>
75169         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
75170         earlier.
75171         * doc/visibility.texi: Fix @node and @section.
75173 2009-03-03  Simon Josefsson  <simon@josefsson.org>
75175         * doc/gnulib.texi: Link to sections for ld version script and
75176         visibility.
75177         * doc/visibility.texi: Add @node and @section.
75178         * modules/ld-version-script: New module.
75179         * m4/ld-version-script.m4: New file.
75180         * doc/ld-version-script.texi: New file.
75182 2009-03-02  David Lutterkort  <lutter@redhat.com>
75184         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
75185         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75187 2009-03-02  Bruno Haible  <bruno@clisp.org>
75189         * doc/visibility.texi: Mention libtool's -export-symbols option.
75191 2009-03-02  Jim Meyering  <meyering@redhat.com>
75193         announce-gen: new option: --no-print-checksums
75194         * build-aux/announce-gen (usage): Describe it.
75195         (print_checksums): Print a newline here, not in the [*] footnote.
75196         (main): Honor it.
75198 2009-03-01  Bruno Haible  <bruno@clisp.org>
75200         Use socklen_t in the native Windows replacements prototypes.
75201         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
75202         instead of 'int'.
75203         * lib/getsockopt.c (rpl_getsockopt): Likewise.
75204         * lib/setsockopt.c (rpl_setsockopt): Likewise.
75205         * modules/getsockopt (Depends-on): Add socklen.
75206         * modules/setsockopt (Depends-on): Add socklen.
75208 2009-03-01  Bruno Haible  <bruno@clisp.org>
75210         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
75211         least 4.2.
75213 2009-03-01  Eric Blake  <ebb9@byu.net>
75214             Bruno Haible  <bruno@clisp.org>
75216         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
75217         error messages.
75218         * lib/wait-process.c (wait_subprocess): Omit error message about
75219         deadly signal sent to the child of termsigp != NULL.
75221 2009-03-01  Eric Blake  <ebb9@byu.net>
75223         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
75225 2009-03-01  Bruno Haible  <bruno@clisp.org>
75227         Avoid a gcc warning.
75228         * tests/test-sched.c (b): Make global.
75229         Reported by Eric Blake.
75231 2009-01-19  Martin Lambers  <marlam@marlam.de>
75233         Provide POSIX semantics for socket timeout options on W32.
75234         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
75235         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
75236         * modules/setsockopt: Depend on sys_time module for struct timeval.
75237         * modules/getsockopt: Depend on sys_time module for struct timeval.
75239 2009-03-01  Simon Josefsson  <simon@josefsson.org>
75241         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
75242         __USE_GNU, for consistency with netdb.in.h.
75243         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
75245 2009-03-01  Bruno Haible  <bruno@clisp.org>
75247         More support for FreeMiNT.
75248         * lib/fseeko.c (rpl_fseeko): Complete last commit.
75249         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
75251 2009-03-01  Bruno Haible  <bruno@clisp.org>
75253         More support for FreeMiNT.
75254         * lib/fpurge.c (fpurge): Correct last commit.
75255         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
75257 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75259         Fix unportable awk script in vc-list-files.
75260         * build-aux/vc-list-files: In the replacement awk script, use
75261         substr with a second argument of 1, not zero.
75262         Report by Simon Josefsson.
75264 2009-02-28  Bruno Haible  <bruno@clisp.org>
75266         More support for FreeMiNT.
75267         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
75268         to FreeMiNT today.
75269         * lib/fwriting.c (fwriting): Likewise.
75270         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
75272 2009-02-28  Bruno Haible  <bruno@clisp.org>
75274         * tests/test-freadseek.c (main): Disable test beyond end of file on
75275         FreeMiNT.
75276         * tests/test-ftello.c (main): Likewise.
75277         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
75279 2009-02-28  Bruno Haible  <bruno@clisp.org>
75281         Add tentative support for FreeMiNT.
75282         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
75283         * lib/fpurge.c (fpurge): Likewise.
75284         * lib/freadable.c (freadable): Likewise.
75285         * lib/freading.c (freading): Likewise.
75286         * lib/freadptr.c (freadptr): Likewise.
75287         * lib/freadseek.c (freadptrinc): Likewise.
75288         * lib/fseeko.c (rpl_fseeko): Likewise.
75289         * lib/fseterr.c (fseterr): Likewise.
75290         * lib/fwritable.c (fwritable): Likewise.
75291         * lib/fwriting.c (fwriting): Likewise.
75292         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
75293         Hourihane.
75294         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
75296 2009-02-28  Bruno Haible  <bruno@clisp.org>
75298         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
75299         SIGCHLD.
75300         Reported by Jim Meyering.
75302 2009-02-28  Bruno Haible  <bruno@clisp.org>
75304         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
75305         Mention the results of these tests on various platforms.
75306         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
75307         order.
75308         * doc/posix-functions/printf.texi: Likewise.
75309         * doc/posix-functions/snprintf.texi: Likewise.
75310         * doc/posix-functions/sprintf.texi: Likewise.
75311         * doc/posix-functions/vfprintf.texi: Likewise.
75312         * doc/posix-functions/vprintf.texi: Likewise.
75313         * doc/posix-functions/vsnprintf.texi: Likewise.
75314         * doc/posix-functions/vsprintf.texi: Likewise.
75315         * doc/glibc-functions/obstack_printf.texi: Likewise.
75316         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
75318 2009-02-28  Bruno Haible  <bruno@clisp.org>
75320         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
75321         Reported by Loïc Minier <lool@dooz.org>.
75323 2009-02-27  Bruno Haible  <bruno@clisp.org>
75325         * gnulib-tool (func_import): Make the sed expression used to create the
75326         sed script for updating the .gitignore file POSIX compliant.
75327         Reported by Eric Blake.
75329 2009-02-27  Bruno Haible  <bruno@clisp.org>
75331         * gnulib-tool (sed): Don't alias as "sed --posix".
75332         Reported by Eric Blake.
75334 2009-02-27  Bruno Haible  <bruno@clisp.org>
75336         Avoid test link errors.
75337         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
75338         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
75339         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
75340         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
75341         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75343 2009-02-27  Bruno Haible  <bruno@clisp.org>
75345         Avoid spurious "(cached)" in configure output.
75346         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
75347         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
75348         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
75349         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
75350         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
75351         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
75352         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
75353         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
75354         Reported by Eric Blake.
75356 2009-02-27  Eric Blake  <ebb9@byu.net>
75358         printf: fix regression in previous patch
75359         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
75361 2009-02-27  Bruno Haible  <bruno@clisp.org>
75363         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
75364         value.
75365         * lib/stdint.in.h: Likewise.
75366         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
75368 2009-02-27  Eric Blake  <ebb9@byu.net>
75370         doc: mention more functions added in cygwin 1.7.0
75371         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
75372         addition.
75373         * doc/posix-functions/open_wmemstream.texi: Likewise.
75374         * doc/posix-functions/wcsnlen.texi: Likewise.
75375         * doc/posix-functions/wcsnrtombs.texi: Likewise.
75376         * doc/posix-functions/wcstod.texi: Likewise.
75377         * doc/posix-functions/wcstof.texi: Likewise.
75378         * doc/posix-functions/wcstoimax.texi: Likewise.
75379         * doc/posix-functions/wcstok.texi: Likewise.
75380         * doc/posix-functions/wcstoumax.texi: Likewise.
75382         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
75383         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
75384         * doc/posix-functions/fprintf.texi: Update.
75385         * doc/posix-functions/printf.texi: Update.
75386         * doc/posix-functions/snprintf.texi: Update.
75387         * doc/posix-functions/sprintf.texi: Update.
75388         * doc/posix-functions/vfprintf.texi: Update.
75389         * doc/posix-functions/vprintf.texi: Update.
75390         * doc/posix-functions/vsnprintf.texi: Update.
75391         * doc/posix-functions/vsprintf.texi: Update.
75392         * doc/glibc-functions/obstack_printf.texi: Update.
75393         * doc/glibc-functions/obstack_vprintf.texi: Update.
75395 2009-02-26  Eric Blake  <ebb9@byu.net>
75397         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
75398         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
75399         compilation bug by using runtime conversion.
75400         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
75401         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
75402         * modules/ceill-tests (Files): Use nan.h.
75403         * modules/floorl-tests (Files): Likewise.
75404         * modules/frexpl-tests (Files): Likewise.
75405         * modules/isnanl-tests (Files): Likewise.
75406         * modules/ldexpl-tests (Files): Likewise.
75407         * modules/roundl-tests (Files): Likewise.
75408         * modules/truncl-tests (Files): Likewise.
75409         * tests/test-ceill.c (main): Use a working NaN.
75410         * tests/test-floorl.c (main): Likewise.
75411         * tests/test-frexpl.c (main): Likewise.
75412         * tests/test-isnan.c (test_long_double): Likewise.
75413         * tests/test-isnanl.h (main): Likewise.
75414         * tests/test-ldexpl.h (main): Likewise.
75415         * tests/test-roundl.h (main): Likewise.
75416         * tests/test-truncl.h (main): Likewise.
75417         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
75419 2009-02-26  Eric Blake  <ebb9@byu.net>
75420             Bruno Haible  <bruno@clisp.org>
75422         Work around a *printf bug with %ls on Solaris.
75423         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
75424         precision is specified, sprintf stops converting the wide string
75425         argument when the number of bytes that have been produced by this
75426         conversion equals or exceeds the precision.
75427         * doc/posix-functions/fprintf.texi: Update.
75428         * doc/posix-functions/printf.texi: Update.
75429         * doc/posix-functions/snprintf.texi: Update.
75430         * doc/posix-functions/sprintf.texi: Update.
75431         * doc/posix-functions/vfprintf.texi: Update.
75432         * doc/posix-functions/vprintf.texi: Update.
75433         * doc/posix-functions/vsnprintf.texi: Update.
75434         * doc/posix-functions/vsprintf.texi: Update.
75435         * doc/glibc-functions/obstack_printf.texi: Update.
75436         * doc/glibc-functions/obstack_vprintf.texi: Update.
75438 2009-02-26  Eric Blake  <ebb9@byu.net>
75440         stdlib: favor compiler check of random.h
75441         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
75442         to avoid an ObjC random.h installed by Swarm.
75444 2009-02-26  Bruno Haible  <bruno@clisp.org>
75446         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
75447         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
75448         Reported by Gary V. Vaughan <gary@gnu.org>.
75450 2009-02-26  Bruno Haible  <bruno@clisp.org>
75452         Fix *printf behaviour regarding the %ls directive.
75453         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
75454         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
75455         NEED_PRINTF_DIRECTIVE_LS.
75456         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
75457         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
75458         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
75459         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
75460         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
75461         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
75462         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
75463         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
75464         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
75465         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
75466         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
75467         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
75468         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
75469         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
75470         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
75471         * doc/posix-functions/fprintf.texi: Update.
75472         * doc/posix-functions/printf.texi: Update.
75473         * doc/posix-functions/snprintf.texi: Update.
75474         * doc/posix-functions/sprintf.texi: Update.
75475         * doc/posix-functions/vfprintf.texi: Update.
75476         * doc/posix-functions/vprintf.texi: Update.
75477         * doc/posix-functions/vsnprintf.texi: Update.
75478         * doc/posix-functions/vsprintf.texi: Update.
75479         * doc/glibc-functions/obstack_printf.texi: Update.
75480         * doc/glibc-functions/obstack_vprintf.texi: Update.
75481         Reported by Eric Blake.
75483 2009-02-25  Bruno Haible  <bruno@clisp.org>
75485         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
75486         with known value.
75487         Reported by Gary V. Vaughan <gary@gnu.org>.
75489 2009-02-25  Bruno Haible  <bruno@clisp.org>
75491         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
75492         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
75493         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
75494         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
75495         Reported by Gary V. Vaughan <gary@gnu.org>.
75497 2009-02-25  Bruno Haible  <bruno@clisp.org>
75499         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
75500         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
75501         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
75502         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
75503         Reported by Gary V. Vaughan <gary@gnu.org>.
75505 2009-02-25  Eric Blake  <ebb9@byu.net>
75507         tests: skip fseek/ftell tests if ungetc is broken
75508         * m4/ungetc.m4: New file.
75509         * modules/fseek-tests: Split test, so ungetc dependency is
75510         separate from rest of test.
75511         * modules/fseeko-tests: Likewise.
75512         * modules/ftell-tests: Likewise.
75513         * modules/ftello-tests: Likewise.
75514         * tests/test-fseek.c (main): Isolate ungetc dependency.
75515         * tests/test-fseeko.c (main): Likewise.
75516         * tests/test-ftell.c (main): Likewise.
75517         * tests/test-ftello.c (main): Likewise.
75518         * tests/test-fseek2.sh: New file.
75519         * tests/test-fseeko2.sh: Likewise.
75520         * tests/test-ftell2.sh: Likewise.
75521         * tests/test-ftello2.sh: Likewise.
75523 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
75525         test-getaddrinfo: fix usage of skip return code 77
75526         * tests/test-gettaddrinfo.c: Return skip code 77 only
75527         for first occurrence of skip (4x77 is not 77)
75529 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
75531         strtod: avoid C99 decl-after-statement
75532         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
75534 2009-02-24  Eric Blake  <ebb9@byu.net>
75536         strtod: detect HP-UX 11.31 bug
75537         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
75538         Reported by Gary V. Vaughan.
75540 2009-02-23  Bruno Haible  <bruno@clisp.org>
75542         Fix invalid read past end of memory block.
75543         * lib/vasnprintf.c (DCHAR_SET): Define.
75544         (local_wcslen): Define only when needed.
75545         (local_strnlen, local_wcsnlen): New functions.
75546         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
75547         directives that involve a conversion ourselves.
75548         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
75549         wcsnlen, mbrtowc, wcrtomb.
75550         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
75551         * tests/test-vasprintf-posix.c (test_function): Likewise.
75552         * tests/test-snprintf-posix.h (test_function): Likewise.
75553         * tests/test-sprintf-posix.h (test_function): Likewise.
75554         Reported by Ben Pfaff <blp@cs.stanford.edu>.
75556 2009-02-22  Bruno Haible  <bruno@clisp.org>
75558         Implement new clarified decomposition of Hangul syllables.
75559         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
75560         of type LTV, return only a pairwise decomposition.
75561         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
75562         Likewise.
75563         * tests/uninorm/test-decomposition.c (main): Updated expected result.
75564         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
75565         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
75567 2009-02-22  Bruno Haible  <bruno@clisp.org>
75569         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
75570         zero-length results and shrink excess allocated memory.
75571         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
75572         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
75573         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
75574         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
75575         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
75576         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
75577         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
75578         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
75579         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
75580         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
75581         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
75582         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
75584 2009-02-21  Bruno Haible  <bruno@clisp.org>
75586         * doc/gnulib.texi: Include safe-alloc.texi earlier.
75587         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
75588         spaces after a period. Put a space between a macro name and its
75589         argument list. Trivial rewordings.
75590         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
75591         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
75592         (main): Return 0 explicitly.
75594 2009-02-21  Bruno Haible  <bruno@clisp.org>
75596         Tests for module 'uninorm/filter'.
75597         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
75598         * modules/uninorm/filter-tests: New file.
75600         New module 'uninorm/filter'.
75601         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
75602         uninorm_filter_flush, uninorm_filter_free): New declarations.
75603         * lib/uninorm/uninorm-filter.c: New file.
75604         * modules/uninorm/filter: New file.
75606 2009-02-21  Bruno Haible  <bruno@clisp.org>
75608         Tests for module 'uninorm/nfkc'.
75609         * tests/uninorm/test-nfkc.c: New file.
75610         * tests/uninorm/test-u8-nfkc.c: New file.
75611         * tests/uninorm/test-u16-nfkc.c: New file.
75612         * tests/uninorm/test-u32-nfkc.c: New file.
75613         * tests/uninorm/test-u32-nfkc-big.sh: New file.
75614         * tests/uninorm/test-u32-nfkc-big.c: New file.
75615         * modules/uninorm/nfkc-tests: New file.
75617         New module 'uninorm/nfkc'.
75618         * lib/uninorm/nfkc.c: New file.
75619         * modules/uninorm/nfkc: New file.
75621         Tests for module 'uninorm/nfkd'.
75622         * tests/uninorm/test-nfkd.c: New file.
75623         * tests/uninorm/test-u8-nfkd.c: New file.
75624         * tests/uninorm/test-u16-nfkd.c: New file.
75625         * tests/uninorm/test-u32-nfkd.c: New file.
75626         * tests/uninorm/test-u32-nfkd-big.sh: New file.
75627         * tests/uninorm/test-u32-nfkd-big.c: New file.
75628         * modules/uninorm/nfkd-tests: New file.
75630         New module 'uninorm/nfkd'.
75631         * lib/uninorm/nfkd.c: New file.
75632         * modules/uninorm/nfkd: New file.
75634         Tests for module 'uninorm/nfc'.
75635         * tests/uninorm/test-nfc.c: New file.
75636         * tests/uninorm/test-u8-nfc.c: New file.
75637         * tests/uninorm/test-u16-nfc.c: New file.
75638         * tests/uninorm/test-u32-nfc.c: New file.
75639         * tests/uninorm/test-u32-nfc-big.sh: New file.
75640         * tests/uninorm/test-u32-nfc-big.c: New file.
75641         * modules/uninorm/nfc-tests: New file.
75643         New module 'uninorm/nfc'.
75644         * lib/uninorm/nfc.c: New file.
75645         * modules/uninorm/nfc: New file.
75647         Tests for module 'uninorm/nfd'.
75648         * tests/uninorm/test-nfd.c: New file.
75649         * tests/uninorm/test-u8-nfd.c: New file.
75650         * tests/uninorm/test-u16-nfd.c: New file.
75651         * tests/uninorm/test-u32-nfd.c: New file.
75652         * tests/uninorm/test-u32-nfd-big.sh: New file.
75653         * tests/uninorm/test-u32-nfd-big.c: New file.
75654         * tests/uninorm/test-u32-normalize-big.h: New file.
75655         * tests/uninorm/test-u32-normalize-big.c: New file.
75656         * tests/uninorm/NormalizationTest.txt: New file, created from
75657         Unicode 5.1.0 NormalizationTest.txt.
75658         * modules/uninorm/nfd-tests: New file.
75660         New module 'uninorm/nfd'.
75661         * lib/uninorm/nfd.c: New file.
75662         * modules/uninorm/nfd: New file.
75664         New module 'uninorm/u32-normalize'.
75665         * lib/uninorm/u32-normalize.c: New file.
75666         * modules/uninorm/u32-normalize: New file.
75668         New module 'uninorm/u16-normalize'.
75669         * lib/uninorm/u16-normalize.c: New file.
75670         * modules/uninorm/u16-normalize: New file.
75672         New module 'uninorm/u8-normalize'.
75673         * lib/uninorm/u8-normalize.c: New file.
75674         * lib/uninorm/normalize-internal.h: New file.
75675         * lib/uninorm/u-normalize-internal.h: New file.
75676         * modules/uninorm/u8-normalize: New file.
75678         New module 'uninorm/decompose-internal'.
75679         * lib/uninorm/decompose-internal.c: New file.
75680         * modules/uninorm/decompose-internal: New file.
75682         Tests for module 'uninorm/composition'.
75683         * tests/uninorm/test-composition.c: New file.
75684         * modules/uninorm/composition-tests: New file.
75686         New module 'uninorm/composition'.
75687         * lib/uninorm/composition.c: New file.
75688         * lib/uninorm/composition-table.gperf: New file, generated by
75689         gen-uni-tables.
75690         * modules/uninorm/composition: New file.
75692         Tests for module 'uninorm/compat-decomposition'.
75693         * tests/uninorm/test-compat-decomposition.c: New file.
75694         * modules/uninorm/compat-decomposition-tests: New file.
75696         New module 'uninorm/compat-decomposition'.
75697         * lib/uninorm/decompose-internal.h: New file.
75698         * lib/uninorm/compat-decomposition.c: New file.
75699         * modules/uninorm/compat-decomposition: New file.
75701         Tests for module 'uninorm/canonical-decomposition'.
75702         * tests/uninorm/test-canonical-decomposition.c: New file.
75703         * modules/uninorm/canonical-decomposition-tests: New file.
75705         New module 'uninorm/canonical-decomposition'.
75706         * lib/uninorm/canonical-decomposition.c: New file.
75707         * modules/uninorm/canonical-decomposition: New file.
75709         Tests for module 'uninorm/decomposition'.
75710         * tests/uninorm/test-decomposition.c: New file.
75711         * modules/uninorm/decomposition-tests: New file.
75713         New module 'uninorm/decomposition'.
75714         * lib/uninorm/decomposition.c: New file.
75715         * modules/uninorm/decomposition: New file.
75717         New module 'uninorm/decomposition-table'.
75718         * lib/uninorm/decomposition-table.h: New file.
75719         * lib/uninorm/decomposition-table.c: New file.
75720         * lib/uninorm/decomposition-table1.h: New file, generated by
75721         gen-uni-tables.
75722         * lib/uninorm/decomposition-table2.h: New file, generated by
75723         gen-uni-tables.
75724         * modules/uninorm/decomposition-table: New file.
75726         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
75727         (UC_DECOMP_*): New enumeration items.
75728         (get_decomposition): New function.
75729         (struct decomp_table): New type.
75730         (output_decomposition, output_decomposition_tables): New functions.
75731         (unicode_composition_exclusions): New variable.
75732         (fill_composition_exclusions, debug_output_composition_tables): New
75733         functions.
75734         (main): Accept one more argument. Invoke fill_composition_exclusions.
75735         Output decomposition and composition tables.
75737         New module 'uninorm/base'.
75738         * lib/uninorm.h: New file.
75739         * lib/unictype.h: Update comment.
75740         * modules/uninorm/base: New file.
75742 2009-02-21  David Lutterkort  <lutter@redhat.com>
75744         Tests for module 'safe-alloc'.
75745         * tests/test-safe-alloc.c: New file.
75746         * modules/safe-alloc-tests: New file.
75748         New module 'safe-alloc'.
75749         * lib/safe-alloc.h: New file.
75750         * lib/safe-alloc.c: New file.
75751         * m4/safe-alloc.m4: New file.
75752         * modules/safe-alloc: New file.
75753         * doc/safe-alloc.texi: New file.
75754         * doc/gnulib.texi: Include it.
75755         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
75756         safe-alloc.
75758 2009-02-18  Bruno Haible  <bruno@clisp.org>
75760         Fix link error on non-glibc systems.
75761         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
75762         variable.
75763         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75765 2009-02-18  Jim Meyering  <meyering@redhat.com>
75767         fts: avoid used-uninitialized error due to recent change
75768         * lib/fts.c (fts_read): Guard uses of the new member,
75769         parent->fts_n_dirs_remaining, since it's not relevant for
75770         the parent of a directory specified on the command-line.
75772 2009-02-17  James Youngman  <jay@gnu.org>
75773             Bruno Haible  <bruno@clisp.org>
75775         * m4/include_next.m4: Reformulate comment.
75777 2009-02-16  Jim Meyering  <meyering@redhat.com>
75779         fts: add #if guards so that the fts_lgpl module still builds
75780         * lib/fts.c: Guard just-added hash-table-using parts with
75781         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
75782         Reported by Simon Josefsson.
75784 2009-02-15  Bruno Haible  <bruno@clisp.org>
75786         * modules/array-mergesort-tests: New file.
75787         * tests/test-array-mergesort.c: New file.
75789         New module 'array-mergesort'.
75790         * modules/array-mergesort: New file.
75791         * lib/array-mergesort.h: New file.
75793 2009-02-15  Bruno Haible  <bruno@clisp.org>
75795         Fix 2009-02-07 commit.
75796         * lib/gen-uni-tables.c (output_predicate, output_category,
75797         output_combclass, output_bidi_category, output_decimal_digit,
75798         output_digit, output_numeric, output_mirror, output_scripts,
75799         output_ident_category, output_simple_mapping): Fix format directives.
75800         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
75802 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
75804         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
75805         fixes are available from IBM.
75807 2009-02-13  Jim Meyering  <meyering@redhat.com>
75809         fts: arrange not to stat non-directories in more cases
75810         This makes GNU find (when it doesn't need to stat each file)
75811         *much* more efficient at traversing reiserfs file systems.
75812         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
75813         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
75814         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
75815         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
75816         (leaf_optimization_applies): New function.
75817         (LCO_hash, LCO_compare): New helper functions.
75818         (link_count_optimize_ok): New function.
75819         (fts_stat): Initialize new member (if dir).
75820         (fts_read): Decrement parent's fts_n_dirs_remaining count if
75821         we've just stat'ed a directory.  Skip the stat call when possible.
75822         ---
75823         Note this AFS-related exchange:
75824         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
75825         and note find's pioctl call in find/fstype.c.
75826         But that is necessary only if you want to enable the
75827         optimization for AFS, and for now, I don't.
75829         fts: move a function definition "up" (no semantic change)
75830         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
75831         "up" to precede upcoming use of a related function.
75833 2009-02-11  Jim Meyering  <meyering@redhat.com>
75835         fts: correct internal computation of nlinks (optimization-related)
75836         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
75837         whether the current entry is a directory, so don't test it.
75839 2009-02-10  Bruno Haible  <bruno@clisp.org>
75841         Tests for module 'uniwbrk/ulc-wordbreaks'.
75842         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
75843         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
75844         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
75846         Tests for module 'uniwbrk/u32-wordbreaks'.
75847         * modules/uniwbrk/u32-wordbreaks-tests: New file.
75848         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
75850         Tests for module 'uniwbrk/u16-wordbreaks'.
75851         * modules/uniwbrk/u16-wordbreaks-tests: New file.
75852         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
75854         Tests for module 'uniwbrk/u8-wordbreaks'.
75855         * modules/uniwbrk/u8-wordbreaks-tests: New file.
75856         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
75858 2009-02-10  Bruno Haible  <bruno@clisp.org>
75860         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
75861         property.
75862         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
75863         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
75864         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
75866 2009-02-10  Simon Josefsson  <simon@josefsson.org>
75868         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
75869         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
75871 2009-02-10  Bruno Haible  <bruno@clisp.org>
75873         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
75874         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
75875         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
75876         * lib/unilbrk/u8-possible-linebreaks.c: Update.
75877         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
75878         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
75880 2009-02-09  Simon Josefsson  <simon@josefsson.org>
75882         * lib/sockets.h (gl_fd_to_handle): New function.
75884         * tests/test-sockets.c: Call gl_fd_to_handle.
75886 2009-02-09  Bruno Haible  <bruno@clisp.org>
75888         * doc/havelib.texi: Document the conventions on bi-arch systems.
75890 2009-02-08  Bruno Haible  <bruno@clisp.org>
75892         Document the AC_LIB_LINKFLAGS macro.
75893         * doc/havelib.texi: New file, mostly written on 2005-05-24.
75894         * doc/gnulib.texi: Include it.
75896 2009-02-08  Bruno Haible  <bruno@clisp.org>
75898         Fix wrong order of sections, compared to TOC.
75899         * doc/gnulib.texi: Include relocatable-maint.texi after the
75900         "Regular expressions" node, not before.
75902 2009-02-08  Bruno Haible  <bruno@clisp.org>
75904         Tests for module 'unicase/totitle'.
75905         * modules/unicase/totitle-tests: New file.
75907         Tests for module 'unicase/tolower'.
75908         * modules/unicase/tolower-tests: New file.
75910         Tests for module 'unicase/toupper'.
75911         * modules/unicase/toupper-tests: New file.
75912         * tests/unicase/test-mapping-part1.h: New file.
75913         * tests/unicase/test-mapping-part2.h: New file.
75915         New module 'unicase/totitle'.
75916         * modules/unicase/totitle: New file.
75917         * lib/unicase/totitle.c: New file.
75919         New module 'unicase/tolower'.
75920         * modules/unicase/tolower: New file.
75921         * lib/unicase/tolower.c: New file.
75923         New module 'unicase/toupper'.
75924         * modules/unicase/toupper: New file.
75925         * lib/unicase/toupper.c: New file.
75926         * lib/unicase/simple-mapping.h: New file.
75928         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
75929         (mapping_table): New structure.
75930         (output_simple_mapping): New function.
75931         (main): Invoke output_simple_mapping_test and output_simple_mapping.
75932         * modules/gen-uni-tables (Description): Update.
75933         * lib/unicase/toupper.h: New file, automatically generated by
75934         gen-uni-tables.
75935         * lib/unicase/tolower.h: New file, automatically generated by
75936         gen-uni-tables.
75937         * lib/unicase/totitle.h: New file, automatically generated by
75938         gen-uni-tables.
75939         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
75940         gen-uni-tables.
75941         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
75942         gen-uni-tables.
75943         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
75944         gen-uni-tables.
75946         New module 'unicase/base'.
75947         * modules/unicase/base: New file.
75948         * lib/unicase.h: New file.
75950 2009-02-08  Bruno Haible  <bruno@clisp.org>
75952         New module 'uniwbrk/ulc-wordbreaks'.
75953         * modules/uniwbrk/ulc-wordbreaks: New file.
75954         * lib/uniwbrk/ulc-wordbreaks.c: New file.
75956         New module 'uniwbrk/u32-wordbreaks'.
75957         * modules/uniwbrk/u32-wordbreaks: New file.
75958         * lib/uniwbrk/u32-wordbreaks.c: New file.
75960         New module 'uniwbrk/u16-wordbreaks'.
75961         * modules/uniwbrk/u16-wordbreaks: New file.
75962         * lib/uniwbrk/u16-wordbreaks.c: New file.
75964         New module 'uniwbrk/u8-wordbreaks'.
75965         * modules/uniwbrk/u8-wordbreaks: New file.
75966         * lib/uniwbrk/u8-wordbreaks.c: New file.
75967         * lib/uniwbrk/u-wordbreaks.h: New file.
75969         New module 'uniwbrk/table'.
75970         * modules/uniwbrk/table: New file.
75971         * lib/uniwbrk/wbrktable.h: New file.
75972         * lib/uniwbrk/wbrktable.c: New file.
75974         New module 'uniwbrk/wordbreak-property'.
75975         * modules/uniwbrk/wordbreak-property: New file.
75976         * lib/uniwbrk/wordbreak-property.c: New file.
75978         * lib/gen-uni-tables.c (WBP_*): New enum items.
75979         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
75980         (unicode_org_wbp): New variable.
75981         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
75982         New functions.
75983         (wbp_table): New structure.
75984         (output_wbp, output_wbrk_tables): New functions.
75985         (main): Accept additional argument. Invoke fill_org_wbp,
75986         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
75987         output_wbrk_tables.
75988         * modules/gen-uni-tables (Description): Update.
75989         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
75990         gen-uni-tables.
75992         New module 'uniwbrk/base'.
75993         * modules/uniwbrk/base: New file.
75994         * lib/uniwbrk.h: New file.
75996 2009-02-08  Bruno Haible  <bruno@clisp.org>
75998         Update to Unicode 5.1.0.
75999         * lib/gen-uni-tables.c (is_property_alphabetic): Include
76000         U+2185..U+2188.
76001         (is_property_default_ignorable_code_point): Don't include characters
76002         of category Cc or Cs and not-a-characters.
76003         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
76004         U+0D79, U+109E, U+109F, U+A60C.
76005         * lib/unictype/bidi_of.h: Regenerated.
76006         * lib/unictype/blocks.h: Regenerated.
76007         * lib/unictype/categ_C.h: Regenerated.
76008         * lib/unictype/categ_Cf.h: Regenerated.
76009         * lib/unictype/categ_Cn.h: Regenerated.
76010         * lib/unictype/categ_L.h: Regenerated.
76011         * lib/unictype/categ_Ll.h: Regenerated.
76012         * lib/unictype/categ_Lm.h: Regenerated.
76013         * lib/unictype/categ_Lo.h: Regenerated.
76014         * lib/unictype/categ_Lu.h: Regenerated.
76015         * lib/unictype/categ_M.h: Regenerated.
76016         * lib/unictype/categ_Mc.h: Regenerated.
76017         * lib/unictype/categ_Me.h: Regenerated.
76018         * lib/unictype/categ_Mn.h: Regenerated.
76019         * lib/unictype/categ_N.h: Regenerated.
76020         * lib/unictype/categ_Nd.h: Regenerated.
76021         * lib/unictype/categ_Nl.h: Regenerated.
76022         * lib/unictype/categ_No.h: Regenerated.
76023         * lib/unictype/categ_P.h: Regenerated.
76024         * lib/unictype/categ_Pd.h: Regenerated.
76025         * lib/unictype/categ_Pe.h: Regenerated.
76026         * lib/unictype/categ_Pf.h: Regenerated.
76027         * lib/unictype/categ_Pi.h: Regenerated.
76028         * lib/unictype/categ_Po.h: Regenerated.
76029         * lib/unictype/categ_Ps.h: Regenerated.
76030         * lib/unictype/categ_S.h: Regenerated.
76031         * lib/unictype/categ_Sk.h: Regenerated.
76032         * lib/unictype/categ_Sm.h: Regenerated.
76033         * lib/unictype/categ_So.h: Regenerated.
76034         * lib/unictype/categ_of.h: Regenerated.
76035         * lib/unictype/combining.h: Regenerated.
76036         * lib/unictype/ctype_alnum.h: Regenerated.
76037         * lib/unictype/ctype_alpha.h: Regenerated.
76038         * lib/unictype/ctype_graph.h: Regenerated.
76039         * lib/unictype/ctype_lower.h: Regenerated.
76040         * lib/unictype/ctype_print.h: Regenerated.
76041         * lib/unictype/ctype_punct.h: Regenerated.
76042         * lib/unictype/ctype_upper.h: Regenerated.
76043         * lib/unictype/decdigit.h: Regenerated.
76044         * lib/unictype/digit.h: Regenerated.
76045         * lib/unictype/mirror.h: Regenerated.
76046         * lib/unictype/numeric.h: Regenerated.
76047         * lib/unictype/pr_alphabetic.h: Regenerated.
76048         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
76049         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
76050         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
76051         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
76052         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
76053         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
76054         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
76055         * lib/unictype/pr_combining.h: Regenerated.
76056         * lib/unictype/pr_dash.h: Regenerated.
76057         * lib/unictype/pr_decimal_digit.h: Regenerated.
76058         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
76059         * lib/unictype/pr_deprecated.h: Regenerated.
76060         * lib/unictype/pr_diacritic.h: Regenerated.
76061         * lib/unictype/pr_extender.h: Regenerated.
76062         * lib/unictype/pr_format_control.h: Regenerated.
76063         * lib/unictype/pr_grapheme_base.h: Regenerated.
76064         * lib/unictype/pr_grapheme_extend.h: Regenerated.
76065         * lib/unictype/pr_grapheme_link.h: Regenerated.
76066         * lib/unictype/pr_id_continue.h: Regenerated.
76067         * lib/unictype/pr_id_start.h: Regenerated.
76068         * lib/unictype/pr_ideographic.h: Regenerated.
76069         * lib/unictype/pr_ignorable_control.h: Regenerated.
76070         * lib/unictype/pr_lowercase.h: Regenerated.
76071         * lib/unictype/pr_math.h: Regenerated.
76072         * lib/unictype/pr_numeric.h: Regenerated.
76073         * lib/unictype/pr_other_alphabetic.h: Regenerated.
76074         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
76075         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
76076         * lib/unictype/pr_other_id_continue.h: Regenerated.
76077         * lib/unictype/pr_other_lowercase.h: Regenerated.
76078         * lib/unictype/pr_other_math.h: Regenerated.
76079         * lib/unictype/pr_punctuation.h: Regenerated.
76080         * lib/unictype/pr_sentence_terminal.h: Regenerated.
76081         * lib/unictype/pr_soft_dotted.h: Regenerated.
76082         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
76083         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
76084         * lib/unictype/pr_unified_ideograph.h: Regenerated.
76085         * lib/unictype/pr_uppercase.h: Regenerated.
76086         * lib/unictype/pr_xid_continue.h: Regenerated.
76087         * lib/unictype/pr_xid_start.h: Regenerated.
76088         * lib/unictype/pr_zero_width.h: Regenerated.
76089         * lib/unictype/scripts.h: Regenerated.
76090         * lib/unictype/scripts_byname.gperf: Regenerated.
76091         * lib/unictype/sy_java_ident.h: Regenerated.
76092         * lib/unilbrk/lbrkprop1.h: Regenerated.
76093         * lib/unilbrk/lbrkprop2.h: Regenerated.
76094         * tests/unictype/test-categ_C.c: Regenerated.
76095         * tests/unictype/test-categ_Cf.c: Regenerated.
76096         * tests/unictype/test-categ_Cn.c: Regenerated.
76097         * tests/unictype/test-categ_L.c: Regenerated.
76098         * tests/unictype/test-categ_Ll.c: Regenerated.
76099         * tests/unictype/test-categ_Lm.c: Regenerated.
76100         * tests/unictype/test-categ_Lo.c: Regenerated.
76101         * tests/unictype/test-categ_Lu.c: Regenerated.
76102         * tests/unictype/test-categ_M.c: Regenerated.
76103         * tests/unictype/test-categ_Mc.c: Regenerated.
76104         * tests/unictype/test-categ_Me.c: Regenerated.
76105         * tests/unictype/test-categ_Mn.c: Regenerated.
76106         * tests/unictype/test-categ_N.c: Regenerated.
76107         * tests/unictype/test-categ_Nd.c: Regenerated.
76108         * tests/unictype/test-categ_Nl.c: Regenerated.
76109         * tests/unictype/test-categ_No.c: Regenerated.
76110         * tests/unictype/test-categ_P.c: Regenerated.
76111         * tests/unictype/test-categ_Pd.c: Regenerated.
76112         * tests/unictype/test-categ_Pe.c: Regenerated.
76113         * tests/unictype/test-categ_Pf.c: Regenerated.
76114         * tests/unictype/test-categ_Pi.c: Regenerated.
76115         * tests/unictype/test-categ_Po.c: Regenerated.
76116         * tests/unictype/test-categ_Ps.c: Regenerated.
76117         * tests/unictype/test-categ_S.c: Regenerated.
76118         * tests/unictype/test-categ_Sk.c: Regenerated.
76119         * tests/unictype/test-categ_Sm.c: Regenerated.
76120         * tests/unictype/test-categ_So.c: Regenerated.
76121         * tests/unictype/test-ctype_alnum.c: Regenerated.
76122         * tests/unictype/test-ctype_alpha.c: Regenerated.
76123         * tests/unictype/test-ctype_graph.c: Regenerated.
76124         * tests/unictype/test-ctype_lower.c: Regenerated.
76125         * tests/unictype/test-ctype_print.c: Regenerated.
76126         * tests/unictype/test-ctype_punct.c: Regenerated.
76127         * tests/unictype/test-ctype_upper.c: Regenerated.
76128         * tests/unictype/test-decdigit.h: Regenerated.
76129         * tests/unictype/test-digit.h: Regenerated.
76130         * tests/unictype/test-numeric.h: Regenerated.
76131         * tests/unictype/test-pr_alphabetic.c: Regenerated.
76132         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
76133         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
76134         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
76135         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
76136         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
76137         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
76138         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
76139         * tests/unictype/test-pr_combining.c: Regenerated.
76140         * tests/unictype/test-pr_dash.c: Regenerated.
76141         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
76142         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
76143         * tests/unictype/test-pr_deprecated.c: Regenerated.
76144         * tests/unictype/test-pr_diacritic.c: Regenerated.
76145         * tests/unictype/test-pr_extender.c: Regenerated.
76146         * tests/unictype/test-pr_format_control.c: Regenerated.
76147         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
76148         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
76149         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
76150         * tests/unictype/test-pr_id_continue.c: Regenerated.
76151         * tests/unictype/test-pr_id_start.c: Regenerated.
76152         * tests/unictype/test-pr_ideographic.c: Regenerated.
76153         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
76154         * tests/unictype/test-pr_lowercase.c: Regenerated.
76155         * tests/unictype/test-pr_math.c: Regenerated.
76156         * tests/unictype/test-pr_numeric.c: Regenerated.
76157         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
76158         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
76159         Regenerated.
76160         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
76161         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
76162         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
76163         * tests/unictype/test-pr_other_math.c: Regenerated.
76164         * tests/unictype/test-pr_punctuation.c: Regenerated.
76165         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
76166         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
76167         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
76168         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
76169         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
76170         * tests/unictype/test-pr_uppercase.c: Regenerated.
76171         * tests/unictype/test-pr_xid_continue.c: Regenerated.
76172         * tests/unictype/test-pr_xid_start.c: Regenerated.
76173         * tests/unictype/test-pr_zero_width.c: Regenerated.
76175         Update to Unicode 5.1.0.
76176         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
76177         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
76178         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
76179         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
76180         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
76181         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
76182         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
76183         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
76184         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
76185         (nonspacing_table_ind): Update.
76186         * tests/uniwidth/test-uc_width2.sh: Update expected result.
76188         Update to Unicode 5.1.0.
76189         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
76190         code transform.
76191         * lib/uniname/uniname.c (unicode_character_name,
76192         unicode_name_character): Add the range 0x1Fxxx to the code transform.
76193         * lib/uniname/uninames.h: Regenerated.
76194         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
76196 2009-02-07  Bruno Haible  <bruno@clisp.org>
76198         Merge gen-ctype and gen-lbrk into a single program.
76199         * lib/gen-uni-tables.c: New file, incorporating
76200         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
76201         Add directory prefixes to the names of the generated files.
76202         * lib/unictype/gen-ctype.c: Remove file.
76203         * lib/unilbrk/gen-lbrk.c: Remove file.
76204         * modules/gen-uni-tables: New file.
76205         * modules/unictype/gen-ctype: Remove file.
76206         * modules/unilbrk/gen-lbrk: Remove file.
76208 2009-02-07  Bruno Haible  <bruno@clisp.org>
76210         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
76212         New module 'unistr/u32-strcoll'.
76213         * modules/unistr/u32-strcoll: New file.
76214         * lib/unistr/u32-strcoll.c: New file.
76216         New module 'unistr/u16-strcoll'.
76217         * modules/unistr/u16-strcoll: New file.
76218         * lib/unistr/u16-strcoll.c: New file.
76220         New module 'unistr/u8-strcoll'.
76221         * modules/unistr/u8-strcoll: New file.
76222         * lib/unistr/u8-strcoll.c: New file.
76223         * lib/unistr/u-strcoll.h: New file.
76225 2009-02-07  Bruno Haible  <bruno@clisp.org>
76227         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
76228         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
76229         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
76230         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
76231         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
76232         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
76234 2009-02-07  Bruno Haible  <bruno@clisp.org>
76236         Make 64-bit clean.
76237         * lib/unictype/gen-ctype.c (output_predicate, output_category,
76238         output_combclass, output_bidi_category, output_decimal_digit,
76239         output_digit, output_numeric, output_mirror, output_scripts,
76240         output_ident_category): Use proper width specifier in format strings.
76242 2009-02-07  Bruno Haible  <bruno@clisp.org>
76244         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
76245         failure behaviour.
76247 2009-02-07  Jim Meyering  <meyering@redhat.com>
76249         regex: avoid compilation failure with upcoming gcc-4.4
76250         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
76251         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
76252         "... error: integer overflow in preprocessor expression".
76254 2009-02-05  Ben Pfaff  <blp@gnu.org>
76256         Fix link errors on Windows when close module is used.
76257         * modules/close: Add $(LIB_CLOSE) to Link section.
76258         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
76259         $(LIB_CLOSE) on Windows.
76261 2009-02-05  Jim Meyering  <meyering@redhat.com>
76263         still avoid unused-parameter warnings, but do it cleanly
76264         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
76265         (get_fs_usage): Cast to void instead.
76266         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
76267         (dev_from_mount_options, read_file_system_list): Cast to void.
76268         Prompted by Bruno Haible.
76270 2009-02-04  Jim Meyering  <meyering@redhat.com>
76272         fsusage.c: correct copyright year
76273         * lib/fsusage.c: Reflect year in which the change is pushed into
76275         avoid misc. warnings
76276         * lib/fsusage.c (UNUSED_PARAM): Define.
76277         (get_fs_usage): Mark parameter "disk" as unused.
76278         * lib/getugroups.c (getgrent): Use "void" in prototype.
76279         * lib/mountlist.c: Mark unused parameters.
76280         (read_file_system_list): Declare a local with "const".
76281         * lib/nanosleep.c (getnow): Declare static.
76282         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
76284         dirfd: set errno upon failure
76285         * lib/dirfd.c: Include <errno.h>.
76286         Set errno to ENOTSUP when returning -1.
76287         * modules/dirfd (Depends-on): Add errno.
76288         Suggested by John Kodis <kodis@comcast.net>.
76290 2009-02-01  Bruno Haible  <bruno@clisp.org>
76292         Don't assume sizeof (long) >= sizeof (void *).
76293         * lib/memcmp.c: Include stdint.h.
76294         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
76295         srcp2 to 'const byte *'.
76296         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
76297         types to uintptr_t.
76298         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
76299         * modules/memcmp (Depends-on): Add stdint.
76300         Reported by Ozkan Sezer <sezeroz@gmail.com>.
76302 2009-01-30  Eric Blake  <ebb9@byu.net>
76304         fix more require-before-expand issues
76305         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
76306         expand, AC_PROG_AWK.
76307         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
76309 2009-01-28  Eric Blake  <ebb9@byu.net>
76311         version-etc: use consistent URL formatting
76312         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
76313         Improve formatting.  Use fputs for string without %.
76315 2009-01-28  Jim Meyering  <meyering@redhat.com>
76317         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
76318         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
76319         "underquoted definition of NAME" from autoconf-2.59.
76321 2009-01-28  Bruno Haible  <bruno@clisp.org>
76323         * doc/gnulib.texi: Add "Obsolete modules" to index.
76325 2009-01-28  Jim Meyering  <meyering@redhat.com>
76327         useless-if-before-free: recognize more variants
76328         * build-aux/useless-if-before-free: Also recognize e.g.,
76329         if (NULL != p) free (p);
76331 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
76333         test-getaddrinfo: skip (don't fail) this test when there's no network
76334         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
76335         on the presumption that it means you lack network access.
76337 2009-01-26  Jim Meyering  <meyering@redhat.com>
76339         fflush: avoid warnings on modern systems
76340         * lib/fflush.c (rpl_fflush): Move declarations of locals,
76341         pos and result, into scopes where they're used.
76343 2009-01-26  Eric Blake  <ebb9@byu.net>
76345         Silence warning reintroduced by recent extensions patch.
76346         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
76347         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
76348         autoconf.
76350         Backport improved autoconf semantics of AC_DEFUN_ONCE.
76351         * m4/00gnulib.m4: New file.
76352         * gnulib-tool (func_get_filelist): Always use it.
76353         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
76354         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
76356 2009-01-25  Bruno Haible  <bruno@clisp.org>
76358         Make test-quotearg work on MacOS X and AIX.
76359         * tests/test-quotearg.sh: New file.
76360         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
76361         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
76362         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
76363         include <libintl.h>.
76364         (fake_locale): Remove variable.
76365         (gettext, dgettext, dcgettext): Remove functions.
76366         (main): Instead of setting a fake locale, set a real locale. Call
76367         textdomain and bindtextdomain.
76368         * modules/quotearg-tests (Files): Add the new files.
76369         (Depends-on): Add gettext, setenv, unsetenv.
76370         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
76371         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
76372         Augment TESTS_ENVIRONMENT.
76374 2009-01-25  Bruno Haible  <bruno@clisp.org>
76376         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
76377         fr_FR.ISO8859-1 locale on MacOS X.
76378         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
76379         ja_JP.eucJP locale on MacOS X.
76380         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
76381         zh_CN.GB18030 locale on MacOS X.
76383 2009-01-25  Bruno Haible  <bruno@clisp.org>
76385         Avoid link errors on MacOS X 10.3.
76386         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
76387         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
76389 2009-01-25  Bruno Haible  <bruno@clisp.org>
76391         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
76392         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
76393         * modules/pipe (Files): Remove m4/posix_spawn.m4.
76394         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
76395         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
76396         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
76397         posix_spawnattr_init, posix_spawnattr_setsigmask,
76398         posix_spawnattr_setflags, posix_spawnattr_destroy.
76400         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
76401         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
76402         * modules/execute (Files): Remove m4/posix_spawn.m4.
76403         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
76404         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
76405         posix_spawnattr_init, posix_spawnattr_setsigmask,
76406         posix_spawnattr_setflags, posix_spawnattr_destroy.
76408 2009-01-25  Bruno Haible  <bruno@clisp.org>
76410         * lib/glthread/threadlib.c: Include <stdlib.h>.
76412 2009-01-25  Bruno Haible  <bruno@clisp.org>
76414         * lib/glthread/threadlib.c (dummy): New declaration.
76416 2009-01-25  Bruno Haible  <bruno@clisp.org>
76418         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
76419         multibyte characters also for the GB18030 encoding. Don't crash when
76420         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
76422 2009-01-25  Bruno Haible  <bruno@clisp.org>
76424         Avoid redefining 'struct random_data' on OSF/1 5.1.
76425         * lib/stdlib.in.h: Include <random.h> if it exists.
76426         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
76427         HAVE_RANDOM_H. Include <random.h> when testing whether
76428         'struct random_data' exists.
76429         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
76431 2009-01-25  Bruno Haible  <bruno@clisp.org>
76433         Don't install charset.alias on MacOS X >= 10.3.
76434         * lib/localcharset.c (DARWIN7): New macro.
76435         (get_charset_aliases): Hardcode the result for Darwin7.
76436         * modules/localcharset (install-exec-local): Don't install
76437         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
76439 2009-01-25  Bruno Haible  <bruno@clisp.org>
76441         Don't install charset.alias on mingw and Cygwin.
76442         * modules/localcharset (install-exec-local): Don't install
76443         charset.alias on mingw and Cygwin, if the file does not yet exist.
76444         The result for these platforms is hardcoded in localcharset.c.
76446 2009-01-25  Bruno Haible  <bruno@clisp.org>
76448         Make it possible again to use AC_GNU_SOURCE together with gnulib.
76449         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
76450         before requiring AC_USE_SYSTEM_EXTENSIONS.
76452 2009-01-25  Jim Meyering  <meyering@redhat.com>
76454         c-strtod: avoid warnings
76455         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
76456         "assignment discards qualifiers from pointer target type" warnings.
76458 2009-01-24  Bruno Haible  <bruno@clisp.org>
76460         Add support for non-UTF-8 locales on MacOS X.
76461         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
76462         canonical encodings. For Darwin 7 and newer, don't map traditional
76463         encodings to UTF-8.
76464         Reported by Vincent Lefevre <vincent@vinc17.org>
76465         at <http://savannah.gnu.org/bugs/?25235>.
76467 2009-01-24  Bruno Haible  <bruno@clisp.org>
76469         * doc/gnulib.texi (Obsolete modules): New section.
76470         Reported by Mike Frysinger <vapier@gentoo.org>.
76472 2009-01-24  Bruno Haible  <bruno@clisp.org>
76474         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
76475         (%.dvi): New rule.
76477 2009-01-24  Bruno Haible  <bruno@clisp.org>
76479         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
76480         Reported by Eric Blake.
76482 2009-01-24  Bruno Haible  <bruno@clisp.org>
76484         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
76485         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
76486         Reported by Gary V. Vaughan <gary@gnu.org>.
76488 2009-01-24  Bruno Haible  <bruno@clisp.org>
76490         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
76492 2009-01-23  Bruno Haible  <bruno@clisp.org>
76494         Make c-strtod, c-strtold usable in libraries.
76495         * lib/c-strtod.c: Include string.h instead of xalloc.h.
76496         (C_STRTOD): Call strdup instead of xstrdup.
76497         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
76498         * modules/c-strtold (Depends-on): Likewise.
76499         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
76500         * NEWS: Mention the change.
76501         Reported by Michael Gold <mgold@ncf.ca>.
76503 2009-01-23  Jim Meyering  <meyering@redhat.com>
76505         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
76506         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
76507         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
76509 2009-01-23  Simon Josefsson  <simon@josefsson.org>
76511         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
76512         GNU CoreUtils.
76513         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
76514         * modules/version-etc (Description): Update.
76516 2009-01-22  Bruno Haible  <bruno@clisp.org>
76518         Cache the C locale object.
76519         * lib/c-strtod.c (c_locale_cache): New variable.
76520         (c_locale): New function.
76521         (C_STRTOD): Use it, and don't call freelocale.
76522         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
76523         Suggested by Paolo Bonzini.
76525 2009-01-21  Bruno Haible  <bruno@clisp.org>
76527         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
76528         conditions other than overflow.
76530 2009-01-21  Bruno Haible  <bruno@clisp.org>
76532         * lib/c-strtod.c: Include errno.h.
76533         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
76534         value from STRTOD_L and STRTOD.
76536 2009-01-21  Bruno Haible  <bruno@clisp.org>
76537         and Jim Meyering  <meyering@redhat.com>
76539         nanosleep: skip configure test (fail it) for apple universal builds
76540         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
76541         universal builds, assume that nanosleep does not work.
76542         * modules/nanosleep (Depends-on): Add multiarch.
76544         mktime: skip configure test (fail it) for apple universal builds
76545         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
76546         universal builds, assume that mktime does not work.
76547         * modules/mktime (Depends-on): Add multiarch.
76549 2009-01-21  Eric Blake  <ebb9@byu.net>
76551         multiarch: avoid expand-before-require warning
76552         * modules/multiarch (configure.ac): Require, rather than expand,
76553         gl_MULTIARCH.
76554         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
76555         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
76556         enforce that all clients require it.  Partial reversion of
76557         2008-12-29 patch.
76559         error: avoid expand-before-require warning
76560         * modules/errno (configure.ac): Require, rather than expand,
76561         gl_HEADER_ERRNO_H.
76562         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
76563         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
76564         enforce that all clients require it.
76566         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
76567         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
76568         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
76569         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
76571 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
76573         Revert:
76574         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
76576         regex: do not depend on obsolete modules.
76577         * modules/regex: Remove memcmp and memmove.
76579 2009-01-20  Bruno Haible  <bruno@clisp.org>
76581         Make the 'link' module link on Windows NT 4.
76582         * lib/link.c (_WIN32_WINNT): Don't define.
76583         (CreateHardLinkFuncType): New type.
76584         (CreateHardLinkFunc, initialized): New variables.
76585         (initialize): New function.
76586         (link): Invoke CreateHardLink indirectly through the function pointer.
76588 2009-01-20  Bruno Haible  <bruno@clisp.org>
76590         Fix compilation failure on mingw.
76591         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
76593 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
76595         * doc/c-strtod.texi: Mention a couple of restrictions.
76597 2009-01-20  Jim Meyering  <meyering@redhat.com>
76599         gettimeofday: move more declarations out of functions
76600         * lib/gettimeofday.c: Move extern declarations of tzset and
76601         gmtime out of containing functions.  Prompted by Bruno Haible.
76603 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
76605         regex: do not depend on obsolete modules.
76606         * modules/regex: Remove memcmp and memmove.
76608 2009-01-19  Bruno Haible  <bruno@clisp.org>
76610         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
76611         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
76612         gl_BIGENDIAN, not AC_C_BIGENDIAN.
76613         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
76614         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
76616 2009-01-19  Bruno Haible  <bruno@clisp.org>
76618         * tests/test-link.c: Include <errno.h>.
76619         (main): Exit with code 77 when a hard link cannot be created due to
76620         the file system.
76621         * tests/test-link.sh: Skip test when a hard link cannot be created due
76622         to the file system.
76623         Suggested by Eric Blake.
76625 2009-01-19  Martin Lambers  <marlam@marlam.de>
76627         * modules/link-tests: New file.
76628         * tests/test-link.sh: New file.
76629         * tests/test-link.c: New file.
76631 2009-01-19  Eric Blake  <ebb9@byu.net>
76633         doc: mention another function added in cygwin 1.7.0
76634         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
76635         Another new function in cygwin 1.7.
76637 2009-01-19  Bruno Haible  <bruno@clisp.org>
76639         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
76640         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
76641         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
76642         gl_BIGENDIAN, not AC_C_BIGENDIAN.
76643         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
76644         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
76645         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
76646         * m4/md4.m4 (gl_MD4): Likewise.
76647         * m4/md5.m4 (gl_MD5): Likewise.
76648         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
76649         * m4/sha1.m4 (gl_SHA1): Likewise.
76650         * m4/sha256.m4 (gl_SHA256): Likewise.
76651         * m4/sha512.m4 (gl_SHA512): Likewise.
76653 2009-01-19  Bruno Haible  <bruno@clisp.org>
76655         * modules/uniname/uniname-tests (Depends-on): Add progname.
76656         * tests/uniname/test-uninames.c: Include progname.h.
76657         (main): Call set_program_name.
76659         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
76660         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
76661         (main): Call set_program_name.
76663         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
76664         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
76665         (main): Call set_program_name.
76667         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
76668         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
76669         (main): Call set_program_name.
76671         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
76672         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
76673         (main): Call set_program_name.
76675         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
76676         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
76677         (main): Call set_program_name.
76679         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
76680         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
76681         (main): Call set_program_name.
76683         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
76684         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
76685         (main): Call set_program_name.
76687         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
76688         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
76689         (main): Call set_program_name.
76691 2009-01-19  Eric Blake  <ebb9@byu.net>
76693         test-unistd: test previous patch
76694         * tests/test-unistd.c: Test *_FILENO macros.
76696         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
76697         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
76698         Guarantee a definition.
76699         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
76700         * modules/unistd-safer (Depends-on): Add dependency on unistd.
76701         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
76702         * lib/dup-safer.c (STDERR_FILENO): Likewise.
76703         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
76704         Likewise.
76705         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
76706         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
76707         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
76708         Likewise.
76709         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
76710         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
76711         (STDERR_FILENO): Likewise.
76712         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
76713         (STDERR_FILENO): Likewise.
76714         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
76715         (STDERR_FILENO): Likewise.
76716         Reported by Elbert Pol.
76718 2009-01-19  Eric Blake  <ebb9@byu.net>
76720         doc: mention more functions added in cygwin 1.7.0
76721         * doc/posix-functions/abort.texi (abort): Update wording related
76722         to cygwin.
76723         * doc/posix-functions/daylight.texi (daylight): Likewise.
76724         * doc/posix-functions/optarg.texi (optarg): Likewise.
76725         * doc/posix-functions/optarg.texi (opterr): Likewise.
76726         * doc/posix-functions/optarg.texi (optind): Likewise.
76727         * doc/posix-functions/optarg.texi (optopt): Likewise.
76728         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
76729         worked in 1.5.x, and was withdrawn in 1.7.
76730         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
76731         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
76732         cygwin versions.
76733         * doc/posix-functions/perror.texi (perror): Likewise.
76734         * doc/posix-functions/printf.texi (printf): Likewise.
76735         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
76736         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
76737         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
76738         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
76739         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
76740         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
76741         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
76742         Likewise.
76743         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
76744         Likewise.
76745         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
76746         this function.
76747         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
76748         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
76749         Likewise.
76750         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
76751         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
76752         * doc/posix-functions/confstr.texi (confstr): Likewise.
76753         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
76754         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
76755         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
76756         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
76757         * doc/posix-functions/fputws.texi (fputws): Likewise.
76758         * doc/posix-functions/fwide.texi (fwide): Likewise.
76759         * doc/posix-functions/getwc.texi (getwc): Likewise.
76760         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
76761         * doc/posix-functions/putwc.texi (putwc): Likewise.
76762         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
76763         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
76764         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
76765         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
76766         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
76767         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
76768         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
76769         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
76770         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
76771         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
76772         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
76774 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
76776         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
76777         * lib/ioctl.c: Include <sys/ioctl.h>.
76779 2009-01-19  Simon Josefsson  <simon@josefsson.org>
76781         * modules/getdate-tests (Depends-on): Add progname.
76782         * tests/test-getdate.c: Use progname module, to avoid link errors
76783         on non-glibc systems.
76785 2009-01-18  Simon Josefsson  <simon@josefsson.org>
76787         * modules/filenamecat-tests (Depends-on): Add progname.
76788         * modules/fstrcmp-tests (Depends-on): Likewise.
76790         * tests/test-filenamecat.c: Use progname module, to avoid link
76791         errors on non-glibc systems.
76792         * tests/test-fstrcmp.c: Likewise.
76794 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
76796         gettimeofday: avoid warning: nested extern declaration of 'localtime'
76797         * lib/gettimeofday.c: Move extern declaration out of function.
76799 2009-01-18  Bruno Haible  <bruno@clisp.org>
76801         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
76802         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
76803         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
76805 2009-01-18  Bruno Haible  <bruno@clisp.org>
76807         * lib/strftime.c (MEMPCPY): Remove unused macro.
76808         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
76810 2009-01-18  Martin Lambers  <marlam@marlam.de>
76812         New module 'link'.
76813         * lib/unistd.in.h (link): New declaration.
76814         * lib/link.c: New file.
76815         * m4/link.m4: New file.
76816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
76817         HAVE_LINK.
76818         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
76819         * modules/link: New file.
76820         * doc/posix-functions/link.texi: Mention the new module.
76822 2009-01-18  Bruno Haible  <bruno@clisp.org>
76824         * tests/test-avltree_list.c (main): Call set_program_name.
76825         * tests/test-avltree_oset.c (main): Likewise.
76826         * tests/test-obstack-printf.c: Include progname.h.
76827         (main): Call set_program_name.
76828         * tests/test-quotearg.c: Include progname.h.
76829         (main): Call set_program_name.
76830         * tests/test-xmemdup0.c: Include progname.h.
76831         (main): Call set_program_name.
76833 2009-01-18  Bruno Haible  <bruno@clisp.org>
76835         New module 'alphasort'.
76836         * lib/dirent.in.h (alphasort): New declaration.
76837         * lib/alphasort.c: New file, from glibc with modifications.
76838         * m4/alphasort.m4: New file.
76839         * modules/alphasort: New file.
76840         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
76841         HAVE_ALPHASORT.
76842         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
76843         HAVE_ALPHASORT.
76844         * doc/posix-functions/alphasort.texi: Mention the new module and the
76845         portability problems.
76847 2009-01-18  Bruno Haible  <bruno@clisp.org>
76849         New module 'scandir'.
76850         * lib/dirent.in.h (scandir): New declaration.
76851         * lib/scandir.c: New file, from glibc with modifications.
76852         * m4/scandir.m4: New file.
76853         * modules/scandir: New file.
76854         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
76855         HAVE_SCANDIR.
76856         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
76857         HAVE_SCANDIR.
76858         * doc/posix-functions/scandir.texi: Mention the new module and the
76859         portability problems.
76861 2009-01-17  Bruno Haible  <bruno@clisp.org>
76863         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
76864         Update documentation.
76865         (func_remove_suffix): Escape all dots in the suffix. Update
76866         documentation.
76867         (func_filter_filelist): Update documentation.
76868         Reported by Ralf Wildenhues.
76870 2009-01-17  Bruno Haible  <bruno@clisp.org>
76872         * modules/dprintf-posix-tests: New file.
76873         * tests/test-dprintf-posix.sh: New file.
76874         * tests/test-dprintf-posix.c: New file.
76876         New modules 'dprintf', 'dprintf-posix'.
76877         * lib/stdio.in.h (dprintf): New declaration.
76878         * lib/dprintf.c: New file.
76879         * m4/dprintf.m4: New file.
76880         * m4/dprintf-posix.m4: New file.
76881         * modules/dprintf: New file.
76882         * modules/dprintf-posix: New file.
76883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
76884         HAVE_DPRINTF, REPLACE_DPRINTF.
76885         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
76886         HAVE_DPRINTF, REPLACE_DPRINTF.
76887         * doc/posix-functions/dprintf.texi: Mention the new modules.
76889 2009-01-17  Bruno Haible  <bruno@clisp.org>
76891         * modules/vdprintf-posix-tests: New file.
76892         * tests/test-vdprintf-posix.sh: New file.
76893         * tests/test-vdprintf-posix.c: New file.
76895         New modules 'vdprintf', 'vdprintf-posix'.
76896         * lib/stdio.in.h (vdprintf): New declaration.
76897         * lib/vdprintf.c: New file.
76898         * m4/vdprintf.m4: New file.
76899         * m4/vdprintf-posix.m4: New file.
76900         * modules/vdprintf: New file.
76901         * modules/vdprintf-posix: New file.
76902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
76903         HAVE_VDPRINTF, REPLACE_VDPRINTF.
76904         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
76905         HAVE_VDPRINTF, REPLACE_VDPRINTF.
76906         * doc/posix-functions/vdprintf.texi: Mention the new modules.
76908 2009-01-17  Bruno Haible  <bruno@clisp.org>
76910         Fix replacement of fopen on mingw.
76911         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
76912         mingw.
76914 2009-01-17  Bruno Haible  <bruno@clisp.org>
76916         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
76917         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
76919 2009-01-17  Bruno Haible  <bruno@clisp.org>
76921         Avoid test-fflush2.sh failure on mingw.
76922         * tests/test-fflush2.c: Include binary-io.h.
76923         (main): Put standard input into binary mode.
76924         * modules/fflush-tests (Depends-on): Add binary-io.
76926 2009-01-17  Bruno Haible  <bruno@clisp.org>
76928         * lib/wchar.in.h: In another particular situation, include only the
76929         system's <wchar.h> file.
76930         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
76931         Reported by Albert Chin-A-Young <china@thewrittenword.com>
76932         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
76934 2009-01-17  Bruno Haible  <bruno@clisp.org>
76936         Support for stripping executables in --enable-relocatable.
76937         * build-aux/install-reloc: Expect one more argument, or an environment
76938         variable RELOC_STRIP_PROG. If set, strip the destination program and
76939         its wrapper.
76940         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
76941         RELOC_STRIP_PROG.
76942         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
76943         to set RELOCATABLE_STRIP.
76944         * NEWS: Mention the new Makefile requirement.
76946 2009-01-17  Bruno Haible  <bruno@clisp.org>
76948         * build-aux/install-reloc: Remove debugging information left over by
76949         C compiler on MacOS X.
76951 2009-01-17  Bruno Haible  <bruno@clisp.org>
76953         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
76954         * lib/progreloc.c (find_executable): Fix type of pointer passed to
76955         _NSGetExecutablePath.
76957 2009-01-16  Jim Meyering  <meyering@redhat.com>
76959         strerror: avoid warnings about discarding "const"
76960         * lib/strerror.c (rpl_strerror): Instead of returning a const
76961         string from each and every "case", use a variable, and add a single
76962         cast after the switch.
76964 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
76966         * lib/arpa_inet.in.h: Add extern "C" block for C++.
76968 2009-01-16  Bruno Haible  <bruno@clisp.org>
76970         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
76971         array initializer syntax that also works in C++ mode.
76972         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76974 2009-01-16  Jim Meyering  <meyering@redhat.com>
76976         poll: suppress a warning
76977         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
76978         to ignore "...unsigned expression < 0 is always false" warnings.
76980 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
76982         poll: remove declarations of unused variables
76983         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
76984         sockbuf and optlen.
76986 2009-01-15  Bruno Haible  <bruno@clisp.org>
76988         Make fflush-after-ungetc POSIX compliant on BSD systems.
76989         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
76990         (clear_ungetc_buffer): Implement also for other systems.
76991         (rpl_fflush): On glibc systems, invoke
76992         clear_ungetc_buffer_preserving_position. Otherwise, invoke
76993         clear_ungetc_buffer after fetching the stream's position, not before.
76995 2009-01-15  Bruno Haible  <bruno@clisp.org>
76997         Make fflush-after-ungetc POSIX compliant on glibc systems.
76998         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
76999         after ungetc.
77000         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
77001         (rpl_fflush): On glibc systems, simply call the system's fflush
77002         function after clearing the ungetc buffer.
77003         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
77004         Instead, lseek only to the end of file, then use the system's fseeko
77005         for the rest. On glibc systems, reset the EOF indicator bit.
77007 2009-01-15  Jim Meyering  <meyering@redhat.com>
77009         openmp.m4: revert quote-adding change, for portability to older autoconf
77010         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
77011         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
77012         Simon Josefsson noticed the problem when using autoconf-2.61.
77014 2009-01-15  Bruno Haible  <bruno@clisp.org>
77016         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
77017         * tests/test-fflush2.c (ASSERT): Always fail.
77018         (main): Add two tests for fflush() after ungetc(), taking into account
77019         the Austin Group's clarification.
77020         Suggested by Eric Blake.
77022 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
77024         mktime.m4: remove K&R-style function prototypes
77025         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
77026         for the Sun C++ compiler.
77028 2009-01-14  Bruno Haible  <bruno@clisp.org>
77030         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
77031         while including <wchar.h>.
77032         * lib/wchar.in.h: In two particular situations on HP-UX, include only
77033         the system's <wchar.h> file.
77034         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
77036 2009-01-14  Bruno Haible  <bruno@clisp.org>
77038         * m4/csharp.m4: Don't mention gettext on the serial number line.
77039         * m4/csharpexec.m4: Likewise.
77040         * m4/eaccess.m4: Likewise.
77041         * m4/javaexec.m4: Likewise.
77042         * m4/sig_atomic_t.m4: Likewise.
77043         * m4/tmpdir.m4: Likewise.
77044         * m4/intldir.m4: Bump gettext version.
77045         * m4/lib-ld.m4: Likewise.
77047 2009-01-14  Bruno Haible  <bruno@clisp.org>
77049         * lib/progname.c (set_program_name): Add more comments.
77050         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
77052 2009-01-14  Simon Josefsson  <simon@josefsson.org>
77054         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
77055         were sys/stat.h does not define it.
77057 2009-01-14  Jim Meyering  <meyering@redhat.com>
77059         many *.m4 files: improve m4 quoting
77060         99% of this change was performed by running the following commands:
77061         git ls-files | grep '\.m4$' | xargs perl -pi \
77062           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
77063           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
77064           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
77065           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
77066         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
77067         The remainder were to add Copyright dates, increment serial numbers,
77068         undo some changes in comments, exclude m4/intl.m4, and add quotes
77069         around the "1" in ",1" where the unusual spacing prohibited the
77070         above regexps from doing the job.  For more details, see
77071         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
77072         * m4/acl.m4: Modified.
77073         * m4/afs.m4: Likewise.
77074         * m4/alloca.m4: Likewise.
77075         * m4/argp.m4: Likewise.
77076         * m4/argz.m4: Likewise.
77077         * m4/atexit.m4: Likewise.
77078         * m4/bison-i18n.m4: Likewise.
77079         * m4/bison.m4: Likewise.
77080         * m4/byteswap.m4: Likewise.
77081         * m4/c-stack.m4: Likewise.
77082         * m4/c-strtod.m4: Likewise.
77083         * m4/calloc.m4: Likewise.
77084         * m4/canonicalize-lgpl.m4: Likewise.
77085         * m4/chown.m4: Likewise.
77086         * m4/clock_time.m4: Likewise.
77087         * m4/codeset.m4: Likewise.
77088         * m4/copy-file.m4: Likewise.
77089         * m4/csharp.m4: Likewise.
77090         * m4/csharpcomp.m4: Likewise.
77091         * m4/csharpexec.m4: Likewise.
77092         * m4/d-ino.m4: Likewise.
77093         * m4/d-type.m4: Likewise.
77094         * m4/dirfd.m4: Likewise.
77095         * m4/double-slash-root.m4: Likewise.
77096         * m4/eaccess.m4: Likewise.
77097         * m4/eealloc.m4: Likewise.
77098         * m4/environ.m4: Likewise.
77099         * m4/errno_h.m4: Likewise.
77100         * m4/euidaccess.m4: Likewise.
77101         * m4/execute.m4: Likewise.
77102         * m4/fatal-signal.m4: Likewise.
77103         * m4/fchdir.m4: Likewise.
77104         * m4/fcntl_h.m4: Likewise.
77105         * m4/fileblocks.m4: Likewise.
77106         * m4/filenamecat.m4: Likewise.
77107         * m4/findprog.m4: Likewise.
77108         * m4/flexmember.m4: Likewise.
77109         * m4/fnmatch.m4: Likewise.
77110         * m4/fopen.m4: Likewise.
77111         * m4/fpending.m4: Likewise.
77112         * m4/fprintf-posix.m4: Likewise.
77113         * m4/free.m4: Likewise.
77114         * m4/frexp.m4: Likewise.
77115         * m4/frexpl.m4: Likewise.
77116         * m4/fsusage.m4: Likewise.
77117         * m4/ftruncate.m4: Likewise.
77118         * m4/gc-camellia.m4: Likewise.
77119         * m4/gc-random.m4: Likewise.
77120         * m4/gc.m4: Likewise.
77121         * m4/getaddrinfo.m4: Likewise.
77122         * m4/getcwd-abort-bug.m4: Likewise.
77123         * m4/getcwd-path-max.m4: Likewise.
77124         * m4/getdate.m4: Likewise.
77125         * m4/getdomainname.m4: Likewise.
77126         * m4/getgroups.m4: Likewise.
77127         * m4/gethostname.m4: Likewise.
77128         * m4/gethrxtime.m4: Likewise.
77129         * m4/getline.m4: Likewise.
77130         * m4/getloadavg.m4: Likewise.
77131         * m4/getndelim2.m4: Likewise.
77132         * m4/getpass.m4: Likewise.
77133         * m4/gettext.m4: Likewise.
77134         * m4/gettime.m4: Likewise.
77135         * m4/gettimeofday.m4: Likewise.
77136         * m4/gnulib-common.m4: Likewise.
77137         * m4/group-member.m4: Likewise.
77138         * m4/host-os.m4: Likewise.
77139         * m4/iconv.m4: Likewise.
77140         * m4/iconv_open.m4: Likewise.
77141         * m4/inet_ntop.m4: Likewise.
77142         * m4/inet_pton.m4: Likewise.
77143         * m4/inline.m4: Likewise.
77144         * m4/intldir.m4: Likewise.
77145         * m4/intlmacosx.m4: Likewise.
77146         * m4/intmax.m4: Likewise.
77147         * m4/intmax_t.m4: Likewise.
77148         * m4/inttypes.m4: Likewise.
77149         * m4/inttypes_h.m4: Likewise.
77150         * m4/inttypes-pri.m4: Likewise.
77151         * m4/isapipe.m4: Likewise.
77152         * m4/isnand.m4: Likewise.
77153         * m4/isnanf.m4: Likewise.
77154         * m4/isnanl.m4: Likewise.
77155         * m4/javacomp.m4: Likewise.
77156         * m4/javaexec.m4: Likewise.
77157         * m4/jm-winsz1.m4: Likewise.
77158         * m4/jm-winsz2.m4: Likewise.
77159         * m4/lchown.m4: Likewise.
77160         * m4/lcmessage.m4: Likewise.
77161         * m4/ldexpl.m4: Likewise.
77162         * m4/lib-ld.m4: Likewise.
77163         * m4/lib-link.m4: Likewise.
77164         * m4/libsigsegv.m4: Likewise.
77165         * m4/link-follow.m4: Likewise.
77166         * m4/localcharset.m4: Likewise.
77167         * m4/locale-fr.m4: Likewise.
77168         * m4/locale-ja.m4: Likewise.
77169         * m4/locale-tr.m4: Likewise.
77170         * m4/locale-zh.m4: Likewise.
77171         * m4/lock.m4: Likewise.
77172         * m4/longlong.m4: Likewise.
77173         * m4/ls-mntd-fs.m4: Likewise.
77174         * m4/lstat.m4: Likewise.
77175         * m4/malloc.m4: Likewise.
77176         * m4/mathl.m4: Likewise.
77177         * m4/mbrtowc.m4: Likewise.
77178         * m4/mbstate_t.m4: Likewise.
77179         * m4/mbswidth.m4: Likewise.
77180         * m4/memchr.m4: Likewise.
77181         * m4/memcmp.m4: Likewise.
77182         * m4/memcpy.m4: Likewise.
77183         * m4/memmem.m4: Likewise.
77184         * m4/memmove.m4: Likewise.
77185         * m4/mempcpy.m4: Likewise.
77186         * m4/memrchr.m4: Likewise.
77187         * m4/memset.m4: Likewise.
77188         * m4/minmax.m4: Likewise.
77189         * m4/mkdir-slash.m4: Likewise.
77190         * m4/mkdtemp.m4: Likewise.
77191         * m4/mktime.m4: Likewise.
77192         * m4/mmap-anon.m4: Likewise.
77193         * m4/mountlist.m4: Likewise.
77194         * m4/nanosleep.m4: Likewise.
77195         * m4/nls.m4: Likewise.
77196         * m4/nocrash.m4: Likewise.
77197         * m4/open.m4: Likewise.
77198         * m4/openat.m4: Likewise.
77199         * m4/openmp.m4: Likewise.
77200         * m4/pathmax.m4: Likewise.
77201         * m4/perl.m4: Likewise.
77202         * m4/physmem.m4: Likewise.
77203         * m4/pipe.m4: Likewise.
77204         * m4/po.m4: Likewise.
77205         * m4/poll.m4: Likewise.
77206         * m4/posixtm.m4: Likewise.
77207         * m4/posixver.m4: Likewise.
77208         * m4/printf-frexp.m4: Likewise.
77209         * m4/printf-frexpl.m4: Likewise.
77210         * m4/printf-posix.m4: Likewise.
77211         * m4/printf-posix-rpl.m4: Likewise.
77212         * m4/printf.m4: Likewise.
77213         * m4/progtest.m4: Likewise.
77214         * m4/putenv.m4: Likewise.
77215         * m4/readline.m4: Likewise.
77216         * m4/readlink.m4: Likewise.
77217         * m4/readutmp.m4: Likewise.
77218         * m4/realloc.m4: Likewise.
77219         * m4/regex.m4: Likewise.
77220         * m4/relocatable.m4: Likewise.
77221         * m4/relocatable-lib.m4: Likewise.
77222         * m4/rename-dest-slash.m4: Likewise.
77223         * m4/rename.m4: Likewise.
77224         * m4/rmdir-errno.m4: Likewise.
77225         * m4/rmdir.m4: Likewise.
77226         * m4/roundf.m4: Likewise.
77227         * m4/roundl.m4: Likewise.
77228         * m4/rpmatch.m4: Likewise.
77229         * m4/save-cwd.m4: Likewise.
77230         * m4/selinux-selinux-h.m4: Likewise.
77231         * m4/setenv.m4: Likewise.
77232         * m4/settime.m4: Likewise.
77233         * m4/sig2str.m4: Likewise.
77234         * m4/sig_atomic_t.m4: Likewise.
77235         * m4/signalblocking.m4: Likewise.
77236         * m4/signbit.m4: Likewise.
77237         * m4/sigpipe.m4: Likewise.
77238         * m4/sockets.m4: Likewise.
77239         * m4/sockpfaf.m4: Likewise.
77240         * m4/st_dm_mode.m4: Likewise.
77241         * m4/stat-time.m4: Likewise.
77242         * m4/stdbool.m4: Likewise.
77243         * m4/stdint.m4: Likewise.
77244         * m4/stdint_h.m4: Likewise.
77245         * m4/stpcpy.m4: Likewise.
77246         * m4/stpncpy.m4: Likewise.
77247         * m4/strcase.m4: Likewise.
77248         * m4/strchrnul.m4: Likewise.
77249         * m4/strcspn.m4: Likewise.
77250         * m4/strdup.m4: Likewise.
77251         * m4/strftime.m4: Likewise.
77252         * m4/strndup.m4: Likewise.
77253         * m4/strnlen.m4: Likewise.
77254         * m4/strpbrk.m4: Likewise.
77255         * m4/strptime.m4: Likewise.
77256         * m4/strsep.m4: Likewise.
77257         * m4/strtod.m4: Likewise.
77258         * m4/strtoimax.m4: Likewise.
77259         * m4/strtok_r.m4: Likewise.
77260         * m4/strtol.m4: Likewise.
77261         * m4/strtoll.m4: Likewise.
77262         * m4/strtoul.m4: Likewise.
77263         * m4/strtoull.m4: Likewise.
77264         * m4/strtoumax.m4: Likewise.
77265         * m4/strverscmp.m4: Likewise.
77266         * m4/threadlib.m4: Likewise.
77267         * m4/timegm.m4: Likewise.
77268         * m4/tm_gmtoff.m4: Likewise.
77269         * m4/tmpdir.m4: Likewise.
77270         * m4/tmpfile.m4: Likewise.
77271         * m4/tzset.m4: Likewise.
77272         * m4/uintmax_t.m4: Likewise.
77273         * m4/unlinkdir.m4: Likewise.
77274         * m4/unlocked-io.m4: Likewise.
77275         * m4/uptime.m4: Likewise.
77276         * m4/userspec.m4: Likewise.
77277         * m4/utimbuf.m4: Likewise.
77278         * m4/utime.m4: Likewise.
77279         * m4/utimes-null.m4: Likewise.
77280         * m4/utimes.m4: Likewise.
77281         * m4/vararrays.m4: Likewise.
77282         * m4/vasnprintf.m4: Likewise.
77283         * m4/vfprintf-posix.m4: Likewise.
77284         * m4/vprintf-posix.m4: Likewise.
77285         * m4/wait-process.m4: Likewise.
77286         * m4/wchar_t.m4: Likewise.
77287         * m4/wint_t.m4: Likewise.
77288         * m4/write-any-file.m4: Likewise.
77289         * m4/yield.m4: Likewise.
77291 2009-01-13  Bruno Haible  <bruno@clisp.org>
77293         Avoid test-copy-file.sh failures when ACL support insufficient.
77294         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
77295         TESTS_ENVIRONMENT.
77296         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
77297         Reported by Jim Meyering.
77299 2009-01-13  Bruno Haible  <bruno@clisp.org>
77301         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
77302         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
77303         * modules/unistdio/u8-printf-parse (Files): Likewise.
77304         * modules/unistdio/u32-printf-parse (Files): Likewise.
77305         * modules/unistdio/ulc-printf-parse (Files): Likewise.
77307 2009-01-13  Simon Josefsson  <simon@josefsson.org>
77309         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
77310         and m4/inttypes_h.m4 too.
77312 2009-01-12  Eric Blake  <ebb9@byu.net>
77314         tests: IRIX 6.2 cc can't compile -0.0 into .data
77315         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
77316         rather than at compile-time.
77317         * tests/test-floorl.c (minus_zero): Likewise.
77318         * tests/test-frexpl.c (minus_zero): Likewise.
77319         * tests/test-isnan.c (minus_zerol): Likewise.
77320         * tests/test-isnanl.h (minus_zero): Likewise.
77321         * tests/test-ldexpl.c (minus_zero): Likewise.
77322         * tests/test-roundl.c (minus_zero): Likewise.
77323         * tests/test-signbit.c (minus_zerol): Likewise.
77324         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
77325         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
77326         * tests/test-truncl.c (minus_zero): Likewise.
77327         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
77328         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
77329         Reported by Tom G. Christensen and Nelson H. F. Beebe.
77331 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
77333         regex: fix glibc bug 9697
77334         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
77335         handling.
77337 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
77339         regex: fix glibc bug 697
77340         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
77341         being NULL also if there are no backreferences.
77343 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
77345         regex: merge glibc changes
77346         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
77347         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
77348         re_string_skip_chars, re_string_reconstruct): Likewise.
77349         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
77351 2009-01-07  Jim Meyering  <meyering@redhat.com>
77353         poll: filter through cppi
77354         * lib/poll.c: Indent cpp directives to reflect nesting.
77356 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
77358         poll: don't return uninitialized
77359         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
77361 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
77363         avoid compile failure on AIX 6.1
77364         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
77365         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
77367 2009-01-04  Jim Meyering  <meyering@redhat.com>
77369         remove duplicate inclusion of <stdio.h>
77370         * tests/test-fprintf-posix.c: Likewise.
77371         * tests/test-printf-posix.c: Likewise.
77372         * tests/test-snprintf-posix.c: Likewise.
77373         * tests/test-sprintf-posix.c: Likewise.
77374         * tests/test-vasprintf-posix.c: Likewise.
77375         * tests/test-vfprintf-posix.c: Likewise.
77376         * tests/test-vprintf-posix.c: Likewise.
77377         * tests/test-vsnprintf-posix.c: Likewise.
77378         * tests/test-vsprintf-posix.c: Likewise.
77380 2009-01-03  Jim Meyering  <meyering@redhat.com>
77382         gnulib-tool: fix sed-based filtering
77383         * gnulib-tool (func_filter_filelist): Remove extra backslash
77384         in sed_fff_filter definition.
77386 2009-01-02  Jim Meyering  <meyering@redhat.com>
77388         strftime: avoid compilation failure on Solaris 2.6
77389         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
77390         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
77391         Don't #define mbrlen or mbsinit, since now they're guaranteed to
77392         be available.  Reported by Tom G. Christensen.  Details in
77393         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
77395 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77396             Bruno Haible  <bruno@clisp.org>
77398         Speed up gnulib-tool by doing more string processing through shell
77399         built-ins.
77400         * gnulib-tool (fast_func_append): New variable.
77401         (func_remove_prefix, func_remove_suffix): New functions.
77402         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
77403         (func_filter_filelist): New function.
77404         (func_get_dependencies): Use func_remove_suffix instead of sed.
77405         (func_get_automake_snippet): Use func_filter_filelist instead of a
77406         subshell and sed invocation.
77408 2009-01-01  Bruno Haible  <bruno@clisp.org>
77410         Fix a security bug.
77411         * gnulib-tool (func_import, import, update): Don't allow the characters
77412         '"', '$', '`', '\' in macro arguments that become part of commands that
77413         are evaluated.
77415 2009-01-01  Bruno Haible  <bruno@clisp.org>
77417         * gnulib-tool (func_reset_sigpipe): Add more comments.
77419 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77421         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
77422         func_emit_tests_Makefile_am, func_import): Abort loops early if we
77423         already know the answer.
77425 2009-01-01  Jim Meyering  <meyering@redhat.com>
77427         * lib/version-etc.c (version_etc_va): Update copyright year.
77429 2008-12-30  Bruno Haible  <bruno@clisp.org>
77431         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
77432         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
77433         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
77435 2008-12-29  Eric Blake  <ebb9@byu.net>
77437         multiarch: avoid autoconf AC_REQUIRE bug
77438         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
77439         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
77440         2.63 and older.
77441         Reported by Bruno Haible, and analyzed in
77442         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
77444 2008-12-29  Bruno Haible  <bruno@clisp.org>
77446         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
77447         files in subdirectories correctly.
77448         Reported by Ralf Wildenhues.
77450 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77452         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
77453         rather than 'join FILE -', for Solaris join.
77455 2008-12-29  Bruno Haible  <bruno@clisp.org>
77457         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
77458         quoting.
77459         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
77460         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
77461         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
77462         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
77463         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
77464         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
77465         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
77466         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
77467         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77468         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
77469         * m4/nls.m4 (AM_NLS): Likewise.
77470         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
77471         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
77472         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77473         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
77474         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
77475         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
77476         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
77477         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
77478         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
77479         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
77480         * m4/xsize.m4 (gl_XSIZE): Likewise.
77481         Suggested by Jim Meyering.
77483 2008-11-17  Bruce Korb  <bkorb@gnu.org>
77485         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
77486         * lib/parse-duration.c: use a switch instead of cascading if's.
77488 2008-12-29  Eric Blake  <ebb9@byu.net>
77490         wchar.h: supply WEOF on Irix 5.3
77491         * lib/wchar.in.h (wint_t): Also supply WEOF.
77492         * lib/wctype.in.h (wint_t): Likewise.
77493         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
77494         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
77495         Reported by Tom G. Christensen.
77497 2008-12-26  Bruno Haible  <bruno@clisp.org>
77499         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
77500         i486, i586, i686.
77502 2008-12-26  Bruno Haible  <bruno@clisp.org>
77504         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
77506 2008-12-26  Bruno Haible  <bruno@clisp.org>
77508         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
77509         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
77510         not __STDC_CONSTANT_MACROS.
77511         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
77513 2008-12-25  Bruno Haible  <bruno@clisp.org>
77515         Add support for universal builds to vasnprintf.
77516         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
77517         universal builds, guess no.
77518         * modules/vasnprintf-posix (Depends-on): Add multiarch.
77519         * modules/vasprintf-posix (Depends-on): Likewise.
77520         * modules/fprintf-posix (Depends-on): Likewise.
77521         * modules/vfprintf-posix (Depends-on): Likewise.
77522         * modules/snprintf-posix (Depends-on): Likewise.
77523         * modules/vsnprintf-posix (Depends-on): Likewise.
77524         * modules/sprintf-posix (Depends-on): Likewise.
77525         * modules/vsprintf-posix (Depends-on): Likewise.
77526         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
77527         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
77528         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
77529         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
77530         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
77531         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
77532         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
77534         Add support for universal builds to <inttypes.h>.
77535         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
77536         _SCNu64_PREFIX): In Apple
77537         universal builds, define directly, using _LP64.
77538         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
77539         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
77540         * modules/inttypes (Depends-on): Add multiarch.
77541         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
77543         Add support for universal builds to <stdint.h>.
77544         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
77545         universal builds, define directly, using _LP64.
77546         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
77547         Apple universal builds, don't test for the size and suffix of ptrdiff_t
77548         and size_t.
77549         * modules/stdint (Depends-on): Add multiarch.
77550         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
77552         New module 'multiarch'.
77553         * modules/multiarch: New file.
77554         * m4/multiarch.m4: New file.
77556 2008-12-25  Bruno Haible  <bruno@clisp.org>
77558         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
77560 2008-12-25  Bruno Haible  <bruno@clisp.org>
77562         * modules/btowc (License): Relicense under LGPLv2+.
77563         * modules/mbsinit (License): Likewise.
77564         * modules/mbrtowc (License): Likewise.
77565         * modules/wcrtomb (License): Likewise.
77566         * modules/streq (License): Likewise.
77567         Reported by David Lutterkort <lutter@redhat.com>.
77569 2008-12-23  Bruno Haible  <bruno@clisp.org>
77571         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
77573 2008-12-23  Bruno Haible  <bruno@clisp.org>
77575         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
77576         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
77577         GETADDRINFO_LIB, not in LIBS.
77578         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
77579         * modules/canon-host (Link): Likewise.
77580         * NEWS: Mention the change.
77581         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
77582         GETADDRINFO_LIB.
77584 2008-12-22  Bruno Haible  <bruno@clisp.org>
77586         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
77587         * doc/posix-functions/iswalpha_l.texi: Likewise.
77588         * doc/posix-functions/iswblank_l.texi: Likewise.
77589         * doc/posix-functions/iswcntrl_l.texi: Likewise.
77590         * doc/posix-functions/iswctype_l.texi: Likewise.
77591         * doc/posix-functions/iswdigit_l.texi: Likewise.
77592         * doc/posix-functions/iswgraph_l.texi: Likewise.
77593         * doc/posix-functions/iswlower_l.texi: Likewise.
77594         * doc/posix-functions/iswprint_l.texi: Likewise.
77595         * doc/posix-functions/iswpunct_l.texi: Likewise.
77596         * doc/posix-functions/iswspace_l.texi: Likewise.
77597         * doc/posix-functions/iswupper_l.texi: Likewise.
77598         * doc/posix-functions/iswxdigit_l.texi: Likewise.
77599         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
77600         * doc/posix-functions/open_wmemstream.texi: Likewise.
77601         * doc/posix-functions/swscanf.texi: Likewise.
77602         * doc/posix-functions/towctrans_l.texi: Likewise.
77603         * doc/posix-functions/towlower.texi: Likewise.
77604         * doc/posix-functions/towlower_l.texi: Likewise.
77605         * doc/posix-functions/towupper.texi: Likewise.
77606         * doc/posix-functions/towupper_l.texi: Likewise.
77607         * doc/posix-functions/vfwprintf.texi: Likewise.
77608         * doc/posix-functions/vfwscanf.texi: Likewise.
77609         * doc/posix-functions/vswscanf.texi: Likewise.
77610         * doc/posix-functions/vwprintf.texi: Likewise.
77611         * doc/posix-functions/vwscanf.texi: Likewise.
77612         * doc/posix-functions/wcpcpy.texi: Likewise.
77613         * doc/posix-functions/wcpncpy.texi: Likewise.
77614         * doc/posix-functions/wcscasecmp.texi: Likewise.
77615         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
77616         * doc/posix-functions/wcscoll_l.texi: Likewise.
77617         * doc/posix-functions/wcsdup.texi: Likewise.
77618         * doc/posix-functions/wcsncasecmp.texi: Likewise.
77619         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
77620         * doc/posix-functions/wcsnlen.texi: Likewise.
77621         * doc/posix-functions/wcsnrtombs.texi: Likewise.
77622         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
77623         * doc/posix-functions/wctrans_l.texi: Likewise.
77624         * doc/posix-functions/wctype_l.texi: Likewise.
77625         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
77626         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
77627         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
77628         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
77629         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
77630         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
77631         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
77632         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
77633         * doc/glibc-functions/wcschrnul.texi: Likewise.
77634         * doc/glibc-functions/wcsftime_l.texi: Likewise.
77635         * doc/glibc-functions/wcstod_l.texi: Likewise.
77636         * doc/glibc-functions/wcstof_l.texi: Likewise.
77637         * doc/glibc-functions/wcstol_l.texi: Likewise.
77638         * doc/glibc-functions/wcstold_l.texi: Likewise.
77639         * doc/glibc-functions/wcstoll_l.texi: Likewise.
77640         * doc/glibc-functions/wcstoq.texi: Likewise.
77641         * doc/glibc-functions/wcstoul_l.texi: Likewise.
77642         * doc/glibc-functions/wcstoull_l.texi: Likewise.
77643         * doc/glibc-functions/wcstouq.texi: Likewise.
77644         * doc/glibc-functions/wmempcpy.texi: Likewise.
77646 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
77647             Eric Blake  <ebb9@byu.net>
77648             Paolo Bonzini  <bonzini@gnu.org>
77649             Bruno Haible  <bruno@clisp.org>
77651         Make c-stack work on Haiku.
77652         * lib/c-stack.c (SA_ONSTACK): Define fallback.
77653         (c_stack_action): Use SA_ONSTACK flag.
77655 2008-12-22  Bruno Haible  <bruno@clisp.org>
77657         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
77659 2008-12-22  Bruno Haible  <bruno@clisp.org>
77661         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
77662         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
77663         being overridden.
77664         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
77665         New macros.
77666         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
77667         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
77668         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
77669         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
77671 2008-12-22  Bruno Haible  <bruno@clisp.org>
77673         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
77674         from test code.
77676 2008-12-22  Eric Blake  <ebb9@byu.net>
77678         Avoid gcc warnings on cygwin.
77679         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
77680         Avoid unused variable.
77681         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
77682         Likewise.
77684 2008-12-22  Bruno Haible  <bruno@clisp.org>
77686         Remove HAVE_MBRTOWC conditionals.
77687         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
77688         (mbscasecmp): Assume mbrtowc function.
77689         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
77690         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
77691         * lib/mbschr.c: Include mbuiter.h unconditionally.
77692         (mbschr): Assume mbrtowc function.
77693         * lib/mbscspn.c: Include mbuiter.h unconditionally.
77694         (mbscspn): Assume mbrtowc function.
77695         * lib/mbslen.c: Include mbuiter.h unconditionally.
77696         (mbslen): Assume mbrtowc function.
77697         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
77698         (mbsncasecmp): Assume mbrtowc function.
77699         * lib/mbsnlen.c: Include mbiter.h unconditionally.
77700         (mbsnlen): Assume mbrtowc function.
77701         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
77702         (mbspbrk): Assume mbrtowc function.
77703         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
77704         (mbspcasecmp): Assume mbrtowc function.
77705         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
77706         (mbsrchr): Assume mbrtowc function.
77707         * lib/mbssep.c: Include mbuiter.h unconditionally.
77708         (mbssep): Assume mbrtowc function.
77709         * lib/mbsspn.c: Include mbuiter.h unconditionally.
77710         (mbsspn): Assume mbrtowc function.
77711         * lib/mbsstr.c: Include mbuiter.h unconditionally.
77712         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
77713         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
77714         (mbstok_r): Assume mbrtowc function.
77715         * lib/propername.c: Include mbuiter.h unconditionally.
77716         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
77717         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
77718         (trim2): Assume mbrtowc function.
77719         * lib/mbswidth.c (mbsinit): Remove fallback definition.
77720         (mbsnwidth): Assume mbrtowc function.
77721         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
77722         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
77723         fallback definitions.
77724         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
77726 2008-12-22  Bruno Haible  <bruno@clisp.org>
77728         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
77730 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
77732         * modules/regex: Request emulations for the mb*/wc* functions we need.
77733         * m4/regex.m4: Don't look for those functions here.
77734         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
77736 2008-12-22  Bruno Haible  <bruno@clisp.org>
77738         * modules/fnmatch (Depends-on): Remove duplicated dependency.
77740 2008-12-21  Bruno Haible  <bruno@clisp.org>
77742         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
77743         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
77744         (Include): Remove conditionalization.
77745         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
77746         (Include): Remove conditionalization.
77747         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
77748         (Include): Remove conditionalization.
77749         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
77750         * m4/mbfile.m4 (gl_MBFILE): Likewise.
77751         * NEWS: Mention the change.
77752         Reported by Alan Hourihane <alanh@fairlite.co.uk>
77753         via Sergey Poznyakoff <gray@gnu.org.ua>.
77755 2008-12-21  Bruno Haible  <bruno@clisp.org>
77757         * MODULES.html.sh (Extended multibyte and wide character utilities
77758         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
77759         wcrtomb, wcsrtombs.
77760         (Support for systems lacking POSIX:2008): Add accept, bind, close,
77761         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
77762         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
77763         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
77765 2008-12-21  Bruno Haible  <bruno@clisp.org>
77767         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
77769 2008-12-21  Bruno Haible  <bruno@clisp.org>
77771         * modules/wcsnrtombs-tests: New file.
77772         * tests/test-wcsnrtombs1.sh: New file.
77773         * tests/test-wcsnrtombs2.sh: New file.
77774         * tests/test-wcsnrtombs3.sh: New file.
77775         * tests/test-wcsnrtombs4.sh: New file.
77776         * tests/test-wcsnrtombs.c: New file.
77778         New module 'wcsnrtombs'.
77779         * lib/wchar.in.h (wcsnrtombs): New declaration.
77780         * lib/wcsnrtombs.c: New file.
77781         * lib/wcsrtombs-state.c: New file.
77782         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
77783         (internal_state): Remove variable.
77784         * m4/wcsnrtombs.m4: New file.
77785         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
77786         compilation units.
77787         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
77788         HAVE_WCSNRTOMBS.
77789         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
77790         HAVE_WCSNRTOMBS.
77791         * modules/wcsnrtombs: New file.
77792         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
77793         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
77795 2008-12-21  Bruno Haible  <bruno@clisp.org>
77797         * modules/wcsrtombs-tests: New file.
77798         * tests/test-wcsrtombs1.sh: New file.
77799         * tests/test-wcsrtombs2.sh: New file.
77800         * tests/test-wcsrtombs3.sh: New file.
77801         * tests/test-wcsrtombs4.sh: New file.
77802         * tests/test-wcsrtombs.c: New file.
77804         New module 'wcsrtombs'.
77805         * lib/wchar.in.h (wcsrtombs): New declaration.
77806         * lib/wcsrtombs.c: New file.
77807         * m4/wcsrtombs.m4: New file.
77808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
77809         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
77810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
77811         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
77812         * modules/wcsrtombs: New file.
77813         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
77814         bugs.
77816 2008-12-21  Bruno Haible  <bruno@clisp.org>
77818         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
77819         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
77820         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
77821         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
77822         if not correct.
77823         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
77824         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
77825         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
77826         m4/locale-zh.m4, m4/codeset.m4.
77827         * doc/posix-functions/wcrtomb.texi: Document the bug.
77829 2008-12-21  Bruno Haible  <bruno@clisp.org>
77831         Work around a btowc() bug on IRIX 6.5.
77832         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
77833         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
77834         REPLACE_WTOBC if not.
77835         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
77836         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
77837         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
77839 2008-12-21  Bruno Haible  <bruno@clisp.org>
77841         * modules/wcrtomb-tests: New file.
77842         * tests/test-wcrtomb.sh: New file.
77843         * tests/test-wcrtomb.c: New file.
77845         New module 'wcrtomb'.
77846         * lib/wchar.in.h (wcrtomb): New declaration.
77847         * lib/wcrtomb.c: New file.
77848         * m4/wcrtomb.m4: New file.
77849         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
77850         HAVE_WCRTOMB.
77851         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
77852         HAVE_WCRTOMB.
77853         * modules/wcrtomb: New file.
77854         * doc/posix-functions/wcrtomb.texi: Mention the new module.
77856 2008-12-21  Bruno Haible  <bruno@clisp.org>
77858         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
77859         * modules/mbsrtowcs (Files): Likewise.
77860         * modules/wctob (Files): Likewise.
77861         * modules/c-strcase-tests (Files): Likewise.
77862         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
77863         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
77864         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
77865         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
77866         * modules/vasnprintf-posix-tests (Files): Likewise.
77868 2008-12-21  William Pursell  <bill.pursell@gmail.com>
77870         gitlog-to-changelog: pass all command-line arguments to git-log
77871         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
77872         it is sometimes convenient to filter the commits in various ways.
77873         gitlog-to-changelog only allows --since to specify a start date,
77874         but git-log itself supports many other filtering mechanisms.
77875         At the moment, I want to filter by branch name.  Rather than
77876         adding a --branch option to gitlog-to-changelog, it seems more
77877         flexible to simply pass all options directly to git-log and let
77878         git do the work.  Notice that this effectively makes --since a
77879         redundant option for gitlog-to-changelog, but removing it would
77880         require current usage to change since calls would then require
77881         an additional '--'.
77883 2008-12-21  Bruno Haible  <bruno@clisp.org>
77885         * modules/mbsnrtowcs-tests: New file.
77886         * tests/test-mbsnrtowcs1.sh: New file.
77887         * tests/test-mbsnrtowcs2.sh: New file.
77888         * tests/test-mbsnrtowcs3.sh: New file.
77889         * tests/test-mbsnrtowcs4.sh: New file.
77890         * tests/test-mbsnrtowcs.c: New file.
77892         New module 'mbsnrtowcs'.
77893         * lib/wchar.in.h (mbsnrtowcs): New declaration.
77894         * lib/mbsnrtowcs.c: New file.
77895         * lib/mbsrtowcs-state.c: New file.
77896         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
77897         (internal_state): Remove variable.
77898         * m4/mbsnrtowcs.m4: New file.
77899         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
77900         compilation units.
77901         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
77902         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
77903         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
77904         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
77905         * modules/mbsnrtowcs: New file.
77906         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
77907         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
77908         portability problem.
77910 2008-12-21  Bruno Haible  <bruno@clisp.org>
77912         Work around mbsrtowcs bug.
77913         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
77914         (gl_FUNC_MBSRTOWCS): Invoke it.
77915         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
77916         m4/locale-zh.m4.
77917         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
77919 2008-12-21  Bruno Haible  <bruno@clisp.org>
77921         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
77923 2008-12-21  Bruno Haible  <bruno@clisp.org>
77925         Update doc for AIX.
77926         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
77927         16-bit wchar_t type.
77928         * doc/posix-functions/btowc.texi: Likewise.
77929         * doc/posix-functions/fgetwc.texi: Likewise.
77930         * doc/posix-functions/fgetws.texi: Likewise.
77931         * doc/posix-functions/fputwc.texi: Likewise.
77932         * doc/posix-functions/fputws.texi: Likewise.
77933         * doc/posix-functions/fwide.texi: Likewise.
77934         * doc/posix-functions/fwprintf.texi: Likewise.
77935         * doc/posix-functions/fwscanf.texi: Likewise.
77936         * doc/posix-functions/getwchar.texi: Likewise.
77937         * doc/posix-functions/getwc.texi: Likewise.
77938         * doc/posix-functions/iswalnum.texi: Likewise.
77939         * doc/posix-functions/iswalpha.texi: Likewise.
77940         * doc/posix-functions/iswblank.texi: Likewise.
77941         * doc/posix-functions/iswcntrl.texi: Likewise.
77942         * doc/posix-functions/iswctype.texi: Likewise.
77943         * doc/posix-functions/iswdigit.texi: Likewise.
77944         * doc/posix-functions/iswgraph.texi: Likewise.
77945         * doc/posix-functions/iswlower.texi: Likewise.
77946         * doc/posix-functions/iswprint.texi: Likewise.
77947         * doc/posix-functions/iswpunct.texi: Likewise.
77948         * doc/posix-functions/iswspace.texi: Likewise.
77949         * doc/posix-functions/iswupper.texi: Likewise.
77950         * doc/posix-functions/iswxdigit.texi: Likewise.
77951         * doc/posix-functions/mbrtowc.texi: Likewise.
77952         * doc/posix-functions/mbsrtowcs.texi: Likewise.
77953         * doc/posix-functions/mbstowcs.texi: Likewise.
77954         * doc/posix-functions/mbtowc.texi: Likewise.
77955         * doc/posix-functions/putwchar.texi: Likewise.
77956         * doc/posix-functions/putwc.texi: Likewise.
77957         * doc/posix-functions/swprintf.texi: Likewise.
77958         * doc/posix-functions/tolower.texi: Likewise.
77959         * doc/posix-functions/toupper.texi: Likewise.
77960         * doc/posix-functions/towctrans.texi: Likewise.
77961         * doc/posix-functions/ungetwc.texi: Likewise.
77962         * doc/posix-functions/vswprintf.texi: Likewise.
77963         * doc/posix-functions/wcrtomb.texi: Likewise.
77964         * doc/posix-functions/wcscat.texi: Likewise.
77965         * doc/posix-functions/wcschr.texi: Likewise.
77966         * doc/posix-functions/wcscmp.texi: Likewise.
77967         * doc/posix-functions/wcscoll.texi: Likewise.
77968         * doc/posix-functions/wcscpy.texi: Likewise.
77969         * doc/posix-functions/wcscspn.texi: Likewise.
77970         * doc/posix-functions/wcsftime.texi: Likewise.
77971         * doc/posix-functions/wcslen.texi: Likewise.
77972         * doc/posix-functions/wcsncat.texi: Likewise.
77973         * doc/posix-functions/wcsncmp.texi: Likewise.
77974         * doc/posix-functions/wcsncpy.texi: Likewise.
77975         * doc/posix-functions/wcspbrk.texi: Likewise.
77976         * doc/posix-functions/wcsrchr.texi: Likewise.
77977         * doc/posix-functions/wcsrtombs.texi: Likewise.
77978         * doc/posix-functions/wcsspn.texi: Likewise.
77979         * doc/posix-functions/wcsstr.texi: Likewise.
77980         * doc/posix-functions/wcstod.texi: Likewise.
77981         * doc/posix-functions/wcstof.texi: Likewise.
77982         * doc/posix-functions/wcstoimax.texi: Likewise.
77983         * doc/posix-functions/wcstok.texi: Likewise.
77984         * doc/posix-functions/wcstold.texi: Likewise.
77985         * doc/posix-functions/wcstoll.texi: Likewise.
77986         * doc/posix-functions/wcstol.texi: Likewise.
77987         * doc/posix-functions/wcstombs.texi: Likewise.
77988         * doc/posix-functions/wcstoull.texi: Likewise.
77989         * doc/posix-functions/wcstoul.texi: Likewise.
77990         * doc/posix-functions/wcstoumax.texi: Likewise.
77991         * doc/posix-functions/wcswidth.texi: Likewise.
77992         * doc/posix-functions/wcsxfrm.texi: Likewise.
77993         * doc/posix-functions/wctob.texi: Likewise.
77994         * doc/posix-functions/wctomb.texi: Likewise.
77995         * doc/posix-functions/wctrans.texi: Likewise.
77996         * doc/posix-functions/wctype.texi: Likewise.
77997         * doc/posix-functions/wcwidth.texi: Likewise.
77998         * doc/posix-functions/wmemchr.texi: Likewise.
77999         * doc/posix-functions/wmemcmp.texi: Likewise.
78000         * doc/posix-functions/wmemcpy.texi: Likewise.
78001         * doc/posix-functions/wmemmove.texi: Likewise.
78002         * doc/posix-functions/wmemset.texi: Likewise.
78003         * doc/posix-functions/wprintf.texi: Likewise.
78004         * doc/posix-functions/wscanf.texi: Likewise.
78006 2008-12-21  Bruno Haible  <bruno@clisp.org>
78008         Update doc for HP-UX 11.11.
78009         * doc/posix-functions/btowc.texi: Clarify that the function is missing
78010         in HP-UX version 11.00, not in all versions of HP-UX 11.
78011         * doc/posix-functions/fwide.texi: Likewise.
78012         * doc/posix-functions/fwprintf.texi: Likewise.
78013         * doc/posix-functions/fwscanf.texi: Likewise.
78014         * doc/posix-functions/inet_ntop.texi: Likewise.
78015         * doc/posix-functions/inet_pton.texi: Likewise.
78016         * doc/posix-functions/mbrlen.texi: Likewise.
78017         * doc/posix-functions/mbrtowc.texi: Likewise.
78018         * doc/posix-functions/mbsinit.texi: Likewise.
78019         * doc/posix-functions/mbsrtowcs.texi: Likewise.
78020         * doc/posix-functions/swprintf.texi: Likewise.
78021         * doc/posix-functions/swscanf.texi: Likewise.
78022         * doc/posix-functions/towctrans.texi: Likewise.
78023         * doc/posix-functions/vfwprintf.texi: Likewise.
78024         * doc/posix-functions/vswprintf.texi: Likewise.
78025         * doc/posix-functions/vwprintf.texi: Likewise.
78026         * doc/posix-functions/wcrtomb.texi: Likewise.
78027         * doc/posix-functions/wcsrtombs.texi: Likewise.
78028         * doc/posix-functions/wcsstr.texi: Likewise.
78029         * doc/posix-functions/wctob.texi: Likewise.
78030         * doc/posix-functions/wctrans.texi: Likewise.
78031         * doc/posix-functions/wmemchr.texi: Likewise.
78032         * doc/posix-functions/wmemcmp.texi: Likewise.
78033         * doc/posix-functions/wmemcpy.texi: Likewise.
78034         * doc/posix-functions/wmemmove.texi: Likewise.
78035         * doc/posix-functions/wmemset.texi: Likewise.
78036         * doc/posix-functions/wprintf.texi: Likewise.
78037         * doc/posix-functions/wscanf.texi: Likewise.
78039 2008-12-21  Bruno Haible  <bruno@clisp.org>
78041         Work around a portability problem.
78042         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
78043         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
78045 2008-12-20  Bruno Haible  <bruno@clisp.org>
78047         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
78048         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
78049         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
78050         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
78051         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
78053         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
78054         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
78055         set.
78056         (GNULIB_defined_mbstate_t): New macro.
78057         (mbsinit): Redefine if REPLACE_MBSINIT is set.
78058         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
78059         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
78060         reuses the system's mbrtowc function but works around the bugs.
78061         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
78062         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
78063         macros.
78064         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
78065         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
78066         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
78067         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
78068         REPLACE_MBSINIT if mbsinit needs to be overridden.
78069         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
78070         REPLACE_MBSINIT, REPLACE_MBRTOWC.
78071         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
78072         REPLACE_MBSINIT, REPLACE_MBRTOWC.
78073         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
78074         m4/locale-zh.m4.
78075         (Depends): Add mbsinit.
78076         * modules/mbsinit (Depends): Add mbrtowc.
78077         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
78079 2008-12-20  Bruno Haible  <bruno@clisp.org>
78081         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
78082         so that there are no conversion errors on AIX.
78083         * tests/test-mbsrtowcs.c (main): LIkewise.
78085 2008-12-20  Bruno Haible  <bruno@clisp.org>
78087         Work around wctob bug on Solaris <= 9.
78088         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
78089         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
78090         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
78091         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
78092         * modules/wctob (Files): Add m4/locale-fr.m4.
78093         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
78095 2008-12-20  Bruno Haible  <bruno@clisp.org>
78097         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
78098         /dev/null.
78099         * tests/test-select-in.sh: Likewise.
78100         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78102 2008-12-20  Bruno Haible  <bruno@clisp.org>
78104         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
78105         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
78106         Cygwin 1.5.x.
78108 2008-12-20  Bruno Haible  <bruno@clisp.org>
78110         Ensure mbstate_t is defined on HP-UX 11.11.
78111         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
78112         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
78113         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
78114         AC_USE_SYSTEM_EXTENSIONS.
78115         * modules/fnmatch (Depends-on): Add extensions.
78116         * modules/mbrlen (Depends-on): Likewise.
78117         * modules/mbrtowc (Depends-on): Likewise.
78118         * modules/mbsinit (Depends-on): Likewise.
78119         * modules/mbsrtowcs (Depends-on): Likewise.
78120         * modules/mbswidth (Depends-on): Likewise.
78121         * modules/quotearg (Depends-on): Likewise.
78122         * modules/strftime (Depends-on): Likewise.
78124 2008-12-20  Bruno Haible  <bruno@clisp.org>
78126         Ensure wctob is declared on IRIX 6.5.
78127         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
78128         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
78129         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
78130         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
78131         of HAVE_WCTOB.
78132         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
78133         HAVE_WCTOB.
78134         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
78136 2008-12-19  Bruno Haible  <bruno@clisp.org>
78138         * modules/mbsrtowcs-tests: New file.
78139         * tests/test-mbsrtowcs1.sh: New file.
78140         * tests/test-mbsrtowcs2.sh: New file.
78141         * tests/test-mbsrtowcs3.sh: New file.
78142         * tests/test-mbsrtowcs4.sh: New file.
78143         * tests/test-mbsrtowcs.c: New file.
78145         New module 'mbsrtowcs'.
78146         * lib/wchar.in.h (mbsrtowcs): New declaration.
78147         * lib/mbsrtowcs.c: New file.
78148         * m4/mbsrtowcs.m4: New file.
78149         * modules/mbsrtowcs: New file.
78150         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
78151         HAVE_MBSRTOWCS.
78152         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
78153         HAVE_MBSRTOWCS.
78154         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
78156 2008-12-19  Bruno Haible  <bruno@clisp.org>
78158         New module 'mbrlen'.
78159         * lib/wchar.in.h (mbrlen): New declaration.
78160         * lib/mbrlen.c: New file.
78161         * m4/mbrlen.m4: New file.
78162         * modules/mbrlen: New file.
78163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
78164         HAVE_MBRLEN.
78165         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
78166         HAVE_MBRLEN.
78167         * doc/posix-functions/mbrlen.texi: Document the new module.
78169 2008-12-19  Bruno Haible  <bruno@clisp.org>
78171         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
78172         * modules/mbrtowc (Depends-on): Add verify.
78173         Suggested by Paul Eggert.
78175 2008-12-18  Bruno Haible  <bruno@clisp.org>
78177         * modules/mbsinit-tests: New file.
78178         * tests/test-mbsinit.sh: New file.
78179         * tests/test-mbsinit.c: New file.
78181 2008-12-18  Bruno Haible  <bruno@clisp.org>
78183         * modules/mbrtowc-tests: New file.
78184         * tests/test-mbrtowc1.sh: New file.
78185         * tests/test-mbrtowc2.sh: New file.
78186         * tests/test-mbrtowc3.sh: New file.
78187         * tests/test-mbrtowc4.sh: New file.
78188         * tests/test-mbrtowc.c: New file.
78190         New module 'mbrtowc'.
78191         * lib/wchar.in.h (mbstate_t): Override when the system does not have
78192         mbsinit and mbrtowc.
78193         (mbrtowc): New declaration.
78194         * lib/mbrtowc.c: New file.
78195         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
78196         * modules/mbrtowc: New file.
78197         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
78198         HAVE_MBRTOWC.
78199         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
78200         HAVE_MBRTOWC.
78201         * doc/posix-functions/mbrtowc.texi: Document the new module.
78203 2008-12-18  Bruno Haible  <bruno@clisp.org>
78205         New module 'wctob'.
78206         * lib/wchar.in.h (wctob): New declaration.
78207         * lib/wctob.c: New file.
78208         * m4/wctob.m4: New file.
78209         * modules/wctob: New file.
78210         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
78211         HAVE_WCTOB.
78212         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
78213         * doc/posix-functions/wctob.texi: Document the new module.
78215 2008-12-18  Bruno Haible  <bruno@clisp.org>
78217         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
78218         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
78220 2008-12-18  Simon Josefsson  <simon@josefsson.org>
78222         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
78223         G. Christensen" <tgc@jupiterrise.com>.
78225         * lib/flock.c: Need to include errno.h.  Reported by "Tom
78226         G. Christensen" <tgc@jupiterrise.com>.
78228         * lib/flock.c: Need to include string.h.  Reported by "Tom
78229         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
78230         <ebb9@byu.net>.
78232 2008-12-18  Bruno Haible  <bruno@clisp.org>
78234         * m4/locale-ja.m4: New file, from GNU gettext.
78236 2008-12-17  Bruno Haible  <bruno@clisp.org>
78238         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
78239         Suggested by Eric Blake.
78241 2008-12-17  Bruno Haible  <bruno@clisp.org>
78243         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
78245 2008-12-17  Bruno Haible  <bruno@clisp.org>
78247         * lib/mbsinit.c: Include verify.h. Verify an assumption.
78248         * modules/mbsinit (Depends-on): Add verify.
78249         Suggested by Paul Eggert.
78251 2008-12-17  Bruno Haible  <bruno@clisp.org>
78253         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
78254         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
78255         gl_FUNC_MBRTOWC.
78256         * m4/mbiter.m4 (gl_MBITER): LIkewise.
78257         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
78258         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
78259         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
78260         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
78261         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
78262         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
78263         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
78264         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
78265         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
78266         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
78267         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
78268         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
78269         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
78270         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
78271         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78272         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
78273         * modules/trim (configure.ac): Likewise.
78275 2008-12-17  Bruno Haible  <bruno@clisp.org>
78277         * modules/btowc-tests: New file.
78278         * tests/test-btowc1.sh: New file.
78279         * tests/test-btowc2.sh: New file.
78280         * tests/test-btowc.c: New file.
78282         New module 'btowc'.
78283         * lib/wchar.in.h (btowc): New declaration.
78284         * lib/btowc.c: New file.
78285         * m4/btowc.m4: New file.
78286         * modules/btowc: New file.
78287         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
78288         HAVE_BTOWC.
78289         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
78290         * doc/posix-functions/btowc.texi: Document the new module.
78292 2008-12-17  Bruno Haible  <bruno@clisp.org>
78294         New module 'mbsinit'.
78295         * lib/wchar.in.h (mbsinit): New declaration.
78296         * lib/mbsinit.c: New file.
78297         * m4/mbsinit.m4: New file.
78298         * modules/mbsinit: New file.
78299         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
78300         HAVE_MBSINIT.
78301         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
78302         HAVE_MBSINIT.
78303         * doc/posix-functions/mbsinit.texi: Document the new module.
78305 2008-12-16  Bruno Haible  <bruno@clisp.org>
78307         * lib/unistd.in.h: Add comment.
78308         * tests/test-environ.c: Don't include <stdlib.h>.
78310 2008-12-16  Bruno Haible  <bruno@clisp.org>
78312         * lib/parse-duration.h (parse_duration): Document return value
78313         convention.
78314         * lib/parse-duration.c: Include specification header first. Add
78315         comments.
78316         (_): Remove macro.
78317         (parse_year_month_day, parse_hour_minute_second): Move side effects
78318         outside of strchr call.
78319         (parse_non_iso8601): Move side effects outside of isspace call.
78320         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
78321         call.
78323 2008-12-16  Bruno Haible  <bruno@clisp.org>
78325         * tests/test-parse-duration.sh: Produce no output when the test
78326         succeeds.
78328 2008-12-16  Bruno Haible  <bruno@clisp.org>
78330         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
78331         expressions.
78333 2008-12-15  Bruno Haible  <bruno@clisp.org>
78335         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
78336         * doc/glibc-functions/flistxattr.texi: Likewise.
78337         * doc/glibc-functions/fopencookie.texi: Likewise.
78338         * doc/glibc-functions/fremovexattr.texi: Likewise.
78339         * doc/glibc-functions/fsetxattr.texi: Likewise.
78340         * doc/glibc-functions/getxattr.texi: Likewise.
78341         * doc/glibc-functions/lgetxattr.texi: Likewise.
78342         * doc/glibc-functions/listxattr.texi: Likewise.
78343         * doc/glibc-functions/llistxattr.texi: Likewise.
78344         * doc/glibc-functions/lremovexattr.texi: Likewise.
78345         * doc/glibc-functions/lsetxattr.texi: Likewise.
78346         * doc/glibc-functions/removexattr.texi: Likewise.
78347         * doc/glibc-functions/setxattr.texi: Likewise.
78348         * doc/posix-functions/open_memstream.texi: Likewise.
78350 2008-12-15  Eric Blake  <ebb9@byu.net>
78352         Update doc for cygwin 1.7.
78353         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
78354         functions.
78355         * doc/posix-functions/fchmodat.texi: Likewise.
78356         * doc/posix-functions/fchownat.texi: Likewise.
78357         * doc/posix-functions/fdopendir.texi: Likewise.
78358         * doc/posix-functions/fmemopen.texi: Likewise.
78359         * doc/posix-functions/freeaddrinfo.texi: Likewise.
78360         * doc/posix-functions/fstatat.texi: Likewise.
78361         * doc/posix-functions/futimens.texi: Likewise.
78362         * doc/posix-functions/gai_strerror.texi: Likewise.
78363         * doc/posix-functions/getaddrinfo.texi: Likewise.
78364         * doc/posix-functions/getnameinfo.texi: Likewise.
78365         * doc/posix-functions/if_freenameindex.texi: Likewise.
78366         * doc/posix-functions/if_indextoname.texi: Likewise.
78367         * doc/posix-functions/if_nameindex.texi: Likewise.
78368         * doc/posix-functions/if_nametoindex.texi: Likewise.
78369         * doc/posix-functions/insque.texi: Likewise.
78370         * doc/posix-functions/linkat.texi: Likewise.
78371         * doc/posix-functions/llrint.texi: Likewise.
78372         * doc/posix-functions/llrintf.texi: Likewise.
78373         * doc/posix-functions/llrintl.texi: Likewise.
78374         * doc/posix-functions/lockf.texi: Likewise.
78375         * doc/posix-functions/lrintl.texi: Likewise.
78376         * doc/posix-functions/mkdirat.texi: Likewise.
78377         * doc/posix-functions/mkfifoat.texi: Likewise.
78378         * doc/posix-functions/mknodat.texi: Likewise.
78379         * doc/posix-functions/mq_close.texi: Likewise.
78380         * doc/posix-functions/mq_getattr.texi: Likewise.
78381         * doc/posix-functions/mq_notify.texi: Likewise.
78382         * doc/posix-functions/mq_open.texi: Likewise.
78383         * doc/posix-functions/mq_receive.texi: Likewise.
78384         * doc/posix-functions/mq_send.texi: Likewise.
78385         * doc/posix-functions/mq_setattr.texi: Likewise.
78386         * doc/posix-functions/mq_timedreceive.texi: Likewise.
78387         * doc/posix-functions/mq_timedsend.texi: Likewise.
78388         * doc/posix-functions/mq_unlink.texi: Likewise.
78389         * doc/posix-functions/open_memstream.texi: Likewise.
78390         * doc/posix-functions/openat.texi: Likewise.
78391         * doc/posix-functions/posix_fadvise.texi: Likewise.
78392         * doc/posix-functions/posix_fallocate.texi: Likewise.
78393         * doc/posix-functions/posix_madvise.texi: Likewise.
78394         * doc/posix-functions/posix_memalign.texi: Likewise.
78395         * doc/posix-functions/posix_openpt.texi: Likewise.
78396         * doc/posix-functions/readlinkat.texi: Likewise.
78397         * doc/posix-functions/remque.texi: Likewise.
78398         * doc/posix-functions/renameat.texi: Likewise.
78399         * doc/posix-functions/rintl.texi: Likewise.
78400         * doc/posix-functions/sem_unlink.texi: Likewise.
78401         * doc/posix-functions/shm_open.texi: Likewise.
78402         * doc/posix-functions/shm_unlink.texi: Likewise.
78403         * doc/posix-functions/signgam.texi: Likewise.
78404         * doc/posix-functions/sigset.texi: Likewise.
78405         * doc/posix-functions/stpcpy.texi: Likewise.
78406         * doc/posix-functions/stpncpy.texi: Likewise.
78407         * doc/posix-functions/strerror.texi: Likewise.
78408         * doc/posix-functions/strtod.texi: Likewise.
78409         * doc/posix-functions/symlinkat.texi: Likewise.
78410         * doc/posix-functions/unlinkat.texi: Likewise.
78411         * doc/posix-functions/utimensat.texi: Likewise.
78412         * doc/glibc-functions/bindresvport.texi: Likewise.
78413         * doc/glibc-functions/dn_expand.texi: Likewise.
78414         * doc/glibc-functions/exp10.texi: Likewise.
78415         * doc/glibc-functions/exp10f.texi: Likewise.
78416         * doc/glibc-functions/fgetxattr.texi: Likewise.
78417         * doc/glibc-functions/flistxattr.texi: Likewise.
78418         * doc/glibc-functions/fopencookie.texi: Likewise.
78419         * doc/glibc-functions/freeifaddrs.texi: Likewise.
78420         * doc/glibc-functions/fremovexattr.texi: Likewise.
78421         * doc/glibc-functions/fsetxattr.texi: Likewise.
78422         * doc/glibc-functions/getifaddrs.texi: Likewise.
78423         * doc/glibc-functions/getxattr.texi: Likewise.
78424         * doc/glibc-functions/lgetxattr.texi: Likewise.
78425         * doc/glibc-functions/listxattr.texi: Likewise.
78426         * doc/glibc-functions/llistxattr.texi: Likewise.
78427         * doc/glibc-functions/lremovexattr.texi: Likewise.
78428         * doc/glibc-functions/lsetxattr.texi: Likewise.
78429         * doc/glibc-functions/pow10.texi: Likewise.
78430         * doc/glibc-functions/pow10f.texi: Likewise.
78431         * doc/glibc-functions/rcmd_af.texi: Likewise.
78432         * doc/glibc-functions/removexattr.texi: Likewise.
78433         * doc/glibc-functions/res_init.texi: Likewise.
78434         * doc/glibc-functions/res_mkquery.texi: Likewise.
78435         * doc/glibc-functions/res_query.texi: Likewise.
78436         * doc/glibc-functions/res_querydomain.texi: Likewise.
78437         * doc/glibc-functions/res_send.texi: Likewise.
78438         * doc/glibc-functions/rresvport_af.texi: Likewise.
78439         * doc/glibc-functions/setxattr.texi: Likewise.
78440         * doc/glibc-functions/strcasestr.texi: Likewise.
78442 2008-12-15  Bruno Haible  <bruno@clisp.org>
78444         Fix compilation error on OSF/1 4.0.
78445         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
78446         <sys/time.h>, simply delegate to the system header.
78447         Reported by Daniel Richard G. <oss@teragram.com>.
78449 2008-12-15  Bruno Haible  <bruno@clisp.org>
78451         * doc/posix-functions/openat.texi: Mention the 'openat' module.
78452         * doc/posix-functions/fchmodat.texi: Likewise.
78453         * doc/posix-functions/fchownat.texi: Likewise.
78454         * doc/posix-functions/fdopendir.texi: Likewise.
78455         * doc/posix-functions/fstatat.texi: Likewise.
78456         * doc/posix-functions/mkdirat.texi: Likewise.
78457         * doc/posix-functions/unlinkat.texi: Likewise.
78459 2008-12-14  Bruno Haible  <bruno@clisp.org>
78461         Update doc for POSIX:2008.
78462         * doc/posix-functions/faccessat.texi: New file.
78463         * doc/posix-functions/fchmodat.texi: New file.
78464         * doc/posix-functions/fchownat.texi: New file.
78465         * doc/posix-functions/fdopendir.texi: New file.
78466         * doc/posix-functions/fstatat.texi: New file.
78467         * doc/posix-functions/futimens.texi: New file.
78468         * doc/posix-functions/linkat.texi: New file.
78469         * doc/posix-functions/mkdirat.texi: New file.
78470         * doc/posix-functions/mkfifoat.texi: New file.
78471         * doc/posix-functions/mknodat.texi: New file.
78472         * doc/posix-functions/open_wmemstream.texi: New file.
78473         * doc/posix-functions/openat.texi: New file.
78474         * doc/posix-functions/psiginfo.texi: New file.
78475         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
78476         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
78477         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
78478         * doc/posix-functions/readlinkat.texi: New file.
78479         * doc/posix-functions/renameat.texi: New file.
78480         * doc/posix-functions/strerror_l.texi: New file.
78481         * doc/posix-functions/symlinkat.texi: New file.
78482         * doc/posix-functions/unlinkat.texi: New file.
78483         * doc/posix-functions/utimensat.texi: New file.
78484         * doc/gnulib.texi (Function Substitutes): Add these subsections.
78486 2008-12-14  Bruno Haible  <bruno@clisp.org>
78488         Update doc for POSIX:2008.
78489         * doc/posix-functions/alphasort.texi: Renamed from
78490         doc/glibc-functions/alphasort.texi.
78491         * doc/posix-functions/dirfd.texi: Renamed from
78492         doc/glibc-functions/dirfd.texi.
78493         * doc/posix-functions/dprintf.texi: Renamed from
78494         doc/glibc-functions/dprintf.texi.
78495         * doc/posix-functions/duplocale.texi: Renamed from
78496         doc/glibc-functions/duplocale.texi.
78497         * doc/posix-functions/fexecve.texi: Renamed from
78498         doc/glibc-functions/fexecve.texi.
78499         * doc/posix-functions/fmemopen.texi: Renamed from
78500         doc/glibc-functions/fmemopen.texi.
78501         * doc/posix-functions/freelocale.texi: Renamed from
78502         doc/glibc-functions/freelocale.texi.
78503         * doc/posix-functions/getdate_err.texi: Renamed from
78504         doc/glibc-functions/getdate_err.texi.
78505         * doc/posix-functions/isalnum_l.texi: Renamed from
78506         doc/glibc-functions/isalnum_l.texi.
78507         * doc/posix-functions/isalpha_l.texi: Renamed from
78508         doc/glibc-functions/isalpha_l.texi.
78509         * doc/posix-functions/isblank_l.texi: Renamed from
78510         doc/glibc-functions/isblank_l.texi.
78511         * doc/posix-functions/iscntrl_l.texi: Renamed from
78512         doc/glibc-functions/iscntrl_l.texi.
78513         * doc/posix-functions/isdigit_l.texi: Renamed from
78514         doc/glibc-functions/isdigit_l.texi.
78515         * doc/posix-functions/isgraph_l.texi: Renamed from
78516         doc/glibc-functions/isgraph_l.texi.
78517         * doc/posix-functions/islower_l.texi: Renamed from
78518         doc/glibc-functions/islower_l.texi.
78519         * doc/posix-functions/isprint_l.texi: Renamed from
78520         doc/glibc-functions/isprint_l.texi.
78521         * doc/posix-functions/ispunct_l.texi: Renamed from
78522         doc/glibc-functions/ispunct_l.texi.
78523         * doc/posix-functions/isspace_l.texi: Renamed from
78524         doc/glibc-functions/isspace_l.texi.
78525         * doc/posix-functions/isupper_l.texi: Renamed from
78526         doc/glibc-functions/isupper_l.texi.
78527         * doc/posix-functions/iswalnum_l.texi: Renamed from
78528         doc/glibc-functions/iswalnum_l.texi.
78529         * doc/posix-functions/iswalpha_l.texi: Renamed from
78530         doc/glibc-functions/iswalpha_l.texi.
78531         * doc/posix-functions/iswblank_l.texi: Renamed from
78532         doc/glibc-functions/iswblank_l.texi.
78533         * doc/posix-functions/iswcntrl_l.texi: Renamed from
78534         doc/glibc-functions/iswcntrl_l.texi.
78535         * doc/posix-functions/iswctype_l.texi: Renamed from
78536         doc/glibc-functions/iswctype_l.texi.
78537         * doc/posix-functions/iswdigit_l.texi: Renamed from
78538         doc/glibc-functions/iswdigit_l.texi.
78539         * doc/posix-functions/iswgraph_l.texi: Renamed from
78540         doc/glibc-functions/iswgraph_l.texi.
78541         * doc/posix-functions/iswlower_l.texi: Renamed from
78542         doc/glibc-functions/iswlower_l.texi.
78543         * doc/posix-functions/iswprint_l.texi: Renamed from
78544         doc/glibc-functions/iswprint_l.texi.
78545         * doc/posix-functions/iswpunct_l.texi: Renamed from
78546         doc/glibc-functions/iswpunct_l.texi.
78547         * doc/posix-functions/iswspace_l.texi: Renamed from
78548         doc/glibc-functions/iswspace_l.texi.
78549         * doc/posix-functions/iswupper_l.texi: Renamed from
78550         doc/glibc-functions/iswupper_l.texi.
78551         * doc/posix-functions/iswxdigit_l.texi: Renamed from
78552         doc/glibc-functions/iswxdigit_l.texi.
78553         * doc/posix-functions/isxdigit_l.texi: Renamed from
78554         doc/glibc-functions/isxdigit_l.texi.
78555         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
78556         doc/glibc-functions/mbsnrtowcs.texi.
78557         * doc/posix-functions/mkdtemp.texi: Renamed from
78558         doc/glibc-functions/mkdtemp.texi.
78559         * doc/posix-functions/newlocale.texi: Renamed from
78560         doc/glibc-functions/newlocale.texi.
78561         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
78562         doc/glibc-functions/nl_langinfo_l.texi.
78563         * doc/posix-functions/open_memstream.texi: Renamed from
78564         doc/glibc-functions/open_memstream.texi.
78565         * doc/posix-functions/opterr.texi: Renamed from
78566         doc/glibc-functions/opterr.texi.
78567         * doc/posix-functions/optind.texi: Renamed from
78568         doc/glibc-functions/optind.texi.
78569         * doc/posix-functions/optopt.texi: Renamed from
78570         doc/glibc-functions/optopt.texi.
78571         * doc/posix-functions/psignal.texi: Renamed from
78572         doc/glibc-functions/psignal.texi.
78573         * doc/posix-functions/scandir.texi: Renamed from
78574         doc/glibc-functions/scandir.texi.
78575         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
78576         doc/glibc-functions/sched_get_priority_min.texi.
78577         * doc/posix-functions/signgam.texi: Renamed from
78578         doc/glibc-functions/signgam.texi.
78579         * doc/posix-functions/stpcpy.texi: Renamed from
78580         doc/glibc-functions/stpcpy.texi.
78581         * doc/posix-functions/stpncpy.texi: Renamed from
78582         doc/glibc-functions/stpncpy.texi.
78583         * doc/posix-functions/strcasecmp_l.texi: Renamed from
78584         doc/glibc-functions/strcasecmp_l.texi.
78585         * doc/posix-functions/strcoll_l.texi: Renamed from
78586         doc/glibc-functions/strcoll_l.texi.
78587         * doc/posix-functions/strfmon_l.texi: Renamed from
78588         doc/glibc-functions/strfmon_l.texi.
78589         * doc/posix-functions/strftime_l.texi: Renamed from
78590         doc/glibc-functions/strftime_l.texi.
78591         * doc/posix-functions/strncasecmp_l.texi: Renamed from
78592         doc/glibc-functions/strncasecmp_l.texi.
78593         * doc/posix-functions/strndup.texi: Renamed from
78594         doc/glibc-functions/strndup.texi.
78595         * doc/posix-functions/strnlen.texi: Renamed from
78596         doc/glibc-functions/strnlen.texi.
78597         * doc/posix-functions/strsignal.texi: Renamed from
78598         doc/glibc-functions/strsignal.texi.
78599         * doc/posix-functions/strxfrm_l.texi: Renamed from
78600         doc/glibc-functions/strxfrm_l.texi.
78601         * doc/posix-functions/timer_gettime.texi: Renamed from
78602         doc/glibc-functions/timer_gettime.texi.
78603         * doc/posix-functions/tolower_l.texi: Renamed from
78604         doc/glibc-functions/tolower_l.texi.
78605         * doc/posix-functions/toupper_l.texi: Renamed from
78606         doc/glibc-functions/toupper_l.texi.
78607         * doc/posix-functions/towctrans_l.texi: Renamed from
78608         doc/glibc-functions/towctrans_l.texi.
78609         * doc/posix-functions/towlower_l.texi: Renamed from
78610         doc/glibc-functions/towlower_l.texi.
78611         * doc/posix-functions/towupper_l.texi: Renamed from
78612         doc/glibc-functions/towupper_l.texi.
78613         * doc/posix-functions/uselocale.texi: Renamed from
78614         doc/glibc-functions/uselocale.texi.
78615         * doc/posix-functions/vdprintf.texi: Renamed from
78616         doc/glibc-functions/vdprintf.texi.
78617         * doc/posix-functions/wcpcpy.texi:
78618         Renamed from doc/glibc-functions/wcpcpy.texi.
78619         * doc/posix-functions/wcpncpy.texi: Renamed from
78620         doc/glibc-functions/wcpncpy.texi.
78621         * doc/posix-functions/wcscasecmp.texi: Renamed from
78622         doc/glibc-functions/wcscasecmp.texi.
78623         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
78624         doc/glibc-functions/wcscasecmp_l.texi.
78625         * doc/posix-functions/wcscoll_l.texi: Renamed from
78626         doc/glibc-functions/wcscoll_l.texi.
78627         * doc/posix-functions/wcsdup.texi: Renamed from
78628         doc/glibc-functions/wcsdup.texi.
78629         * doc/posix-functions/wcsncasecmp.texi: Renamed from
78630         doc/glibc-functions/wcsncasecmp.texi.
78631         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
78632         doc/glibc-functions/wcsncasecmp_l.texi.
78633         * doc/posix-functions/wcsnlen.texi: Renamed from
78634         doc/glibc-functions/wcsnlen.texi.
78635         * doc/posix-functions/wcsnrtombs.texi: Renamed from
78636         doc/glibc-functions/wcsnrtombs.texi.
78637         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
78638         doc/glibc-functions/wcsxfrm_l.texi.
78639         * doc/posix-functions/wctrans_l.texi: Renamed from
78640         doc/glibc-functions/wctrans_l.texi.
78641         * doc/posix-functions/wctype_l.texi: Renamed from
78642         doc/glibc-functions/wctype_l.texi.
78643         * doc/gnulib.texi (Function Substitutes): Add these subsections.
78644         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
78645         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
78646         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
78647         these subsections.
78648         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
78649         Remove sections.
78651 2008-12-14  Bruno Haible  <bruno@clisp.org>
78653         Update doc for POSIX:2008.
78654         * doc/posix-functions/*.texi: Update URL of POSIX specification.
78656 2008-12-14  Bruno Haible  <bruno@clisp.org>
78658         Update doc for POSIX:2008.
78659         * doc/pastposix-functions/bcmp.texi: Renamed from
78660         doc/posix-functions/bcmp.texi.
78661         * doc/pastposix-functions/bcopy.texi: Renamed from
78662         doc/posix-functions/bcopy.texi.
78663         * doc/pastposix-functions/bsd_signal.texi: Renamed from
78664         doc/posix-functions/bsd_signal.texi.
78665         * doc/pastposix-functions/bzero.texi: Renamed from
78666         doc/posix-functions/bzero.texi.
78667         * doc/pastposix-functions/ecvt.texi: Renamed from
78668         doc/posix-functions/ecvt.texi.
78669         * doc/pastposix-functions/fcvt.texi: Renamed from
78670         doc/posix-functions/fcvt.texi.
78671         * doc/pastposix-functions/ftime.texi: Renamed from
78672         doc/posix-functions/ftime.texi.
78673         * doc/pastposix-functions/gcvt.texi: Renamed from
78674         doc/posix-functions/gcvt.texi.
78675         * doc/pastposix-functions/getcontext.texi: Renamed from
78676         doc/posix-functions/getcontext.texi.
78677         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
78678         doc/posix-functions/gethostbyaddr.texi.
78679         * doc/pastposix-functions/gethostbyname.texi: Renamed from
78680         doc/posix-functions/gethostbyname.texi.
78681         * doc/pastposix-functions/getwd.texi: Renamed from
78682         doc/posix-functions/getwd.texi.
78683         * doc/pastposix-functions/h_errno.texi: Renamed from
78684         doc/posix-functions/h_errno.texi.
78685         * doc/pastposix-functions/index.texi: Renamed from
78686         doc/posix-functions/index.texi.
78687         * doc/pastposix-functions/makecontext.texi: Renamed from
78688         doc/posix-functions/makecontext.texi.
78689         * doc/pastposix-functions/mktemp.texi: Renamed from
78690         doc/posix-functions/mktemp.texi.
78691         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
78692         doc/posix-functions/pthread_attr_getstackaddr.texi.
78693         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
78694         doc/posix-functions/pthread_attr_setstackaddr.texi.
78695         * doc/pastposix-functions/rindex.texi: Renamed from
78696         doc/posix-functions/rindex.texi.
78697         * doc/pastposix-functions/scalb.texi: Renamed from
78698         doc/posix-functions/scalb.texi.
78699         * doc/pastposix-functions/setcontext.texi: Renamed from
78700         doc/posix-functions/setcontext.texi.
78701         * doc/pastposix-functions/swapcontext.texi: Renamed from
78702         doc/posix-functions/swapcontext.texi.
78703         * doc/pastposix-functions/ualarm.texi: Renamed from
78704         doc/posix-functions/ualarm.texi.
78705         * doc/pastposix-functions/usleep.texi: Renamed from
78706         doc/posix-functions/usleep.texi.
78707         * doc/pastposix-functions/vfork.texi: Renamed from
78708         doc/posix-functions/vfork.texi.
78709         * doc/pastposix-functions/wcswcs.texi: Renamed from
78710         doc/posix-functions/wcswcs.texi.
78711         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
78712         (Function Substitutes): Update.
78714 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78716         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
78717         m4/strerror.m4.
78719 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78720             Bruno Haible  <bruno@clisp.org>
78722         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
78724 2008-12-13  Bruno Haible  <bruno@clisp.org>
78726         * modules/strtoull (Depends-on): Remove unistd.
78728 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78730         * modules/strtoull (Depends-on): Add stdlib.
78732 2008-12-11  Simon Josefsson  <simon@josefsson.org>
78734         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
78736 2008-12-10  Jim Meyering  <meyering@redhat.com>
78738         gl_ASSERT: don't say assertions are disabled when they're not
78739         * m4/assert.m4 (gl_ASSERT): Do not make configure report
78740         "checking whether to enable assertions... no", when they are in
78741         fact enabled.  This is solely a bug in the output of configure.
78742         In spite of saying "no", NDEBUG was not defined in that case.
78743         Also, as noted by Eric Blake, leave assertions enabled upon
78744         --enable-assert=INVALID.
78746 2008-12-10  Bruno Haible  <bruno@clisp.org>
78748         Change MODULES.html to refer to POSIX:2008 where possible.
78749         * MODULES.html.sh (POSIX2008_URL): New variable.
78750         (posix_headers): Remove sys/timeb, ucontext.
78751         (posix2001_headers): New variable.
78752         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
78753         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
78754         index, makecontext, mktemp, pthread_attr_getstackaddr,
78755         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
78756         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
78757         (posix2001_functions): New variable.
78758         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
78759         otherwise.
78761 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78763         add missing include to parse-duration.c
78764         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
78765         * modules/parse-duration (Depends-on): Add xalloc.
78767         fix sed script reading maint.mk
78768         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
78769         (syntax-check-rules): Use it.
78771 2008-12-09  Bruno Haible  <bruno@clisp.org>
78773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
78774         MacOS X 10.4/PowerPC.
78775         Reported by Simon Josefsson.
78777 2008-12-08  Jim Meyering  <meyering@redhat.com>
78779         work around mingw's lack of some S_IF definitions
78780         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
78781         Reported by Simon Josefsson.
78783 2008-12-08  Bruno Haible  <bruno@clisp.org>
78785         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
78786         applied to variables. Needed on MacOS X 10.4/PowerPC.
78787         Reported by Simon Josefsson.
78789 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
78790         and Eric Blake  <ebb9@byu.net>
78792         assert: honor --enable-assert
78793         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
78794         order to honor --enable-assert, rather than treating it as a
78795         synonym for --disable-assert.
78797 2008-12-08  Jim Meyering  <meyering@redhat.com>
78799         * lib/posixtm.c: Remove now-useless declaration of mktime.
78801         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
78803 2008-12-07  Bruno Haible  <bruno@clisp.org>
78805         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
78806         test_once): Mark functions as static.
78807         * tests/test-tls.c (test_tls): Likewise.
78809 2008-12-07  Bruno Haible  <bruno@clisp.org>
78811         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
78812         iconv_register_autodetect.
78814 2008-12-07  Jim Meyering  <meyering@redhat.com>
78816         posixtm.c: avoid a warning
78817         * lib/posixtm.c (posixtime): Don't initialize tm0.
78818         It's no longer needed to placate gcc4's -Wuninitialized,
78819         and the attempt to placate would elicit a new warning.
78821         unicodeio.c: mark unused parameters
78822         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
78823         (fallback_failure_callback): Likewise.
78825 2008-12-07  Bruno Haible  <bruno@clisp.org>
78827         * gnulib-tool (func_create_testdir): When building the tests
78828         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
78829         Reported by Simon Josefsson.
78831 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78833         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
78835 2008-12-06  Bruno Haible  <bruno@clisp.org>
78837         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
78838         Suggested by Eric Blake.
78840 2008-12-06  Bruno Haible  <bruno@clisp.org>
78842         Fix a c-stack test failure on MacOS X.
78843         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
78844         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
78845         handler for SIGBUS as well.
78846         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
78847         install a signal handler for SIGBUS as well.
78848         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
78850 2008-12-06  Bruno Haible  <bruno@clisp.org>
78852         Advocacy documentation.
78853         * doc/gnulib-intro.texi (Benefits): New section.
78854         * doc/gnulib.texi: Update.
78856 2008-12-06  Bruno Haible  <bruno@clisp.org>
78858         Document the 'manywarnings' module.
78859         * doc/manywarnings.texi: New file.
78860         * doc/gnulib.texi: Include it.
78862 2008-12-05  Eric Blake  <ebb9@byu.net>
78864         tests: silence some gcc warnings
78865         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
78866         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
78867         type mismatches.
78869 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78870             Bruno Haible  <bruno@clisp.org>
78872         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
78874 2008-11-29  Jim Meyering  <meyering@redhat.com>
78876         unicodeio.c: mark unused parameters
78877         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
78878         (fallback_failure_callback): Likewise.
78880         fts: fix a thinko
78881         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
78882         (set_stat_type): Return S_IF*-valued "type" directly.
78883         Prompted by James Youngman's spotting a related bug.
78884         Confirmed by further testing through find.
78886         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
78887         * lib/fts.c (D_TYPE): Define.
78888         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
78889         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
78890         (s_ifmt_shift_bits): New function.
78891         (set_stat_type): New function.
78892         (fts_build): When not calling fts_stat, call set_stat_type
78893         to propagate dirent.d_type info to fts_read caller.
78894         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
78895         fts_statp->st_mode type information may be valid.
78897 2008-11-28  Simon Josefsson  <simon@josefsson.org>
78899         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
78900         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
78901         <sds@gnu.org>.
78903 2008-11-20  Bruno Haible  <bruno@clisp.org>
78905         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
78906         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
78907         INCLUDE_NEXT.
78908         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
78909         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
78910         * modules/math (Makefile.am): Substitute
78911         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
78912         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
78914 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
78915             Bruno Haible  <bruno@clisp.org>
78917         * lib/stdint.in.h: Define all type macros so that their expansion is
78918         a single typedef'ed token. Fixes a compilation failure in Boost which
78919         does "using ::int8_t;".
78921 2008-11-18  Simon Josefsson  <simon@josefsson.org>
78923         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
78924         gl_MANYWARN_ALL_GCC.
78925         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
78926         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
78927         * modules/manywarnings: New file.
78928         * MODULES.html.sh: Mention manywarnings module.
78930 2008-11-18  Bruno Haible  <bruno@clisp.org>
78932         * doc/gnulib-tool.texi (Unit tests): New section.
78934 2008-11-18  Simon Josefsson  <simon@josefsson.org>
78936         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
78937         paths like 'lib/po/foo.po'.
78939 2008-11-17  Simon Josefsson  <simon@josefsson.org>
78941         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
78942         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
78944 2008-11-17  Simon Josefsson  <simon@josefsson.org>
78946         * m4/warnings.m4: Use CPPFLAGS to really check whether the
78947         parameter works.
78949 2008-11-17  Simon Josefsson  <simon@josefsson.org>
78951         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
78953 2008-11-17  Bruce Korb  <bkorb@gnu.org>
78955         * modules/parse-duration-tests: New file.
78956         * tests/test-parse-duration.sh: New file.
78957         * tests/test-parse-duration.c: New file.
78959         New module 'parse-duration'.
78960         * lib/parse-duration.h: New file.
78961         * lib/parse-duration.c: New file.
78962         * modules/parse-duration: New file.
78964 2008-11-17  Bruno Haible  <bruno@clisp.org>
78966         * tests/test-select-out.sh: Comment out the first pipe test.
78967         Reported by Simon Josefsson.
78969 2008-11-17  Bruno Haible  <bruno@clisp.org>
78971         * modules/getaddrinfo (Depends-on): Add servent, hostent.
78972         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
78973         gl_HOSTENT.
78975 2008-11-17  Bruno Haible  <bruno@clisp.org>
78977         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
78978         -lnetwork and -lnet. Needed for Haiku and BeOS.
78980 2008-11-16  Bruno Haible  <bruno@clisp.org>
78982         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
78984 2008-11-16  Bruno Haible  <bruno@clisp.org>
78986         Avoid test failure on Haiku.
78987         * tests/test-fsync.c: Include <errno.h>.
78988         (main): Don't require that fsync (0) fails.
78990 2008-11-15  Bruno Haible  <bruno@clisp.org>
78992         New module 'hostent'.
78993         * modules/hostent: New file.
78994         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
78996 2008-11-15  Bruno Haible  <bruno@clisp.org>
78998         New module 'servent'.
78999         * modules/servent: New file.
79000         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
79002 2008-11-15  Bruno Haible  <bruno@clisp.org>
79004         Avoid generating same test program with two different rules.
79005         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
79006         test-frexp to test-frexp-nolibm.
79007         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
79008         test-frexpl to test-frexpl-nolibm.
79010 2008-11-15  Bruno Haible  <bruno@clisp.org>
79012         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
79013         $(FREXPL_LIBM).
79015 2008-11-15  Bruno Haible  <bruno@clisp.org>
79017         * lib/netdb.in.h: Activate the definitions also when the system's
79018         <netdb.h> has 'struct addrinfo'.
79019         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
79020         EAI_OVERFLOW or AI_NUMERICSERV.
79021         * doc/posix-headers/netdb.texi: Document the problem.
79023 2008-11-15  Bruno Haible  <bruno@clisp.org>
79025         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
79027         Make the 'sched' module work on platforms where <sched.h> exists but
79028         is incomplete (such as Haiku).
79029         * lib/sched.in.h; Include the system's <sched.h> if it exists.
79030         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
79031         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
79032         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
79033         HAVE_STRUCT_SCHED_PARAM.
79034         * modules/sched (Depends-on): Add include_next.
79035         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
79036         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
79037         * doc/posix-headers/sched.texi: Document the issue.
79039 2008-11-13  Jim Meyering  <meyering@redhat.com>
79041         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
79042         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
79043         test would fail due to the difference in the Report bugs to ...
79044         line.  The expected address is empty, "<>", while the actual
79045         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
79047 2008-11-12  Bruno Haible  <bruno@clisp.org>
79049         lstat: don't compile lstat.c on systems lacking lstat
79050         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
79051         which don't have lstat; this is handled by lib/sys_stat.in.h already.
79052         Reported by Daniel P. Berrange via Jim Meyering.
79054 2008-11-12  Jim Meyering  <meyering@redhat.com>
79056         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
79058 2008-11-12  Simon Josefsson  <simon@josefsson.org>
79060         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
79061         instead.
79063 2008-11-12  Bruno Haible  <bruno@clisp.org>
79065         * lib/unicodeio.c: Include unistr.h.
79066         (utf8_wctomb): Remove function.
79067         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
79069 2008-11-12  Simon Josefsson  <simon@josefsson.org>
79071         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
79072         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
79073         <bruno@clisp.org>.
79074         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
79076 2008-11-12  Simon Josefsson  <simon@josefsson.org>
79078         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
79079         * doc/gnulib.texi: Add section for warnings.
79081 2008-11-11  Bruno Haible  <bruno@clisp.org>
79083         * lib/sockets.h: Add a comment.
79085 2008-11-11  Karl Berry  <karl@gnu.org>
79087         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
79089 2008-11-11  Eric Blake  <ebb9@byu.net>
79091         fdl.texi: avoid git symlinks
79092         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
79094 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
79096         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
79098 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
79100         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
79101         (gl_WARN_ADD): Substitute $2 if literal.
79103 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
79105         * m4/warning.m4: Remove.
79107 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
79109         * m4/warnings.m4: Almost complete rewrite. :-)
79111 2008-11-10  Simon Josefsson  <simon@josefsson.org>
79113         * modules/warnings: New module.
79114         * m4/warnings.m4: New file.
79115         * MODULES.html.sh: Mention warnings module.
79116         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
79117         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79119 2008-11-10  Eric Blake  <ebb9@byu.net>
79121         fdl.texi: make a symlink to the latest version
79122         * doc/standards.texi: Revert today's earlier change.
79123         * doc/fdl-1.2.texi: Rename from old fdl.texi...
79124         * doc/fdl.texi: ...and replace this with a symlink to the newer
79125         fdl-1.3.texi.
79127 2008-11-10  Bruno Haible  <bruno@clisp.org>
79129         * tests/test-select-fd.c (main): Accept the result file name as fourth
79130         argument.
79131         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
79132         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
79134 2008-11-10  Bruno Haible  <bruno@clisp.org>
79136         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
79137         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
79138         as autoconf-substituted macros.
79139         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
79140         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
79141         gl_NETDB_H_DEFAULTS. Set these variables.
79142         * modules/netdb (Makefile.am): Substitute these variables.
79144 2008-11-10  Eric Blake  <ebb9@byu.net>
79146         standards.texi: include correct file for FDL 1.3
79147         * doc/standards.texi (GNU Free Documentation License): Change
79148         include file to pull in FDL 1.3, not 1.2.
79150         fdl.texi: revert accidental change to license
79151         * doc/fdl.texi: This is FDL 1.2, not 1.3.
79153 2008-11-10  Bruno Haible  <bruno@clisp.org>
79155         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
79156         cross-compiling guesses also when the native compile gives no result.
79158 2008-11-10  Bruno Haible  <bruno@clisp.org>
79160         * lib/spawni.c (__spawni): Force variable into the stack.
79162 2008-11-10  Bruno Haible  <bruno@clisp.org>
79164         Add support for Haiku.
79165         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
79166         glibc and BeOS, but also on Haiku.
79167         * lib/fpurge.c (fpurge): Likewise.
79168         * lib/freadable.c (freadable): Likewise.
79169         * lib/freadahead.c (freadahead): Likewise.
79170         * lib/freading.c (freading): Likewise.
79171         * lib/freadptr.c (freadptr): Likewise.
79172         * lib/freadseek.c (freadptrinc): Likewise.
79173         * lib/fseeko.c (rpl_fseeko): Likewise.
79174         * lib/fseterr.c (fseterr): Likewise.
79175         * lib/fwritable.c (fwritable): Likewise.
79176         * lib/fwriting.c (fwriting): Likewise.
79177         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
79179 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
79181         * lib/config.charset: Treat Haiku like BeOS.
79183 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
79185         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
79186         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
79188 2008-11-08  Bruno Haible  <bruno@clisp.org>
79190         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
79191         AC_CACHE_CHECK.
79193 2008-11-08  Bruno Haible  <bruno@clisp.org>
79195         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
79197 2008-11-08  Bruno Haible  <bruno@clisp.org>
79199         * tests/test-select-fd.c: New file.
79200         * tests/test-select-in.sh: New file.
79201         * tests/test-select-out.sh: New file.
79202         * tests/test-select-stdin.c: New file.
79203         * modules/select-tests (Files): Add the new files.
79204         (Depends-on): Add gettimeofday.
79205         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
79206         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
79207         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
79209 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
79210             Bruno Haible  <bruno@clisp.org>
79212         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
79214 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
79216         * build-aux/pmccabe2html: Added support for C++ source files.
79218 2008-11-05  Ben Pfaff  <blp@gnu.org>
79220         Fix lib/close.c build on Windows.
79221         * modules/close (Files): Add lib/w32sock.h.
79223 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
79225         Accept Bison's NEWS format.
79226         * build-aux/announce-gen (print_news_deltas): Tweak
79227         $re_prefix.
79229 2008-11-04  Bruno Haible  <bruno@clisp.org>
79231         * modules/random_r (Maintainer): Add glibc.
79233 2008-11-04  Simon Josefsson  <simon@josefsson.org>
79235         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
79236         by karl@freefriends.org (Karl Berry).
79237         * doc/alloca.texi: Likewise.
79238         * doc/c-ctype.texi: Likewise.
79239         * doc/c-strcase.texi: Likewise.
79240         * doc/c-strcaseeq.texi: Likewise.
79241         * doc/c-strcasestr.texi: Likewise.
79242         * doc/c-strstr.texi: Likewise.
79243         * doc/c-strtod.texi: Likewise.
79244         * doc/c-strtold.texi: Likewise.
79245         * doc/ctime.texi: Likewise.
79246         * doc/error.texi: Likewise.
79247         * doc/fdl.texi: Likewise.
79248         * doc/gcd.texi: Likewise.
79249         * doc/getdate.texi: Likewise.
79250         * doc/gnulib-intro.texi: Likewise.
79251         * doc/gnulib-tool.texi: Likewise.
79252         * doc/gnulib.texi: Likewise.
79253         * doc/inet_ntoa.texi: Likewise.
79254         * doc/maintain.texi: Likewise.
79255         * doc/make-stds.texi: Likewise.
79256         * doc/quote.texi: Likewise.
79257         * doc/regexprops-generic.texi: Likewise.
79258         * doc/standards.texi: Likewise.
79259         * doc/verify.texi: Likewise.
79260         * doc/visibility.texi: Likewise.
79261         * doc/gnulib.texi (GNU Free Documentation License): Include
79262         fdl-1.3.texi instead of fdl.texi.
79264 2008-11-04  Simon Josefsson  <simon@josefsson.org>
79266         * doc/fdl-1.3.texi: New file, from
79267         <http://www.gnu.org/licenses/fdl-1.3.texi>.
79268         * modules/fdl-1.3: Add.
79269         * MODULES.html.sh: Add fdl-1.3.
79271 2008-11-03  Bruno Haible  <bruno@clisp.org>
79273         Make determination of absolute name of header file work with AIX xlc.
79274         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
79275         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
79276         preprocessing.
79277         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79278         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
79280 2008-11-03  Simon Josefsson  <simon@josefsson.org>
79282         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
79283         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
79284         <ludo@gnu.org>.
79286 2008-11-02  Bruno Haible  <bruno@clisp.org>
79288         Mark 'strpbrk' obsolete.
79289         * modules/strpbrk (Status, Notice): New sections.
79290         * modules/strtok_r (Depends-on): Add strpbrk.
79292 2008-11-02  Bruno Haible  <bruno@clisp.org>
79294         Mark 'strdup' obsolete.
79295         * modules/strdup (Status, Notice): New sections.
79296         * modules/findprog (Depends-on): Add strdup.
79297         * modules/getaddrinfo (Depends-on): Likewise.
79298         * modules/localename (Depends-on): Likewise.
79299         * modules/relocatable-lib (Depends-on): Likewise.
79300         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
79301         * modules/relocatable-prog (Depends-on): Likewise.
79302         * modules/trim (Depends-on): Likewise.
79303         * modules/unictype/gen-ctype (Depends-on): Likewise.
79304         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
79306 2008-11-02  Bruno Haible  <bruno@clisp.org>
79308         Mark 'strcspn' obsolete.
79309         * modules/strcspn (Status, Notice): New sections.
79311 2008-11-02  Bruno Haible  <bruno@clisp.org>
79313         Mark 'rmdir' obsolete.
79314         * modules/rmdir (Status, Notice): New sections.
79315         * modules/clean-temp (Depends-on): Add rmdir.
79316         * modules/openat (Depends-on): Likewise.
79318 2008-11-02  Bruno Haible  <bruno@clisp.org>
79320         Mark 'raise' obsolete.
79321         * modules/raise (Status, Notice): New sections.
79322         (Include): Specify <signal.h>.
79323         * modules/stdio (Depends-on): Add raise.
79324         * modules/write (Depends-on): Likewise.
79326 2008-11-02  Bruno Haible  <bruno@clisp.org>
79328         Mark 'memset' obsolete.
79329         * modules/memset (Status, Notice): New sections.
79331 2008-11-02  Bruno Haible  <bruno@clisp.org>
79333         Mark 'memmove' obsolete.
79334         * modules/memmove (Status, Notice): New sections.
79335         * modules/argp (Depends-on): Add memmove.
79336         * modules/argz (Depends-on): Likewise.
79337         * modules/canonicalize (Depends-on): Likewise.
79338         * modules/canonicalize-lgpl (Depends-on): Likewise.
79339         * modules/fts (Depends-on): Likewise.
79340         * modules/getcwd (Depends-on): Likewise.
79341         * modules/human (Depends-on): Likewise.
79342         * modules/regex (Depends-on): Likewise.
79343         * modules/striconveh (Depends-on): Likewise.
79344         * modules/trim (Depends-on): Likewise.
79345         * modules/unistr/u8-move (Depends-on): Likewise.
79346         * modules/unistr/u16-move (Depends-on): Likewise.
79347         * modules/unistr/u32-move (Depends-on): Likewise.
79349 2008-11-02  Bruno Haible  <bruno@clisp.org>
79351         Mark 'memcpy' obsolete.
79352         * modules/memcpy (Status, Notice): New sections.
79354 2008-11-02  Bruno Haible  <bruno@clisp.org>
79356         Mark 'memcmp' obsolete.
79357         * modules/memcmp (Status, Notice): New sections.
79358         * modules/argmatch (Depends-on): Add memchr.
79359         * modules/backupfile (Depends-on): Likewise.
79360         * modules/c-strcasestr (Depends-on): Likewise.
79361         * modules/crypto/des (Depends-on): Likewise.
79362         * modules/csharpcomp (Depends-on): Likewise.
79363         * modules/fnmatch (Depends-on): Likewise.
79364         * modules/git-merge-changelog (Depends-on): Likewise.
79365         * modules/isnand (Depends-on): Likewise.
79366         * modules/isnand-nolibm (Depends-on): Likewise.
79367         * modules/isnanf (Depends-on): Likewise.
79368         * modules/isnanf-nolibm (Depends-on): Likewise.
79369         * modules/isnanl (Depends-on): Likewise.
79370         * modules/isnanl-nolibm (Depends-on): Likewise.
79371         * modules/mbchar (Depends-on): Likewise.
79372         * modules/memcoll (Depends-on): Likewise.
79373         * modules/quotearg (Depends-on): Likewise.
79374         * modules/regex (Depends-on): Likewise.
79375         * modules/relocatable-prog (Depends-on): Likewise.
79376         * modules/same (Depends-on): Likewise.
79377         * modules/signbit (Depends-on): Likewise.
79378         * modules/strcasestr-simple (Depends-on): Likewise.
79379         * modules/unictype/gen-ctype (Depends-on): Likewise.
79380         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
79381         * modules/uniname/uniname (Depends-on): Likewise.
79382         * modules/unistr/u8-cmp (Depends-on): Likewise.
79384 2008-11-02  Bruno Haible  <bruno@clisp.org>
79386         Mark 'memchr' obsolete.
79387         * modules/memchr (Status, Notice): New sections.
79388         * modules/argp (Depends-on): Add memchr.
79389         * modules/base64 (Depends-on): Likewise.
79390         * modules/c-strcasestr (Depends-on): Likewise.
79391         * modules/chdir-long (Depends-on): Likewise.
79392         * modules/fnmatch (Depends-on): Likewise.
79393         * modules/getsubopt (Depends-on): Likewise.
79394         * modules/git-merge-changelog (Depends-on): Likewise.
79395         * modules/glob (Depends-on): Likewise.
79396         * modules/strcasestr-simple (Depends-on): Likewise.
79397         * modules/strnlen (Depends-on): Likewise.
79399 2008-11-02  Bruno Haible  <bruno@clisp.org>
79401         Mark 'atexit' obsolete.
79402         * modules/atexit (Status, Notice): New sections.
79403         * modules/chdir-long (Depends-on): Add atexit.
79404         * modules/wait-process (Depends-on): Likewise.
79406 2008-11-02  Bruno Haible  <bruno@clisp.org>
79408         * gnulib-tool: New option --with-obsolete.
79409         (func_usage): Document it.
79410         (func_modules_transitive_closure): Drop obsolete dependencies if
79411         incobsolete is not true.
79412         (func_import): Read and save the incobsolete variable to the cache.
79414 2008-11-02  Bruno Haible  <bruno@clisp.org>
79416         * modules/TEMPLATE-EXTENDED: New field 'Status'.
79417         * gnulib-tool: New option --extract-status.
79418         (func_usage): Document it.
79419         (sed_extract_prog): Recognize it.
79420         (func_get_status): New function.
79422 2008-10-30  Simon Josefsson  <simon@josefsson.org>
79424         * modules/sockets (License): Change from LGPL to LGPLv2+.
79426 2008-10-28  Simon Josefsson  <simon@josefsson.org>
79428         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
79430 2008-10-28  Simon Josefsson  <simon@josefsson.org>
79432         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79433         Mention times and sys_times.
79434         * modules/sys_times, modules/sys_times-tests: New modules.
79435         * modules/times, modules/times-tests: Likewise
79436         * m4/sys_times_h.m4: New file.
79437         * lib/sys_times.in.h: Likewise
79438         * lib/times.c: Likewise.
79439         * tests/test-sys_times.c: Likewise.
79440         * tests/test-times.c: Likewise.
79441         * doc/posix-headers/sys_times.texi: Update.
79442         * doc/posix-functions/times.texi: Update.
79444 2008-10-28  Jim Meyering  <meyering@redhat.com>
79446         * modules/tempname (Depends-on): Add lstat.
79448         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
79450 2008-10-28  Simon Josefsson  <simon@josefsson.org>
79452         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
79453         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
79454         using idiom used elsewhere in gnulib.
79456 2008-10-27  Jim Meyering  <meyering@redhat.com>
79458         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
79460 2008-10-27  Simon Josefsson  <simon@josefsson.org>
79462         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
79463         TESTS_ENVIRONMENT, for shell scripts that needs to call built
79464         programs.
79465         * tests/test-argp-2.sh: Use $EXEEXT when needed.
79467 2008-10-27  Simon Josefsson  <simon@josefsson.org>
79469         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
79471 2008-10-27  Bruno Haible  <bruno@clisp.org>
79473         * tests/test-lstat.c: Include <stdio.h>.
79475 2008-10-27  Simon Josefsson  <simon@josefsson.org>
79477         * modules/lstat-tests: New module.
79478         * tests/test-lstat.c: New file.
79480 2008-10-26  Jim Meyering  <meyering@redhat.com>
79482         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
79484 2008-10-26  Simon Josefsson  <simon@josefsson.org>
79485             Bruno Haible  <bruno@clisp.org>
79487         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
79488         * modules/configmake (Include): Add a note that the include must come
79489         after all system headers.
79490         * lib/javaversion.c: Include configmake.h after all other includes.
79492 2008-10-26  Bruno Haible  <bruno@clisp.org>
79494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
79495         HAVE_STRUCT_RANDOM_DATA to 1.
79496         (gl_STDLIB_H): Simplify.
79498 2008-10-26  Simon Josefsson  <simon@josefsson.org>
79500         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
79501         substitute HAVE_STRUCT_RANDOM_DATA.
79502         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
79503         random_data.
79504         * modules/stdlib (Makefile.am): Substitute
79505         HAVE_STRUCT_RANDOM_DATA.
79507 2008-10-26  Simon Josefsson  <simon@josefsson.org>
79509         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
79510         * doc/gnulib-intro.texi (Copyright): Likewise.
79512 2008-10-26  Simon Josefsson  <simon@josefsson.org>
79514         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
79515         findings.
79517 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
79518             Bruno Haible  <bruno@clisp.org>
79520         * lib/unistd.in.h: Include <winsock2.h>.
79521         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
79522         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
79523         Provide dummy declarations.
79524         (gethostname): Override.
79525         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
79526         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
79527         gl_PREREQ_SYS_H_WINSOCK2.
79528         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
79529         * doc/posix-functions/gethostname.texi: More details.
79531 2008-10-25  Bruno Haible  <bruno@clisp.org>
79533         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
79534         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
79535         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
79537         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
79538         here ...
79539         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
79540         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
79541         gl_UNISTD_H_DEFAULTS.
79543 2008-10-25  Eric Blake  <ebb9@byu.net>
79545         signbit: avoid spurious compiler failure
79546         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
79547         declarations inside function.
79549 2008-10-24  Simon Josefsson  <simon@josefsson.org>
79550             Bruno Haible  <bruno@clisp.org>
79552         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
79553         * modules/random_r (Depends-on): Add stdint.
79555 2008-10-24  Bruno Haible  <bruno@clisp.org>
79557         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
79558         Eggert.
79559         * modules/strerror (License): Likewise.
79561 2008-10-24  Jim Meyering  <meyering@redhat.com>
79563         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
79564         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
79566 2008-10-24  Eric Blake  <ebb9@byu.net>
79568         getgroups: fix compilation when getgroups is available
79569         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
79570         but with <config.h> override of getgroups disabled.
79572 2008-10-24  Simon Josefsson  <simon@josefsson.org>
79574         * doc/gnulib.texi (Header files): Add note about C++ problems.
79575         Explained by Bruno Haible <bruno@clisp.org>.
79577 2008-10-23  Bruno Haible  <bruno@clisp.org>
79579         Define a dummy SA_NODEFER macro on Interix.
79580         * lib/signal.in.h (SA_NODEFER): Define fallback.
79581         Reported by Aleksey Cheusov <cheusov@tut.by> via
79582         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
79584 2008-10-23  Bruno Haible  <bruno@clisp.org>
79586         * modules/freadahead (License): Change to LGPLv2+.
79587         Suggested by Simon Josefsson.
79589 2008-10-23  Jim Meyering  <meyering@redhat.com>
79591         random_r: new module
79592         * modules/random_r: New file.
79593         * m4/random_r.m4: New file.
79594         * lib/random_r.c: New file, from glibc.
79595         * modules/random_r-tests: New file.
79596         * tests/test-random_r.c: New file.
79597         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
79598          Declare.
79599         (RAND_MAX): Define.
79600         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
79601         * modules/stdlib: Substitute them, too.
79602         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
79603         * doc/glibc-functions/initstate_r.texi: Mention the new module.
79604         * doc/glibc-functions/random_r.texi: Likewise.
79605         * doc/glibc-functions/setstate_r.texi: Likewise.
79606         * doc/glibc-functions/srandom_r.texi: Likewise.
79607         * config/srclist.txt: Mention it.
79609 2008-10-23  David Lutterkort  <lutter@redhat.com>
79611         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
79612         link requirement
79614 2008-10-23  Jim Meyering  <meyering@redhat.com>
79616         selinux-h: mark parameters of stub functions as intentionally unused
79617         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
79618         * lib/se-context.in.h: Likewise.
79620 2008-10-22  Simon Josefsson  <simon@josefsson.org>
79622         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
79624 2008-10-22  Simon Josefsson  <simon@josefsson.org>
79626         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
79628 2008-10-22  Eric Blake  <ebb9@byu.net>
79630         glthread/thread: avoid compiler warning
79631         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
79632         Add unreachable abort to silence compiler.
79634 2008-10-22  Eric Blake  <ebb9@byu.net>
79636         netdb: also supply struct addrinfo for cygwin 1.5.x
79637         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
79638         older cygwin.
79639         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
79640         cygwin.
79641         * doc/posix-headers/netdb.texi (netdb.h): Document this.
79643 2008-10-22  Bruno Haible  <bruno@clisp.org>
79645         * users.txt: Update entry about pspp.
79647 2008-10-21  Bruno Haible  <bruno@clisp.org>
79649         Simplification.
79650         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
79651         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
79653         Simplification.
79654         * lib/ioctl.c (ioctl): Don't undefine.
79655         * lib/socket.c (socket): Don't undefine.
79657         Remove unused module indicator macros.
79658         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
79659         GNULIB_$1 as a C macro.
79661         * doc/posix-functions/close.texi: Undo last change.
79662         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
79663         Windows platforms.
79665 2008-10-21  Bruno Haible  <bruno@clisp.org>
79667         Add gethostname() declaration to <unistd.h>.
79668         * lib/unistd.in.h (gethostname): New declaration.
79669         * lib/gethostname.c: Include <unistd.h>.
79670         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
79671         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
79672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
79673         and HAVE_GETHOSTNAME.
79674         * modules/gethostname (Depends-on): Add unistd.
79675         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
79676         (Include): Specify <unistd.h>.
79677         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
79678         HAVE_GETHOSTNAME.
79679         * tests/test-gethostname.c: Include <unistd.h> first.
79681 2008-10-21  Bruno Haible  <bruno@clisp.org>
79683         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
79684         * modules/select-tests (Depends-on): Likewise.
79685         Reported by Simon Josefsson.
79687 2008-10-21  Simon Josefsson  <simon@josefsson.org>
79689         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
79690         * lib/accept.c: New file, based on winsock.c.
79691         * lib/bind.c: New file, based on winsock.c.
79692         * lib/connect.c: New file, based on winsock.c.
79693         * lib/getpeername.c: New file, based on winsock.c.
79694         * lib/getsockname.c: New file, based on winsock.c.
79695         * lib/getsockopt.c: New file, based on winsock.c.
79696         * lib/ioctl.c: New file, based on winsock.c.
79697         * lib/listen.c: New file, based on winsock.c.
79698         * lib/recv.c: New file, based on winsock.c.
79699         * lib/recvfrom.c: New file, based on winsock.c.
79700         * lib/send.c: New file, based on winsock.c.
79701         * lib/sendto.c: New file, based on winsock.c.
79702         * lib/setsockopt.c: New file, based on winsock.c.
79703         * lib/shutdown.c: New file, based on winsock.c.
79704         * lib/socket.c: New file, based on winsock.c.
79705         * lib/w32sock.h: New file, based on winsock.c.
79706         * lib/winsock.c: Remove file.
79707         * modules/accept: Likewise.
79708         * modules/bind: Likewise.
79709         * modules/connect: Likewise.
79710         * modules/getpeername: Likewise.
79711         * modules/getsockname: Likewise.
79712         * modules/getsockopt: Likewise.
79713         * modules/ioctl: Likewise.
79714         * modules/listen: Likewise.
79715         * modules/recv: Likewise.
79716         * modules/recvfrom: Likewise.
79717         * modules/send: Likewise.
79718         * modules/sendto: Likewise.
79719         * modules/setsockopt: Likewise.
79720         * modules/shutdown: Likewise.
79721         * modules/socket: Use socket.c instead of winsock.c.
79722         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
79723         * doc/posix-functions/accept.texi: Doc fix.
79724         * doc/posix-functions/bind.texi: Doc fix.
79725         * doc/posix-functions/close.texi: Doc fix.
79726         * doc/posix-functions/connect.texi: Doc fix.
79727         * doc/posix-functions/getpeername.texi: Doc fix.
79728         * doc/posix-functions/getsockname.texi: Doc fix.
79729         * doc/posix-functions/getsockopt.texi: Doc fix.
79730         * doc/posix-functions/ioctl.texi: Doc fix.
79731         * doc/posix-functions/listen.texi: Doc fix.
79732         * doc/posix-functions/recv.texi: Doc fix.
79733         * doc/posix-functions/recvfrom.texi: Doc fix.
79734         * doc/posix-functions/send.texi: Doc fix.
79735         * doc/posix-functions/sendto.texi: Doc fix.
79736         * doc/posix-functions/setsockopt.texi: Doc fix.
79737         * doc/posix-functions/shutdown.texi: Doc fix.
79738         * doc/posix-functions/socket.texi: Doc fix.
79740 2008-10-20  Bruno Haible  <bruno@clisp.org>
79742         Take into account the role of SIGABRT_COMPAT on Windows 2008.
79743         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
79744         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
79745         as an alias for SIGABRT.
79746         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
79747         (sigaction): Map it to SIGABRT.
79748         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
79750 2008-10-20  Bruno Haible  <bruno@clisp.org>
79752         * lib/fts.c: Don't include lstat.h.
79753         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
79755         Move the lstat() declaration to <sys/stat.h>.
79756         * lib/lstat.h: Remove file.
79757         * lib/sys_stat.in.h: Add special invocation convention.
79758         (lstat): New declaration.
79759         * lib/lstat.c (orig_lstat): New function.
79760         (rpl_lstat): Use orig_lstat instead of lstat.
79761         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
79762         AC_C_INLINE. Set REPLACE_LSTAT.
79763         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
79764         and REPLACE_LSTAT.
79765         * modules/lstat (Files): Remove lib/lstat.h.
79766         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
79767         (Include): Specify <sys/stat.h> instead of lstat.h.
79768         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
79769         REPLACE_LSTAT.
79770         * NEWS: Mention the change.
79772 2008-10-20  Bruno Haible  <bruno@clisp.org>
79774         * modules/posix_spawn-tests: New file.
79775         * tests/test-posix_spawn3.c: New file.
79777 2008-10-20  Bruno Haible  <bruno@clisp.org>
79779         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
79780         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
79781         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
79782         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
79783         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
79785 2008-10-20  Bruno Haible  <bruno@clisp.org>
79787         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
79788         of posix_spawn on AIX 5.3.
79790 2008-10-20  Bruno Haible  <bruno@clisp.org>
79792         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
79794 2008-10-20  Bruno Haible  <bruno@clisp.org>
79796         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
79797         of AC_LANG_PROGRAM.
79799 2008-10-20  Simon Josefsson  <simon@josefsson.org>
79801         * lib/netdb.in.h: Don't define GNU specific constants until they
79802         are supported or needed.  Reported by Bruno Haible
79803         <bruno@clisp.org>.
79805 2008-10-20  Simon Josefsson  <simon@josefsson.org>
79807         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
79809 2008-10-20  Simon Josefsson  <simon@josefsson.org>
79811         * lib/getaddrinfo.h: Remove file.
79812         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
79813         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
79814         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
79815         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
79816         * modules/netdb: Substitute GNULIB_GETADDRINFO.
79817         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
79818         * tests/test-getaddrinfo.c: Likewise.
79819         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
79820         * NEWS: Mention change.
79822 2008-10-19  Bruno Haible  <bruno@clisp.org>
79824         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
79826 2008-10-19  Bruno Haible  <bruno@clisp.org>
79828         * lib/wait-process.c: Include simply <sys/wait.h>.
79829         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
79830         WIFSTOPPED): Remove fallback definitions.
79831         * modules/wait-process (Depends-on): Add sys_wait.
79833         New module 'sys_wait'.
79834         * modules/sys_wait: New file.
79835         * lib/sys_wait.in.h: New file, partially copied from
79836         lib/wait-process.c.
79837         * m4/sys_wait_h.m4: New file.
79838         * doc/posix-headers/sys_wait.texi: Mention the new module.
79840 2008-10-19  Bruno Haible  <bruno@clisp.org>
79842         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
79844 2008-10-19  Bruno Haible  <bruno@clisp.org>
79846         Assume that waitpid() fills an 'int' status, not a 'union wait'.
79847         * lib/wait-process.c (WAIT_T): Remove type.
79848         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
79849         (wait_subprocess): Update.
79851 2008-10-19  Bruno Haible  <bruno@clisp.org>
79853         New module 'atoll'.
79854         * modules/atoll: New file.
79855         * lib/stdlib.in.h (atoll): New declaration.
79856         * lib/atoll.c: New file, from glibc with modifications.
79857         * m4/atoll.m4: New file.
79858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
79859         HAVE_ATOLL.
79860         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
79861         * doc/posix-functions/atoll.texi: Mention the new module.
79863 2008-10-19  Bruno Haible  <bruno@clisp.org>
79865         Add strtoull() declaration to <stdlib.h>.
79866         * lib/stdlib.in.h (strtoull): New declaration.
79867         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
79868         Set HAVE_STRTOULL.
79869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
79870         HAVE_STRTOULL.
79871         * modules/strtoull (Depends-on): Add stdlib.
79872         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79873         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
79874         HAVE_STRTOULL.
79876 2008-10-19  Bruno Haible  <bruno@clisp.org>
79878         Add strtoll() declaration to <stdlib.h>.
79879         * lib/stdlib.in.h (strtoll): New declaration.
79880         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
79881         Set HAVE_STRTOLL.
79882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
79883         HAVE_STRTOLL.
79884         * modules/strtoll (Depends-on): Add stdlib.
79885         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79886         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
79888 2008-10-19  Bruno Haible  <bruno@clisp.org>
79890         * modules/bcopy (Depends-on): Add strings.
79891         (Include): Specify <strings.h>.
79893 2008-10-19  Bruno Haible  <bruno@clisp.org>
79895         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
79897 2008-10-19  Bruno Haible  <bruno@clisp.org>
79899         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
79900         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
79901         mingw.
79903 2008-10-19  Bruno Haible  <bruno@clisp.org>
79905         * lib/atanl.c: Don't include isnanl.h.
79906         * lib/cosl.c: Likewise.
79907         * lib/ldexpl.c: Likewise.
79908         * lib/logl.c: Likewise.
79909         * lib/sinl.c: Likewise.
79910         * lib/sqrtl.c: Likewise.
79911         * lib/tanl.c: Likewise.
79913         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
79914         * lib/isnanf.h: Remove file.
79915         * lib/isnand.h: Remove file.
79916         * lib/isnanl.h: Remove file.
79917         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
79918         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
79919         macros.
79920         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
79921         HAVE_ISNANF, don't define it as a C macro.
79922         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
79923         HAVE_ISNAND, don't define it as a C macro.
79924         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
79925         HAVE_ISNANL, don't define it as a C macro.
79926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
79927         HAVE_ISNAN[FDL].
79928         * modules/isnanf (Files): Remove lib/isnanf.h.
79929         (Depends-on): Add math.
79930         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
79931         (Include): Specify <math.h> instead of isnanf.h.
79932         * modules/isnand (Files): Remove lib/isnand.h.
79933         (Depends-on): Add math.
79934         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
79935         (Include): Specify <math.h> instead of isnand.h.
79936         * modules/isnanl (Files): Remove lib/isnanl.h.
79937         (Depends-on): Add math.
79938         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
79939         (Include): Specify <math.h> instead of isnanl.h.
79940         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
79941         HAVE_ISNAN[FDL].
79942         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
79943         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
79944         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
79945         * NEWS: Mention the change.
79947 2008-10-18  Bruno Haible  <bruno@clisp.org>
79949         Add getusershell(), setusershell(), endusershell() declarations to
79950         <unistd.h>.
79951         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
79952         declarations.
79953         * lib/getusershell.c: Include unistd.h.
79954         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
79955         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
79956         HAVE_GETUSERSHELL.
79957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
79958         and HAVE_GETUSERSHELL.
79959         * modules/getusershell (Depends-on): Add unistd, extensions.
79960         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
79961         (Include): Specify <unistd.h>.
79962         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
79963         HAVE_GETUSERSHELL.
79965 2008-10-18  Bruno Haible  <bruno@clisp.org>
79967         Add a getloadavg() declaration to <stdlib.h>.
79968         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
79969         getloadavg declaration.
79970         (getloadavg): New declaration.
79971         * lib/getloadavg.c: Include <stdlib.h> first.
79972         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
79973         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
79974         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
79975         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
79976         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
79977         * modules/getloadavg (Depends-on): Add stdlib, extensions.
79978         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79979         (Include): Specify <stdlib.h>.
79980         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
79981         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
79983 2008-10-18  Bruno Haible  <bruno@clisp.org>
79985         * lib/dirchownmod.c: Don't include lchmod.h.
79987         Move the lchmod() declaration to <sys/stat.h>.
79988         * lib/lchmod.h: Remove file.
79989         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
79990         (lchmod): New declaration, moved here from lib/lchown.h.
79991         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
79992         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
79993         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
79994         and HAVE_LCHMOD.
79995         * modules/lchmod (Files): Remove lib/lchmod.h.
79996         (Depends-on): Add sys_stat, extensions.
79997         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
79998         (Include): Specify <sys/stat.h> instead of lchmod.h.
79999         * modules/sys_stat (Depends-on): Add link-warning.
80000         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
80001         definition of GL_LINK_WARNING.
80002         * NEWS: Mention the change.
80004 2008-10-18  Bruno Haible  <bruno@clisp.org>
80006         * lib/fchdir.c: Don't include dirfd.h.
80007         * lib/fts.c: Likewise.
80008         * lib/getcwd.c: Likewise.
80009         * lib/glob.c: Likewise.
80011         Move the dirfd() declaration to <dirent.h>.
80012         * lib/dirfd.h: Remove file.
80013         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
80014         (dirfd): New declaration.
80015         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
80016         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
80017         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
80018         HAVE_DECL_DIRFD.
80019         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
80020         HAVE_DECL_DIRFD.
80021         * modules/dirfd (Files): Remove lib/dirfd.h.
80022         (Depends-on): Add dirent, extensions.
80023         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
80024         (Include): Specify <dirent.h> instead of dirfd.h.
80025         * modules/dirent (Depends-on): Add link-warning.
80026         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
80027         definition of GL_LINK_WARNING.
80028         * NEWS: Mention the change.
80030 2008-10-18  Bruno Haible  <bruno@clisp.org>
80032         Move the euidaccess() declaration to <unistd.h>.
80033         * lib/euidaccess.h: Remove file.
80034         * lib/unistd.in.h (euidaccess): New declaration.
80035         * lib/euidaccess.c: Don't include euidaccess.h.
80036         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
80037         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
80038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
80039         and HAVE_EUIDACCESS.
80040         * modules/euidaccess (Files): Remove lib/euidaccess.h.
80041         (Depends-on): Add unistd.
80042         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
80043         (Include): Specify <unistd.h> instead of euidaccess.h.
80044         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
80045         HAVE_EUIDACCESS.
80046         * NEWS: Mention the change.
80048 2008-10-18  Bruno Haible  <bruno@clisp.org>
80050         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
80052         Move the getdomainname() declaration to <unistd.h>.
80053         * lib/getdomainname.h: Remove file.
80054         * lib/unistd.in.h (getdomainname): New declaration.
80055         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
80056         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
80057         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
80058         HAVE_GETDOMAINNAME.
80059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80060         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
80061         * modules/getdomainname (Files): Remove lib/getdomainname.h.
80062         (Depends-on): Add unistd, extensions.
80063         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
80064         (Includes): Specify <unistd.h> instead of getdomainname.h.
80065         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
80066         HAVE_GETDOMAINNAME.
80067         * NEWS: Mention the change.
80069 2008-10-18  Bruno Haible  <bruno@clisp.org>
80071         * modules/dirent: New file.
80072         * m4/dirent_h.m4: New file.
80073         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
80074         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
80075         * modules/fchdir (Files): Remove lib/dirent.in.h.
80076         (Depends-on): Add dirent.
80077         (Makefile.am): Move rules to modules/dirent.
80078         * doc/posix-headers/dirent.texi: Mention the new module.
80080 2008-10-18  Bruno Haible  <bruno@clisp.org>
80082         Avoid -Wunused-parameter warnings in public gnulib header files.
80083         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
80084         macro.
80085         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
80087 2008-10-18  Bruno Haible  <bruno@clisp.org>
80089         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
80090         * doc/glibc-functions/error.texi: Mention the module 'error'.
80091         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
80092         * doc/glibc-functions/getdomainname.texi: Mention the module
80093         'getdomainname'.
80094         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
80095         * doc/glibc-functions/getpagesize.texi: Mention the module
80096         'getpagesize'.
80097         * doc/glibc-functions/getusershell.texi: Mention the module
80098         'getusershell'.
80099         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
80100         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
80101         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
80102         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
80103         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
80104         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
80105         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
80106         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
80107         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
80108         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
80109         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
80110         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
80111         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
80112         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
80114 2008-10-17  Bruno Haible  <bruno@clisp.org>
80116         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
80117         HP-UX and IRIX, use -0.0L.
80118         * tests/test-ceill.c (minus_zero): Likewise.
80119         * tests/test-floorl.c (minus_zero): Likewise.
80120         * tests/test-frexpl.c (minus_zero): Likewise.
80121         * tests/test-isnan.c (minus_zerol): Likewise.
80122         * tests/test-isnanl.h (minus_zero): Likewise.
80123         * tests/test-ldexpl.c (minus_zero): Likewise.
80124         * tests/test-roundl.c (minus_zero): Likewise.
80125         * tests/test-signbit.c (minus_zerol): Likewise.
80126         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
80127         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
80128         * tests/test-truncl.c (minus_zero): Likewise.
80129         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
80130         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
80131         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
80132         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
80134 2008-10-17  Bruno Haible  <bruno@clisp.org>
80136         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
80137         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
80138         that it gets activated only for gcc >= 3.0.
80139         * lib/dirent.in.h: Likewise.
80140         * lib/errno.in.h: Likewise.
80141         * lib/fcntl.in.h: Likewise.
80142         * lib/float.in.h: Likewise.
80143         * lib/iconv.in.h: Likewise.
80144         * lib/inttypes.in.h: Likewise.
80145         * lib/locale.in.h: Likewise.
80146         * lib/math.in.h: Likewise.
80147         * lib/netdb.in.h: Likewise.
80148         * lib/netinet_in.in.h: Likewise.
80149         * lib/search.in.h: Likewise.
80150         * lib/signal.in.h: Likewise.
80151         * lib/spawn.in.h: Likewise.
80152         * lib/stdarg.in.h: Likewise.
80153         * lib/stdint.in.h: Likewise.
80154         * lib/stdio.in.h: Likewise.
80155         * lib/stdlib.in.h: Likewise.
80156         * lib/string.in.h: Likewise.
80157         * lib/strings.in.h: Likewise.
80158         * lib/sys_file.in.h: Likewise.
80159         * lib/sys_ioctl.in.h: Likewise.
80160         * lib/sys_select.in.h: Likewise.
80161         * lib/sys_socket.in.h: Likewise.
80162         * lib/sys_stat.in.h: Likewise.
80163         * lib/sys_time.in.h: Likewise.
80164         * lib/sysexits.in.h: Likewise.
80165         * lib/time.in.h: Likewise.
80166         * lib/unistd.in.h: Likewise.
80167         * lib/wchar.in.h: Likewise.
80168         * lib/wctype.in.h: Likewise.
80169         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80171 2008-10-17  Jim Meyering  <meyering@redhat.com>
80173         ignore-value: don't depend on inline module
80174         * modules/ignore-value (Depends-on): Remove 'inline'.
80175         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
80176         Suggestion from Bruno Haible.
80178 2008-10-17  Bruno Haible  <bruno@clisp.org>
80180         New implementation of condition variables for Win32.
80181         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
80182         (gl_linked_waitqueue_t): New type.
80183         (gl_cond_t): Use it.
80184         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
80185         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
80186         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
80187         (glthread_cond_init_func, glthread_cond_wait_func,
80188         glthread_cond_timedwait_func, glthread_cond_signal_func,
80189         glthread_cond_broadcast_func, glthread_cond_destroy_func):
80190         Reimplemented on the basis of gl_linked_waitqueue_t.
80191         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
80192         gl_waitqueue_t.
80193         (gl_rwlock_t): Update.
80194         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
80196 2008-10-17  Simon Josefsson  <simon@josefsson.org>
80198         * modules/recvfrom (Depends-on): Add dependency on getpeername.
80199         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80201 2008-10-17  Jim Meyering  <meyering@redhat.com>
80203         ignore-value: new module
80204         * modules/ignore-value: New file.
80205         * lib/ignore-value.h: New file.
80206         * MODULES.html.sh (Compiler warning management): New section,
80207         just for this module.  More to come.
80209 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
80211         open-safer.c: avoid 'signed and unsigned in conditional...' warning
80212         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
80213         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
80215 2008-10-16  Jim Meyering  <meyering@redhat.com>
80217         openat-die.c: avoid 'no previous prototype' warning
80218         * lib/openat-die.c: Include "openat.h".
80219         Reported by Reuben Thomas <rrt@sc3d.org>.
80221 2008-10-16  Simon Josefsson  <simon@josefsson.org>
80223         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
80224         * lib/netdb.in.h: Fix typo.
80225         Reported by Bruno Haible  <bruno@clisp.org>
80227         * lib/netdb.in.h: Include sys/socket.h for platforms without
80228         netdb.h, to get structures like hostent on MinGW.
80229         * modules/netdb (Depends-on): Add sys_socket.
80231 2008-10-15  Simon Josefsson  <simon@josefsson.org>
80233         * modules/netdb, modules/netdb-tests: New file.
80234         * m4/netdb_h.m4: New file.
80235         * lib/netdb.in.h: Add, currently just an empty file pending
80236         definitions.
80237         * tests/test-netdb.c: New file.
80238         * doc/posix-headers/netdb.texi: Mention that we replace it if
80239         needed.
80240         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80241         netdb.
80243 2008-10-15  Simon Josefsson  <simon@josefsson.org>
80245         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
80246         with code.
80248 2008-10-13  Bruno Haible  <bruno@clisp.org>
80250         * lib/glthread/cond.c (glthread_cond_wait_func,
80251         glthread_cond_timedwait_func): Add a comment.
80253 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80255         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
80256         * tests/test-select.c: Likewise,
80258 2008-10-13  Bruno Haible  <bruno@clisp.org>
80260         * lib/glthread/cond.c (glthread_cond_wait_func,
80261         glthread_cond_timedwait_func): Fix variable name.
80262         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80264 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
80266         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
80267         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
80268         struct sockaddr.sa_len.
80269         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
80271 2008-10-13  Simon Josefsson  <simon@josefsson.org>
80273         * build-aux/pmccabe2html: Add css and css_url parameters.
80275 2008-10-12  Bruno Haible  <bruno@clisp.org>
80277         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
80278         calling aclx_get.
80279         Reported by Rainer Tammer <tammer@tammer.net>.
80281 2008-10-12  Bruno Haible  <bruno@clisp.org>
80283         Use msvcrt aware primitives for creation/termination of Win32 threads.
80284         * lib/glthread/thread.c: Include <process.h>.
80285         (glthread_create_func): Use _beginthreadex instead of CreateThread.
80286         (wrapper_func): Update signature.
80287         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
80289 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80290             Bruno Haible  <bruno@clisp.org>
80292         Provide a Win32 implementation of the 'cond' module.
80293         * lib/glthread/cond.h [USE_WIN32]: New implementation.
80294         * lib/glthread/cond.c (glthread_cond_init_func,
80295         glthread_cond_wait_func, glthread_cond_timedwait_func,
80296         glthread_cond_signal_func, glthread_cond_broadcast_func,
80297         glthread_cond_destroy_func) [USE_WIN32]: New functions.
80298         * modules/cond (Dependencies): Add gettimeofday.
80300 2008-10-11  Bruno Haible  <bruno@clisp.org>
80302         Make sleep work on older versions of mingw.
80303         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
80304         only whether it exists.
80305         * doc/posix-functions/sleep.texi: Mention the problem with older
80306         versions of mingw.
80308 2008-10-11  Bruno Haible  <bruno@clisp.org>
80310         New module 'shutdown'.
80311         * modules/shutdown: New file.
80312         * lib/sys_socket.in.h (shutdown): New declaration.
80313         * lib/winsock.c (shutdown): New function.
80314         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
80315         GNULIB_SHUTDOWN.
80316         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
80317         * doc/posix-functions/shutdown.texi: Document the new module.
80319 2008-10-11  Jim Meyering  <meyering@redhat.com>
80321         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
80323 2008-10-11  Bruno Haible  <bruno@clisp.org>
80325         New module 'fclose'.
80326         * modules/fclose: New file.
80327         * lib/stdio.in.h (fclose): New declaration.
80328         * lib/fclose.c: New file.
80329         * m4/fclose.m4: New file.
80330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
80331         REPLACE_FCLOSE.
80332         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
80333         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
80334         REPLACE_FCLOSE.
80335         * modules/close (Depends-on): fclose.
80336         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
80338 2008-10-11  Bruno Haible  <bruno@clisp.org>
80340         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
80341         set errno and don't call _close.
80343 2008-10-10  Bruno Haible  <bruno@clisp.org>
80345         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
80346         ACL, not afterwards. Fixes test failure on Cygwin.
80348 2008-10-09  Ben Pfaff  <blp@gnu.org>
80350         * build-aux/announce-gen: Fix gnulib version related part of usage
80351         message.  Die with a useful error message if no tarballs are
80352         found.
80354 2008-10-10  Jim Meyering  <meyering@redhat.com>
80356         bootstrap: use git's --depth=N option only if it's supported
80357         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
80358         recognize the --depth option.  Reported by Pádraig Brady.
80360 2008-10-09  Bruno Haible  <bruno@clisp.org>
80362         New module 'ioctl'.
80363         * modules/ioctl: New file.
80364         * lib/sys_socket.in.h (ioctl): Remove declaration.
80365         * lib/winsock.c: Include <sys/ioctl.h>.
80366         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
80367         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
80368         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
80369         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
80370         * doc/posix-functions/ioctl.texi: Mention the new module.
80372 2008-10-09  Bruno Haible  <bruno@clisp.org>
80374         New module 'sys_ioctl'.
80375         * lib/sys_ioctl.in.h: New file.
80376         * m4/sys_ioctl_h.m4: New file.
80377         * modules/sys_ioctl: New file.
80378         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
80380 2008-10-09  Bruno Haible  <bruno@clisp.org>
80382         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
80383         * lib/winsock.c: Include <stdarg.h>.
80384         (rpl_ioctl): Change to second argument 'int' and then varargs.
80386 2008-10-09  Bruno Haible  <bruno@clisp.org>
80388         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
80389         when the sys_socket module is present and the system has <winsock2.h>.
80391 2008-10-09  Bruno Haible  <bruno@clisp.org>
80393         * doc/posix-functions/close.texi: Mention module 'close' instead of
80394         module 'sys_socket'.
80396 2008-10-09  Bruno Haible  <bruno@clisp.org>
80398         * doc/glibc-headers/sys_ioctl.texi: New file.
80399         * doc/gnulib.texi: Include it.
80401 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
80402             Bruno Haible  <bruno@clisp.org>
80404         Combine the two replacements of 'close'.
80405         * lib/sys_socket.in.h (close): Define to a reminder to include
80406         <unistd.h>.
80407         (_gl_close_fd_maybe_socket): New declaration.
80408         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
80409         * lib/winsock.c (close): Remove undefinition.
80410         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
80411         needed for the gnulib module 'close'.
80412         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
80413         define to an error symbol or to a warning, if suitable.
80414         * lib/close.c: Include <sys/socket.h>.
80415         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
80416         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
80417         UNISTD_H_HAVE_WINSOCK2_H.
80418         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
80419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80420         UNISTD_H_HAVE_WINSOCK2_H.
80421         * modules/sys_socket (Files): Add m4/unistd_h.m4.
80422         (configure.ac): Set a module indicator.
80423         (Makefile.am): Substitute GNULIB_CLOSE.
80424         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
80425         * modules/poll-tests (Depends-on): Add close.
80426         * modules/select-tests (Depends-on): Likewise.
80428 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
80429             Bruno Haible  <bruno@clisp.org>
80431         New module 'close'.
80432         * modules/close: New file.
80433         * lib/unistd.in.h (close): Move declaration out of the
80434         FCHDIR_REPLACEMENT scope.
80435         (_gl_unregister_fd): New declaration.
80436         * lib/close.c: New file.
80437         * lib/fchdir.c (rpl_close): Remove function.
80438         * m4/close.m4: New file.
80439         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
80440         close.
80441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
80442         REPLACE_CLOSE.
80443         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
80444         REPLACE_CLOSE.
80445         * modules/fchdir (Depends-on): Add close.
80447 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
80448             Bruno Haible  <bruno@clisp.org>
80450         * lib/fcntl.in.h (open): Simplify conditionals.
80451         (_gl_register_fd): New declaration.
80452         * lib/fchdir.c (rpl_open): Remove function.
80453         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
80454         also.
80455         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
80456         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
80457         open.
80459 2008-10-09  Jim Meyering  <meyering@redhat.com>
80461         GNUmakefile: use the more name-space-friendly "_version"
80462         * top/GNUmakefile (_dummy): Update.
80463         (_version): Rename from "version".
80465 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
80466             Bruno Haible  <bruno@clisp.org>
80468         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
80469         rpl_close.
80470         (_gl_register_fd): New function, extracted from rpl_open.
80471         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
80472         (rpl_open, rpl_opendir): Use _gl_register_fd.
80474 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
80476         Fix organization of 'open' replacement.
80477         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
80478         (gl_FUNC_OPEN): Use it.
80479         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
80481 2008-10-08  Bruno Haible  <bruno@clisp.org>
80483         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
80485 2008-10-08  Simon Josefsson  <simon@josefsson.org>
80487         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
80488         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
80489         listen).
80491 2008-10-08  Eric Blake  <ebb9@byu.net>
80493         GNUmakefile: add 'make version' target
80494         * top/GNUmakefile (_curr-ver): Split version update rules...
80495         (version): ...into a target.
80497 2008-10-07  Bruno Haible  <bruno@clisp.org>
80499         Use a more portable replacement expression for -0.0L.
80500         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
80501         instead of -0.0L. Fix m4 quotation.
80503         * tests/test-signbit.c: Include <float.h>.
80504         (minus_zero): New variable.
80505         (test_signbitl): Use minus_zero instead of -zero.
80506         * modules/signbit-tests (Depends-on): Add float.
80508         * tests/test-ceill.c: Include <float.h>.
80509         (zero): Remove variable.
80510         (minus_zero): New variable.
80511         (main): Use minus_zero instead of -zero.
80512         * modules/ceill-tests (Depends-on): Add float.
80514         * tests/test-floorl.c: Include <float.h>.
80515         (zero): Remove variable.
80516         (minus_zero): New variable.
80517         (main): Use minus_zero instead of -zero.
80518         * modules/floorl-tests (Depends-on): Add float.
80520         * tests/test-roundl.c: Include <float.h>.
80521         (zero): Remove variable.
80522         (minus_zero): New variable.
80523         (main): Use minus_zero instead of -zero.
80524         * modules/roundl-tests (Depends-on): Add float.
80526         * tests/test-truncl.c: Include <float.h>.
80527         (zero): Remove variable.
80528         (minus_zero): New variable.
80529         (main): Use minus_zero instead of -zero.
80530         * modules/truncl-tests (Depends-on): Add float.
80532         * tests/test-frexpl.c (zero): Remove variable.
80533         (minus_zero): New variable.
80534         (main): Use minus_zero instead of -zero.
80535         * modules/frexpl-tests (Depends-on): Add float.
80537         * tests/test-isnan.c (zerol): Remove variable.
80538         (minus_zerol): New variable.
80539         (test_long_double): Use minus_zerol instead of -zerol.
80540         * modules/isnan-tests (Depends-on): Add float.
80542         * tests/test-isnanl.h (zero): Remove variable.
80543         (minus_zero): New variable.
80544         (main): Use minus_zero instead of -zero.
80545         * modules/isnanl-nolibm-tests (Depends-on): Add float.
80546         * modules/isnanl-tests (Depends-on): Add float.
80548         * tests/test-ldexpl.c (zero): Remove variable.
80549         (minus_zero): New variable.
80550         (main): Use minus_zero instead of -zero.
80551         * modules/ldexpl-tests (Depends-on): Add float.
80553         * tests/test-snprintf-posix.h (zerol): Remove variable.
80554         (minus_zerol): New variable.
80555         (test_function): Use minus_zerol instead of -zerol.
80556         * modules/snprintf-posix-tests (Depends-on): Add float.
80557         * modules/vsnprintf-posix-tests (Depends-on): Add float.
80559         * tests/test-sprintf-posix.h (zerol): Remove variable.
80560         (minus_zerol): New variable.
80561         (test_function): Use minus_zerol instead of -zerol.
80562         * modules/sprintf-posix-tests (Depends-on): Add float.
80563         * modules/vsprintf-posix-tests (Depends-on): Add float.
80565         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
80566         (minus_zerol): New variable.
80567         (test_function): Use minus_zerol instead of -zerol.
80568         * modules/vasnprintf-posix-tests (Depends-on): Add float.
80570         * tests/test-vasprintf-posix.c (zerol): Remove variable.
80571         (minus_zerol): New variable.
80572         (test_function): Use minus_zerol instead of -zerol.
80573         * modules/vasprintf-posix-tests (Depends-on): Add float.
80575 2008-10-07  Simon Josefsson  <simon@josefsson.org>
80577         * MODULES.html.sh (Support for building documentation): Mention
80578         pmccabe2html.  Sort entries.
80580         Add pmccabe2html module, from gnupdf.
80581         * build-aux/pmccabe.css: New file.
80582         * build-aux/pmccabe2html: New file.
80583         * m4/pmccabe2html.m4: New file.
80584         * modules/pmccabe2html: New file.
80586 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
80588         flock: new module
80589         * MODULES.html.sh: Add to list of modules.
80590         * lib/flock.c: flock implementation for Windows and Unix systems
80591         which have fcntl.
80592         * doc/glibc-functions/flock.texi: Update documentation.
80593         * lib/sys_file.in.h: <sys/file.h> header file.
80594         * m4/flock.m4: M4 macros.
80595         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
80596         * modules/flock: flock module.
80597         * modules/flock-tests: flock tests module.
80598         * modules/sys_file: sys/file.h module.
80599         * tests/test-flock.c: test suite for flock.
80601 2008-10-06  Jim Meyering  <meyering@redhat.com>
80603         bootstrap: check for LT_INIT more portably still ;-)
80604         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
80605         Spotted by Bruno Haible.
80607 2008-10-06  Eric Blake  <ebb9@byu.net>
80609         test-signbit: avoid tripping Irix cc bug on -0.0L
80610         * tests/test-signbit.c (minus_zerol): Delete, and replace with
80611         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
80612         entire testsuite consistent and avoids an Irix 6.2 bug.
80614 2008-10-05  Bruno Haible  <bruno@clisp.org>
80615             Jim Meyering  <jim@meyering.net>
80617         Add an option for ignoring EPIPE during close_stdout.
80618         * lib/closeout.h: Include <stdbool.h>.
80619         (close_stdout_set_ignore_EPIPE): New declaration.
80620         * lib/closeout.c: Include <stdbool.h>.
80621         (ignore_EPIPE): New variable.
80622         (close_stdout_set_ignore_EPIPE): New function.
80623         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
80624         * lib/close-stream.c (close_stream): Mention the possible EPIPE
80625         failure.
80626         * modules/closeout (Depends-on): Add stdbool.
80628 2008-10-05  Bruno Haible  <bruno@clisp.org>
80630         * modules/accept: New file.
80631         * modules/bind: New file.
80632         * modules/connect: New file.
80633         * modules/getpeername: New file.
80634         * modules/getsockname: New file.
80635         * modules/getsockopt: New file.
80636         * modules/listen: New file.
80637         * modules/recv: New file.
80638         * modules/recvfrom: New file.
80639         * modules/send: New file.
80640         * modules/sendto: New file.
80641         * modules/setsockopt: New file.
80642         * modules/socket: New file.
80643         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
80644         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
80645         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
80646         the particular module is requested. Add a link warning when the
80647         particular module is not requested.
80648         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
80649         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
80650         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
80651         the particular module is requested.
80652         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
80653         gl_SYS_SOCKET_H_DEFAULTS): New macros.
80654         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
80655         * modules/sys_socket (Depends-on): Add link-warning.
80656         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
80657         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
80658         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
80659         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
80660         GL_LINK_WARNING.
80661         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
80662         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
80663         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
80664         * doc/posix-functions/getpeername.texi: Mention the new module
80665         'getpeername'.
80666         * doc/posix-functions/getsockname.texi: Mention the new module
80667         'getsockname'.
80668         * doc/posix-functions/getsockopt.texi: Mention the new module
80669         'getsockopt'.
80670         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
80671         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
80672         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
80673         * doc/posix-functions/send.texi: Mention the new module 'send'.
80674         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
80675         * doc/posix-functions/setsockopt.texi: Mention the new module
80676         'setsockopt'.
80677         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
80678         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
80679         listen, connect, accept.
80680         * modules/select-tests (Depends-on): Likewise.
80682 2008-10-05  Bruno Haible  <bruno@clisp.org>
80684         * lib/winsock.c (strerror): Remove unused #undef.
80685         (rpl_close): Remove unused local variable.
80687         * modules/sys_socket (Depends-on); Add errno.
80689 2008-10-05  Bruno Haible  <bruno@clisp.org>
80691         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
80692         (select): Add a link warning when the 'select' module is not used.
80693         * modules/sys_select (Depends-on): Add link-warning.
80694         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
80695         Suggested by Paolo Bonzini.
80697 2008-10-05  Jim Meyering  <meyering@redhat.com>
80699         bootstrap: check for LT_INIT more portably
80700         * build-aux/bootstrap: Avoid using grep -E, since it's not
80701         portable enough.  Suggestion from Bruno Haible.
80703 2008-10-05  Bruno Haible  <bruno@clisp.org>
80705         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
80706         as being fixed by gnulib.
80708 2008-10-05  Bruno Haible  <bruno@clisp.org>
80710         * modules/select-tests: New file, mostly copied from
80711         modules/sys_select-tests.
80712         * tests/test-select.c: New file, mostly copied from
80713         tests/test-sys_select.c.
80714         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
80715         * modules/sys_select-tests (Depends-on): Remove all dependencies.
80716         (Makefile.am): Remove test_sys_select_LDADD.
80718         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
80719         to an undefined symbol, for an error message.
80720         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
80721         (gl_SYS_SELECT_H_DEFAULTS): New macro.
80722         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
80723         winsock-select.c here.
80724         * modules/sys_select (Files): Remove lib/winsock-select.c.
80725         (Depends-on): Remove alloca.
80726         (Makefile.am): Substitute GNULIB_SELECT.
80727         * modules/select: New file.
80728         * doc/posix-functions/select.texi: Update.
80730 2008-10-05  Bruno Haible  <bruno@clisp.org>
80732         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
80733         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
80734         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
80735         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
80736         getdtablesize.
80737         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
80738         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
80740 2008-10-05  Bruno Haible  <bruno@clisp.org>
80742         * modules/getdtablesize-tests: New file.
80743         * tests/test-getdtablesize.c: New file.
80745         New module 'getdtablesize'.
80746         * lib/unistd.in.h (getdtablesize): New declaration.
80747         * lib/getdtablesize.c: New file.
80748         * m4/getdtablesize.m4: New file.
80749         * modules/getdtablesize: New file.
80750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80751         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
80752         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
80753         HAVE_GETDTABLESIZE.
80754         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
80756 2008-10-05  Bruno Haible  <bruno@clisp.org>
80758         * modules/sched (Makefile.am): Fix typo.
80759         Reported by Simon Josefsson.
80761 2008-10-05  Jim Meyering  <meyering@redhat.com>
80763         bootstrap: check for LT_INIT, too
80764         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
80765         are deprecated.  Suggestion from Ralf Wildenhues.
80767 2008-10-05  Bruno Haible  <bruno@clisp.org>
80769         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
80770         overriding them by ours.
80771         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
80773 2008-10-05  Jim Meyering  <meyering@redhat.com>
80775         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
80776         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
80777         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
80779 2008-10-04  Bruno Haible  <bruno@clisp.org>
80781         * modules/dup2 (License): Change to LGPLv2+.
80782         * modules/sleep (License): Likewise.
80783         * modules/perror (License): Likewise.
80784         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
80785         Blake.
80786         * modules/signal (License): Likewise.
80787         * modules/sigprocmask (License): Likewise.
80788         * modules/raise (License): Change to LGPLv2+, with approval by Jim
80789         Meyering.
80791 2008-10-04  Bruno Haible  <bruno@clisp.org>
80793         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
80794         Reported by Rainer Tammer <tammer@tammer.net>.
80796 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
80797             Bruno Haible  <bruno@clisp.org>
80799         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
80800         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
80801         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
80803 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
80805         filevercmp: new module
80806         * lib/filevercmp.h: New function filevercmp comparing version strings.
80807         * lib/filevercmp.c: Implementation of filevercmp function.
80808         * modules/filevercmp: Module metadata.
80809         * tests/test-filevercmp.c: Unit test for new module.
80810         * modules/filevercmp-tests: Unit test metadata.
80811         * MODULES.html.sh: Add filevercmp module.
80813 2008-10-03  Bruno Haible  <bruno@clisp.org>
80815         * lib/c-ctype.h: Add comment.
80816         Reported by Jim Meyering.
80818 2008-10-02  Bruno Haible  <bruno@clisp.org>
80820         * modules/posix_spawn-internal (Depends-on): Add 'open'.
80822 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
80824         * build-aux/bootstrap: Allow renaming bootstrap, and change the
80825         name of bootstrap.conf accordingly.
80827 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
80829         * build-aux/bootstrap: Install git-merge-changelog configuration
80830         items into .gitconfig if needed.
80832 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
80834         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
80835         git repository, and initialize/update it accordingly.
80837 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
80839         * modules/fsync-tests: New file.
80840         * tests/test-fsync.c: New file.
80842         New module 'fsync'.
80843         * lib/fsync.c: New file.
80844         * m4/fsync.m4: New file.
80845         * modules/fsync: New file.
80846         * lib/unistd.in.h (fsync): New declaration.
80847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
80848         GNULIB_FSYNC and HAVE_FSYNC.
80849         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
80850         * MODULES.html.sh (posix_functions): Add fsync.
80851         * doc/posix-functions/fsync.texi: Mention the new module.
80853 2008-10-02  Jim Meyering  <meyering@redhat.com>
80855         fts.c: sync with similar code from coreutils' remove.c
80856         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
80857         Guard also with "#if defined __linux__", since for now at least,
80858         this code is Linux-kernel-specific.
80860 2008-10-02  Jim Meyering  <meyering@redhat.com>
80862         fts: bug fixes
80863         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
80864         Include <sys/vfs.h>, not <sys/statfs.h>.
80866         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
80867         Include <sys/vfs.h>, not <sys/statfs.h>.
80869 2008-10-01  Bruno Haible  <bruno@clisp.org>
80871         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
80872         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
80873         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
80874         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
80875         * doc/posix-functions/posix_spawnp.texi: Likewise.
80876         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
80877         whether posix_spawn actually works.
80878         * m4/pipe.m4 (gl_PIPE): Likewise.
80879         * modules/execute (Files): Add m4/posix_spawn.m4.
80880         * modules/pipe (Files): Add m4/posix_spawn.m4.
80881         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
80883 2008-10-01  Jim Meyering  <meyering@redhat.com>
80885         remove trailing spaces
80886         * NEWS: Likewise.
80887         * lib/poll.c (poll): Likewise.
80888         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
80889         * lib/winsock.c (rpl_close): Likewise.
80890         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
80891         * modules/yield: Likewise.
80892         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
80893         * tests/test-sys_select.c (connect_to_socket): Likewise.
80895         fts.c: adjust a new interface to be more generally useful
80896         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
80897         (fts_build): Adjust caller.
80899 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80901         * modules/cond-tests: New file.
80902         * tests/test-cond.c: New file.
80904 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80905             Bruno Haible  <bruno@clisp.org>
80907         * modules/cond (Dependencies): Add errno, time.
80908         * lib/glthread/cond.h: Include <time.h>.
80909         (gl_cond_define, gl_cond_define_initialized): Use the same definition
80910         across platforms.
80912 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80913             Bruno Haible  <bruno@clisp.org>
80915         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
80917 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80918             Bruno Haible  <bruno@clisp.org>
80920         * modules/tls-tests (Depends-on): Add thread, yield.
80921         (configure.ac): Remove all checks.
80922         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
80923         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
80924         gl_thread_self): Remove definitions. Include glthread/thread.h and
80925         glthread/yield.h instead.
80926         (test_tls): Pass an additional NULL argument to gl_thread_join.
80928 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80929             Bruno Haible  <bruno@clisp.org>
80931         * modules/lock-tests (Depends-on): Add thread, yield.
80932         (configure.ac): Remove all checks.
80933         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
80934         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
80935         gl_thread_self): Remove definitions. Include glthread/thread.h and
80936         glthread/yield.h instead.
80937         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
80938         additional NULL argument to gl_thread_join.
80940 2008-09-30  Bruno Haible  <bruno@clisp.org>
80942         Fix the Win32 implementation of the 'thread' module.
80943         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
80944         pointer type.
80945         (gl_thread_self): Invoke gl_thread_self_func.
80946         (gl_thread_self_func): New declaration.
80947         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
80948         (do_init_self_key, init_self_key): New functions.
80949         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
80950         Remove some fields.
80951         (running_threads, running_lock): Remove variables.
80952         (get_current_thread_handle): New function.
80953         (gl_thread_self_func, wrapper_func, glthread_create_func,
80954         glthread_join_func, gl_thread_exit_func): Largely rewritten and
80955         simplified.
80957 2008-09-30  Bruno Haible  <bruno@clisp.org>
80959         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
80960         files.
80962 2008-09-30  Jim Meyering  <meyering@redhat.com>
80964         fts.m4: correct the test for statfs.f_type
80965         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
80966         when checking for statfs.f_type.
80968 2008-09-15  Simon Josefsson  <simon@josefsson.org>
80970         tests: avoid some compiler warnings
80971         * tests/test-memchr.c (main): Pass NULL indirectly.
80972         * tests/test-getdate.c (main): Remove unused variable 'ret'.
80974 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
80976         getdate.y: disallow countable dayshifts like "4 yesterday ago"
80977         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
80978         exactly specified dayshifts.
80979         (dayshift): New rule.
80980         (rel): Add dayshift.
80981         (relative_time_table) [tomorrow, yesterday, today, now]:
80982         Use tDAY_SHIFT in place of tDAY_UNIT.
80983         * tests/test-getdate.c: Add tests for now-disallowed countable
80984         dayshifts, e.g., "4 yesterday ago".
80986 2008-09-29  Bruno Haible  <bruno@clisp.org>
80988         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
80989         * tests/test-posix_spawn1.in.sh: Renamed from
80990         tests/test-posix_spawn.in.sh.
80991         * tests/test-posix_spawn2.c: New file.
80992         * tests/test-posix_spawn2.in.sh: New file.
80993         * modules/posix_spawnp-tests (Files): Update.
80994         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
80996 2008-09-29  Bruno Haible  <bruno@clisp.org>
80998         Propagate effects of putenv/setenv/unsetenv to child processes.
80999         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
81000         * lib/pipe.c (create_pipe): Likewise.
81002 2008-09-29  Bruno Haible  <bruno@clisp.org>
81004         Enable use of shell scripts as executables in mingw.
81005         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
81006         run the program as a shell script.
81007         * lib/pipe.c (create_pipe): Likewise.
81008         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
81009         resulting array.
81011 2008-09-29  Eric Blake  <ebb9@byu.net>
81013         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
81015 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
81017         * doc/posix-functions/accept.texi: Update mingw problems.
81018         * doc/posix-functions/bind.texi: Update mingw problems.
81019         * doc/posix-functions/close.texi: Update mingw problems.
81020         * doc/posix-functions/connect.texi: Update mingw problems.
81021         * doc/posix-functions/getpeername.texi: Update mingw problems.
81022         * doc/posix-functions/getsockname.texi: Update mingw problems.
81023         * doc/posix-functions/getsockopt.texi: Update mingw problems.
81024         * doc/posix-functions/ioctl.texi: Update mingw problems.
81025         * doc/posix-functions/listen.texi: Update mingw problems.
81026         * doc/posix-functions/recv.texi: Update mingw problems.
81027         * doc/posix-functions/recvfrom.texi: Update mingw problems.
81028         * doc/posix-functions/select.texi: Update mingw problems.
81029         * doc/posix-functions/send.texi: Update mingw problems.
81030         * doc/posix-functions/sendto.texi: Update mingw problems.
81031         * doc/posix-functions/setsockopt.texi: Update mingw problems.
81032         * doc/posix-functions/socket.texi: Update mingw problems.
81034 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
81035             Bruno Haible  <bruno@clisp.org>
81037         * lib/sys_select.in.h: Include sys/time.h.
81038         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
81039         * modules/sys_select: Depend on sys_time.
81040         * tests/test-sys_select.c: Test that sys/select.h defines struct
81041         timeval fully.
81043 2008-09-29  Bruno Haible  <bruno@clisp.org>
81045         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
81046         * lib/sys_select.in.h: Likewise.
81048 2008-09-29  Bruno Haible  <bruno@clisp.org>
81050         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
81052 2008-09-29  Bruno Haible  <bruno@clisp.org>
81054         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
81055         Set LIBSOCKET instead of augmenting LIBS.
81056         * modules/sockets (Link): New section.
81057         * modules/sockets-tests (test_sockets_LDADD): New variable.
81058         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
81059         * modules/poll-tests (test_poll_LDADD): New variable.
81060         * NEWS: Document the change.
81062 2008-09-29  Bruno Haible  <bruno@clisp.org>
81064         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
81065         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
81066         ARPA_INET_H directly.
81067         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
81069 2008-09-28  Bruno Haible  <bruno@clisp.org>
81071         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
81072         from gl_HEADER_SYS_SOCKET.
81073         (gl_HEADER_SYS_SOCKET): Invoke it.
81074         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
81076 2008-09-28  Bruno Haible  <bruno@clisp.org>
81078         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
81079         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
81080         Needed on OSF/1 4.0.
81082 2008-09-28  Bruno Haible  <bruno@clisp.org>
81084         Override open more carefully.
81085         * lib/open.c (orig_open): New function.
81086         (rpl_open): Use orig_open instead of open.
81087         * lib/fcntl.in.h: Add special invocation convention.
81088         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
81089         (gl_FUNC_OPEN): Invoke it.
81091         Override freopen more carefully.
81092         * lib/freopen.c (orig_freopen): New function.
81093         (rpl_freopen): Use orig_freopen instead of freopen.
81094         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
81095         (gl_FUNC_FREOPEN): Invoke it.
81097         Override fopen more carefully.
81098         * lib/fopen.c (orig_fopen): New function.
81099         (rpl_fopen): Use orig_fopen instead of fopen.
81100         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
81101         (gl_FUNC_FOPEN): Invoke it.
81102         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
81104 2008-09-28  Bruno Haible  <bruno@clisp.org>
81106         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
81107         SIGPIPE.
81109 2008-09-28  Bruno Haible  <bruno@clisp.org>
81111         * tests/test-sigaction.c (handler, main): Disable the check whether
81112         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
81113         glibc systems with LinuxThreads.
81115 2008-09-28  Bruno Haible  <bruno@clisp.org>
81117         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
81119         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
81120         with AIX xlc.
81121         * lib/fcntl.in.h (open): Likewise.
81122         Reported by Rainer Tammer <tammer@tammer.net>.
81124 2008-09-28  Bruno Haible  <bruno@clisp.org>
81126         * modules/posix_spawnp-tests: New file.
81127         * tests/test-posix_spawn.c: New file.
81128         * tests/test-posix_spawn.in.sh: New file.
81130         New module 'posix_spawnp'.
81131         * modules/posix_spawnp: New file.
81132         * lib/spawnp.c: New file, from GNU libc with modifications.
81133         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
81135         New module 'posix_spawn'.
81136         * modules/posix_spawn: New file.
81137         * lib/spawn.c: New file, from GNU libc with modifications.
81138         * doc/posix-functions/posix_spawn.texi: Mention the new module.
81140         New module 'posix_spawnattr_destroy'.
81141         * modules/posix_spawnattr_destroy: New file.
81142         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
81143         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
81144         module.
81146         New module 'posix_spawnattr_setsigmask'.
81147         * modules/posix_spawnattr_setsigmask: New file.
81148         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
81149         modifications.
81150         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
81151         new module.
81153         New module 'posix_spawnattr_getsigmask'.
81154         * modules/posix_spawnattr_getsigmask: New file.
81155         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
81156         modifications.
81157         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
81158         new module.
81160         New module 'posix_spawnattr_setsigdefault'.
81161         * modules/posix_spawnattr_setsigdefault: New file.
81162         * lib/spawnattr_setdefault.c: New file, from GNU libc with
81163         modifications.
81164         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
81165         new module.
81167         New module 'posix_spawnattr_getsigdefault'.
81168         * modules/posix_spawnattr_getsigdefault: New file.
81169         * lib/spawnattr_getdefault.c: New file, from GNU libc with
81170         modifications.
81171         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
81172         new module.
81174         New module 'posix_spawnattr_setschedpolicy'.
81175         * modules/posix_spawnattr_setschedpolicy: New file.
81176         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
81177         modifications.
81178         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
81179         new module.
81181         New module 'posix_spawnattr_getschedpolicy'.
81182         * modules/posix_spawnattr_getschedpolicy: New file.
81183         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
81184         modifications.
81185         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
81186         new module.
81188         New module 'posix_spawnattr_setschedparam'.
81189         * modules/posix_spawnattr_setschedparam: New file.
81190         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
81191         modifications.
81192         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
81193         new module.
81195         New module 'posix_spawnattr_getschedparam'.
81196         * modules/posix_spawnattr_getschedparam: New file.
81197         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
81198         modifications.
81199         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
81200         new module.
81202         New module 'posix_spawnattr_setpgroup'.
81203         * modules/posix_spawnattr_setpgroup: New file.
81204         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
81205         modifications.
81206         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
81207         module.
81209         New module 'posix_spawnattr_getpgroup'.
81210         * modules/posix_spawnattr_getpgroup: New file.
81211         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
81212         modifications.
81213         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
81214         module.
81216         New module 'posix_spawnattr_setflags'.
81217         * modules/posix_spawnattr_setflags: New file.
81218         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
81219         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
81220         module.
81222         New module 'posix_spawnattr_getflags'.
81223         * modules/posix_spawnattr_getflags: New file.
81224         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
81225         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
81226         module.
81228         New module 'posix_spawnattr_init'.
81229         * modules/posix_spawnattr_init: New file.
81230         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
81231         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
81232         module.
81234         New module 'posix_spawn_file_actions_destroy'.
81235         * modules/posix_spawn_file_actions_destroy: New file.
81236         * lib/spawn_faction_destroy.c: New file, from GNU libc with
81237         modifications.
81238         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
81239         the new module.
81241         New module 'posix_spawn_file_actions_addopen'.
81242         * modules/posix_spawn_file_actions_addopen: New file.
81243         * lib/spawn_faction_addopen.c: New file, from GNU libc with
81244         modifications.
81245         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
81246         the new module.
81248         New module 'posix_spawn_file_actions_adddup2'.
81249         * modules/posix_spawn_file_actions_adddup2: New file.
81250         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
81251         modifications.
81252         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
81253         the new module.
81255         New module 'posix_spawn_file_actions_addclose'.
81256         * modules/posix_spawn_file_actions_addclose: New file.
81257         * lib/spawn_faction_addclose.c: New file, from GNU libc with
81258         modifications.
81259         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
81260         the new module.
81262         New module 'posix_spawn_file_actions_init'.
81263         * modules/posix_spawn_file_actions_init: New file.
81264         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
81265         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
81266         new module.
81268         New module 'posix_spawn-internal'.
81269         * modules/posix_spawn-internal: New file.
81270         * lib/spawn_int.h: New file, from GNU libc with modifications.
81271         * lib/spawni.c: New file, from GNU libc with modifications.
81272         * m4/posix_spawn.m4: New file.
81274         New module 'spawn'.
81275         * modules/spawn: New file.
81276         * lib/spawn.in.h: New file, from GNU libc with modifications.
81277         * m4/spawn_h.m4: New file.
81278         * doc/posix-headers/spawn.texi: Mention the new module.
81280 2008-09-28  Bruno Haible  <bruno@clisp.org>
81282         * modules/sched-tests: New file.
81283         * tests/test-sched.c: New file.
81285         New module 'sched'.
81286         * modules/sched: New file.
81287         * lib/sched.in.h: New file.
81288         * m4/sched_h.m4: New file.
81289         * doc/posix-headers/sched.texi: Mention the new module.
81291 2008-09-27  Eric Blake  <ebb9@byu.net>
81293         Fix previous patch, and tweak references to $0.
81294         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
81295         (func_version, func_gnulib_dir): Don't call this program
81296         gnulib-tool.
81297         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
81298         with using $0 in function.
81299         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
81300         (func_fatal_error): Reuse the name the user invoked us with.
81302 2008-09-27  Bruno Haible  <bruno@clisp.org>
81304         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
81305         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
81306         (gl_ICONV_H): Not here.
81307         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
81308         instead of assigning ICONV_H directly.
81310         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
81311         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
81312         WCHAR_H directly.
81314 2008-09-27  Bruno Haible  <bruno@clisp.org>
81316         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
81317         * modules/arpa_inet (Depends-on): Add link-warning.
81318         (Makefile.am): Insert the definition of GL_LINK-WARNING.
81319         * modules/unistd (Makefile.am): Likewise.
81321 2008-09-26  Bruno Haible  <bruno@clisp.org>
81323         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
81324         variables.
81325         (func_version): Essentially copied from gnulib-tool.
81326         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
81327         func_readlink): Copied from gnulib-tool.
81329 2008-09-26  Bruno Haible  <bruno@clisp.org>
81331         * gnulib-tool (func_version): Change directory to $gnulib_dir before
81332         invoking git-version-gen.
81334 2008-09-26  Bruno Haible  <bruno@clisp.org>
81336         * posix-modules: Update to directory names changed on 2008-01-19.
81337         Remove commas in output before splitting into words. No more need to
81338         avoid 'ftruncate' since 2007-02-19.
81340 2008-09-26  Bruno Haible  <bruno@clisp.org>
81342         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
81344 2008-09-26  Bruno Haible  <bruno@clisp.org>
81346         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
81347         * modules/fwriteerror (Depends-on): Add errno.
81349 2008-09-26  Bruno Haible  <bruno@clisp.org>
81351         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
81352         * tests/test-vc-list-files-cvs.sh: Likewise.
81354 2008-09-26  Bruno Haible  <bruno@clisp.org>
81356         * doc/posix-headers/sys_resource.texi: Reorder items.
81358 2008-09-26  Jim Meyering  <meyering@redhat.com>
81360         fts: tweak inode comparison function
81361         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
81362         inode numbers, as documented.
81364         fts: sort dirent entries on inode number before traversing
81365         This avoids a quadratic, seek-related performance penalty when
81366         operating on a directory containing many entries (measurable at 10k;
81367         3.5 hours at 2 million entries with a cold cache) on certain types
81368         of file systems, including ext3 and ext4, but not tmpfs.
81369         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
81370         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
81371         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
81372         (fs_handles_readdir_ordered_dirents_efficiently): New function.
81373         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
81374         (fts_build): Set the stat.st_ino member from D_INO.
81375         If it is likely to be useful, sort dirent entries on inode number.
81377         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
81378         and the struct statfs.f_type member.
81379         * modules/fts (Depends-on): Add d-ino.
81381 2008-09-26  Bruno Haible  <bruno@clisp.org>
81383         * modules/sigpipe-die (Depends-on): Add sigpipe.
81385         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
81386         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
81387         and GNULIB_STDIO_H_SIGPIPE are set.
81388         * lib/stdio-write.c: New file.
81389         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
81390         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
81391         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
81392         REPLACE_STDIO_WRITE_FUNCS.
81393         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
81394         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
81395         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
81396         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
81397         * modules/stdio (Files): Add lib/stdio-write.c.
81398         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
81399         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
81400         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
81401         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
81402         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
81403         REPLACE_FPRINTF_POSIX.
81404         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
81405         REPLACE_PRINTF_POSIX.
81406         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
81407         REPLACE_VFPRINTF_POSIX.
81408         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
81409         REPLACE_VPRINTF_POSIX.
81410         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
81411         SIGPIPE issue.
81412         * doc/posix-functions/fputc.texi: Likewise.
81413         * doc/posix-functions/fputs.texi: Likewise.
81414         * doc/posix-functions/fwrite.texi: Likewise.
81415         * doc/posix-functions/printf.texi: Likewise.
81416         * doc/posix-functions/putc.texi: Likewise.
81417         * doc/posix-functions/putchar.texi: Likewise.
81418         * doc/posix-functions/puts.texi: Likewise.
81419         * doc/posix-functions/vfprintf.texi: Likewise.
81420         * doc/posix-functions/vprintf.texi: Likewise.
81422         * modules/safe-write (Depends-on): Add write.
81424         * modules/sigpipe-tests: New file.
81425         * tests/test-sigpipe.c: New file.
81426         * tests/test-sigpipe.sh: New file.
81428         * modules/write: New file.
81429         * lib/unistd.in.h: Include <sys/types.h>.
81430         (write): New declaration.
81431         * lib/write.c: New file.
81432         * m4/write.m4: New file.
81433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81434         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
81435         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
81436         GNULIB_WRITE, REPLACE_WRITE.
81437         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
81438         and the SIGPIPE issue.
81440         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
81441         (raise): New declaration.
81442         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
81443         (ext_signal): New function.
81444         (rpl_raise): New function.
81445         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
81446         GNULIB_SIGNAL_H_SIGPIPE.
81447         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
81448         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
81450         * modules/sigpipe: New file.
81451         * m4/sigpipe.m4: New file.
81453 2008-09-25  Derek Price  <derek@ximbiot.com>
81454             Bruno Haible  <bruno@clisp.org>
81456         * gnulib-tool (func_import): Report all license incompatibilities, not
81457         just the first one.
81459 2008-09-25  Bruno Haible  <bruno@clisp.org>
81461         * gnulib-tool (func_import): When computing the edits, consider not
81462         only the Makefile.ams that exist but also those that will be generated.
81464 2008-09-25  Simon Josefsson  <simon@josefsson.org>
81466         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
81467         fixes gnulib-tool --test warning about duplicate dependency.
81469 2008-09-25  Bruno Haible  <bruno@clisp.org>
81471         * gnulib-tool: Don't ask the user to perform edits in the generated
81472         Makefile.ams.
81473         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
81474         apply to the Makefile.am being generated.
81475         (func_emit_tests_Makefile_am): Execute edits that apply to the
81476         Makefile.am being generated.
81477         (func_import): Setup list of Makefile.am edits before emitting the
81478         Makefile.ams, not at the end.
81479         (func_create_testdir): Update.
81480         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81482 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81484         * gnulib-tool (func_import): Store the --tests-base option in the
81485         comment in gnulib-cache.m4.
81487 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
81489         * NEWS: Document increased portability that sys_select now provides.
81491         * lib/sys_select.in.h: Install select wrapper.
81492         * lib/sys_socket.in.h: Use more descriptive name when there is no
81493         select wrapper.
81494         * lib/winsock-select.c: New.
81495         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
81496         Require gl_HEADER_SYS_SOCKET.
81497         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
81498         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
81499         * tests/test-sys_select.c: Add functional tests.
81501 2008-09-24  Eric Blake  <ebb9@byu.net>
81503         open, fopen: close fd leak in last patch
81504         * lib/open.c (rpl_open): Close fd before returning error.
81505         * lib/fopen.c (rpl_fopen): Close fd before returning error.
81506         * doc/posix-functions/open.texi (open): Document that Irix also
81507         has the bug.
81508         * doc/posix-functions/fopen.texi (fopen): Likewise.
81509         Reported by Paolo Bonzini.
81511 2008-09-24  Bruno Haible  <bruno@clisp.org>
81513         Ensure that a filename ending in a slash cannot be used to access a
81514         non-directory.
81515         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
81516         to check whether it's really a directory.
81517         * lib/fopen.c: Include fcntl.h, unistd.h.
81518         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
81519         and fdopen().
81520         * modules/fopen (Depends-on): Add unistd.
81521         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
81522         * tests/test-fopen.c (main): Likewise.
81523         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
81524         * doc/posix-functions/fopen.texi: Likewise.
81525         Reported by Eric Blake.
81527 2008-09-23  Eric Blake  <ebb9@byu.net>
81529         c-stack: avoid compiler optimizations when provoking overflow
81530         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
81531         recursion harder to optimize, to ensure a stack overflow occurs.
81532         * tests/test-c-stack.c (recurse): Likewise.
81533         Borrowed from libsigsegv.
81535         c-stack: work around Irix sigaltstack bug
81536         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
81537         whether sigaltstack uses wrong end of stack_t (copied in part from
81538         libsigsegv).
81539         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
81540         Irix bug, without requiring an over-allocation.
81541         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
81542         bug.
81544         fopen: document mingw bug on directories
81545         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
81546         not allowing a stream visiting a directory, even though reading
81547         from such a stream is not portable.
81549 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
81551         * lib/poll.c: Rewrite.
81552         * modules/poll: Depend on alloca.
81554 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
81556         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
81557         instead define prototypes for a full set of wrappers.  Ensure
81558         that Cygwin does not use the compatibility code, which is only
81559         for MinGW.
81560         * lib/winsock.c: New.
81561         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
81562         * modules/sys_socket: Add lib/winsock.c.
81564         * modules/poll-tests: Add errno and perror.
81565         * tests/test-poll.c: Use ioctl, not ioctlsocket.
81567 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
81569         * tests/test-poll.c: Downgrade minimum needed Winsock version.
81571 2008-09-23  Bruno Haible  <bruno@clisp.org>
81573         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
81574         * doc/glibc-functions/*: Likewise.
81576 2008-09-23  Simon Josefsson  <simon@josefsson.org>
81578         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
81579         success.
81581 2008-09-22  Eric Blake  <ebb9@byu.net>
81582             Bruno Haible  <bruno@clisp.org>
81584         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
81585         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
81586         supply %A but mishandle pseudo-NaN.
81587         Reported by Simon Josefsson.
81589 2008-09-21  Bruno Haible  <bruno@clisp.org>
81591         * tests/test-lock.c (main): Tweak skip message.
81592         * tests/test-tls.c (main): Likewise.
81594 2008-09-21  Bruno Haible  <bruno@clisp.org>
81596         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
81597         whether 'struct sigaction' has sa_sigaction here...
81598         (gl_PREREQ_SIG_HANDLER_H): ... not here.
81599         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
81601 2008-09-21  Bruno Haible  <bruno@clisp.org>
81603         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
81604         section.
81605         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
81606         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
81607         the new section.
81608         (Support for obsolete systems lacking POSIX:2001): New section.
81609         (String handling <string.h>): Move strdup to the new section.
81610         Suggested by Simon Josefsson and Paolo Bonzini.
81612 2008-09-21  Bruno Haible  <bruno@clisp.org>
81614         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
81615         exponents in %e and %g results on 'long double'. Needed for mingw's
81616         improved *printf functions.
81617         * tests/test-vasprintf-posix.c (test_function): Likewise.
81618         * tests/test-snprintf-posix.h (test_function): Likewise.
81619         * tests/test-sprintf-posix.h (test_function): Likewise.
81620         Reported by Eric Blake.
81622 2008-09-21  Bruno Haible  <bruno@clisp.org>
81624         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
81625         * tests/test-sprintf-posix.h (test_function): Likewise.
81627 2008-09-21  Bruno Haible  <bruno@clisp.org>
81629         * modules/getpass (Depends-on): Add strdup-posix.
81631         New module 'strdup-posix'.
81632         * modules/strdup-posix: New file.
81633         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
81634         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
81635         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81636         REPLACE_STRDUP.
81637         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
81638         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
81639         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81640         strdup-posix.
81642         * modules/strdup (Depends-on): Remove malloc-posix.
81644 2008-09-20  Bruno Haible  <bruno@clisp.org>
81646         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
81647         Wildenhues.
81649 2008-09-20  Bruno Haible  <bruno@clisp.org>
81651         Ensure that wint_t gets defined on IRIX 5.3.
81652         * lib/wchar.in.h (wint_t): Define if not defined by the system.
81653         * lib/wctype.in.h (wint_t): Likewise.
81654         (__wctype_wint_t): Remove type.
81655         (isw*): Use wint_t instead of __wctype_wint_t.
81656         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
81657         * modules/wchar (Files): Add m4/wint_t.m4.
81658         (Makefile.am): Substitute HAVE_WINT_T.
81659         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
81660         * tests/test-wctype.c: Check that wint_t is defined.
81661         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
81662         * doc/posix-headers/wctype.texi: Likewise.
81663         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81665 2008-09-18  Bruno Haible  <bruno@clisp.org>
81667         * gnulib-tool (func_exit): Update comment.
81669 2008-09-18  Simon Josefsson  <simon@josefsson.org>
81671         * modules/getaddrinfo (Depends-on): Remove strdup, this module
81672         assumes strdup exists and does not depend on strdup to return
81673         ENOMEM on out of memory conditions.
81675 2008-09-18  Bruno Haible  <bruno@clisp.org>
81677         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
81678         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
81679         digits for the exponent.
81681 2008-09-18  Jim Meyering  <meyering@redhat.com>
81682             Bruno Haible  <bruno@clisp.org>
81684         * lib/vasnprintf.c (decimal_point_char): Define also if
81685         NEED_PRINTF_INFINITE_LONG_DOUBLE.
81687 2008-09-16  Bruno Haible  <bruno@clisp.org>
81688         and Eric Blake  <ebb9@byu.net>
81690         vasnprintf: support Irix 5.3
81691         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
81692         that mishandle long double infinity.
81693         Reported by Tom G. Christensen.
81695 2008-09-16  Bruno Haible  <bruno@clisp.org>
81697         * doc/glibc-functions/scandir.texi: Mention the function is missing on
81698         Solaris 9.
81699         * doc/glibc-functions/alphasort.texi: Likewise.
81700         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
81702 2008-09-16  Jim Meyering  <meyering@redhat.com>
81704         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
81705         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
81706         a umask modification leak out of a subshell.  Otherwise, the
81707         opensolaris /bin/sh would be accepted and thus cause unwarranted
81708         failures in the coreutils test suite.
81710 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
81712         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
81713         to succeed.
81715 2008-09-16  Jim Meyering  <meyering@redhat.com>
81717         avoid spurious test failure when library is built without ACL support
81718         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
81719         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
81720         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
81721         * tests/test-copy-acl.sh: Likewise.
81723 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81725         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
81726         based on character occurrence counts.
81728 2008-09-15  Eric Blake  <ebb9@byu.net>
81730         tests: avoid some compiler warnings
81731         * tests/test-memchr.c (main): Pass NULL indirectly.
81732         * tests/test-closein.c (main): Avoid unused variable.
81734 2008-09-15  Bruno Haible  <bruno@clisp.org>
81736         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
81737         are missing on OpenBSD 4.0 individually.
81738         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81740 2008-09-15  Bruno Haible  <bruno@clisp.org>
81742         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
81743         * doc/posix-functions/strerror.texi: Mention also Cygwin.
81744         * doc/posix-functions/perror.texi: Likewise.
81745         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
81746         is missing.
81747         Reported by Eric Blake.
81749         * lib/errno.in.h: Use replacement values >= 2000.
81750         Reported by Eric Blake.
81752 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81754         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
81755         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
81756         limit.
81757         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
81758         compareseq was aborted.
81760 2008-09-14  Bruno Haible  <bruno@clisp.org>
81762         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
81763         yvec_edit_count.
81764         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
81765         (fstrcmp_bounded): Simplify result computation accordingly.
81767 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81769         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
81770         (fstrcmp): Define in terms of fstrcmp_bounded.
81771         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
81772         lower_bound argument.
81773         Return quickly if the result is certainly < lower_bound.
81774         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
81776 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81778         * lib/diffseq.h (EARLY_ABORT): New macro.
81779         (compareseq): Change return type to bool. Return true when EARLY_ABORT
81780         evaluates to true.
81782 2008-09-14  Bruno Haible  <bruno@clisp.org>
81784         * modules/perror-tests: New file.
81785         * tests/test-perror.sh: New file.
81786         * tests/test-perror.c: New file.
81788         New module 'perror'.
81789         * lib/stdio.in.h (perror): New declaration.
81790         * lib/perror.c: New file.
81791         * m4/perror.m4: New file.
81792         * modules/perror: New file.
81793         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
81794         * doc/posix-functions/perror.texi: Mention the perror module.
81795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
81796         REPLACE_PERROR.
81797         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
81798         REPLACE_PERROR.
81800 2008-09-14  Bruno Haible  <bruno@clisp.org>
81802         * modules/stdio (Makefile.am): Reorder to match the order in
81803         lib/stdio.in.h.
81804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
81806 2008-09-13  Bruno Haible  <bruno@clisp.org>
81808         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
81810 2008-09-13  Bruno Haible  <bruno@clisp.org>
81812         Extend strerror to cover the added errno values.
81813         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
81814         (rpl_strerror): Provide error messages for the added errno values and
81815         for the WSA* values.
81816         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
81817         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
81818         strerror.
81819         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
81820         * modules/strerror (Depends-on): Add errno.
81821         * doc/posix-functions/strerror.texi: Document the change.
81822         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
81823         and EOVERFLOW.
81825 2008-09-13  Bruno Haible  <bruno@clisp.org>
81827         * modules/EOVERFLOW: Remove file.
81828         * m4/eoverflow.m4: Remove file.
81829         * modules/EOVERFLOW-tests: Remove file.
81830         * tests/test-EOVERFLOW.c: Remove file.
81831         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
81832         * modules/ftell (Depends-on): Likewise.
81833         * modules/getdelim (Depends-on): Likewise.
81834         * modules/getugroups (Depends-on): Likewise.
81835         * modules/poll (Depends-on): Likewise.
81836         * modules/snprintf (Depends-on): Likewise.
81837         * modules/sprintf-posix (Depends-on): Likewise.
81838         * modules/vasnprintf (Depends-on): Likewise.
81839         * modules/vasprintf (Depends-on): Likewise.
81840         * modules/vfprintf-posix (Depends-on): Likewise.
81841         * modules/vsnprintf (Depends-on): Likewise.
81842         * modules/vsprintf-posix (Depends-on): Likewise.
81843         * modules/xvasprintf (Depends-on): Likewise.
81844         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81845         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
81846         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
81847         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
81848         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81849         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
81850         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
81851         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
81852         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81853         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
81854         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
81855         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
81856         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81857         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
81858         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
81859         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
81860         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81861         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
81862         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
81863         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
81864         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81865         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
81866         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
81867         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
81868         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
81869         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81870         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
81871         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
81872         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
81873         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
81874         * MODULES.html.sh: Remove EOVERFLOW.
81875         * NEWS: Mention the change.
81877 2008-09-13  Bruno Haible  <bruno@clisp.org>
81879         * modules/errno-tests: New file.
81880         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
81882         * lib/errno.in.h: New file.
81883         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
81884         * modules/errno: New file.
81885         * doc/posix-headers/errno.texi: Update documentation.
81886         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
81888 2008-09-13  Bruno Haible  <bruno@clisp.org>
81890         * tests/test-poll.c: Use #if for native Windows, rather than testing
81891         __MSVCRT__.
81893 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81894             Bruno Haible  <bruno@clisp.org>
81896         * lib/glob.c: Don't include <pwd.h> on native Windows.
81897         (WINDOWS32): New macro.
81898         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
81900 2008-09-13  Bruno Haible  <bruno@clisp.org>
81902         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
81903         (ETIMEDOUT): Remove macro.
81904         (glthread_cond_timedwait_multithreaded): New declaration.
81905         (glthread_cond_timedwait): Use it.
81906         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
81907         (glthread_cond_timedwait_multithreaded): New function.
81909 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
81911         * modules/poll-tests: Do not check for io.h.
81912         * tests/test-poll.c: Check for __MSVCRT__ instead.
81914 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
81916         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
81917         * modules/poll-tests: Add inet_pton, stdbool, sockets.
81918         * tests/test-poll.c: Use them.  Use _pipe on Windows.
81920 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
81922         * modules/poll-tests: New.
81923         * tests/test-poll.c: New.
81925 2008-09-12  Eric Blake  <ebb9@byu.net>
81927         frexp: test for NetBSD failure on -0.0
81928         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
81929         not all, bugs from NetBSD 3.0 have been fixed.
81930         * doc/posix-functions/frexp.texi (frexp): Document bug.
81931         Reported by Thomas Klausner.
81933         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
81934         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
81935         literal -0.0.
81936         Reported by Jonathan C. Patschke <jp@centtech.com>.
81938 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81940         * lib/glthread/cond.h: Use dummy implementation also if
81941         USE_WIN32_THREADS.
81943 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81945         * modules/fnmatch-posix (License): Change to LGPLv2+.
81946         * modules/fnmatch-gnu (License): Likewise.
81948 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81950         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
81952 2008-09-11  Jim Meyering  <meyering@redhat.com>
81954         * users.txt: Add gtk-vnc.
81956 2008-09-08  Simon Josefsson  <simon@josefsson.org>
81958         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
81959         rotate amounts.
81961         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
81962         required for 16-bit and 8-bit rotates.
81963         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
81964         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
81965         UINT8_MAX instead of hard-coded constants.
81966         Suggested by Paul Eggert.
81968 2008-09-07  Bruno Haible  <bruno@clisp.org>
81970         * tests/test-striconveh.c (main): Check behaviour when converting from
81971         UTF-7.
81973         Make striconveh work better with stateful encodings.
81974         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
81975         that iconv does not increment the inptr when returning -1/EINVAL.
81977 2008-09-07  Bruno Haible  <bruno@clisp.org>
81979         * build-aux/config.rpath: Update according to libtool-2.2.6.
81980         * build-aux/config.libpath: Likewise.
81982 2008-09-06  Bruno Haible  <bruno@clisp.org>
81984         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
81985         * lib/freadptr.c (freadptr): Likewise.
81986         * lib/freadseek.c (freadptrinc): Likewise.
81987         Reported by Simon Josefsson.
81989 2008-09-06  Bruno Haible  <bruno@clisp.org>
81991         * modules/freadptr (License): Change to LGPLv2+.
81992         * modules/freadseek (License): Likewise.
81993         Suggested by Eric Blake.
81995         * modules/memchr2 (License): Change to LGPLv2+.
81996         Approved by Eric Blake.
81998 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81999             Bruno Haible  <bruno@clisp.org>
82001         Make gnulib-tool work with native 'sed' on AIX.
82002         * gnulib-tool (sed_noop): New variable.
82003         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
82004         func_add_or_update, func_create_testdir): Use it to initialize sed
82005         script variables.
82006         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
82008 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
82009             Bruno Haible  <bruno@clisp.org>
82011         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
82012         also works after #include directives.
82014 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
82016         getdate.y: reject an out-of-range timezone value
82017         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
82018         the range [-24...+24].  When specified with only one or two digits,
82019         * tests/test-getdate.c: Tests for the fix.
82020         * doc/getdate.texi: Document this change.
82022 2008-09-03  Bruno Haible  <bruno@clisp.org>
82024         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
82026 2008-09-02  Simon Josefsson  <simon@josefsson.org>
82028         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
82029         <bruce.korb@gmail.com> with ideas from Ben Pfaff
82030         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
82031         Blake <ebb9@byu.net>.
82033         * tests/test-bitrotate.c: Add more test vectors.
82035 2008-09-02  Eric Blake  <ebb9@byu.net>
82037         vasnprintf-posix: handle large precision via %.*d
82038         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
82039         when handling it ourselves.
82040         * tests/test-vasnprintf-posix.c (test_function): Add test.
82041         * tests/test-snprintf-posix.h (test_function): Likewise.
82042         * tests/test-sprintf-posix.h (test_function): Likewise.
82043         * tests/test-vasprintf-posix.c (test_function): Likewise.
82044         Reported by Alain Guibert.
82046 2008-09-01  Eric Blake  <ebb9@byu.net>
82048         c-stack: make configure-time check more robust
82049         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
82050         successful sigaction call.
82051         Reported by Tom G. Christensen.
82053 2008-09-01  Bruno Haible  <bruno@clisp.org>
82055         New module 'findprog-lgpl'.
82056         * modules/findprog-lgpl: New file.
82057         * lib/findprog-lgpl.c: New file.
82058         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
82059         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
82060         to decide whether to use strdup or xstrdup, concatenated_filename or
82061         xconcatenated_filename.
82063 2008-09-01  Bruno Haible  <bruno@clisp.org>
82065         Split module 'concat-filename' into 'concat-filename' (LGPL) and
82066         'xconcat-filename' (GPL).
82067         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
82068         (License): Change to LGPLv2+.
82069         * modules/xconcat-filename: New file.
82070         * lib/concat-filename.h (concatenated_filename): Change specification.
82071         (xconcatenated_filename): New declaration.
82072         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
82073         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
82074         memory situations.
82075         * lib/xconcat-filename.c: New file.
82076         * NEWS: Mention the change.
82077         * lib/findprog.c: Include concat-filename.h, not filename.h.
82078         (find_in_path): Use xconcatenated_filename instead of
82079         concatenated_filename.
82080         * lib/javacomp.c: Include concat-filename.h, not filename.h.
82081         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
82082         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
82083         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
82084         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
82085         instead of concatenated_filename.
82086         * lib/javaexec.c: Include concat-filename.h, not filename.h.
82087         (execute_java_class): Use xconcatenated_filename instead of
82088         concatenated_filename.
82089         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
82090         * modules/javacomp (Depends-on): Likewise.
82091         * modules/javaexec (Depends-on): Likewise.
82093 2008-09-01  Bruno Haible  <bruno@clisp.org>
82095         Split module 'filename' into 'filename' and 'concat-filename'.
82096         * modules/filename: Keep only lib/filename.h.
82097         (License): Change to LGPLv2+.
82098         * modules/concat-filename: New file, extracted from modules/filename.
82099         * lib/filename.h (concatenated_filename): Remove declaration.
82100         * lib/concat-filename.h: New file, extracted from lib/filename.h.
82101         * lib/concat-filename.c: Include concat-filename.h.
82102         * NEWS: Mention the change.
82104 2008-09-01  Simon Josefsson  <simon@josefsson.org>
82106         * lib/bitrotate.h (rotl8, rotr8): Add.
82108         * modules/bitrotate (configure.ac): Need
82109         AC_REQUIRE([AC_C_INLINE]).
82110         (Description): Mention stdint.h.  Reported by Bruno Haible
82111         <bruno@clisp.org>.
82113         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
82114         Paolo Bonzini <bonzini@gnu.org>.
82116 2008-08-31  Bruno Haible  <bruno@clisp.org>
82118         Assume Solaris specific bi-arch conventions on Solaris systems.
82119         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
82120         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
82121         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
82122         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
82123         like acl_libdirstem.
82124         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
82125         acl_libdirstem.
82126         * NEWS: Mention the change.
82127         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
82129 2008-08-31  Jim Meyering  <meyering@redhat.com>
82131         * lib/strftime.h: Add comments describing the two added arguments.
82133         remove duplicate #include directives
82134         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
82135         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
82137 2008-08-31  Bruno Haible  <bruno@clisp.org>
82139         New module 'sigpipe-die'.
82140         * modules/sigpipe-die: New file.
82141         * lib/sigpipe-die.h: New file.
82142         * lib/sigpipe-die.c: New file.
82143         * MODULES.html.sh (Signal handling): Add sigpipe-die.
82145 2008-08-31  Bruno Haible  <bruno@clisp.org>
82147         Don't override previously installed signal handlers.
82148         * lib/fatal-signal.c (saved_sigactions): New variable.
82149         (uninstall_handlers): Reset the signal to the saved handler, not
82150         to SIG_DFL (except when ignored).
82151         (install_handlers): Save the previous handlers.
82153 2008-08-30  Bruno Haible  <bruno@clisp.org>
82155         * gnulib-tool (func_reset_sigpipe): New function.
82156         (func_get_automake_snippet, func_modules_transitive_closure,
82157         func_import): Invoke it before a join command that reads from stdin,
82158         to avoid "echo: write error: Broken pipe" error messages on stderr.
82159         Reported by Sam Steingold <sds@gnu.org>.
82161 2008-08-30  Bruno Haible  <bruno@clisp.org>
82163         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
82164         Code copied from m4/open.m4.
82165         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
82166         access and the filename ends in a slash. Code copied from lib/open.c.
82167         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
82168         * tests/test-fopen.c (main): Check against bug with trailing slash.
82170 2008-08-29  Bruno Haible  <bruno@clisp.org>
82172         Avoid some "gcc -pedantic" warnings.
82173         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
82174         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
82175         * lib/dirent.in.h: Likewise.
82176         * lib/fcntl.in.h: Likewise.
82177         * lib/float.in.h: Likewise.
82178         * lib/iconv.in.h: Likewise.
82179         * lib/inttypes.in.h: Likewise.
82180         * lib/locale.in.h: Likewise.
82181         * lib/math.in.h: Likewise.
82182         * lib/netinet_in.in.h: Likewise.
82183         * lib/search.in.h: Likewise.
82184         * lib/signal.in.h: Likewise.
82185         * lib/stdarg.in.h: Likewise.
82186         * lib/stdint.in.h: Likewise.
82187         * lib/stdio.in.h: Likewise.
82188         * lib/stdlib.in.h: Likewise.
82189         * lib/string.in.h: Likewise.
82190         * lib/strings.in.h: Likewise.
82191         * lib/sys_select.in.h: Likewise.
82192         * lib/sys_socket.in.h: Likewise.
82193         * lib/sys_stat.in.h: Likewise.
82194         * lib/sys_time.in.h: Likewise.
82195         * lib/sysexits.in.h: Likewise.
82196         * lib/time.in.h: Likewise.
82197         * lib/unistd.in.h: Likewise.
82198         * lib/wchar.in.h: Likewise.
82199         * lib/wctype.in.h: Likewise.
82200         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
82201         * modules/fchdir (Makefile.am): Likewise.
82202         * modules/fcntl (Makefile.am): Likewise.
82203         * modules/float (Makefile.am): Likewise.
82204         * modules/iconv_open (Makefile.am): Likewise.
82205         * modules/inttypes (Makefile.am): Likewise.
82206         * modules/locale (Makefile.am): Likewise.
82207         * modules/math (Makefile.am): Likewise.
82208         * modules/netinet_in (Makefile.am): Likewise.
82209         * modules/search (Makefile.am): Likewise.
82210         * modules/signal (Makefile.am): Likewise.
82211         * modules/stdarg (Makefile.am): Likewise.
82212         * modules/stdint (Makefile.am): Likewise.
82213         * modules/stdio (Makefile.am): Likewise.
82214         * modules/stdlib (Makefile.am): Likewise.
82215         * modules/string (Makefile.am): Likewise.
82216         * modules/strings (Makefile.am): Likewise.
82217         * modules/sys_select (Makefile.am): Likewise.
82218         * modules/sys_socket (Makefile.am): Likewise.
82219         * modules/sys_stat (Makefile.am): Likewise.
82220         * modules/sys_time (Makefile.am): Likewise.
82221         * modules/sysexits (Makefile.am): Likewise.
82222         * modules/time (Makefile.am): Likewise.
82223         * modules/unistd (Makefile.am): Likewise.
82224         * modules/wchar (Makefile.am): Likewise.
82225         * modules/wctype (Makefile.am): Likewise.
82226         Reported by Reuben Thomas <rrt@sc3d.org>.
82228 2008-08-29  Bruno Haible  <bruno@clisp.org>
82230         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
82231         any more.
82233 2008-08-29  Simon Josefsson  <simon@josefsson.org>
82235         * MODULES.html.sh (Misc): Add bitrotate.
82237         * modules/bitrotate: New file.
82239         * lib/bitrotate.h: New file.
82241         * modules/bitrotate-tests: New file.
82243         * tests/test-bitrotate.c: New file.
82245         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
82246         on the bitrotate module.
82248         * lib/arctwo.c: Use new bitrotate module.
82250 2008-08-29  Jim Meyering  <meyering@redhat.com>
82252         bootstrap: merge changes from coreutils
82253         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
82254         of copied files.  Remove a kludge, now that this is fixed.
82255         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
82256         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
82257         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
82259 2008-08-29  Bruno Haible  <bruno@clisp.org>
82261         * MODULES.html.sh: Remove --cvs-urls option.
82263 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
82265         maint.mk: adjust to file name change
82266         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
82268 2008-08-28  Jim Meyering  <meyering@redhat.com>
82270         * modules/getndelim2 (License): Relicense to LGPLv2+.
82271         Approved by Richard Stallman for the version of 1995, and by
82272         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
82274 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
82276         * lib/getdelim.c (flockfile, funlockfile): Make all of them
82277         dummy if one is not available.  Do not touch them if
82278         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
82279         (getc_maybe_unlocked): New.
82280         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
82282 2008-08-26  Eric Blake  <ebb9@byu.net>
82284         doc/INSTALL: resync from autoconf
82285         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
82286         (INSTALL_PRELUDE): Delete; this is done more efficiently by
82287         moving...
82288         * install.texi [!autoconf]: ...here.  Resync from autoconf.
82289         * INSTALL: Regenerate.
82290         * INSTALL.ISO: New file.
82291         * INSTALL.UTF-8: Likewise.
82293 2008-08-26  Jim Meyering  <meyering@redhat.com>
82295         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
82296         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
82297         these definitions conditional, so that they may be overridden, too.
82299 2008-08-26  Bruno Haible  <bruno@clisp.org>
82301         Generate INSTALL file variants with prettier quotes.
82302         * doc/Makefile (INSTALL_PRELUDE): New macro.
82303         (INSTALL): Use it.
82304         (INSTALL.ISO, INSTALL.UTF-8): New rules.
82306 2008-08-26  Bruno Haible  <bruno@clisp.org>
82308         Run makeinfo in an English locale.
82309         * doc/Makefile (MAKEINFO): New variable.
82311 2008-08-26  Bruno Haible  <bruno@clisp.org>
82313         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
82314         Suggested by Eric Blake.
82316 2008-08-25  Bruno Haible  <bruno@clisp.org>
82318         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
82320 2008-08-25  Eric Blake  <ebb9@byu.net>
82322         c-stack: test that stack overflow can be caught
82323         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
82324         that platform allows handling stack overflow; at least OS/2 EMX
82325         has sigaltstack, but crashes before transferring control to
82326         handler on stack overflow.
82327         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
82328         check for HAVE_STACK_OVERFLOW_HANDLING.
82329         Reported by Elbert Pol.
82331 2008-08-25  Bruno Haible  <bruno@clisp.org>
82333         * doc/posix-functions/strftime.texi: Fix description of strftime
82334         module.
82336 2008-08-24  Bruno Haible  <bruno@clisp.org>
82338         * tests/uniwidth/test-uc_width2.c: New file.
82339         * tests/uniwidth/test-uc_width2.sh: New file.
82340         * modules/uniwidth/width-tests (Files): Add the new files.
82341         (TESTS): Add uniwidth/test-uc_width2.sh.
82342         (TESTS_ENVIRONMENT): New variable.
82343         (check_PROGRAMS): Add test-uc_width2.
82344         (test_uc_width2_SOURCES): New variable.
82346         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
82347         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
82348         not 0x00AB.
82349         Reported by Alexander V. Lukyanov <lav@netis.ru>.
82351 2008-08-22  Eric Blake  <ebb9@byu.net>
82353         test-lock, test-tls: mention why a test is skipped
82354         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
82355         skipped.
82356         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
82358         count-one-bits: relax license
82359         * modules/count-one-bits (License): Relicense to LGPLv2+.
82360         Suggested by Ludovic Courtès, approved by Ben Pfaff.
82362 2008-08-22  Andreas Schwab  <schwab@suse.de>
82364         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
82365         Remove spurious space in assignment.
82367 2008-08-21  Simon Josefsson  <simon@josefsson.org>
82369         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
82370         Paul Eggert <eggert@CS.UCLA.EDU>.
82372 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
82374         * modules/gettext: Add m4/threadlib.m4.
82376 2008-08-19  Eric Blake  <ebb9@byu.net>
82378         test-c-stack: fix compilation failure on FreeBSD 5.0
82379         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
82380         headers before <sys/resource.h>.
82381         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
82382         the bug.
82383         Reported by Nelson H. F. Beebe.
82385         strverscmp: migrate from "strverscmp.h" to <string.h>
82386         * modules/string (Makefile.am): Add new hooks.
82387         * modules/strverscmp (Files): Remove strverscmp.h.
82388         (Depends-on): Add string.
82389         (configure.ac): Add indicator.
82390         (Include): Mention new header.
82391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
82392         defaults.
82393         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
82394         results.
82395         * lib/strverscmp.h: Delete.
82396         * lib/string.in.h (strverscmp): Provide declaration, when needed.
82397         * tests/test-strverscmp.c (includes): Adjust client.
82398         * lib/check-version.c (includes): Likewise.
82399         * NEWS: Document the change.
82401         strverscmp: add unit test
82402         * modules/strverscmp-tests: New file.
82403         * tests/test-strverscmp.c: Likewise.
82405 2008-08-19  Simon Josefsson  <simon@josefsson.org>
82407         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
82408         regarding Windows crypto stuff, from Mono.
82410 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
82412         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
82413         if present, for intel RND.  Return error on failures.
82415 2008-08-18  Ben Pfaff  <blp@gnu.org>
82417         gitlog-to-changelog: give better diagnostic for failed pipe-open
82418         * build-aux/gitlog-to-changelog: Improve error message: suggest
82419         that the version of Git may be too old.
82421 2008-08-18  Simon Josefsson  <simon@josefsson.org>
82423         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
82424         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
82426 2008-08-18  Bruno Haible  <bruno@clisp.org>
82428         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
82429         pthread_in_use().
82431 2008-08-18  Bruno Haible  <bruno@clisp.org>
82433         * lib/glthread/threadlib.c: Include <pthread.h>.
82435 2008-08-18  Bruno Haible  <bruno@clisp.org>
82437         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
82438         glthread_recursive_lock_* macros.
82439         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
82440         Fix syntax error.
82442 2008-08-18  Bruno Haible  <bruno@clisp.org>
82444         * lib/glthread/thread.c: Avoid forcing a context switch right after
82445         thread creation.
82447 2008-08-17  Bruno Haible  <bruno@clisp.org>
82449         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
82450         * lib/glthread/thread.h: Provide Win32 specific implementation.
82451         * modules/thread (Files): Add lib/glthread/thread.c.
82452         (Depends-on): Add lock.
82453         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
82455 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82457         New module 'yield'.
82458         * modules/yield: New file.
82459         * lib/glthread/yield.h: New file.
82460         * m4/yield.m4: New file.
82461         * MODULES.html.sh (Multithreading): Add yield.
82463 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82465         New module 'thread'.
82466         * modules/thread: New file.
82467         * lib/glthread/thread.h: New file.
82468         * m4/thread.m4: New file.
82469         * MODULES.html.sh (Multithreading): Add thread.
82471 2008-08-17  Bruno Haible  <bruno@clisp.org>
82473         * lib/glthread/lock.h: Include <stdlib.h> always.
82474         * lib/glthread/tls.h: Likewise.
82475         * lib/glthread/cond.h: Likewise.
82477 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82479         New module 'cond'.
82480         * modules/cond: New file.
82481         * lib/glthread/cond.h: New file.
82482         * lib/glthread/cond.c: New file.
82483         * m4/cond.m4: New file.
82484         * MODULES.html.sh (Multithreading): Add cond.
82486 2008-08-16  Eric Blake  <ebb9@byu.net>
82488         c-stack: fix regression on Irix 5.3 from 2008-06-21
82489         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
82490         sa_sigaction...
82491         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
82492         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
82493         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
82494         * modules/signal (Makefile.am): Use the value.
82495         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
82496         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
82497         * doc/posix-headers/signal.texi (signal.h): Document this
82498         portability issue.
82499         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
82500         Reported by Tom G. Christensen.
82502 2008-08-17  Bruno Haible  <bruno@clisp.org>
82504         New module 'threadlib'.
82505         * modules/threadlib: New file.
82506         * lib/glthread/threadlib.c: New file, extracted from
82507         lib/glthread/lock.c.
82508         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
82509         functions.
82510         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
82511         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
82512         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
82513         macros.
82514         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
82515         (gl_DISABLE_THREADS): Remove macro.
82516         * modules/lock (Files): Remove build-aux/config.rpath.
82517         (Depends-on): Remove havelib. Add threadlib.
82518         (configure.ac-early): Remove section.
82519         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
82520         * modules/tls (Depends-on): Remove lock. Add threadlib.
82521         (Link): New section, copied from threadlib.
82522         * MODULES.html.sh (Multithreading): Add threadlib.
82524 2008-08-14  Bruno Haible  <bruno@clisp.org>
82526         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
82527         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
82528         glthread_rwlock_unlock, glthread_rwlock_destroy,
82529         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
82530         glthread_recursive_lock_destroy): Define as macros always.
82531         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
82532         glthread_lock_lock.
82533         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
82534         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
82535         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
82536         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
82537         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
82538         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
82539         (glthread_recursive_lock_lock_func): Renamed from
82540         glthread_recursive_lock_lock.
82541         (glthread_recursive_lock_unlock_func): Renamed from
82542         glthread_recursive_lock_unlock.
82543         (glthread_recursive_lock_destroy_func): Renamed from
82544         glthread_recursive_lock_destroy.
82546 2008-08-14  Bruno Haible  <bruno@clisp.org>
82548         * lib/glthread/lock.h: Renamed from lib/lock.h.
82549         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
82550         * lib/glthread/tls.h: Renamed from lib/tls.h.
82551         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
82552         * lib/fstrcmp.c: Update includes.
82553         * lib/strsignal.c: Update includes.
82554         * modules/lock (Files, Makefile.am): Update.
82555         (Include): Change to "glthread/lock.h".
82556         * modules/tls (Files, Makefile.am): Update.
82557         (Include): Change to "glthread/tls.h".
82558         * tests/test-lock.c: Update includes.
82559         * tests/test-tls.c: Update includes.
82560         * NEWS: Mention the renamed header files.
82562 2008-08-11  Jim Meyering  <meyering@redhat.com>
82564         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
82566 2008-08-11  Eric Blake  <ebb9@byu.net>
82568         test-c-stack: avoid C99-ism
82569         * tests/test-c-stack.c (main): Fix whitespace, move declaration
82570         before statement.
82571         Reported by Alain Guibert.
82573 2008-08-10  Jim Meyering  <meyering@redhat.com>
82575         ensure that return value of uinttostr et al are not ignored
82576         * lib/inttostr.h (__GNUC_PREREQ): Define.
82577         (__attribute_warn_unused_result__): Define.
82578         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
82580 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
82582         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
82583         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
82585 2008-08-07  Jim Meyering  <meyering@redhat.com>
82587         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
82589         * modules/mkstemp (License): Relicense under LGPLv2+.
82590         * modules/tempname (License): Likewise.
82592 2008-08-06  Bruno Haible  <bruno@clisp.org>
82594         * lib/poll.c (poll): Further micro-optimization.
82596 2008-08-06  Jim Meyering  <meyering@redhat.com>
82598         inet_pton.c: use locale-independent tolower
82599         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
82600         (inet_pton6): Use c_tolower rather than tolower.
82601         * modules/inet_pton (Depends-on): Add c-ctype.
82603 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
82605         * lib/poll.c (poll): Avoid division when timeout is 0, cache
82606         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
82608 2008-08-06  Jim Meyering  <meyering@redhat.com>
82610         * modules/inet_pton (License): Relicense under LGPLv2+.
82612 2008-08-03  Bruno Haible  <bruno@clisp.org>
82614         Additional non-aborting API for lock and tls.
82615         * lib/lock.h: Include <errno.h>.
82616         (glthread_lock_init): New macro/function.
82617         (gl_lock_init): Define as wrapper around glthread_lock_init.
82618         (glthread_lock_lock): New macro/function.
82619         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
82620         (glthread_lock_unlock): New macro/function.
82621         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
82622         (glthread_lock_destroy): New macro/function.
82623         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
82624         (glthread_rwlock_init): New macro/function.
82625         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
82626         (glthread_rwlock_rdlock): New macro/function.
82627         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
82628         (glthread_rwlock_wrlock): New macro/function.
82629         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
82630         (glthread_rwlock_unlock): New macro/function.
82631         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
82632         (glthread_rwlock_destroy): New macro/function.
82633         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
82634         (glthread_recursive_lock_init): New macro/function.
82635         (gl_recursive_lock_init): Define as wrapper around
82636         glthread_recursive_lock_init.
82637         (glthread_recursive_lock_lock): New macro/function.
82638         (gl_recursive_lock_lock): Define as wrapper around
82639         glthread_recursive_lock_lock.
82640         (glthread_recursive_lock_unlock): New macro/function.
82641         (gl_recursive_lock_unlock): Define as wrapper around
82642         glthread_recursive_lock_unlock.
82643         (glthread_recursive_lock_destroy): New macro/function.
82644         (gl_recursive_lock_destroy): Define as wrapper around
82645         glthread_recursive_lock_destroy.
82646         (glthread_once): New macro/function.
82647         (gl_once): Define as wrapper around glthread_once.
82648         Update function declarations.
82649         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
82650         glthread_rwlock_init. Return error code.
82651         (glthread_rwlock_rdlock_multithreaded): Renamed from
82652         glthread_rwlock_rdlock. Return error code.
82653         (glthread_rwlock_wrlock_multithreaded): Renamed from
82654         glthread_rwlock_wrlock. Return error code.
82655         (glthread_rwlock_unlock_multithreaded): Renamed from
82656         glthread_rwlock_unlock. Return error code.
82657         (glthread_rwlock_destroy_multithreaded): Renamed from
82658         glthread_rwlock_destroy. Return error code.
82659         (glthread_recursive_lock_init_multithreaded): Renamed from
82660         glthread_recursive_lock_init. Return error code.
82661         (glthread_recursive_lock_lock_multithreaded): Renamed from
82662         glthread_recursive_lock_lock. Return error code.
82663         (glthread_recursive_lock_unlock_multithreaded): Renamed from
82664         glthread_recursive_lock_unlock. Return error code.
82665         (glthread_recursive_lock_destroy_multithreaded): Renamed from
82666         glthread_recursive_lock_destroy. Return error code.
82667         (glthread_once_call): Make static.
82668         (glthread_once_multithreaded): Renamed from glthread_once.
82669         * lib/tls.h: Include <errno.h>.
82670         (glthread_tls_key_init): New macro/function.
82671         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
82672         (glthread_tls_set): New macro/function.
82673         (gl_tls_set): Define as wrapper around glthread_tls_set.
82674         (glthread_tls_key_destroy): New macro/function.
82675         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
82676         Update function declarations.
82677         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
82678         glthread_tls_get.
82679         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82681 2008-08-04  Eric Blake  <ebb9@byu.net>
82683         gnumakefile: use space, not TAB, outside of targets
82684         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
82686 2008-08-02  Jim Meyering  <meyering@redhat.com>
82688         getdate.y: avoid locale-dependent date parsing failure
82689         In Turkish locales, getdate would fail to recognize keywords
82690         containing a lowercase "i".  The solution is not to rely on
82691         locale-sensitive case-conversion.
82692         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
82693         (lookup_word): Use c_toupper in place of toupper.
82694         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
82695         Reported by Vefa Bicakci <bicave@superonline.com> in
82696         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
82697         * modules/getdate (Depends-on): Add c-ctype.
82699 2008-08-02  Bruno Haible  <bruno@clisp.org>
82701         * gnulib-tool (func_import): When updating or creating a .gitignore
82702         file, prepend each added line with a slash, and ignore leading slashes
82703         from the existing lines.
82704         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
82706 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82708         Portability fix for GNU make 3.79.1.
82709         * top/GNUmakefile: Avoid 'else COND', which older GNU make
82710         versions do not understand.
82712 2008-08-01  Bruno Haible  <bruno@clisp.org>
82714         Work around bug of HP-UX 10.20 cc with -0.0 literal.
82715         * tests/test-isnanf.h (zero): New variable.
82716         (main): Avoid literal -0.0f.
82717         * tests/test-isnand.h (zero): New variable.
82718         (main): Avoid literal -0.0.
82719         * tests/test-isnanl.h (zero): New variable.
82720         (main): Avoid literal -0.0L.
82721         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
82722         (test_float, test_double, test_long_double): Avoid literals -0.0f,
82723         -0.0, -0.0L.
82724         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
82725         (test_signbitd): Avoid literal -0.0.
82726         (test_signbitl): Avoid literal -0.0L.
82727         * tests/test-ceilf1.c (zero): New variable.
82728         (main): Avoid literal -0.0f.
82729         * tests/test-ceill.c (zero): New variable.
82730         (main): Avoid literal -0.0L.
82731         * tests/test-floorf1.c (zero): New variable.
82732         (main): Avoid literal -0.0f.
82733         * tests/test-floorl.c (zero): New variable.
82734         (main): Avoid literal -0.0L.
82735         * tests/test-roundf1.c (zero): New variable.
82736         (main): Avoid literal -0.0f.
82737         * tests/test-round1.c (zero): New variable.
82738         (main): Avoid literal -0.0.
82739         * tests/test-roundl.c (zero): New variable.
82740         (main): Avoid literal -0.0L.
82741         * tests/test-truncf1.c (zero): New variable.
82742         (main): Avoid literal -0.0f.
82743         * tests/test-trunc1.c (zero): New variable.
82744         (main): Avoid literal -0.0.
82745         * tests/test-truncl.c (zero): New variable.
82746         (main): Avoid literal -0.0L.
82747         * tests/test-frexp.c (zero): New variable.
82748         (main): Avoid literal -0.0.
82749         * tests/test-frexpl.c (zero): New variable.
82750         (main): Avoid literal -0.0L.
82751         * tests/test-ldexpl.c (zero): New variable.
82752         (main): Avoid literal -0.0L.
82753         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
82754         (zerod, zerol): New variables.
82755         (test_function): Avoid literals -0.0, -0.0L.
82756         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
82757         (zerod, zerol): New variables.
82758         (test_function): Avoid literals -0.0, -0.0L.
82759         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
82760         (zerod, zerol): New variables.
82761         (test_function): Avoid literals -0.0, -0.0L.
82762         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
82763         (zerod, zerol): New variables.
82764         (test_function): Avoid literals -0.0, -0.0L.
82765         * tests/test-strtod.c (zero): New variable.
82766         (main): Avoid literal -0.0.
82767         Reported by Jonathan C. Patschke <jp@centtech.com>.
82769 2008-07-31  Jim Meyering  <meyering@redhat.com>
82771         sha256.h: correct definition of SHA224_DIGEST_SIZE
82772         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
82773         Reported by Paulie Pena IV <paulie4@gmail.com>.
82774         Define as 224 / 8, rather than as a literal.
82775         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
82776         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
82777         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
82779 2008-07-31  Bruno Haible  <bruno@clisp.org>
82781         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
82782         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
82783         Reported by Jonathan Patschke <jp@centtech.com>.
82785 2008-07-31  Bruno Haible  <bruno@clisp.org>
82787         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
82788         Reported by Paolo Bonzini <bonzini@gnu.org>.
82790 2008-07-30  Eric Blake  <ebb9@byu.net>
82792         test-strtod: allow compilation without -lm
82793         * tests/test-strtod.c (main): Avoid link dependence on fabs.
82794         Reported by Dennis Clarke <blastwave@gmail.com>.
82796 2008-07-28  Jim Meyering  <meyering@redhat.com>
82798         bootstrap: work also when there are no .po files in po/
82799         * build-aux/bootstrap (update_po_files): Complete the change
82800         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
82802 2008-07-27  Jim Meyering  <meyering@redhat.com>
82804         * users.txt: Add zile.
82806 2008-07-26  Ben Pfaff  <blp@gnu.org>
82808         Add missing dependencies on new m4/exponent[fdl].m4 files.
82809         * modules/isnanf-nolibm: Add m4/exponentf.m4.
82810         * modules/isnand-nolibm: Add m4/exponentd.m4.
82811         * modules/isnanl-nolibm: Add m4/exponentl.m4.
82812         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
82813         m4/isnan[fdl].m4, because the macros actually used moved.
82814         Reported by Jim Meyering.
82816 2008-07-14  Ben Pfaff  <blp@gnu.org>
82818         Add isinf module.
82819         * lib/isinf.c: New file.
82820         * lib/math.in.h: Define isinf macro if we have decided to replace
82821         it.
82822         * m4/isinf.m4: New file.
82823         * m4/math_h.m4: Initialize and substitute variables for isinf
82824         module.
82825         * modules/isinf: New file.
82826         * modules/isinf-tests: New file.
82827         * modules/math: Add substitutions for new module.
82828         * tests/test-isinf.c: New file.
82829         * doc/posix-functions/isinf.texi: Mention new module.
82830         * MODULES.html.sh: Mention new module.
82832 2008-07-14  Ben Pfaff  <blp@gnu.org>
82834         Factor out some macros for use by additional modules.
82835         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
82836         exponentf.m4.
82837         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
82838         exponentd.m4.
82839         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
82840         file exponentl.m4.
82841         * m4/exponentf.m4: New file.
82842         * m4/exponentd.m4: New file.
82843         * m4/exponentl.m4: New file.
82844         * modules/isnanf: Use new file m4/exponentf.m4.
82845         * modules/isnand: Use new file m4/exponentd.m4.
82846         * modules/isnanl: Use new file m4/exponentl.m4.
82848 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
82850         mktime.c: normalize tp->tm_isdst value to -1/0/1.
82851         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
82852         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
82853         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
82855         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
82856         readlink on platforms without PATH_MAX.
82858 2008-07-21  Eric Blake  <ebb9@byu.net>
82860         Warn, not fail, on stale version.
82861         * top/GNUmakefile (_curr-ver): Tone down previous patch.
82863         Don't allow installation with stale devel version number.
82864         * top/GNUmakefile (_is-install-target): New macro.
82865         (_curr-ver): Forbid installation with stale version number.
82867 2008-07-20  Bruno Haible  <bruno@clisp.org>
82869         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
82870         TESTS_ENVIRONMENT.
82871         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
82873 2008-07-20  Bruno Haible  <bruno@clisp.org>
82875         * lib/c-stack.h (c_stack_action): Add documentation.
82876         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
82878 2008-07-20  Bruno Haible  <bruno@clisp.org>
82880         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
82881         * modules/readlink (License): Likewise.
82883 2008-07-17  Eric Blake  <ebb9@byu.net>
82885         * modules/c-stack (Link): Fix typo.
82887         Make c-stack use libsigsegv, when available.
82888         * modules/c-stack (Depends-on): Add libsigsegv.
82889         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
82890         needed.
82891         * lib/c-stack.c (SIGSTKSZ): Define fallback.
82892         (segv_handler, overflow_handler, c_stack_action)
82893         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
82894         implementation when libsigsegv is available, but only when using
82895         the library is necessary.
82896         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
82897         comment, explaining why XSI check fails on Linux.
82898         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
82899         * tests/test-c-stack2.sh: Tweak skip message.
82900         * NEWS: Document new link-time requirements.
82902 2008-07-16  Eric Blake  <ebb9@byu.net>
82904         c-stack: Expose false positives when not using libsigsegv.
82905         * modules/c-stack-tests (Files): Expand test.
82906         * tests/test-c-stack.c (main): Add means to conditionally trigger
82907         non-overflow SIGSEGV.
82908         * tests/test-c-stack2.sh: New file.
82910 2008-07-14  Bruno Haible  <bruno@clisp.org>
82912         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
82913         Reported by Eric Blake.
82915 2008-07-14  Sam Steingold  <sds@gnu.org>
82916             Bruno Haible  <bruno@clisp.org>
82918         New module libsigsegv.
82919         * modules/libsigsegv: New file.
82920         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
82921         modifications.
82922         * MODULES.html.sh (Signal handling): New section.
82924 2008-07-14  Bruno Haible  <bruno@clisp.org>
82926         * modules/unictype/ctype-* (Description): Add the word "function".
82927         Improves the resulting doc in MODULES.html.
82929 2008-07-12  Ben Pfaff  <blp@gnu.org>
82931         Add longlong module.
82932         * modules/longlong: New file.
82934 2008-07-12  Bruno Haible  <bruno@clisp.org>
82936         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
82937         to empty.
82939 2008-07-10  Ben Pfaff  <blp@gnu.org>
82941         Add isnan module.
82942         * doc/posix-functions/isnan.texi: Mention new module.
82943         * lib/math.in.h: Define isnan macro if we have decided to replace
82944         it.
82945         * m4/isnan.m4: New file.
82946         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
82947         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
82948         also.
82949         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
82950         redundancy.
82951         * m4/math_h.m4: Initialize and substitute variables for isnan
82952         module.
82953         * modules/isnan: New file.
82954         * modules/isnan-tests: New file.
82955         * modules/math: Add substitutions for new module.
82956         * tests/test-isnan.c: New file.
82957         * MODULES.html.sh: Mention new module.
82959 2008-07-10  Ben Pfaff  <blp@gnu.org>
82961         Add isnanf module.
82962         * lib/isnanf.m4: New file.
82963         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
82964         (gl_HAVE_ISNANF_IN_LIBM): New macro.
82965         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
82966         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
82967         * modules/isnanf: New file.
82968         * modules/isnanf-tests: New file.
82969         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
82970         files.
82971         * tests/test-isnanf-nolibm.c: factored most of its contents into
82972         new file tests/test-isnanf.h.
82973         * tests/test-isnanf.h: New file.
82974         * tests/test-isnanf.c: New file.
82975         * MODULES.html.sh: Mention new module.
82976         * doc/glibc-functions/isnanf.texi: Mention new module.
82978 2008-07-10  Ben Pfaff  <blp@gnu.org>
82980         Add isnand module.
82981         * lib/isnand.h: New file.
82982         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
82983         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
82984         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
82985         functionality also.
82986         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
82987         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
82988         (gl_HAVE_ISNAND_IN_LIBM): New macro.
82989         * modules/isnand: New file.
82990         * modules/isnand-tests: New file.
82991         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
82992         files.
82993         * tests/test-isnand-nolibm.c: factored most of its contents into
82994         new file tests/test-isnand.h.
82995         * tests/test-isnand.h: New file.
82996         * tests/test-isnand.c: New file.
82997         * MODULES.html.sh: Mention new module.
82999 2008-07-10  Ben Pfaff  <blp@gnu.org>
83001         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
83002         * lib/isnand.h: Rename lib/isnand-nolibm.h.
83003         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
83004         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
83005         * modules/isnanf-nolibm: Update references to renamed files.
83006         * modules/isnand-nolibm: Likewise.
83007         * modules/isnanf-nolibm-tests: Likewise.
83008         * modules/isnand-nolibm-tests: Likewise.
83009         * lib/frexp.c: Likewise.
83010         * lib/isfinite.c: Likewise.
83011         * lib/signbitd.c: Likewise.
83012         * lib/signbitf.c: Likewise.
83013         * lib/vasnprintf.c: Likewise.
83014         * tests/test-ceilf1.c: Likewise.
83015         * tests/test-ceilf2.c: Likewise.
83016         * tests/test-floorf1.c: Likewise.
83017         * tests/test-floorf2.c: Likewise.
83018         * tests/test-frexp.c: Likewise.
83019         * tests/test-round1.c: Likewise.
83020         * tests/test-round2.c: Likewise.
83021         * tests/test-roundf1.c: Likewise.
83022         * tests/test-strtod.c: Likewise.
83023         * tests/test-trunc1.c: Likewise.
83024         * tests/test-trunc2.c: Likewise.
83025         * tests/test-truncf1.c: Likewise.
83026         * tests/test-truncf2.c: Likewise.
83027         * NEWS: Mention the renamed header files.
83029 2008-07-11  Jim Meyering  <meyering@redhat.com>
83031         vc-list-files: make the last-resort awk code more portable
83032         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
83033         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
83034         does not support it.
83036 2008-07-10  Eric Blake  <ebb9@byu.net>
83038         Work with tar's bootstrap.
83039         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
83040         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
83041         an m4 comment.
83043 2008-07-09  Jim Meyering  <meyering@redhat.com>
83045         posix-shell.m4: fix typo that made this test malfunction
83046         * m4/posix-shell.m4: Remove capitalization in variable name.
83048 2008-07-08  Bruno Haible  <bruno@clisp.org>
83050         * m4/onceonly.m4: Update comments.
83051         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83053 2008-07-04  Jim Meyering  <meyering@redhat.com>
83055         * users.txt: Add vc-dwim.
83056         (bison, coreutils): Use the gitweb URL.
83058 2008-07-03  Jim Meyering  <meyering@redhat.com>
83060         * users.txt: Add libffcall.  From Sam Steingold.
83062 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
83064         getdate.y: do not ignore TZ with relative day, month or year offset
83065         * lib/getdate.y (get_date): Move the tz-handling block to follow the
83066         relative-date-handling, since otherwise, the latter would clobber the
83067         sole output (an updated Start value) of the tz-handling block.
83068         * tests/test-getdate.c: Tests for the fix
83070 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83072         Recognize 'foo_LIBRARIES += libgnu.a'.
83073         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
83074         makefile snippet has already specified an installation location,
83075         also using '+='.
83077 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
83079         getdate.y: factor out common actions
83080         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
83081         Use them in place of open-coded actions.
83083 2008-07-01  Simon Josefsson  <simon@josefsson.org>
83085         Add self-test for getdate module.
83086         * modules/getdate-tests: New file.
83087         * tests/test-getdate.c: New file.
83089 2008-06-29  Bruno Haible  <bruno@clisp.org>
83091         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
83092         .gitignore.
83093         Reported by Sylvain Beucler <beuc@beuc.net>.
83095 2008-06-29  Bruno Haible  <bruno@clisp.org>
83097         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
83098         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
83100 2008-06-29  Bruno Haible  <bruno@clisp.org>
83102         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
83103         EXTRA_DIST.
83104         Reported by Sylvain Beucler <beuc@beuc.net>.
83106 2008-06-26  Jim Meyering  <meyering@redhat.com>
83108         make several modules depend on the "open" module
83109         This provides slightly increased consistency when opening-for-write
83110         the name of a non-directory spelled with a trailing slash.
83111         * modules/chdir-safer: Likewise.
83112         * modules/chown: Likewise.
83113         * modules/clean-temp: Likewise.
83114         * modules/copy-file: Likewise.
83115         * modules/fchdir: Likewise.
83116         * modules/fcntl-safer: Likewise.
83117         * modules/pipe: Likewise.
83118         * modules/utime: Likewise.
83119         Prompted by Eric Blake and Bruno Haible.
83121 2008-06-24  Andreas Schwab  <schwab@suse.de>
83123         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
83124         literals can be used as initializers for global variables.
83126 2008-06-23  Eric Blake  <ebb9@byu.net>
83128         Make gnulib-cache.m4 easier to diff.
83129         * gnulib-tool (func_import): Allow newlines when reading cached
83130         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
83132 2008-06-23  Bruno Haible  <bruno@clisp.org>
83134         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
83135         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
83136         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
83137         m4/signalblocking.m4.
83138         (gl_PREREQ_SIGACTION): Don't invoke it.
83139         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
83140         gl_PREREQ_SIG_HANDLER_H.
83141         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
83142         Don't check for sigaction here.
83144 2008-06-23  Bruno Haible  <bruno@clisp.org>
83146         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
83147         (install_handlers): Don't set the SA_RESETHAND flag.
83149 2008-06-23  Bruno Haible  <bruno@clisp.org>
83151         * m4/sigaction.m4: Comment fixes.
83152         * lib/signal.in.h: Likewise.
83154 2008-06-23  Eric Blake  <ebb9@byu.net>
83156         Fix typo.
83157         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
83159         Avoid SA_ namespace.
83160         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
83161         Reported by Ralf Wildenhues.
83163         Avoid test failure due to SA_RESTORER.
83164         * tests/test-sigaction.c (SA_MASK): New macro.
83165         (main): Avoid failing due to extension flags being set.
83166         Reported by Jim Meyering.
83168         Revert use of sig-handler.h in sigprocmask.c.
83169         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
83170         it requires the existence of struct sigaction.
83171         * lib/sigprocmask.c (handler_t): Restore typedef.
83172         (rpl_signal, old_handlers): Use local type.
83174 2008-06-22  Bruno Haible  <bruno@clisp.org>
83176         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
83177         conditionally.
83178         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83180 2008-06-22  Bruno Haible  <bruno@clisp.org>
83182         * doc/posix-functions/siginterrupt.texi: Move note.
83184         * lib/signal.in.h (SA_RESTART): New macro.
83185         * lib/sigaction.c: Update comment.
83187         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
83189         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
83190         (gl_PREREQ_SIGPROCMASK): Invoke it.
83191         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
83193         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
83195         * lib/sigprocmask.c: Update a comment.
83197 2008-06-21  Eric Blake  <ebb9@byu.net>
83199         Use sigaction module rather than signal().
83200         * modules/c-stack (Depends-on): Add sigaction.
83201         * modules/fatal-signal (Depends-on): Likewise.
83202         * modules/nanosleep (Depends-on): Likewise.
83203         * modules/sigprocmask (Files): Add sig-handler.h.
83204         * modules/sigaction (Files): Likewise.
83205         * lib/sig-handler.h (get_handler): New file, suggested by Paul
83206         Eggert.
83207         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
83208         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
83209         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
83210         (init_fatal_signals): Likewise.
83211         * lib/nanosleep.c (rpl_nanosleep): Likewise.
83212         (siginterrupt): Delete fallback.
83213         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
83214         instead.
83215         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
83216         siginterrupt.
83218         New module sigaction, for mingw.
83219         * modules/sigaction: New module...
83220         * modules/sigaction-tests: ...and its test.
83221         * m4/sigaction.m4: New file.
83222         * lib/sigaction.c: Likewise.
83223         * tests/test-sigaction.c: Likewise.
83224         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
83225         * modules/signal (Makefile.am): Likewise.
83226         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
83227         needed.
83228         * doc/posix-headers/signal.texi (signal.h): Mention provided
83229         types.
83230         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
83231         that sigaction is preferable.
83232         * doc/posix-functions/sigaction.texi (sigaction): Mention new
83233         module.
83234         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83235         sigaction.
83237         Improve robustness of sigprocmask by overriding signal.
83238         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
83239         is in use.
83240         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
83241         (SIGKILL, SIGSTOP): Provide fallbacks.
83242         (rpl_signal): Implement.
83243         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
83244         signal can be called inside handlers.
83246         Fix nanosleep module on mingw.
83247         * modules/nanosleep (Depends-on): Add sys_select.
83248         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
83250         Fix licensing of sigprocmask.
83251         * modules/raise (License): Relicense as LGPL.
83253 2008-06-21  Bruno Haible  <bruno@clisp.org>
83255         * lib/propername.c (proper_name_utf8): Don't use the transliterated
83256         result if it contains question marks.
83257         Reported by Michael Geng <linux@michaelgeng.de>.
83259 2008-06-19  Bruno Haible  <bruno@clisp.org>
83261         Fix CVS-ism.
83262         * doc/gnulib.texi: Include updated-stamp.texi.
83263         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
83264         (updated-stamp.texi): New rule.
83265         (gnulib.info): Depend on it.
83266         * doc/.gitignore: Add updated-stamp.texi.
83267         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
83269 2008-06-19  Bruno Haible  <bruno@clisp.org>
83271         * doc/Makefile (gnulib.info): Update and simplify dependencies.
83272         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
83274 2008-06-19  Eric Blake  <ebb9@byu.net>
83276         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
83277         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
83278         Reported by Stepan Kasal.
83280 2008-06-18  Bruno Haible  <bruno@clisp.org>
83282         * lib/fatal-signal.c (init_fatal_signals): Add comment.
83283         Reported by Eric Blake.
83285 2008-06-18  Eric Blake  <ebb9@byu.net>
83287         Work around cygwin 1.5.25 strsignal bug.
83288         * tests/test-strsignal.c: Allow for const char *.
83289         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
83291 2008-06-18  Simon Josefsson  <simon@josefsson.org>
83293         * users.txt: Update URL to article and add author/date
83294         information.
83296 2008-06-17  Bruno Haible  <bruno@clisp.org>
83298         New macro gl_DISABLE_THREADS.
83299         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
83300         if the user did not pass --enable-threads or --disable-threads option.
83301         (gl_DISABLE_THREADS): New macro.
83302         Reported by Eric Blake <ebb9@byu.net>.
83304 2008-06-17  Bruno Haible  <bruno@clisp.org>
83306         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
83307         when the macro ignores it.
83308         Based on a patch by Eric Blake <ebb9@byu.net>.
83310 2008-06-17  Bruno Haible  <bruno@clisp.org>
83312         * modules/tls (License): Change to LGPLv2+.
83313         Reported by Eric Blake.
83315 2008-06-17  Eric Blake  <ebb9@byu.net>
83317         Simplify c-stack prerequisites.
83318         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
83319         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
83320         no longer requires <ucontext.h> to exist.  Optimize setrlimit
83321         check.
83322         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
83323         <sys/resource.h>.
83325         Move c-stack test into testsuite.
83326         * modules/c-stack-tests: New file.
83327         * lib/c-stack.c [DEBUG]: Move test program...
83328         * tests/test-c-stack.c: ...into this new file.  Skip rather than
83329         fail test if sigaltstack is lacking.
83330         * tests/test-c-stack.sh: New driver file.
83332 2008-06-16  Eric Blake  <ebb9@byu.net>
83334         Use raise module consistently.
83335         * modules/fatal-signal (Depends-on): Add raise.
83336         * modules/sigprocmask (Depends-on): Likewise.
83337         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
83338         * lib/sigprocmask.c (sigprocmask): Likewise.
83339         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
83340         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
83342         Fix compliance bug in sigpending.
83343         * lib/sigprocmask.c (sigpending): Return pending array via
83344         parameter, not return value.
83346 2008-06-14  Eric Blake  <ebb9@byu.net>
83348         Improve obstack-printf test code.
83349         * tests/test-obstack-printf.c (test_function): Fix comment, and
83350         simplify usage of obstack_* in macros.  Add a test for coverage.
83351         Reported by Bruno Haible.
83353 2008-06-14  Bruno Haible  <bruno@clisp.org>
83355         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
83356         array size as a constant, not as a const variable.
83357         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
83358         AC_USE_SYSTEM_EXTENSIONS.
83359         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
83360         Test whether the obstack_printf function actually exists.
83361         * modules/obstack-printf (Depends-on): Add extensions.
83362         (Include): Remove obstack.h.
83363         * modules/obstack-printf-posix (Depends-on): Add extensions.
83364         (Include): Remove obstack.h.
83366 2008-06-13  Eric Blake  <ebb9@byu.net>
83368         Add obstack-printf and obstack-printf-posix modules.
83369         * modules/obstack-printf: New file.
83370         * modules/obstack-printf-posix: Likewise.
83371         * MODULES.html.sh (Misc): Mention them.
83372         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
83373         Likewise.
83374         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
83375         Likewise.
83376         * modules/stdio (Makefile.am): Accomodate new modules.
83377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83378         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
83379         Declare.
83380         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
83381         functions.
83382         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
83383         (gl_REPLACE_OBSTACK_PRINTF): New macros
83384         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
83385         * tests/test-obstack-printf.c: New file.
83386         * modules/obstack-printf-tests: Likewise.
83387         * modules/obstack-printf-posix-tests: Likewise.
83389 2008-06-11  Bruno Haible  <bruno@clisp.org>
83391         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
83392         * lib/open.c: Include errno.h.
83393         (open): Fail when attempting to write to a file that has a trailing
83394         slash.
83395         * tests/test-open.c (main): Test against trailing slash bug.
83396         * doc/posix-functions/open.texi: Mention the trailing slash bug.
83398 2008-06-10  Bruno Haible  <bruno@clisp.org>
83400         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
83401         for $? to work inside the trap command, with various /bin/sh-s.
83402         * tests/test-vc-list-files-cvs.sh: Likewise.
83404 2008-06-10  Bruno Haible  <bruno@clisp.org>
83406         * lib/acl-internal.h: Don't include gettext.h here.
83407         * lib/set-mode-acl.c: Include gettext.h here.
83408         * lib/copy-acl.c: Likewise.
83410 2008-06-10  Bruno Haible  <bruno@clisp.org>
83412         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
83413         * lib/wait-process.c (wait_subprocess): Likewise.
83414         * lib/execute.h (execute): Add termsigp argument.
83415         * lib/execute.c (execute): Likewise.
83416         * lib/csharpcomp.c (compile_csharp_using_pnet,
83417         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
83418         * lib/csharpexec.c (execute_csharp_using_pnet,
83419         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
83420         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
83421         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
83422         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
83423         is_jikes_present): Update.
83424         * lib/javaexec.c (execute_java_class): Update.
83425         * lib/javaversion.c (execute_and_read_line): Update.
83426         * NEWS: Document the changes.
83427         Reported by Eric Blake.
83429 2008-06-10  Eric Blake  <ebb9@byu.net>
83431         Add missing include.
83432         * tests/test-strstr.c (includes): Add <signal.h>.
83433         * tests/test-strcasestr.c (includes): Likewise.
83434         * tests/test-memmem.c (includes): Likewise.
83436 2008-06-10  Bruno Haible  <bruno@clisp.org>
83438         * lib/wait-process.c (wait_subprocess): Add an assertion.
83440 2008-06-10  Bruno Haible  <bruno@clisp.org>
83442         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
83444 2008-06-10  Bruno Haible  <bruno@clisp.org>
83446         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
83447         using alarm().
83448         * tests/test-strcasestr.c (main): Likewise.
83449         * tests/test-strstr.c (main): Likewise.
83451 2008-06-09  Bruno Haible  <bruno@clisp.org>
83453         Work around the Solaris 10 ACE ACLs ABI change.
83454         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
83455         declare if ACL_NO_TRIVIAL is present.
83456         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
83457         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
83458         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
83459         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
83460         define if ACL_NO_TRIVIAL is present.
83461         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
83462         and use the current ABI.
83463         (file_has_acl): Use same #if condition as elsewhere.
83464         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
83465         in use, and use the current ABI.
83466         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
83467         Reported by Jim Meyering.
83469 2008-06-09  Eric Blake  <ebb9@byu.net>
83471         Work around environments that (stupidly) ignore SIGALRM.
83472         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
83473         before using alarm().
83474         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
83475         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
83476         Reported by Ian Beckwith <ianb@erislabs.net>.
83478         Produce autobuild blurb earlier in log.
83479         * modules/autobuild (configure.ac-early): Move AB_INIT here.
83481 2008-06-09  Jim Meyering  <meyering@redhat.com>
83482         and Ondřej Vašík  <ovasik@redhat.com>
83484         utimens.c: correct kernel bug work-around
83485         Ondřej Vašík found that the invalid return value of 280 indicates
83486         failure, not success, and the kernel bug we're trying to work
83487         around affects not just the utimensat call, but also the fallback
83488         futimens call.
83489         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
83490         not success.
83491         [HAVE_FUTIMENS]: Use the same work-around, here.
83493 2008-06-09  Jim Meyering  <meyering@redhat.com>
83495         add more guards around definition of ACE_-related code
83496         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
83497         ALLOW and ACE_OWNER are also defined.
83499 2008-06-08  Bruno Haible  <bruno@clisp.org>
83501         * lib/acl-internal.h: Add me as co-author.
83502         * lib/file-has-acl.c: Likewise.
83503         * lib/set-mode-acl.c: Likewise.
83504         * lib/copy-acl.c: Likewise.
83506 2008-06-08  Bruno Haible  <bruno@clisp.org>
83508         Add support for AIX ACLs.
83509         * lib/acl-internal.h (acl_nontrivial): New declaration.
83510         * lib/file-has-acl.c (acl_nontrivial): New function.
83511         (file_has_acl): Add implementation using AIX 4 ACL API.
83512         * lib/set-mode-acl.c (qset_acl): Likewise.
83513         * lib/copy-acl.c (qcopy_acl): Likewise.
83515 2008-06-08  Bruno Haible  <bruno@clisp.org>
83517         Add support for HP-UX ACLs.
83518         * lib/acl-internal.h (acl_nontrivial): New declaration.
83519         * lib/file-has-acl.c (acl_nontrivial): New function.
83520         (file_has_acl): Add implementation using HP-UX 11 ACL API.
83521         * lib/set-mode-acl.c (qset_acl): Likewise.
83522         * lib/copy-acl.c (qcopy_acl): Likewise.
83524 2008-06-08  Bruno Haible  <bruno@clisp.org>
83526         Add support for Cygwin ACLs.
83527         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
83528         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
83529         the chmod_or_fchmod call.
83530         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
83532 2008-06-08  Bruno Haible  <bruno@clisp.org>
83534         Fix bug with setuid modes in Solaris 10+ code.
83535         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
83536         succeeded, when the mode contains some special bits.
83538 2008-06-08  Bruno Haible  <bruno@clisp.org>
83540         Add support for Solaris 7..10 ACLs.
83541         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
83542         declarations.
83543         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
83544         functions.
83545         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
83546         * lib/set-mode-acl.c (qset_acl): Likewise.
83547         * lib/copy-acl.c (qcopy_acl): Likewise.
83549 2008-06-08  Bruno Haible  <bruno@clisp.org>
83551         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
83552         declaration.
83553         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
83554         (acl_access_nontrivial): Remove MacOS X case.
83555         (file_has_acl): Use acl_extended_nontrivial.
83556         * lib/copy-acl.c (qcopy_acl): Likewise.
83558 2008-06-08  Bruno Haible  <bruno@clisp.org>
83560         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
83562 2008-06-08  Jim Meyering  <meyering@redhat.com>
83564         * modules/acl (Maintainer): Add Bruno Haible.
83566 2008-06-07  Bruno Haible  <bruno@clisp.org>
83568         Improve support for Tru64 ACLs.
83569         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
83570         ACL on OSF/1.
83572 2008-06-07  Bruno Haible  <bruno@clisp.org>
83574         Add support for MacOS X ACLs.
83575         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
83576         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
83577         * lib/set-mode-acl.c (qset_acl): Likewise.
83578         * lib/copy-acl.c (qcopy_acl): Likewise.
83580 2008-06-07  Bruno Haible  <bruno@clisp.org>
83582         Fix memory leak introduced on 2008-05-22.
83583         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
83584         use.
83586 2008-06-07  Bruno Haible  <bruno@clisp.org>
83588         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
83589         to construct an empty ACL.
83591 2008-06-07  Bruno Haible  <bruno@clisp.org>
83593         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
83594         precisely.
83595         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
83597 2008-06-07  Bruno Haible  <bruno@clisp.org>
83599         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
83600         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
83602 2008-06-07  Bruno Haible  <bruno@clisp.org>
83604         * doc/posix-functions/_setjmp.texi: Explain the use of this function
83605         regardless of POSIX.
83606         * doc/posix-functions/_longjmp.texi: Likewise.
83607         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
83608         SystemV platform in this case.
83610 2008-06-06  Eric Blake  <ebb9@byu.net>
83612         Document abort() bugs.
83613         * doc/posix-functions/abort.texi (abort): Mention anomalies.
83615         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
83616         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
83617         sigsetjmp.
83618         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
83619         siglongjmp, but only as a macro.
83620         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
83621         is obsolete.
83622         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
83624         Tweak documentation to cover cygwin argz bugs.
83625         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
83626         argz bug fix; no code change needed since no cygwin releases
83627         occurred between the last fix and the bug being tested.
83628         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
83629         module and recently fixed cygwin bugs.
83630         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
83631         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
83632         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
83633         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
83634         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
83635         Likewise.
83636         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
83637         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
83638         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
83639         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
83640         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
83641         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
83642         Likewise.
83644         Avoid gcc warning on cygwin.
83645         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
83646         !ACL_NO_TRIVIAL]: Avoid unused variable.
83648 2008-06-05  Eric Blake  <ebb9@byu.net>
83650         Be tolerant of UNKNOWN version in gnulib-tool test dir.
83651         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
83652         git-version-gen fails to come up with a version.
83653         Reported by Simon Josefsson.
83655 2008-06-05  Jim Meyering  <meyering@redhat.com>
83656             Paul Eggert  <eggert@cs.ucla.edu>
83658         utimens.c: work around a probable Linux kernel bug
83659         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
83660         appears to be a kernel bug that causes utimensat to return 280
83661         instead of 0, indicating success.
83663 2008-06-04  Bruno Haible  <bruno@clisp.org>
83665         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
83666         2008-06-01 commit.
83668 2008-06-04  Bruno Haible  <bruno@clisp.org>
83670         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
83671         * lib/file-has-acl.c (acl_access_nontrivial): New function.
83672         (file_has_acl): Use it. Save errno afterwards.
83673         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
83675 2008-06-03  Bruno Haible  <bruno@clisp.org>
83677         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
83678         draft code. Simplify #ifs.
83679         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
83680         Put Solaris code after POSIX-draft code. Fix comments regarding
83681         Solaris 10, HP-UX. Mention Cygwin.
83682         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
83684 2008-06-03  Eric Blake  <ebb9@byu.net>
83686         Provide fallback for older kernels.
83687         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
83688         Provide runtime fallback if kernel lacks support.
83689         Reported by Mike Frysinger.
83691 2008-06-02  Bruno Haible  <bruno@clisp.org>
83693         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
83694         it exists.
83696 2008-06-02  Bruno Haible  <bruno@clisp.org>
83698         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
83699         * lib/copy-acl.c (qcopy_acl): Update comment.
83701 2008-06-02  Bruno Haible  <bruno@clisp.org>
83703         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
83704         like ACL APIs.
83706 2008-06-02  Bruno Haible  <bruno@clisp.org>
83708         * tests/test-file-has-acl.sh: Use different code for Cygwin.
83709         * tests/test-set-mode-acl.sh: Likewise.
83710         * tests/test-copy-acl.sh: Likewise.
83711         * tests/test-copy-file.sh: Likewise.
83713 2008-06-02  Bruno Haible  <bruno@clisp.org>
83715         * tests/test-file-has-acl.sh: Remove unused code.
83717 2008-06-01  Bruno Haible  <bruno@clisp.org>
83719         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
83720         (copy_acl): Just a wrapper around qcopy_acl that emits the error
83721         messages.
83722         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
83724 2008-06-01  Bruno Haible  <bruno@clisp.org>
83726         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
83727         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
83728         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
83729         APIs.
83730         * modules/acl-tests (configure.ac): Remove tests now contained in
83731         m4/acl.m4.
83733 2008-06-02  Jim Meyering  <meyering@redhat.com>
83735         announce-gen: use a better key-server host name
83736         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
83737         it may be more consistently reliable.  Suggested by Werner Koch
83738         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
83740 2008-06-01  Bruno Haible  <bruno@clisp.org>
83742         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
83743         Reported by Voroskoi Andras <voroskoi@gmail.com>.
83745 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
83747         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
83749 2008-06-01  Bruno Haible  <bruno@clisp.org>
83751         New ACL tests.
83752         * tests/test-file-has-acl.sh: New file.
83753         * tests/test-file-has-acl.c: New file.
83754         * tests/test-set-mode-acl.sh: New file.
83755         * tests/test-set-mode-acl.c: New file.
83756         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
83757         * tests/test-copy-acl.c: New file.
83758         * modules/acl-tests: New file, based on modules/copy-file-tests.
83759         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
83760         (Depends-on): Add acl-tests.
83761         (configure.ac): Remove checks.
83762         (Makefile.am): Don't create test-sameacls program here any more.
83764 2008-06-01  Bruno Haible  <bruno@clisp.org>
83766         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
83767         * tests/test-sameacls.c: Include progname.h.
83768         (main): Invoke set_program_name. Portability fixes for MacOS X,
83769         Solaris, HP-UX.
83771 2008-06-01  Bruno Haible  <bruno@clisp.org>
83773         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
83774         function.
83775         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
83777 2008-06-01  Bruno Haible  <bruno@clisp.org>
83779         * modules/rpmatch (Depends-on): Add strdup.
83781 2008-06-01  Bruno Haible  <bruno@clisp.org>
83783         * lib/pipe.c: Include unistd-safer.h.
83784         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
83785         * modules/pipe (Depends-on): Add unistd-safer.
83787 2008-05-30  Simon Josefsson  <simon@josefsson.org>
83789         * modules/autobuild (configure.ac): Call AB_INIT.
83791 2008-05-30  Simon Josefsson  <simon@josefsson.org>
83793         * tests/test-getaddrinfo.c: Don't print debug messages by default.
83794         Suggested by Bruno Haible <bruno@clisp.org>.
83796 2008-05-30  Simon Josefsson  <simon@josefsson.org>
83798         * tests/test-base64.c: Cast size_t to unsigned long when invoking
83799         printf.  Use %lu instead of %d.  Reported by Bruno Haible
83800         <bruno@clisp.org>.
83802 2008-05-29  Eric Blake  <ebb9@byu.net>
83804         Prefer new POSIX 200x interfaces over futimesat.
83805         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
83806         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
83807         when available.
83808         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
83810 2008-05-28  Bruno Haible  <bruno@clisp.org>
83812         * modules/stpcpy (License): Change to LGPLv2+.
83813         Requested by David Lutterkort <dlutter@redhat.com>.
83815 2008-05-27  Bruno Haible  <bruno@clisp.org>
83817         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
83818         current mingw.
83819         Reported by Jose E. Marchesi <jemarch@gnu.org>.
83821 2008-05-27  Bruno Haible  <bruno@clisp.org>
83823         * modules/iconv_open (Link): New section, from module 'iconv'.
83824         * modules/striconv (Link): Likewise.
83825         * modules/striconveh (Link): Likewise.
83826         * modules/xstriconv (Link): Likewise.
83827         * modules/unicodeio (Link): Likewise.
83828         * modules/propername (Link): Likewise.
83829         Reported by Jim Meyering.
83831 2008-05-26  Jim Meyering  <meyering@redhat.com>
83833         sha256: do not artificially restrict buffer length to be < 2^32
83834         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
83835         uint32_t to size_t.
83836         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
83837         to match.
83839         avoid unaligned access errors, e.g., on sparc
83840         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
83841         direct access through a possibly-unaligned uint64* pointer.
83842         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
83843         direct access through a possibly-unaligned uint32* pointer.
83844         Prompted by this patch from Tom "spot" Callaway:
83845         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
83847         sha512.c: fix typo in comment
83848         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
83850 2008-05-25  Bruno Haible  <bruno@clisp.org>
83852         * lib/set-mode-acl.c: Renamed from lib/acl.c.
83853         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
83854         (Makefile.am): Update lib_SOURCES.
83856 2008-05-25  Bruno Haible  <bruno@clisp.org>
83858         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
83860 2008-05-25  Jim Meyering  <meyering@redhat.com>
83862         useless-if-before-free: freed expr may have white-space differences
83863         * build-aux/useless-if-before-free: Recognize cases in which the
83864         freed expression differs from the tested one in embedded white
83865         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
83866         $1 was used, so we can't make any regexp shy.  Improved tests now
83867         detect this.
83869         useless-if-before-free: accept white space in the expression.
83870         * build-aux/useless-if-before-free: For now, any white space
83871         in the expression must be identical in the free argument.
83873         useless-if-before-free: efficiency tweak
83874         * build-aux/useless-if-before-free: Make the expression-matching
83875         regexp "shy".
83876         Make the *outer* regexp shy, not the expr-matching one.
83878         update code-in-comment to accept cast of free arg
83879         * build-aux/useless-if-before-free: Update regexp.
83881 2008-05-25  Bruno Haible  <bruno@clisp.org>
83883         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
83884         * modules/copy-file-tests (Files, Makefile.am): Update.
83885         * tests/test-copy-file.c (func_test_copy): Update.
83887 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
83889         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
83891 2008-05-23  Bruno Haible  <bruno@clisp.org>
83893         Improve support for ACLs on OSF/1.
83894         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
83895         Remove fallback for unknown flavors of ACLs.
83897 2008-05-22  Bruno Haible  <bruno@clisp.org>
83899         Add support for ACLs on OSF/1.
83900         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
83901         replacements.
83902         (acl_free_text): New macro fallback.
83903         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
83904         acl_free.
83905         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
83906         acl_free_text function. Require AC_C_INLINE.
83908 2008-05-22  Bruno Haible  <bruno@clisp.org>
83910         Make copy_acl work on MacOS X 10.5.
83911         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
83912         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
83913         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
83914         If MODE_INSIDE_ACL, don't assume that every system has the same text
83915         representation for ACLs as FreeBSD.
83916         * lib/copy-acl.c (copy_acl): Add support for platforms with
83917         !MODE_INSIDE_ACL.
83918         * lib/file-has-acl.c (file_has_acl): Likewise.
83919         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
83920         FreeBSD, MacOS X, or IRIX, respectively.
83922 2008-05-22  Bruno Haible  <bruno@clisp.org>
83924         * lib/acl.h: Don't include <sys/acl.h>.
83925         (GETACLCNT): Move fallback to lib/acl-internal.h.
83926         * lib/acl-internal.h: Include <sys/acl.h> here.
83927         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
83929 2008-05-22  Bruno Haible  <bruno@clisp.org>
83931         Split off copy_acl function to separate file.
83932         * lib/copy-acl.c: New file, extracted from lib/acl.c.
83933         * lib/acl.c (copy_acl): Moved function to separate file.
83934         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
83935         * modules/acl (Files): Add lib/copy-acl.c.
83936         (Makefiles.am): Augment lib_SOURCES.
83938 2008-05-22  Bruno Haible  <bruno@clisp.org>
83940         * modules/copy-file-tests: New file.
83941         * tests/test-copy-file.sh: New file.
83942         * tests/test-copy-file.c: New file.
83943         * tests/test-copy-file-sameacls.c: New file.
83945 2008-05-22  Eric Blake  <ebb9@byu.net>
83947         Avoid gcc warning.
83948         * tests/test-memcmp.c (main): Pass NULL indirectly.
83950 2008-05-21  Bruno Haible  <bruno@clisp.org>
83952         Add reference doc about ACLs.
83953         * doc/acl-resources.txt: New file.
83954         * doc/acl-cygwin.txt: New file.
83956 2008-05-21  Bruno Haible  <bruno@clisp.org>
83958         Avoid one more warning from gcc.
83959         * lib/vasnprintf.c (IF_LINT): Update comments.
83960         (VASNPRINTF): Use it also for the 'prefix' array initializer.
83962 2008-05-21  Jim Meyering  <meyering@redhat.com>
83964         avoid a warning from gcc
83965         * lib/vasnprintf.c (IF_LINT): Define.
83966         (scale10_round_decimal_long_double):
83967         Use it to avoid a "may be used uninitialized" warning.
83968         (scale10_round_decimal_double): Likewise.
83970 2008-05-21  Simon Josefsson  <simon@josefsson.org>
83972         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
83973         declared.
83975 2008-05-20  Bruno Haible  <bruno@clisp.org>
83977         * tests/test-memcmp.c (main): Test also the sign of the result. Test
83978         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
83980 2008-05-20  Simon Josefsson  <simon@josefsson.org>
83982         * modules/memcmp-tests: New file.
83983         * tests/test-memcmp.c: New file.
83985 2008-05-19  Bruno Haible  <bruno@clisp.org>
83987         * modules/propername (Notice, configure.ac): Put quoted "..." into
83988         --keyword option.
83989         * lib/propername.h: Update comments accordingly.
83990         Reported by Eric Blake.
83992 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
83994         * modules/getpass-gnu (Depends-on): Add fseeko.
83996 2008-05-19  Simon Josefsson  <simon@josefsson.org>
83998         * modules/base64-tests: New file.
84000 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
84002         * lib/base64.c (base64_decode_ctx): If a decode context structure
84003         was passed in use it to ignore newlines.  If a context structure
84004         was _not_ passed in, continue to treat newlines as garbage (this
84005         is the historical behavior).  Formerly base64_decode.
84006         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
84007         takes a decode context structure.
84008         * lib/base64.h (base64_decode): Macro for four-argument calls.
84009         (base64_decode_alloc): Likewise.
84010         * lib/base64.c (base64_decode_ctx): If a decode context structure
84011         was passed in use it to ignore newlines.  If a context structure
84012         was _not_ passed in, continue to treat newlines as garbage (this
84013         is the historical behavior).  Formerly base64_decode.
84014         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
84015         takes a decode context structure.
84016         * lib/base64.h (base64_decode): Macro for four-argument calls.
84017         (base64_decode_alloc): Likewise.
84019 2008-05-19  Jim Meyering  <meyering@redhat.com>
84021         avoid a warning from gcc
84022         * lib/trim.c (IF_LINT): Define.
84023         (trim2): Use it to avoid a "may be used uninitialized" warning.
84025         Fix doc typo.
84026         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
84028 2008-05-19  Bruno Haible  <bruno@clisp.org>
84030         * doc/glibc-functions/getpass.texi: Document limits of other
84031         implementations.
84033 2008-05-19  Simon Josefsson  <simon@josefsson.org>
84034             Bruno Haible <bruno@clisp.org>
84036         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
84038 2008-05-18  Bruno Haible  <bruno@clisp.org>
84040         * modules/propername: New file, from GNU gettext.
84041         * lib/propername.h: New file, from GNU gettext.
84042         * lib/propername.c: New file, from GNU gettext.
84043         * MODULES.html.sh (Internationalization functions): Add propername.
84045 2008-05-16  Jim Meyering  <meyering@redhat.com>
84046             Bruno Haible  <bruno@clisp.org>
84048         Avoid some warnings from "gcc -Wshadow".
84049         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
84051 2008-05-15  Eric Blake  <ebb9@byu.net>
84053         Extend previous patch to cygwin 1.7.0.
84054         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
84055         fast implementation in cygwin >= 1.7.0.
84056         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
84057         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
84059 2008-05-15  Bruno Haible  <bruno@clisp.org>
84061         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
84062         implementation in glibc >= 2.9.
84063         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
84064         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
84066 2008-05-15  Bruno Haible  <bruno@clisp.org>
84068         * MODULES.html.sh (Internationalization functions): Remove linebreak.
84069         (Unicode string functions): Add unilbrk/*.
84070         Reported by Karl Berry.
84072 2008-05-15  Eric Blake  <ebb9@byu.net>
84074         Fix violation of <stdbool.h> replacement in regex.
84075         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
84076         * lib/regexec.c (re_search_internal): Likewise.
84077         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
84079 2008-05-15  Jim Meyering  <meyering@redhat.com>
84081         avoid distracting test output when git or cvs is not found
84082         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
84083         * tests/test-vc-list-files-git.sh: Likewise.
84085 2008-05-15  Eric Blake  <ebb9@byu.net>
84087         Glibc finally accepted the memmem speedup code, bugzilla #5514.
84088         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
84089         glibc version.
84090         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
84091         * doc/posix-functions/strstr.texi (strstr): Likewise.
84092         * lib/str-two-way.h (MAX): Sychronize with glibc.
84094 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
84096         * lib/regcomp.c (optimize_utf8): Add a note on why we test
84097         opr.ctx_type.
84098         (calc_first): Initialize constraint field.
84099         (duplicate_node_closure): Use it instead of special casing ANCHORS.
84100         Fix grammar.
84101         (duplicate_node): Merge constraint field for all node types.
84102         (calc_eclosure_iter): Look at constraint field for all node types.
84103         * lib/regex_internal.c (create_cd_newstate): Don't look at
84104         opr.ctx_type.
84106 2008-05-14  Bruno Haible  <bruno@clisp.org>
84108         Help GCC to do better code generation.
84109         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
84110         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
84111         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
84112         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
84113         Declare with attribute 'malloc' if supported.
84115 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
84117         use "echo STR|wc -c" rather than unportable "expr length STR"
84118         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
84119         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
84121 2008-05-14  Jim Meyering  <meyering@redhat.com>
84123         use dd ibs=$n count=1 ... rather than less-portable head -c$n
84124         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
84125         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
84126         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
84127         via Collin Lasse.
84129 2008-05-14  Eric Blake  <ebb9@byu.net>
84131         Avoid quadratic growth in gl_LIBSOURCES.
84132         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
84133         Suggested by Bruno Haible.
84135         Test xmemdup0.
84136         * modules/xmemdup0-tests: New file.
84137         * tests/test-xmemdup0.c: Likewise.
84139 2008-05-13  Eric Blake  <ebb9@byu.net>
84141         Split xmemdup0 into its own module.
84142         * modules/xmemdup0: New file.
84143         * lib/xmemdup0.h: Likewise.
84144         * lib/xmemdup0.c: Likewise.
84145         * MODULES.html.sh (Memory management functions): Add xmemdup0.
84146         * lib/xalloc.h (xmemdup0): Remove.
84147         * lib/xmalloc.c (xmemdup0): Likewise.
84149 2008-05-13  Eric Blake  <ebb9@byu.net>
84150             Bruno Haible  <bruno@clisp.org>
84152         Reduce number of forks required during autoconf.
84153         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
84154         and gl_LIBSOURCES_DIR.
84155         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
84156         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
84157         m4_syscmd per file.
84158         <m4_foreach_w>: Move...
84159         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
84161 2008-05-13  Eric Blake  <ebb9@byu.net>
84163         * gnulib-tool: Fix various comment typos.
84165 2008-05-12  Bruno Haible  <bruno@clisp.org>
84167         Tailor the linebreaking algorithm.
84168         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
84170 2008-05-12  Bruno Haible  <bruno@clisp.org>
84172         Update to Unicode 5.0.0.
84173         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
84174         LBP_JV, LBP_JT. Redistribute values.
84175         (unilbrk_table): Change size.
84176         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
84177         Unicode TR#14 rev. 22.
84178         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
84179         LBP_JV, LBP_JT. Redistribute values.
84180         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
84181         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
84182         Update.
84183         * lib/unilbrk/lbrkprop1.h: Regenerated.
84184         * lib/unilbrk/lbrkprop2.h: Regenerated.
84185         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
84186         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
84187         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
84188         Likewise.
84189         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
84190         Likewise.
84191         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
84192         result.
84193         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
84194         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
84195         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
84196         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
84197         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
84198         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
84200 2008-05-11  Bruno Haible  <bruno@clisp.org>
84202         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
84204 2008-05-11  Bruno Haible  <bruno@clisp.org>
84206         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
84207         * modules/unilbrk/gen-lbrk: New file.
84209 2008-05-11  Bruno Haible  <bruno@clisp.org>
84211         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
84212         * m4/sha512.m4 (gl_SHA512): Likewise.
84214 2008-05-11  Jim Meyering  <meyering@redhat.com>
84216         New modules: crypto/sha256, crypto/sha512 (from coreutils)
84217         * modules/crypto/sha256: New file.
84218         * modules/crypto/sha512: Likewise.
84219         * lib/sha256.c: Likewise.
84220         * lib/sha256.h: Likewise.
84221         * lib/sha512.c: Likewise.
84222         * lib/sha512.h: Likewise.
84223         * lib/u64.h: Likewise.
84224         * m4/sha256.m4: Likewise.
84225         * m4/sha512.m4: Likewise.
84226         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
84228 2008-05-10  Bruno Haible  <bruno@clisp.org>
84230         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
84231         (Input/Output <stdio.h>): Add xprintf.
84232         (Signal handling <signal.h>): Add strsignal.
84233         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
84234         (Core language properties): Add func.
84235         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
84236         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
84237         strings.
84238         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
84239         (Input/output): New section.
84240         (File system functions): Add openat-die, stat-macros.
84241         (Networking functions): Add sockets.
84242         (Unicode string functions): Add unictype/*.
84243         (Support for building libraries and executables): Add gperf.
84244         (Support for building documentation): Add agpl-3.0.
84245         (Misc): Add nocrash.
84247 2008-05-10  Bruno Haible  <bruno@clisp.org>
84249         * modules/unictype/gen-ctype: New file.
84251 2008-05-10  Jim Meyering  <meyering@redhat.com>
84253         Make chdir-safer.c more efficient on a system with no symlinks.
84254         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
84255         also if ELOOP is zero.  Suggested by Bruno Haible.
84257         Make chdir-safer.c slightly safer.
84258         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
84259         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
84261         Avoid compile failure on systems without ELOOP (like mingw).
84262         * lib/chdir-safer.c (ELOOP): Define if not already defined.
84263         Reported by Bruno Haible.
84265 2008-05-10  Bruno Haible  <bruno@clisp.org>
84267         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
84268         (is_utf8_encoding): Use a case-insensitive comparison.
84269         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
84270         streq.
84272 2008-05-10  Bruno Haible  <bruno@clisp.org>
84274         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
84275         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
84276         * lib/unilbrk/ulc-common.h (iconv_string_length,
84277         iconv_string_keeping_offsets): Remove declarations.
84278         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
84279         Don't include <iconv.h>, streq.h, xsize.h.
84280         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
84281         conversion.
84282         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
84283         <iconv.h>, streq.h, xsize.h.
84284         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
84285         conversion.
84286         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
84287         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
84288         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
84289         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
84291 2008-05-10  Bruno Haible  <bruno@clisp.org>
84293         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
84294         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
84296         * modules/unilbrk/u32-width-linebreaks-tests: New file.
84297         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
84299         * modules/unilbrk/u16-width-linebreaks-tests: New file.
84300         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
84302         * modules/unilbrk/u8-width-linebreaks-tests: New file.
84303         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
84305         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
84306         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
84308         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
84309         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
84311         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
84312         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
84314         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
84315         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
84317 2008-05-10  Bruno Haible  <bruno@clisp.org>
84319         Split up 'linebreak' module.
84320         * lib/unilbrk.h: New file, based on lib/linebreak.h.
84321         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
84322         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
84323         modifications.
84324         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
84325         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
84326         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
84327         lib/linebreak.c.
84328         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
84329         lib/linebreak.c.
84330         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
84331         lib/linebreak.c.
84332         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
84333         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
84334         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
84335         lib/linebreak.c.
84336         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
84337         lib/linebreak.c.
84338         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
84339         lib/linebreak.c.
84340         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
84341         lib/linebreak.c.
84342         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
84343         lib/linebreak.c.
84344         * modules/unilbrk/base: New file.
84345         * modules/unilbrk/tables: New file.
84346         * modules/unilbrk/u8-possible-linebreaks: New file.
84347         * modules/unilbrk/u16-possible-linebreaks: New file.
84348         * modules/unilbrk/u32-possible-linebreaks: New file.
84349         * modules/unilbrk/ulc-common: New file.
84350         * modules/unilbrk/ulc-possible-linebreaks: New file.
84351         * modules/unilbrk/u8-width-linebreaks: New file.
84352         * modules/unilbrk/u16-width-linebreaks: New file.
84353         * modules/unilbrk/u32-width-linebreaks: New file.
84354         * modules/unilbrk/ulc-width-linebreaks: New file.
84355         * lib/linebreak.h: Remove file.
84356         * lib/linebreak.c: Remove file.
84357         * m4/linebreak.m4: Remove file.
84358         * modules/linebreak: Remove file.
84359         * NEWS: Mention the changes.
84361 2008-05-09  Eric Blake  <ebb9@byu.net>
84363         Add xmemdup0.
84364         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
84365         implementation.
84366         * lib/xmalloc.c (xmemdup0): New C implementation.
84368 2008-05-08  Bruno Haible  <bruno@clisp.org>
84370         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
84372 2008-05-07  Eric Blake  <ebb9@byu.net>
84374         Support cross-compilation of <wctype.h>.
84375         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
84376         AC_CACHE_CHECK.
84378 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
84380         * build-aux/vc-list-files: Add support for bzr.
84382 2008-05-03  Jim Meyering  <meyering@redhat.com>
84384         avoid failed assertion with tight malloc
84385         * tests/test-getndelim2.c: Correct an off-by-one assertion.
84387 2008-05-03  Simon Josefsson  <simon@josefsson.org>
84389         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
84390         are needed from arpa/inet.h.
84391         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
84392         Reported by Bruno Haible.
84394 2008-05-02  Jim Meyering  <meyering@redhat.com>
84396         avoid compilation error on FreeBSD 6
84397         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
84399 2008-05-01  Jim Meyering  <meyering@redhat.com>
84401         useless-if-before-free: correct --help's exit status description
84402         * build-aux/useless-if-before-free (usage): Like grep, exit 0
84403         for one or more matches, etc.  Reported by Bruno Haible.
84405         vc-list-files: make the stand-alone gnulib test work
84406         * modules/vc-list-files-tests (configure.ac):
84407         Define and AC_SUBST abs_aux_dir.
84408         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
84409         $(abs_top_srcdir) to each script and having each of them
84410         duplicate the work of setting PATH, set PATH here, using
84411         the new variable, abs_aux_dir instead.
84412         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
84413         * tests/test-vc-list-files-git.sh: Likewise.
84414         Reported by Bruno Haible.
84416 2008-05-01  Bruno Haible  <bruno@clisp.org>
84418         * lib/getndelim2.c (getndelim2): Fix newsize computation during
84419         reallocation. Rename 'done' to 'found_delimiter'.
84421 2008-05-01  Jim Meyering  <meyering@redhat.com>
84423         vc-list-files: accommodate /bin/sh like the one from Solaris 10
84424         * build-aux/vc-list-files: Use `...`, not $(...).
84426 2008-04-30  Jim Meyering  <meyering@redhat.com>
84428         add tests for vc-list-files
84429         * modules/vc-list-files-tests: New module.
84430         * tests/test-vc-list-files-cvs.sh: New file.
84431         * tests/test-vc-list-files-git.sh: New file.
84433         avoid a warning from gcc
84434         * lib/getndelim2.c (IF_LINT): Define.
84435         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
84437         vc-list-files: work properly with build-aux/cvsu, too
84438         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
84439         to all cvs-based clauses.
84441         vc-list-files: work properly in the CVS+awk case, too
84442         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
84444         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
84445         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
84446         take more than one file argument, so .  Add quotes, just in case $dir
84447         ever contains a shell meta-character.  Prompted by Soren Hansen in
84448         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
84450 2008-04-29  Eric Blake  <ebb9@byu.net>
84452         Optimize getndelim2 to use block operations when possible.
84453         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
84454         freadseek, and memchr2.
84455         * lib/getndelim2.c (getndelim2): Use them for block reads.
84457 2008-04-29  Bruno Haible  <bruno@clisp.org>
84459         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
84460         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
84461         * modules/inet_ntop (Depends-on): Add extensions.
84462         * modules/inet_pton (Depends-on): Likewise.
84463         Reported by Simon Josefsson.
84465 2008-04-29  Jim Meyering  <meyering@redhat.com>
84467         When the is more than one match in a block, match all of them.
84468         * build-aux/useless-if-before-free: Iterate through each block
84469         until there are no more matches.
84471         Fix broken useless-if-before-free script.
84472         * build-aux/useless-if-before-free: Fix typo: missing "?" after
84473         the expression to match cast of argument to free-like function.
84475 2008-04-29  Eric Blake  <ebb9@byu.net>
84477         Use new header.
84478         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
84480 2008-04-29  Jim Meyering  <meyering@redhat.com>
84482         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
84483         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
84484         by gnulib to exist and to declare e.g., inet_ntop.
84485         Don't include "inet_ntop.h", now removed.
84487         * m4/arpa_inet_h.m4: Remove trailing blanks.
84489 2008-04-29  Eric Blake  <ebb9@byu.net>
84491         Silence valgrind on safe reads beyond potential array bounds.
84492         * lib/rawmemchr.valgrind: New file.
84493         * lib/strchrnul.valgrind: Likewise.
84494         * modules/rawmemchr (Files): Distribute new file.
84495         * modules/strchrnul (Files): Likewise.
84496         Suggested by Bruno Haible.
84498 2008-04-29  Bruno Haible  <bruno@clisp.org>
84500         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
84501         (inet_ntop, inet_pton): Change portability warning's wording.
84502         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
84503         Invoke gl_CHECK_NEXT_HEADERS.
84504         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
84505         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
84506         set ARPA_INET_H.
84507         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
84508         * modules/arpa_inet (Description): No longer only for systems that
84509         lack it.
84510         (Depends-on): Add include_next.
84511         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
84512         HAVE_ARPA_INET_H.
84514 2008-04-29  Jim Meyering  <meyering@redhat.com>
84516         * modules/mkdir (License): Re-license as LGPLv2+.
84518 2008-04-29  Bruno Haible  <bruno@clisp.org>
84520         * modules/rawmemchr (Maintainer): Set to Eric.
84521         * modules/strchrnul (Maintainer): Likewise.
84523 2008-04-29  Simon Josefsson  <simon@josefsson.org>
84525         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
84526         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
84528         * modules/arpa_inet (arpa/inet.h): Use them.
84530 2008-04-28  Eric Blake  <ebb9@byu.net>
84532         Test getndelim2.
84533         * modules/getndelim2-tests: New file.
84534         * tests/test-getndelim2.c: Likewise.
84535         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
84536         stream.
84537         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
84539         * MODULES.html.sh: Document new module.
84541 2008-04-20  Bruno Haible  <bruno@clisp.org>
84543         * lib/c-stack.c (die): Use raise.
84544         * modules/c-stack (Depends-on): Add raise.
84546 2008-04-28  Bruno Haible  <bruno@clisp.org>
84548         Expect rpmatch to be declared.
84549         * lib/yesno.c (rpmatch): Remove declaration.
84551         Declare rpmatch.
84552         * lib/stdlib.in.h (rpmatch): New declaration.
84553         * lib/rpmatch.c: Include <stdlib.h> first.
84554         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
84555         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
84556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
84557         HAVE_RPMATCH.
84558         * modules/rpmatch (Depends-on): Add stdlib, extensions.
84559         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
84560         (Include): Set to <stdlib.h>.
84561         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
84562         HAVE_RPMATCH.
84563         * NEWS: Document the change.
84565 2008-04-28  Bruno Haible  <bruno@clisp.org>
84567         Change rpmatch to use nl_langinfo when appropriate.
84568         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
84569         (N_): New macro.
84570         (localized_pattern): New function/macro.
84571         (try): Remove match, nomatch arguments. Copy the pattern into safe
84572         memory before caching it.
84573         (rpmatch): Use localized_pattern. Add translator comments.
84574         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
84575         Suggested by Eric Blake.
84576         * modules/rpmatch (Depends-on): Add stdbool.
84578 2008-04-28  Eric Blake  <ebb9@byu.net>
84580         Add rawmemchr module, matching glibc.
84581         * modules/string (Makefile.am): New indicator.
84582         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
84583         * lib/string.in.h (rawmemchr): Declare when appropriate.
84584         * modules/rawmemchr: New file.
84585         * m4/rawmemchr.m4: Likewise.
84586         * lib/rawmemchr.c: Likewise.
84587         * modules/rawmemchr-tests: Likewise.
84588         * tests/test-rawmemchr.c: Likewise.
84589         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
84590         module.
84591         * modules/strchrnul (Depends-on): Add rawmemchr.
84592         * lib/strchrnul.c (strchrnul): Optimize a corner case.
84594         Whitespace cleanup.
84595         * tests/test-strchrnul.c: Reindent.
84596         * lib/strchrnul.c: Likewise.
84598         Optimize and test strchrnul.
84599         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
84600         * modules/strchrnul-tests: New file.
84601         * tests/test-strchrnul.c: Likewise.
84603         Remove intprops dependency.
84604         * modules/memchr (Depends-on): Remove intprops.
84605         * modules/memrchr (Depends-on): Likewise.
84606         * modules/memchr2 (Depends-on): Likewise.
84607         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
84608         * lib/memrchr.c (__memrchr): Likewise.
84609         * lib/memrchr2.c (memchr2): Likewise.
84610         Reported by Simon Josefsson.
84612 2008-04-28  Simon Josefsson  <simon@josefsson.org>
84614         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
84615         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84617 2008-04-28  Simon Josefsson  <simon@josefsson.org>
84619         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
84621         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
84623         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
84625         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
84626         declarations.
84627         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
84629         * m4/inet_pton.m4: Don't check for header files.
84631         * m4/inet_ntop.m4: Don't check for header files.
84633 2008-04-28  Simon Josefsson  <simon@josefsson.org>
84635         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
84636         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
84637         trigger for cygwin).
84638         Reported by Bruno Haible  <bruno@clisp.org>.
84640 2008-04-28  Bruno Haible  <bruno@clisp.org>
84642         * doc/posix-functions/strdup.texi: Mention mingw problem.
84644 2008-04-27  Bruno Haible  <bruno@clisp.org>
84646         * modules/stat-time-tests (Depends-on): Add sleep.
84647         * tests/test-stat-time.c (force_unlink): New function.
84648         (cleanup): Use it.
84649         (test_mtime): Remove the ctime related tests.
84650         (test_ctime): New function, containing the ctime related tests.
84651         (main): Call test_ctime, except on native Windows platforms.
84653 2008-04-27  Bruno Haible  <bruno@clisp.org>
84655         * lib/rpmatch.c (rpmatch): Add some comments.
84656         Reported by James Youngman <jay@gnu.org>.
84658 2008-04-27  Bruno Haible  <bruno@clisp.org>
84660         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
84661         quiet NaNs.
84663 2008-04-27  Bruno Haible  <bruno@clisp.org>
84665         Make test-yesno.sh work on mingw.
84666         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
84667         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
84668         (main): Set stdin to binary mode.
84669         * modules/yesno-tests (Depends-on): Add binary-io.
84671 2008-04-27  Bruno Haible  <bruno@clisp.org>
84673         Fix 'isfinite' on x86, x86_64, ia64 platforms.
84674         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
84675         argument that lie outside the IEEE 854 domain.
84676         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
84677         (gl_ISFINITE): Use it.
84678         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
84680 2008-04-27  Bruno Haible  <bruno@clisp.org>
84682         Allow local renaming in config.h.
84683         * lib/memrchr.c (memrchr): Don't undefine outside libc.
84685 2008-04-27  Bruno Haible  <bruno@clisp.org>
84687         * lib/memchr.c (__memchr): Change type of 'i'.
84688         * lib/memchr2.c (memchr2): Likewise.
84690 2008-04-26  Eric Blake  <ebb9@byu.net>
84691         and Bruno Haible  <bruno@clisp.org>
84693         Optimize and test memrchr.
84694         * modules/memrchr (Depends-on): Add intprops.
84695         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
84696         * modules/memrchr-tests: New file.
84697         * tests/test-memrchr.c: New file.
84699 2008-04-26  Bruno Haible  <bruno@clisp.org>
84701         Add tentative support for DragonFly BSD.
84702         * lib/stdio-impl.h: Add macros for DragonFly BSD.
84703         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
84704         fp.
84705         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
84706         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
84707         * lib/fpurge.c (fpurge): Likewise.
84708         * lib/freadable.c (freaadable): Likewise.
84709         * lib/freadahead.c (freadahead): Likewise.
84710         * lib/freading.c (freading): Likewise.
84711         * lib/freadptr.c (freadptr): Likewise.
84712         * lib/freadseek.c (freadptrinc): Likewise.
84713         * lib/fseeko.c (fseeko): Likewise.
84714         * lib/fseterr.c (fseterr): Likewise.
84715         * lib/fwritable.c (fwritable): Likewise.
84716         * lib/fwriting.c (fwriting): Likewise.
84718 2008-04-26  Bruno Haible  <bruno@clisp.org>
84720         * lib/stdio-impl.h: New file.
84721         * lib/fbufmode.c: Include stdio-impl.h.
84722         (fbufmode): Use fp_, remove redundant #defines.
84723         * lib/fflush.c: Include stdio-impl.h.
84724         (clear_ungetc_buffer): Remove redundant #defines.
84725         * lib/fpurge.c: Include stdio-impl.h.
84726         (fpurge): Remove redundant #defines.
84727         * lib/freadable.c: Include stdio-impl.h.
84728         (freadable): Remove redundant #defines.
84729         * lib/freadahead.c: Include stdio-impl.h.
84730         (freadahead): Remove redundant #defines.
84731         * lib/freading.c: Include stdio-impl.h.
84732         (freading): Remove redundant #defines.
84733         * lib/freadptr.c: Include stdio-impl.h.
84734         (freadptr): Remove redundant #defines.
84735         * lib/freadseek.c: Include stdio-impl.h.
84736         (freadptrinc): Remove redundant #defines.
84737         * lib/fseeko.c: Include stdio-impl.h.
84738         (rpl_fseeko): Remove redundant #defines.
84739         * lib/fseterr.c: Include stdio-impl.h.
84740         (fseterr): Remove redundant #defines.
84741         * lib/fwritable.c: Include stdio-impl.h.
84742         (fwritable: Remove redundant #defines.
84743         * lib/fwriting.c: Include stdio-impl.h.
84744         (fwriting): Remove redundant #defines.
84745         * modules/fbufmode (Files): Add lib/stdio-impl.h.
84746         * modules/fflush (Files): Likewise.
84747         * modules/fpurge (Files): Likewise.
84748         * modules/freadable (Files): Likewise.
84749         * modules/freadahead (Files): Likewise.
84750         * modules/freading (Files): Likewise.
84751         * modules/freadptr (Files): Likewise.
84752         * modules/freadseek (Files): Likewise.
84753         * modules/fseeko (Files): Likewise.
84754         * modules/fseterr (Files): Likewise.
84755         * modules/fwritable (Files): Likewise.
84756         * modules/fwriting (Files): Likewise.
84758 2008-04-26  Bruno Haible  <bruno@clisp.org>
84760         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
84761         restore_seek_optimization, update_fpos_cache): New functions, extracted
84762         from rpl_fflush.
84763         (rpl_fflush): Use them.
84764         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
84765         (gl_REPLACE_FFLUSH): Use it.
84767 2008-04-26  Bruno Haible  <bruno@clisp.org>
84769         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
84770         on Solaris.
84771         * tests/test-xstrtoimax.sh: Likewise.
84772         * tests/test-xstrtoumax.sh: Likewise.
84773         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84775 2008-04-26  Bruno Haible  <bruno@clisp.org>
84777         * modules/memchr-tests: New file.
84778         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
84780 2008-04-26  Eric Blake  <ebb9@byu.net>
84781             Bruno Haible  <bruno@clisp.org>
84783         * lib/memchr.c: Include intprops.h.
84784         (__memchr): Optimize parallel detection of matching bytes. Rename local
84785         variables. Add explanatory comments.
84787 2008-04-26  Bruno Haible  <bruno@clisp.org>
84789         Fix module 'memchr', broken since 2000-10-28.
84790         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
84792 2008-04-26  Bruno Haible  <bruno@clisp.org>
84794         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
84795         comments.
84797 2008-04-25  Eric Blake  <ebb9@byu.net>
84799         Use native fstatat on cygwin 1.7.0.
84800         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
84801         first.
84803 2008-04-23  Eric Blake  <ebb9@byu.net>
84805         Improve memchr2 performance.
84806         * lib/memchr2.c (memchr2): Further optimize parallel detection of
84807         NUL bytes.
84808         * modules/memchr2 (Depends-on): Use intprops.h.
84810 2008-04-23  Simon Josefsson  <simon@josefsson.org>
84812         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
84813         an inline function instead of a CPP macro.  Patch by Ben Pfaff
84814         <blp@cs.stanford.edu>.
84816 2008-04-23  Simon Josefsson  <simon@josefsson.org>
84818         * lib/arpa_inet.in.h: New file.
84820         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
84821         (Makefile.am): Sed in substitute header file.
84823         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
84824         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
84826         * modules/inet_ntop (configure.ac): Use
84827         gl_ARPA_INET_MODULE_INDICATOR.
84829         * modules/inet_pton (configure.ac): Use
84830         gl_ARPA_INET_MODULE_INDICATOR.
84832 2008-04-22  Jim Meyering  <meyering@redhat.com>
84834         * modules/verify (License): Re-license as LGPLv2+.
84836 2008-04-22  Simon Josefsson  <simon@josefsson.org>
84838         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
84839         parameter to void* as per POSIX standard (MinGW uses char*).
84841 2008-04-21  Bruno Haible  <bruno@clisp.org>
84843         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
84844         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
84845         Define to replacements if REPLACE_ISWCNTRL is 1.
84846         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
84847         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
84848         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
84849         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
84850         what it fixes.
84851         * doc/posix-functions/iswalpha.texi: Likewise.
84852         * doc/posix-functions/iswblank.texi: Likewise.
84853         * doc/posix-functions/iswcntrl.texi: Likewise.
84854         * doc/posix-functions/iswdigit.texi: Likewise.
84855         * doc/posix-functions/iswgraph.texi: Likewise.
84856         * doc/posix-functions/iswlower.texi: Likewise.
84857         * doc/posix-functions/iswprint.texi: Likewise.
84858         * doc/posix-functions/iswpunct.texi: Likewise.
84859         * doc/posix-functions/iswspace.texi: Likewise.
84860         * doc/posix-functions/iswupper.texi: Likewise.
84861         * doc/posix-functions/iswxdigit.texi: Likewise.
84862         Reported by Alain Guibert.
84864 2008-04-21  Bruno Haible  <bruno@clisp.org>
84866         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
84867         Patch by Alain Guibert.
84869 2008-04-21  Bruno Haible  <bruno@clisp.org>
84871         Fix test failures on mingw.
84872         * tests/test-xstrtol.c (print_no_progname): New function.
84873         (main): Install it in error_print_progname hook.
84874         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
84875         * tests/test-xstrtoimax.sh: Likewise.
84876         * tests/test-xstrtoumax.sh: Likewise.
84878 2008-04-21  Bruno Haible  <bruno@clisp.org>
84880         Fix test failure on mingw.
84881         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
84883 2008-04-21  Bruno Haible  <bruno@clisp.org>
84885         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
84886         Actually assign a value.
84888 2008-04-20  Bruno Haible  <bruno@clisp.org>
84890         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
84891         take 2.
84892         * lib/canonicalize.c (canonicalize_file_name): Elide if the
84893         'canonicalize-lgpl' module is also used.
84894         * lib/canonicalize-lgpl.c: Undo last change.
84895         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
84897 2008-04-20  Bruno Haible  <bruno@clisp.org>
84899         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
84900         config.h. Provide _mkdir based fallback for mingw.
84901         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
84902         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
84903         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
84904         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
84905         rather than defining mkdir in config.h.
84906         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
84907         (gl_SYS_STAT_H_DEFAULTS): New macro.
84908         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
84909         HAVE_IO_H any more.
84910         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
84911         HAVE_DECL_MKDIR and HAVE_IO_H.
84913 2008-04-20  Bruno Haible  <bruno@clisp.org>
84915         * lib/isapipe.c: Port to native Windows platforms.
84917 2008-04-20  Bruno Haible  <bruno@clisp.org>
84919         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
84921 2008-04-21  Eric Blake  <ebb9@byu.net>
84923         Work around preprocessors that don't handle UINTMAX_MAX.
84924         * lib/memchr2.c (memchr2): Avoid embedded #if.
84925         Reported by Alain Guibert, fix suggested by Bruno Haible.
84927 2008-04-21  Simon Josefsson  <simon@josefsson.org>
84929         * doc/posix-functions/strftime.texi (strftime): Explain better
84930         Windows incompatibility.  Suggested by Micah Cowan
84931         <micah@cowan.name>.
84933 2008-04-20  Bruno Haible  <bruno@clisp.org>
84935         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
84936         unistr/u8-mblen.
84938 2008-04-20  Bruno Haible  <bruno@clisp.org>
84940         Fix test failure on platforms with non-GNU iconv.
84941         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
84942         (U_TO_U8): Use it, rather than u16_to_u8.
84943         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
84944         units at the end of the input string.
84945         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
84947 2008-04-20  Bruno Haible  <bruno@clisp.org>
84949         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
84950         when the resulting length is 0.
84951         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
84953 2008-04-20  Bruno Haible  <bruno@clisp.org>
84955         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
84956         works.
84957         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
84959 2008-04-20  Bruno Haible  <bruno@clisp.org>
84961         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
84962         * modules/tsearch-tests (configure.ac): Test for initstate function.
84964 2008-04-20  Bruno Haible  <bruno@clisp.org>
84966         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
84967         for nlink_t if missing.
84968         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
84970 2008-04-19  Bruno Haible  <bruno@clisp.org>
84972         Work around snprintf bug on Linux libc5.
84973         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
84974         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84975         gl_SNPRINTF_SIZE1.
84976         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84977         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
84978         that test failed.
84979         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
84980         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
84981         * modules/snprintf (Files): Add m4/printf.m4.
84982         * modules/vsnprintf (Files): Likewise.
84983         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
84984         * doc/posix-functions/vsnprintf.texi: Likewise.
84986 2008-04-19  Bruno Haible  <bruno@clisp.org>
84988         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
84989         from 0.0058 to less than 10^-7.
84991 2008-04-19  Bruno Haible  <bruno@clisp.org>
84993         Fix rounding when a precision is given.
84994         * lib/vasnprintf.c (is_borderline): New function.
84995         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
84996         9...9x.
84997         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
84998         %e, %g.
84999         * tests/test-vasprintf-posix.c (test_function): Likewise.
85000         * tests/test-snprintf-posix.h (test_function): Likewise.
85001         * tests/test-sprintf-posix.h (test_function): Likewise.
85002         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
85003         * tests/test-printf-posix.h (test_function): Likewise.
85004         * tests/test-printf-posix.output: Update.
85005         Reported by John Darrington <john@darrington.wattle.id.au> via
85006         Ben Pfaff <blp@cs.stanford.edu>.
85008 2008-04-18  Simon Josefsson  <simon@josefsson.org>
85010         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
85011         Suggested by Bruno Haible <bruno@clisp.org>.
85013 2008-04-17  Bruno Haible  <bruno@clisp.org>
85015         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
85016         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
85017         implementation.
85018         Patch by Bruce Merry <bmerry@gmail.com>.
85020 2008-04-17  Simon Josefsson  <simon@josefsson.org>
85022         * doc/posix-functions/strftime.texi (strftime): Mention that %e
85023         doesn't work under Windows.
85025 2008-04-16  Bruno Haible  <bruno@clisp.org>
85027         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
85028         New macros.
85029         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
85030         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
85031         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
85032         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
85033         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
85034         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
85035         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
85036         macros.
85037         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
85038         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
85039         Northern Sotho, Uighur.
85041 2008-04-16  Bruno Haible  <bruno@clisp.org>
85043         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
85044         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
85045         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
85046         Reported by Daniel Bergström <daniel@octocode.com>.
85048 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
85049             Bruno Haible  <bruno@clisp.org>
85051         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
85052         function.
85053         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
85054         New functions, mostly extracted from gl_locale_name_default.
85055         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
85057 2008-04-16  Eric Blake  <ebb9@byu.net>
85059         Adjust strtod detection to catch glibc 2.7 bug.
85060         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
85061         Reported by John Gatewood Ham.
85063 2008-04-16  Bruno Haible  <bruno@clisp.org>
85065         Add tentative support for Linux libc5.
85066         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
85067         * lib/fpurge.c (fpurge): Likewise.
85068         * lib/freadable.c (freadable): Likewise.
85069         * lib/freadahead.c (freadahead): Likewise.
85070         * lib/freading.c (freading): Likewise.
85071         * lib/freadptr.c (freadptr): Likewise.
85072         * lib/freadseek.c (freadptrinc): Likewise.
85073         * lib/fseeko.c (rpl_fseeko): Likewise.
85074         * lib/fseterr.c (fseterr): Likewise.
85075         * lib/fwritable.c (fwritable): Likewise.
85076         * lib/fwriting.c (fwriting): Likewise.
85077         Reported by Alain Guibert <alguibert+bts@free.fr>.
85079 2008-04-15  Bruno Haible  <bruno@clisp.org>
85081         * modules/mathl (configure.ac): Define module indicator.
85083 2008-04-15  Bruno Haible  <bruno@clisp.org>
85085         * lib/logl.c (logl): Remove unused variables.
85087 2008-04-15  Bruno Haible  <bruno@clisp.org>
85089         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
85090         fails.
85092 2008-04-15  Bruno Haible  <bruno@clisp.org>
85094         * lib/trim.c (trim2): Fix argument of isspace() macro.
85096 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
85098         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
85099         to 0.
85100         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
85102 2008-04-14  Bruno Haible  <bruno@clisp.org>
85104         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
85105         AC_LANG_PROGRAM argument.
85106         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
85107         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
85108         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
85109         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
85110         * m4/math_h.m4 (gl_MATH_H): Likewise.
85111         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
85112         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
85113         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
85114         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
85115         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
85116         * m4/regex.m4 (gl_REGEX): Likewise.
85117         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
85118         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
85119         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
85120         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
85121         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
85122         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
85123         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
85124         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
85126 2008-04-14  Jim Meyering  <meyering@redhat.com>
85128         test-strtod: fix typos: s/abs/fabs/
85129         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
85131 2008-04-13  Bruno Haible  <bruno@clisp.org>
85133         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
85134         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
85135         module is also used and while not building the reloc-wrapper.
85137 2008-04-13  Bruno Haible  <bruno@clisp.org>
85139         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
85141 2008-04-13  Bruno Haible  <bruno@clisp.org>
85143         Fix AIX compilation failure introduced on 2008-04-02.
85144         * tests/test-frexp.c (exp): Undefine before redefining.
85145         * tests/test-frexpl.c (exp): Likewise.
85147 2008-04-13  Bruno Haible  <bruno@clisp.org>
85149         Work around a HP-UX stdio bug.
85150         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
85151         * tests/test-ftello.c (main): Likewise.
85152         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
85153         * doc/posix-functions/ftello.texi: Likewise.
85155 2008-04-13  Bruno Haible  <bruno@clisp.org>
85157         Make test-signbit pass on HP-UX/hppa.
85158         * tests/test-signbit.c (minus_zerol): New variable.
85159         (test_signbitl): Use it.
85161 2008-04-13  Bruno Haible  <bruno@clisp.org>
85163         Make truncl work on OSF/1 4.0.
85164         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
85165         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
85166         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
85167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
85168         HAVE_DECL_TRUNCL.
85169         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
85170         HAVE_DECL_TRUNCL.
85171         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
85173 2008-04-13  Bruno Haible  <bruno@clisp.org>
85175         * lib/unictype.h: Remove trailing comma from enumeration definitions.
85177 2008-04-13  Bruno Haible  <bruno@clisp.org>
85179         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
85180         expression, so as to avoid HP-UX 11 cc compiler bug.
85182 2008-04-13  Bruno Haible  <bruno@clisp.org>
85184         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
85186 2008-04-13  Bruno Haible  <bruno@clisp.org>
85188         * lib/git-merge-changelog.c: Remove empty declaration outside of
85189         functions.
85191 2008-04-13  Bruno Haible  <bruno@clisp.org>
85193         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
85195 2008-04-13  Bruno Haible  <bruno@clisp.org>
85197         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
85198         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
85199         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
85200         also if it exists but lacks definitions of the SHUT_* macros.
85201         * modules/sys_socket (Description): Update.
85202         Reported by Elbert Pol <e.pol@chello.nl>.
85204 2008-04-13  Bruno Haible  <bruno@clisp.org>
85206         * lib/localcharset.c (OS2): Don't redefine if already defined.
85207         Reported by Elbert Pol <e.pol@chello.nl>.
85209 2008-04-13  Bruno Haible  <bruno@clisp.org>
85211         * lib/binary-io.h [__EMX__]: Include <io.h>.
85212         Reported by Elbert Pol <e.pol@chello.nl>.
85214 2008-04-12  Bruno Haible  <bruno@clisp.org>
85216         * lib/fpucw.h: Enable the definitions also for x86_64.
85217         Needed for NetBSD/x86_64.
85218         Reported by Thomas Klausner <tk@giga.or.at>.
85220 2008-04-12  Bruno Haible  <bruno@clisp.org>
85222         * tests/test-strtod.c: Include isnand.h.
85223         (main): Use isnand instead of isnan.
85224         Reported by Jim Meyering.
85226 2008-04-12  Bruno Haible  <bruno@clisp.org>
85228         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
85229         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
85231 2008-04-12  Jim Meyering  <meyering@redhat.com>
85233         * m4/math_h.m4 (gl_MATH_H): Fix typos.
85235 2008-04-12  Bruno Haible  <bruno@clisp.org>
85237         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
85238         Reported by Elbert Pol <e.pol@chello.nl>.
85240 2008-04-12  Eric Blake  <ebb9@byu.net>
85242         Work around Solaris 10 math.h bug.
85243         * m4/math_h.m4 (gl_MATH_H): Check for bug.
85244         (gl_MATH_H_DEFAULTS): Set up default.
85245         * modules/math (Makefile.am): Replace new indicators.
85246         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
85247         * tests/test-math.c (main): Test this.
85248         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
85249         * doc/posix-headers/math.texi (math.h): Mention bug.
85250         Reported by Nelson H. F. Beebe and Jim Meyering.
85252 2008-04-11  Bruno Haible  <bruno@clisp.org>
85254         Adapt to future versions of Apple GCC.
85255         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
85256         Reported by Peter O'Gorman <peter@pogma.com>.
85258 2008-04-11  Bruno Haible  <bruno@clisp.org>
85260         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
85262 2008-04-11  Bruno Haible  <bruno@clisp.org>
85264         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
85266         * modules/getaddrinfo-tests (Makefile.am): Define
85267         test_getaddrinfo_LDADD.
85269 2008-04-11  Bruno Haible  <bruno@clisp.org>
85271         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
85272         (init): Fix syntax error.
85273         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
85274         is declared.
85276 2008-04-11  Bruno Haible  <bruno@clisp.org>
85278         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
85279         * modules/glob (Depends-on): Add stdbool.
85281 2008-04-11  Bruno Haible  <bruno@clisp.org>
85283         * lib/trim.c: Include <string.h>.
85285 2008-04-11  Eric Blake  <ebb9@byu.net>
85287         Avoid compile failure on OS/2.
85288         * lib/regex_internal.h (internal_function): Disable optimization
85289         on OS/2 (__EMX__), where it caused compiler error.
85290         Reported by Elbert Pol.
85292 2008-04-11  Bruno Haible  <bruno@clisp.org>
85294         Flush the standard error stream before aborting. Needed on mingw.
85295         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
85296         * tests/test-array_list.c (ASSERT): Likewise.
85297         * tests/test-array_oset.c (ASSERT): Likewise.
85298         * tests/test-avltree_list.c (ASSERT): Likewise.
85299         * tests/test-avltree_oset.c (ASSERT): Likewise.
85300         * tests/test-avltreehash_list.c (ASSERT): Likewise.
85301         * tests/test-binary-io.c (ASSERT): Likewise.
85302         * tests/test-byteswap.c (ASSERT): Likewise.
85303         * tests/test-c-ctype.c (ASSERT): Likewise.
85304         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
85305         * tests/test-c-strcasestr.c (ASSERT): Likewise.
85306         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
85307         * tests/test-c-strstr.c (ASSERT): Likewise.
85308         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
85309         * tests/test-canonicalize.c (ASSERT): Likewise.
85310         * tests/test-carray_list.c (ASSERT): Likewise.
85311         * tests/test-ceilf1.c (ASSERT): Likewise.
85312         * tests/test-ceilf2.c (ASSERT): Likewise.
85313         * tests/test-ceill.c (ASSERT): Likewise.
85314         * tests/test-count-one-bits.c (ASSERT): Likewise.
85315         * tests/test-fbufmode.c (ASSERT): Likewise.
85316         * tests/test-fflush2.c (ASSERT): Likewise.
85317         * tests/test-floorf1.c (ASSERT): Likewise.
85318         * tests/test-floorf2.c (ASSERT): Likewise.
85319         * tests/test-floorl.c (ASSERT): Likewise.
85320         * tests/test-fopen.c (ASSERT): Likewise.
85321         * tests/test-fpending.c (ASSERT): Likewise.
85322         * tests/test-fprintf-posix.c (ASSERT): Likewise.
85323         * tests/test-fpurge.c (ASSERT): Likewise.
85324         * tests/test-freadable.c (ASSERT): Likewise.
85325         * tests/test-freadahead.c (ASSERT): Likewise.
85326         * tests/test-freading.c (ASSERT): Likewise.
85327         * tests/test-freadptr.c (ASSERT): Likewise.
85328         * tests/test-freadptr2.c (ASSERT): Likewise.
85329         * tests/test-freadseek.c (ASSERT): Likewise.
85330         * tests/test-freopen.c (ASSERT): Likewise.
85331         * tests/test-frexp.c (ASSERT): Likewise.
85332         * tests/test-frexpl.c (ASSERT): Likewise.
85333         * tests/test-fseek.c (ASSERT): Likewise.
85334         * tests/test-fseeko.c (ASSERT): Likewise.
85335         * tests/test-fstrcmp.c (ASSERT): Likewise.
85336         * tests/test-ftell.c (ASSERT): Likewise.
85337         * tests/test-ftello.c (ASSERT): Likewise.
85338         * tests/test-func.c (ASSERT): Likewise.
85339         * tests/test-fwritable.c (ASSERT): Likewise.
85340         * tests/test-fwriting.c (ASSERT): Likewise.
85341         * tests/test-getdelim.c (ASSERT): Likewise.
85342         * tests/test-getline.c (ASSERT): Likewise.
85343         * tests/test-i-ring.c (ASSERT): Likewise.
85344         * tests/test-iconv-utf.c (ASSERT): Likewise.
85345         * tests/test-iconv.c (ASSERT): Likewise.
85346         * tests/test-isfinite.c (ASSERT): Likewise.
85347         * tests/test-isnand.c (ASSERT): Likewise.
85348         * tests/test-isnanf.c (ASSERT): Likewise.
85349         * tests/test-isnanl.h (ASSERT): Likewise.
85350         * tests/test-ldexpl.c (ASSERT): Likewise.
85351         * tests/test-linked_list.c (ASSERT): Likewise.
85352         * tests/test-linkedhash_list.c (ASSERT): Likewise.
85353         * tests/test-localename.c (ASSERT): Likewise.
85354         * tests/test-lseek.c (ASSERT): Likewise.
85355         * tests/test-mbscasecmp.c (ASSERT): Likewise.
85356         * tests/test-mbscasestr1.c (ASSERT): Likewise.
85357         * tests/test-mbscasestr2.c (ASSERT): Likewise.
85358         * tests/test-mbscasestr3.c (ASSERT): Likewise.
85359         * tests/test-mbscasestr4.c (ASSERT): Likewise.
85360         * tests/test-mbschr.c (ASSERT): Likewise.
85361         * tests/test-mbscspn.c (ASSERT): Likewise.
85362         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
85363         * tests/test-mbspbrk.c (ASSERT): Likewise.
85364         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
85365         * tests/test-mbsrchr.c (ASSERT): Likewise.
85366         * tests/test-mbsspn.c (ASSERT): Likewise.
85367         * tests/test-mbsstr1.c (ASSERT): Likewise.
85368         * tests/test-mbsstr2.c (ASSERT): Likewise.
85369         * tests/test-mbsstr3.c (ASSERT): Likewise.
85370         * tests/test-memchr2.c (ASSERT): Likewise.
85371         * tests/test-memmem.c (ASSERT): Likewise.
85372         * tests/test-open.c (ASSERT): Likewise.
85373         * tests/test-printf-frexp.c (ASSERT): Likewise.
85374         * tests/test-printf-frexpl.c (ASSERT): Likewise.
85375         * tests/test-printf-posix.c (ASSERT): Likewise.
85376         * tests/test-quotearg.c (ASSERT): Likewise.
85377         * tests/test-rbtree_list.c (ASSERT): Likewise.
85378         * tests/test-rbtree_oset.c (ASSERT): Likewise.
85379         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
85380         * tests/test-round1.c (ASSERT): Likewise.
85381         * tests/test-roundf1.c (ASSERT): Likewise.
85382         * tests/test-roundl.c (ASSERT): Likewise.
85383         * tests/test-signbit.c (ASSERT): Likewise.
85384         * tests/test-sleep.c (ASSERT): Likewise.
85385         * tests/test-snprintf-posix.c (ASSERT): Likewise.
85386         * tests/test-snprintf.c (ASSERT): Likewise.
85387         * tests/test-sprintf-posix.c (ASSERT): Likewise.
85388         * tests/test-stat-time.c (ASSERT): Likewise.
85389         * tests/test-strcasestr.c (ASSERT): Likewise.
85390         * tests/test-strerror.c (ASSERT): Likewise.
85391         * tests/test-striconv.c (ASSERT): Likewise.
85392         * tests/test-striconveh.c (ASSERT): Likewise.
85393         * tests/test-striconveha.c (ASSERT): Likewise.
85394         * tests/test-strsignal.c (ASSERT): Likewise.
85395         * tests/test-strstr.c (ASSERT): Likewise.
85396         * tests/test-strtod.c (ASSERT): Likewise.
85397         * tests/test-trunc1.c (ASSERT): Likewise.
85398         * tests/test-trunc2.c (ASSERT): Likewise.
85399         * tests/test-truncf1.c (ASSERT): Likewise.
85400         * tests/test-truncf2.c (ASSERT): Likewise.
85401         * tests/test-truncl.c (ASSERT): Likewise.
85402         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
85403         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
85404         * tests/test-vasnprintf.c (ASSERT): Likewise.
85405         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
85406         * tests/test-vasprintf.c (ASSERT): Likewise.
85407         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
85408         * tests/test-vprintf-posix.c (ASSERT): Likewise.
85409         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
85410         * tests/test-vsnprintf.c (ASSERT): Likewise.
85411         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
85412         * tests/test-wcwidth.c (ASSERT): Likewise.
85413         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
85414         * tests/test-xprintf-posix.c (ASSERT): Likewise.
85415         * tests/test-xvasprintf.c (ASSERT): Likewise.
85416         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
85417         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
85418         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
85419         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
85420         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
85421         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
85422         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
85423         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
85424         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
85425         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
85426         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
85427         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
85428         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
85429         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
85430         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
85431         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
85432         * tests/unictype/test-block_list.c (ASSERT): Likewise.
85433         * tests/unictype/test-block_of.c (ASSERT): Likewise.
85434         * tests/unictype/test-block_test.c (ASSERT): Likewise.
85435         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
85436         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
85437         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
85438         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
85439         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
85440         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
85441         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
85442         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
85443         * tests/unictype/test-combining.c (ASSERT): Likewise.
85444         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
85445         * tests/unictype/test-digit.c (ASSERT): Likewise.
85446         * tests/unictype/test-mirror.c (ASSERT): Likewise.
85447         * tests/unictype/test-numeric.c (ASSERT): Likewise.
85448         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
85449         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
85450         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
85451         * tests/unictype/test-scripts.c (ASSERT): Likewise.
85452         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
85453         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
85454         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
85455         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
85456         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
85457         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
85458         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
85459         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
85460         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
85461         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
85462         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
85463         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
85464         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
85465         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
85466         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
85467         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
85468         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
85469         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
85470         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
85471         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
85472         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
85473         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
85474         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
85475         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
85476         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
85477         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
85478         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
85479         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
85480         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
85481         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
85482         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
85483         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
85484         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
85485         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
85486         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
85487         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
85488         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
85489         Reported by Eric Blake.
85491 2008-04-11  Bruno Haible  <bruno@clisp.org>
85493         * lib/wchar.in.h: Tweak comment.
85495 2008-04-11  Bruno Haible  <bruno@clisp.org>
85497         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
85498         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
85499         gl_COMMON.
85500         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
85502 2008-04-11  Bruno Haible  <bruno@clisp.org>
85504         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
85506 2008-04-11  Simon Josefsson  <simon@josefsson.org>
85508         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
85509         of attempting to use non-existing /dev/*random.  Based on patch
85510         from Adam Strzelecki <ono@java.pl> in
85511         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
85513 2008-04-08  Bruno Haible  <bruno@clisp.org>
85515         Add tentative support for emx+gcc.
85516         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
85517         * lib/fpurge.c (fpurge): Likewise.
85518         * lib/freadable.c (freadable): Likewise.
85519         * lib/freadahead.c (freadahead): Likewise.
85520         * lib/freading.c (freading): Likewise.
85521         * lib/freadptr.c (freadptr): Likewise.
85522         * lib/freadseek.c (freadptrinc): Likewise.
85523         * lib/fseeko.c (rpl_fseeko): Likewise.
85524         * lib/fseterr.c (fseterr): Likewise.
85525         * lib/fwritable.c (fwritable): Likewise.
85526         * lib/fwriting.c (fwriting): Likewise.
85527         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
85529 2008-04-09  Eric Blake  <ebb9@byu.net>
85531         Avoid some autoconf warnings.
85532         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
85533         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
85534         * m4/afs.m4 (gl_AFS): Likewise.
85535         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
85536         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
85537         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
85538         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
85539         (gl_INTEGER_TYPE_SUFFIX): Likewise.
85540         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
85541         (AC_CHECK_DECLS_ONCE): Likewise.
85542         Rename file...
85543         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
85544         gnulib-tool requires autoconf 2.59 or better.
85545         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
85547 2008-04-08  Eric Blake  <ebb9@byu.net>
85549         Use 'git describe --match' if present (added in git 1.5.5).
85550         * build-aux/git-version-gen: Limit result to tags that match 'v*'
85551         if possible.
85553 2008-04-08  Bruno Haible  <bruno@clisp.org>
85555         Add tentative support for OpenServer.
85556         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
85557         _ptr, _cnt.
85558         * lib/fpurge.c (fpurge): Likewise.
85559         * lib/freadable.c (freadable): Likewise.
85560         * lib/freadahead.c (freadahead): Likewise.
85561         * lib/freading.c (freading): Likewise.
85562         * lib/freadptr.c (freadptr): Likewise.
85563         * lib/freadseek.c (freadptrinc): Likewise.
85564         * lib/fseeko.c (rpl_fseeko): Likewise.
85565         * lib/fseterr.c (fseterr): Likewise.
85566         * lib/fwritable.c (fwritable): Likewise.
85567         * lib/fwriting.c (fwriting): Likewise.
85568         Reported by Roger Cornelius <rac@tenzing.org> and
85569         Brian K. White <brian@aljex.com>.
85571 2008-04-06  Jim Meyering  <meyering@redhat.com>
85573         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
85575 2008-04-06  Bruno Haible  <bruno@clisp.org>
85577         Avoid possible error with non-ASCII bytes in UTF-8 locales.
85578         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
85579         * tests/test-printf-posix.sh: Likewise.
85580         * tests/test-vfprintf-posix.sh: Likewise.
85581         * tests/test-vprintf-posix.sh: Likewise.
85582         * tests/test-xprintf-posix.sh: Likewise.
85584 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85586         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
85587         hide error from 'ls', needed on OS/2.
85588         Report by Elbert Pol <elbert.pol@gmail.com>.
85590 2008-04-04  Eric Blake  <ebb9@byu.net>
85592         Make test-fseeko.c failures meaningful.
85593         * tests/test-fseeko.c: Print line number on failure.
85594         * tests/test-fseek.c: Likewise.
85595         Reported by Nelson H. F. Beebe.
85597         Improve strtod bug detection check.
85598         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
85599         required for Solaris 10.
85600         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
85602 2008-04-04  Bruno Haible  <bruno@clisp.org>
85604         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
85605         by m4/setenv.m4.
85607 2008-04-03  Eric Blake  <ebb9@byu.net>
85609         Ensure sane .version contents.
85610         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
85611         version string.
85612         * build-aux/git-version-gen: Improve documentation.
85614         Make GNU make output nicer.
85615         * top/GNUmakefile [!_have-Makefile]: Add dependency on
85616         MAKECMDGOALS to enforce message for all command line targets.  Set
85617         srcdir for use in maint.mk.
85619         Another maintainer tweak.
85620         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
85621         a target that regenerates version.
85623 2008-04-03  Jim Meyering  <meyering@redhat.com>
85625         vc-list-files: don't cause coreutils "make po-check" failure
85626         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
85628 2008-04-03  Eric Blake  <ebb9@byu.net>
85630         Allow VPATH usage of vc-list-files.
85631         * build-aux/vc-list-files (scriptversion): Add timestamp.
85632         (options): Add --help, --version, -C.
85633         (CVS): Support installed cvsu.
85635 2008-04-02  Bruno Haible  <bruno@clisp.org>
85637         Avoid some "statement with no effect" warnings from gcc.
85638         * tests/test-wctype.c (main): Explicitly ignore unused values.
85639         Reported by Jim Meyering.
85641 2008-04-02  Jim Meyering  <meyering@redhat.com>
85643         Avoid some warnings from "gcc -Wshadow".
85644         * tests/test-frexp.c (exp): Define to a different identifier.
85645         * tests/test-frexpl.c (exp): Likewise.
85647 2008-04-03  Jim Meyering  <meyering@redhat.com>
85649         bootstrap: remove dangling *.[ch] symlinks from lib
85650         * build-aux/bootstrap [dangling symlink removal]: Move find's
85651         -depth option to precede all others, to avoid a warning.
85652         Remove *.[ch] files too, and from "$source_base" (usually lib/).
85654 2008-04-02  Bruno Haible  <bruno@clisp.org>
85656         Avoid some warnings from "gcc -Wshadow".
85657         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
85658         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
85659         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
85660         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
85661         Reported by Jim Meyering.
85663 2008-04-01  Bruno Haible  <bruno@clisp.org>
85665         Fix test to work on IRIX 6.5 with cc.
85666         * tests/test-math.c (numeric_equal): New function.
85667         (main): Use it.
85669 2008-04-01  Bruno Haible  <bruno@clisp.org>
85671         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
85673 2008-04-01  Bruno Haible  <bruno@clisp.org>
85675         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
85676         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
85677         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
85678         (Depends-on): Remove math.
85680         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
85681         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
85682         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
85683         (Depends-on): Remove math.
85685         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
85686         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
85687         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
85688         (Depends-on): Remove math.
85689         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
85690         (Depends-on): Remove math.
85692         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
85693         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
85694         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
85695         (Depends-on): Remove math.
85696         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
85697         (Depends-on): Remove math.
85699         * tests/test-round1.c: Include nan.h.
85700         (main): Use NaNd instead of NAN.
85701         * modules/round-tests (Files): Add tests/nan.h.
85703         * tests/test-trunc1.c: Include nan.h.
85704         (main): Use NaNd instead of NAN.
85705         * modules/trunc-tests (Files): Add tests/nan.h.
85707         * tests/test-roundf1.c: Include nan.h.
85708         (main): Use NaNf instead of NAN.
85709         * modules/roundf-tests (Files): Add tests/nan.h.
85711         * tests/test-truncf1.c: Include nan.h.
85712         (main): Use NaNf instead of NAN.
85713         * modules/truncf-tests (Files): Add tests/nan.h.
85715         * tests/test-ceilf1.c: Include nan.h.
85716         (main): Use NaNf instead of NAN.
85717         * modules/ceilf-tests (Files): Add tests/nan.h.
85719         * tests/test-floorf1.c: Include nan.h.
85720         (main): Use NaNf instead of NAN.
85721         * modules/floorf-tests (Files): Add tests/nan.h.
85723         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
85724         (main): Use NaNf instead of NAN.
85725         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
85727         * tests/test-isnand.c: Include nan.h instead of <math.h>.
85728         (main): Use NaNd instead of NAN.
85729         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
85731         * tests/test-frexp.c: Include nan.h.
85732         (main): Use NaNd instead of NAN.
85733         * modules/frexp-tests (Files): Add tests/nan.h.
85735         * lib/isnan.c: Don't include <math.h>.
85736         (FUNC): Don't use NAN macro.
85737         * modules/isnand-nolibm (Depends-on): Remove math.
85738         * modules/isnanf-nolibm (Depends-on): Remove math.
85739         * modules/isnanl (Depends-on): Remove math.
85740         * modules/isnanl-nolibm (Depends-on): Remove math.
85742         * tests/nan.h: New file.
85744 2008-04-01  Eric Blake  <ebb9@byu.net>
85746         Fix typos.
85747         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
85748         values to be the right type.
85750         For now, cater to gnulib strtod inaccuracies.
85751         * tests/test-strtod.c (main): Allow 1-ulp error on expected
85752         fractional results.  While not as nice from a QoI perspective, it
85753         is a quicker patch than correctly implementing decimal to binary
85754         rounding.
85756 2008-03-31  Eric Blake  <ebb9@byu.net>
85758         Guarantee a definition of NAN.
85759         * lib/math.in.h (NAN): Define if missing.
85760         * tests/test-math.c (main): Test it.
85761         * doc/posix-headers/math.texi (math.h): Document this.
85762         * lib/isnan.c (rpl_isnand): Use it.
85763         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
85764         * tests/test-floorf1.c (NaN): Likewise.
85765         * tests/test-frexp.c (NaN): Likewise.
85766         * tests/test-isnand.c (NaN): Likewise.
85767         * tests/test-isnanf.c (NaN): Likewise.
85768         * tests/test-round1.c (NaN): Likewise.
85769         * tests/test-roundf1.c (NaN): Likewise.
85770         * tests/test-snprintf-posix.h (NaN): Likewise.
85771         * tests/test-sprintf-posix.h (NaN): Likewise.
85772         * tests/test-trunc1.c (NaN): Likewise.
85773         * tests/test-truncf1.c (NaN): Likewise.
85774         * tests/test-vasnprintf-posix.c (NaN): Likewise.
85775         * tests/test-vasprintf-posix.c (NaN): Likewise.
85776         * modules/isnand-nolibm (Depends-on): Add math.
85777         * modules/isnanf-nolibm (Depends-on): Likewise.
85778         * modules/isnanl (Depends-on): Likewise.
85779         * modules/isnanl-nolibm (Depends-on): Likewise.
85780         * modules/snprintf-posix-tests (Depends-on): Likewise.
85781         * modules/sprintf-posix-tests (Depends-on): Likewise.
85782         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
85783         * modules/vsprintf-posix-tests (Depends-on): Likewise.
85784         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
85785         * modules/vasprintf-posix-tests (Depends-on): Likewise.
85787 2008-03-31  Bruno Haible  <bruno@clisp.org>
85789         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
85790         * doc/posix-functions/strtod.texi: Likewise.
85792 2008-03-31  Bruno Haible  <bruno@clisp.org>
85794         * tests/test-strtod.c (main): Don't use C99 syntax.
85796 2008-03-31  Bruno Haible  <bruno@clisp.org>
85798         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
85799         Reported by Eric Blake.
85801 2008-03-31  Jim Meyering  <meyering@redhat.com>
85803         Don't compare actual signbit return values.
85804         * tests/test-strtod.c (main): Rather, compare only their
85805         zero/non-zero nature.
85807 2008-03-31  Eric Blake  <ebb9@byu.net>
85809         More strtod documentation.
85810         * doc/posix-functions/strtod.texi (strtod): Interpret more test
85811         failures as distinct bugs.
85813 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
85815         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
85816         Problem reported by Erik Benada in
85817         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
85819 2008-03-30  Bruno Haible  <bruno@clisp.org>
85821         * tests/test-strtod.c: Add comments about which assertion fails on which
85822         platform.
85823         * doc/posix-functions/strtod.texi: Add info about many more platforms.
85825 2008-03-30  Eric Blake  <ebb9@byu.net>
85827         Test signbit behavior on zeros.
85828         * tests/test-signbit.c (test_signbitf): Add tests for zero.
85829         (test_signbitd, test_signbitl): Likewise.
85831         More strtod touchups.
85832         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
85833         sign of negative underflow, for now.  Use .5, not .1.
85834         * doc/posix-functions/strtod.texi (strtod): Mention these
85835         limitations.
85836         Reported by Jim Meyering.
85838 2008-03-30  Bruno Haible  <bruno@clisp.org>
85840         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
85841         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
85843 2008-03-30  Bruno Haible  <bruno@clisp.org>
85845         Avoid failure when attempting to return empty iconv results on some
85846         platforms.
85847         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
85848         allocation, don't report ENOMEM when the resulting string is empty.
85850 2008-03-30  Bruno Haible  <bruno@clisp.org>
85852         Fix buffer overrun.
85853         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
85854         Don't consider the width for tmp_length. Check count against tmp_length
85855         before doing the padding. Ensure enough allocation during padding.
85857 2008-03-30  Eric Blake  <ebb9@byu.net>
85859         strtod touchups.
85860         * lib/strtod.c (strtod): Avoid compiler warnings.
85861         Reported by Jim Meyering.
85863 2008-03-30  Bruno Haible  <bruno@clisp.org>
85865         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
85866         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
85867         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
85868         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
85869         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
85870         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
85871         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
85872         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
85874         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
85875         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
85876         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
85877         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
85878         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
85879         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
85880         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
85881         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
85883         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
85884         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
85885         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
85886         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
85887         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
85888         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
85889         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
85890         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
85892         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
85893         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
85895         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
85896         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
85898         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
85899         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
85901         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
85902         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
85903         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
85905         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
85906         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
85907         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
85909         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
85910         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
85911         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
85913         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
85914         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
85915         * modules/vasprintf (Depends-on): Add EOVERFLOW.
85917         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
85918         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
85919         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
85920         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
85921         (Depends-on): Add EOVERFLOW.
85922         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
85923         (Depends-on): Add EOVERFLOW.
85924         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
85925         (Depends-on): Add EOVERFLOW.
85926         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
85927         (Depends-on): Add EOVERFLOW.
85928         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
85929         (Depends-on): Add EOVERFLOW.
85930         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
85931         (Depends-on): Add EOVERFLOW.
85932         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
85933         (Depends-on): Add EOVERFLOW.
85934         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
85935         (Depends-on): Add EOVERFLOW.
85937         * lib/sprintf.c (EOVERFLOW): Remove fallback.
85938         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
85939         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
85941         * lib/snprintf.c (EOVERFLOW): Remove fallback.
85942         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
85943         * modules/snprintf (Depends-on): Add EOVERFLOW.
85945         * lib/poll.c (EOVERFLOW): Remove fallback.
85946         * modules/poll (Depends-on): Add EOVERFLOW.
85948         * lib/getugroups.c (EOVERFLOW): Remove fallback.
85949         * modules/getugroups (Depends-on): Add EOVERFLOW.
85951         * lib/getdelim.c (EOVERFLOW): Remove fallback.
85952         * modules/getdelim (Depends-on): Add EOVERFLOW.
85954         * lib/ftell.c (EOVERFLOW): Remove fallback.
85955         * modules/ftell (Depends-on): Add EOVERFLOW.
85957         * lib/fprintf.c (EOVERFLOW): Remove fallback.
85958         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
85959         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
85961         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
85963         * modules/EOVERFLOW-tests: New file.
85964         * tests/test-EOVERFLOW.c: New file.
85966         * modules/EOVERFLOW: New file.
85967         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
85969 2008-03-30  Bruno Haible  <bruno@clisp.org>
85971         Fix bug introduced on 2007-06-10.
85972         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
85973         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
85975 2008-03-30  Bruno Haible  <bruno@clisp.org>
85977         Improve freadseek's efficiency after ungetc.
85978         * lib/freadseek.c: Include freadahead.h.
85979         (freadptrinc): New function, extracted from freadseek.
85980         (freadseek): Use it in a loop. Use freadahead to determine the number
85981         of loop iterations.
85982         * modules/freadseek (Depends-on): Add freadahead.
85983         (configure.ac): Require AC_C_INLINE.
85985 2008-03-30  Bruno Haible  <bruno@clisp.org>
85987         * lib/freadseek.c (freadseek): Don't ignore the return value of
85988         freadptr.
85990 2008-03-29  Eric Blake  <ebb9@byu.net>
85992         Add hex float support.
85993         * modules/strtod (Depends-on): Add c-ctype.
85994         (Link): Mention POW_LIB.
85995         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
85996         whitespace between 'e' and exponent.
85997         * tests/test-strtod.c (main): Enable hex float tests.
85998         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
85999         now provides.
86001         Document various strtod bugs, with some fixes.
86002         * doc/posix-functions/strtod.texi (strtod): Document bugs with
86003         "-0x", "inf", "nan", and hex constants.
86004         * doc/posix-functions/atof.texi (atof): Likewise.
86005         * modules/stdlib (Makefile.am): Support strtod.
86006         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
86007         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
86008         detect additional strtod bugs.
86009         * lib/stdlib.in.h (rpl_strtod): Add declarations.
86010         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
86011         bool where appropriate.  Parse 'inf' and 'nan'.
86012         * tests/test-strtod.c: New file.
86013         * modules/strtod (Depends-on): Add stdbool, stdlib.
86014         (configure.ac): Turn on module indicator.
86015         * modules/strtod-tests: New module.
86017 2008-03-29  Eric Blake  <ebb9@byu.net>
86019         Fix ftell on mingw.
86020         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
86021         * modules/ftell-tests (Depends-on): Add binary-io.
86022         * modules/ftello-tests (Depends-on): Likewise.
86023         * tests/test-ftell.c (main): Enhance test to cover behavior after
86024         ungetc.  Enforce binary mode.
86025         * tests/test-ftello.c (main): Likewise.
86027         Pass test-freadseek on cygwin.
86028         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
86029         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
86030         ungetc buffer.
86032         * tests/test-fflush2.c (main): Fix typo.
86034 2008-03-29  Bruno Haible  <bruno@clisp.org>
86036         * tests/test-fflush2.c (main): Temporarily disable the contents of
86037         this test.
86038         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
86039         Reported by Eric Blake.
86041 2008-03-28  Simon Josefsson  <simon@josefsson.org>
86043         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
86044         (GC_SHA224_DIGEST_SIZE): Add.
86046         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
86047         (gc_hash_digest_length): Likewise.
86048         (gc_hash_buffer): Likewise.
86050 2008-03-25  Bruno Haible  <bruno@clisp.org>
86052         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
86053         detail which gettext release to use.
86054         Reported by Simon Josefsson.
86056 2008-03-26  Jim Meyering  <meyering@redhat.com>
86058         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
86059         * modules/gnumakefile (clean-GNUmakefile): Also, use
86060         test ... && ... || : syntax rather than if-then ... fi.
86062         gnumakefile: Don't double-quote-expand $(VPATH) value.
86063         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
86065 2008-03-24  Eric Blake  <ebb9@byu.net>
86067         Alter GNUmakefile to install into top directory.
86068         * modules/maintainer-makefile: Split, and add dependency...
86069         * modules/gnumakefile: to this new module.
86070         * build-aux/GNUmakefile: Move...
86071         * top/GNUmakefile: ...here.
86072         * build-aux/maint.mk: Move...
86073         * top/maint.mk: ...here.
86074         * MODULES.html.sh (Support for maintaining...): Document new
86075         module.
86077 2008-03-23  Bruno Haible  <bruno@clisp.org>
86079         * gnulib-tool: New options --vc-files, --no-vc-files.
86080         (func_usage): Document them.
86081         (vc_files): New variable.
86082         (func_import): Consider vc_files.
86083         (func_create_testdir): Set vc_files to empty.
86084         Suggested by Jim Meyering and Karl Berry.
86086 2008-03-23  Bruno Haible  <bruno@clisp.org>
86088         Fix regex compilation error on HP-UX 11.
86089         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
86090         * modules/regex (Files): Add m4/mbstate_t.m4.
86091         Reported by Ton Voon <ton.voon@altinity.com>.
86093 2008-03-23  Bruno Haible  <bruno@clisp.org>
86095         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
86097 2008-03-23  Eric Blake  <ebb9@byu.net>
86098             Bruno Haible  <bruno@clisp.org>
86100         Install files from top/ in the destination directory.
86101         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
86102         augmentation also for the files from top/.
86103         (func_import, func_create_testdir): Rewrite file names:
86104         top/filename -> filename.
86106 2008-03-23  Bruno Haible  <bruno@clisp.org>
86108         Tweak "gnulib --version" output.
86109         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
86111 2008-03-23  Bruno Haible  <bruno@clisp.org>
86113         Tweak "gnulib --version" output.
86114         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
86115         rather than contents of ChangeLog, when possible.
86117 2008-03-21  Eric Blake  <ebb9@byu.net>
86119         More --version tweaks.
86120         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
86121         date of last ChangeLog entry.
86123 2008-03-21  Jim Meyering  <meyering@redhat.com>
86125         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
86127 2008-03-20  Eric Blake  <ebb9@byu.net>
86129         VPATH fix.
86130         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
86132 2008-03-20  Simon Josefsson  <simon@josefsson.org>
86134         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
86135         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
86137 2008-03-20  Eric Blake  <ebb9@byu.net>
86139         Sync GNUmakefile with coreutils.
86140         * build-aux/GNUmakefile (have-Makefile): Rename...
86141         (_have-Makefile): ...to this, for namespace consideration.
86142         (GNUmakefile.cfg): Include, if present.
86143         (_autoreconf): Define a default.
86144         (_is-dist-target): New rule for rebuilds to pick up intra-release
86145         version.
86146         (maint-cfg.mk): Rename...
86147         (cfg.mk): ...to this.
86149 2008-03-18  Jim Meyering  <meyering@redhat.com>
86151         New script and module: mktempd
86152         * MODULES.html.sh (maint+release support): Add mktempd.
86153         * build-aux/mktempd: New file.
86154         * modules/mktempd: New file.
86156 2008-03-15  Jim Meyering  <meyering@redhat.com>
86158         Undo last change.
86159         * lib/sha1.c, lib/md5.c: 63 != ~63.
86160         Reported by Andreas Schwab.
86162         sha1.c, md5.c: Hoist a redundant expression.
86163         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
86164         "ctx->buflen" only once, before calling *_process_block.
86165         * lib/md5.c (md5_process_bytes): Likewise.
86167 2008-03-14  Eric Blake  <ebb9@byu.net>
86169         Bump copyright year in files generated by gnulib-tool.
86170         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
86171         gnulib-tool, rather than hard-coding it.
86173         Fix 'gnulib-tool --version' output to work with git.
86174         * gnulib-tool (func_gnulib_dir): New function, extracted from...
86175         (startup): ...here.
86176         (func_version): Use it to invoke git-version-gen, rather than
86177         relying on CVS keyword expansion.  Modernize wording.
86178         (cvsdatestamp, last_checkin_date, version): Kill unused
86179         variables.
86181 2008-03-12  Jim Meyering  <meyering@redhat.com>
86183         Recognize optional cast of the argument to free.
86184         * build-aux/useless-if-before-free: Update regexps.
86186         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
86188 2008-03-11  Bruno Haible  <bruno@clisp.org>
86190         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
86191         by a single package.
86192         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
86193         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
86194         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
86195         Reported by Sam Steingold <sds@gnu.org>.
86197 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
86199         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
86200         repositories.
86202 2008-03-11  Bruno Haible  <bruno@clisp.org>
86204         Avoid conflicts between local macro definitions.
86205         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
86206         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
86208 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
86209             Bruno Haible  <bruno@clisp.org>
86211         Make va_copy work with some version of xlc on AIX 5.1.
86212         * lib/stdarg.in.h: New file.
86213         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
86214         On AIX, use a <stdarg.h> file substitute.
86215         * modules/stdarg (Files): Add lib/stdarg.in.h.
86216         (Depends-on): Add include_next.
86217         (Makefile.am): Build a stdarg.h substitute if requested.
86218         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
86220 2008-03-10  Bruno Haible  <bruno@clisp.org>
86222         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
86223         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
86224         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
86226 2008-03-10  Bruno Haible  <bruno@clisp.org>
86228         * modules/stdlib (Depends-on): Add include_next, remove
86229         absolute-header.
86231 2008-03-09  Bruno Haible  <bruno@clisp.org>
86233         * lib/freadahead.h (freadahead): Document more precisely.
86234         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
86235         the sum of both buffer sizes.
86236         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
86237         * NEWS: Document the change.
86239 2008-03-09  Bruno Haible  <bruno@clisp.org>
86241         Extend freadptr to return also the buffer size.
86242         * lib/freadptr.h (freadptr): Add sizep argument.
86243         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
86244         (freadptr): Add sizep argument. Determine buffer size like freadahead
86245         does.
86246         * tests/test-freadptr.c: Don't include freadahead.h.
86247         (main): Adapt for new calling convention of freadptr.
86248         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
86249         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
86250         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
86251         tests/test-freadptr2.sh.
86252         (Depends): Remove freadahead.
86253         (TESTS): Add test-freadptr2.sh.
86254         (check_PROGRAMS): Add test-freadptr2.
86256 2008-03-09  Bruno Haible  <bruno@clisp.org>
86258         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
86259         Report and solution by Simon Josefsson.
86261 2008-03-06  Bruno Haible  <bruno@clisp.org>
86263         Make fflush after ungetc work on BSD platforms.
86264         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
86265         * tests/test-fflush2.c: New file.
86266         * tests/test-fflush2.sh: New file.
86267         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
86268         tests/test-fflush2.c.
86269         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
86270         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
86272 2008-03-06  Eric Blake  <ebb9@byu.net>
86274         Likewise for ftello.
86275         * modules/ftello (Dependencies): Add extensions.
86276         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
86278 2008-03-06  Bruno Haible  <bruno@clisp.org>
86280         * modules/fseeko (Dependencies): Add extensions.
86281         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
86282         Needed on glibc systems.
86284 2008-03-06  Bruno Haible  <bruno@clisp.org>
86286         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
86287         email address.
86288         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
86290 2008-03-06  Bruno Haible  <bruno@clisp.org>
86292         * users.txt: Add libgnupdf.
86294 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
86296         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
86297         (Header File Substitutes, Function Substitutes,
86298         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
86299         (Build robot for gnulib): Fix typo.
86301 2008-03-06  Bruno Haible  <bruno@clisp.org>
86303         * doc/gnulib-tool.texi (VCS Issues): Small updates.
86304         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
86306 2008-03-06  Bruno Haible  <bruno@clisp.org>
86308         * doc/func.texi: New file, extracted from doc/gnulib.texi.
86309         * doc/gnulib.texi: Include it.
86311 2008-03-06  Simon Josefsson  <simon@josefsson.org>
86313         * modules/func (License): Change license to unlimited; there was
86314         no LGPL parts in the module anyway.
86316 2008-03-06  Simon Josefsson  <simon@josefsson.org>
86318         * modules/__func__: Renamed to modules/func.
86319         * modules/__func__-tests: Renamed to modules/func-tests.
86320         * tests/test-__func__.c: Renamed to tests/test-func.c.
86321         * m4/__func__.m4: Renamed to m4/func.m4.
86322         * doc/gnulib.texi (__func__): Section renamed to func.
86323         Suggested by Eric Blake <ebb9@byu.net>.
86325 2008-03-06  Simon Josefsson  <simon@josefsson.org>
86327         * doc/gnulib.texi (__func__): Use C99 terminology when talking
86328         about __func__.  Make example self-contained.  Suggested by Eric
86329         Blake <ebb9@byu.net>.
86331         * tests/test-__func__.c (main): Avoid extraneous () around __func.
86332         Suggested by Eric Blake <ebb9@byu.net>.
86334 2008-03-06  Simon Josefsson  <simon@josefsson.org>
86336         * modules/__func__: New file.
86337         * modules/__func__-tests: New file.
86338         * tests/test-__func__.c: New file.
86339         * m4/__func__.m4: New file.
86340         * doc/gnulib.texi (__func__): Document __func__ module.
86342 2008-03-05  Simon Josefsson  <simon@josefsson.org>
86344         * modules/byteswap (License): Re-license as LGPLv2+.
86346 2008-03-05  Simon Josefsson  <simon@josefsson.org>
86348         * doc/Makefile: Add pdf target.
86350 2008-03-05  Simon Josefsson  <simon@josefsson.org>
86352         * modules/inline (License): Use 'unlimited', since there are only
86353         *.m4 files in this module.
86355 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
86356             Bruno Haible  <bruno@clisp.org>
86358         Add support for HP C 7.1 on OpenVMS 8.3.
86359         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
86361 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
86363         Update VMS specifics.
86364         * lib/getopt.c [VMS]: Remove include of unixlib.h.
86366 2008-03-02  Jim Meyering  <meyering@redhat.com>
86368         Remove the last dependency on the "free" module.
86369         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
86370         Reported by Bob Proulx.
86372         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
86374         Remove useless "if" tests before free.  Deprecate "free" module.
86375         * doc/posix-functions/free.texi: Mention that this
86376         module is no longer useful.
86377         * modules/free (Notice): Say this module is obsolete.
86378         * modules/readutmp (Depends-on): Remove free.
86379         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
86380         * lib/putenv.c (putenv): Likewise.
86381         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
86382         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
86383         * tests/test-c-strcasestr.c (main): Likewise.
86384         * tests/test-c-strstr.c (main): Likewise.
86385         * tests/test-mbscasestr1.c (main): Likewise.
86386         * tests/test-mbscasestr2.c (main): Likewise.
86387         * tests/test-mbsstr1.c (main): Likewise.
86388         * tests/test-mbsstr2.c (main): Likewise.
86389         * tests/test-memmem.c (main): Likewise.
86390         * tests/test-strcasestr.c (main): Likewise.
86391         * tests/test-striconv.c (main): Likewise.
86392         * tests/test-striconveh.c (main): Likewise.
86393         * tests/test-striconveha.c (main): Likewise.
86394         * tests/test-strstr.c (main): Likewise.
86396         * build-aux/git-version-gen: Adjust a comment and the Usage string.
86398         bootstrap: sync from coreutils again
86399         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
86401 2008-03-01  Jim Meyering  <meyering@redhat.com>
86403         bootstrap: sync from coreutils
86404         * build-aux/bootstrap (update_po_files): Copy a .po file into place
86405         also when the target doesn't exist.
86407 2008-03-01  Eric Blake  <ebb9@byu.net>
86409         Fix bugs in last patch.
86410         * lib/memchr2.c (memchr2): Fix typo.
86411         * tests/test-memchr2.c: Test previous bug, and don't use GNU
86412         extension.
86413         Reported by Bruce Korb.
86415         New module 'memchr2'.
86416         * modules/memchr2: New file.
86417         * modules/memchr2-tests: Likewise.
86418         * lib/memchr2.h: Likewise.
86419         * lib/memchr2.c: Likewise, based on memchr.c.
86420         * tests/test-memchr2.c: New test.
86421         * MODULES.html.sh (String handling): Add memchr2.
86423 2008-02-29  Bruno Haible  <bruno@clisp.org>
86425         * modules/freadseek-tests: New file.
86426         * tests/test-freadseek.sh: New file.
86427         * tests/test-freadseek.c: New file.
86429         New module 'freadseek'.
86430         * modules/freadseek: New file.
86431         * lib/freadseek.h: New file.
86432         * lib/freadseek.c: New file.
86433         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
86435 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
86437         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
86438         wydawca.
86440         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
86441         program_invocation_name and program_invocation_short_name are
86442         present.
86444 2008-02-28  Bruno Haible  <bruno@clisp.org>
86446         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
86447         * tests/test-freadptr.sh: Also test non-seekable stdin.
86449 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
86451         * build-aux/bootstrap (source_base, m4_base)
86452         (doc_base, tests_base): New variables.
86453         (gnulib_tool_options): Do not hardcode base directories, use
86454         the above variables instead.
86456 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
86458         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
86460 2008-02-28  Bruno Haible  <bruno@clisp.org>
86462         * modules/freadptr-tests: New file.
86463         * tests/test-freadptr.sh: New file.
86464         * tests/test-freadptr.c: New file.
86466         New module 'freadptr'.
86467         * modules/freadptr: New file.
86468         * lib/freadptr.h: New file.
86469         * lib/freadptr.c: New file.
86470         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
86472 2008-02-26  Karl Berry  <karl@freefriends.org>
86474         Sync from Libtool:
86475         * libltdl/argz.c (argz_add, argz_count): New functions.
86476         * libltdl/argz.in.h: Declare them.
86477         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
86479 2008-02-22  Bruno Haible  <bruno@clisp.org>
86481         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
86482         is a pointer type.  Needed for HP-UX 10.
86483         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
86484         * doc/posix-functions/gmtime_r.texi: Likewise.
86485         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
86487 2008-02-24  Bruno Haible  <bruno@clisp.org>
86489         * modules/environ-tests: New file.
86490         * tests/test-environ.c: New file.
86492         New module 'environ'.
86493         * modules/environ: New file.
86494         * lib/unistd.in.h (environ): New declaration.
86495         * m4/environ.m4: New file.
86496         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
86497         after use.
86498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
86499         HAVE_DECL_ENVIRON.
86500         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
86501         HAVE_DECL_ENVIRON.
86502         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
86503         wrong claim that 'environ' is missing on some systems.
86504         * modules/execute (Depends-on): Add environ.
86505         * lib/execute.c (environ): Remove fallback declaration.
86506         * modules/pipe (Depends-on): Add environ.
86507         * lib/pipe.c (environ): Remove fallback declaration.
86508         * modules/setenv (Depends-on): Add environ.
86509         * lib/setenv.c (environ): Remove fallback declaration.
86510         * modules/unsetenv (Depends-on): Add environ.
86511         * lib/unsetenv.c (environ): Remove fallback declaration.
86512         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
86513         m4/environ.m4.
86514         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
86515         (gl_PREREQ_UNSETENV): Likewise.
86517 2008-02-24  Bruno Haible  <bruno@clisp.org>
86519         * doc/posix-functions/environ.texi: Document the MacOS X problem.
86521 2008-02-20  Bob Proulx  <bob@proulx.com>
86523         Enable use of older two part flavor 'git describe'.
86524         * build-aux/git-version-gen: If using the older two part flavor of
86525         git version then recreate the third part now present in the
86526         newer three part flavor of git describe.
86528 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
86530         * lib/fts.c (fts_build): Typo correction to comment.
86532 2008-02-17  Bruno Haible  <bruno@clisp.org>
86534         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
86535         generating no-op conflicts.
86537 2008-02-17  Bruno Haible  <bruno@clisp.org>
86539         Speed up by 10%.
86540         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
86541         result_entries, rather than an index-based loop.
86543 2008-02-17  Bruno Haible  <bruno@clisp.org>
86545         Speed up by 25%.
86546         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
86547         'hashcode_cached'.
86548         (entry_create): New function.
86549         (entry_hashcode): Use the cached hashcode if possible.
86550         (read_changelog_file, try_split_merged_entry): Use entry_create.
86552 2008-02-17  Bruno Haible  <bruno@clisp.org>
86554         Speed up from O(n^2) to O(n) for long ChangeLog files.
86555         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
86556         (read_changelog_file): Change implementation of entries_reversed list
86557         to rbtreehash.
86558         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
86560 2008-02-17  Bruno Haible  <bruno@clisp.org>
86562         New option --split-merged-entry.
86563         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
86564         (find_paragraph_end, try_split_merged_entry): New functions.
86565         (long_options): Add option --split-merged-entry.
86566         (usage): Document option --split-merged-entry.
86567         (main): Implement option --split-merged-entry.
86568         Reported by Eric Blake.
86570 2008-02-17  Bruno Haible  <bruno@clisp.org>
86572         * lib/git-merge-changelog.c: Include c-strstr.h.
86573         (main): Support the "git pull --rebase" situation.
86574         * modules/git-merge-changelog (Depends-on): Add c-strstr.
86575         Reported by Eric Blake.
86577 2008-02-16  Eric Blake  <ebb9@byu.net>
86579         Avoid doubling \ in common case of "c-maybe" quoting style.
86580         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
86581         eliding outer quotes.
86582         * lib/quotearg.h: Document this.
86583         * tests/test-quotearg.c (result_strings, inputs, results_g)
86584         (flag_results, locale_results): Test it by adding a new string to
86585         each test group.
86586         (compare_strings): Test new string.
86588 2008-02-13  Eric Blake  <ebb9@byu.net>
86590         Avoid trigraph quoting in default output.
86591         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
86592         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
86593         unless explicitly requested.
86594         * tests/test-quotearg.c (flag_results, main): Add additional tests.
86596 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
86598         Don't rely on signed integer overflowing to negative value.
86599         * lib/getugroups.c (getugroups): Include <limits.h>.
86600         Instead, compare against INT_MAX, and increment only if the test passes.
86602 2008-02-13  Jim Meyering  <meyering@redhat.com>
86603         and Eric Blake  <ebb9@byu.net>
86605         Avoid shadowing warning and compile errors on Linux.
86606         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
86607         forwarding macros on Linux.
86608         (dcgettext): Define a stub, for Linux.
86609         (results_g, main): Avoid warnings.
86611 2008-02-12  Eric Blake  <ebb9@byu.net>
86613         Silence warning in last patch.
86614         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
86616         Quotearg part 4: add tests, fix c-maybe colon quoting.
86617         * lib/quotearg.h: Improve documentation.
86618         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
86619         escapes when adding outer quotes.  When quoting trigraphs, use
86620         valid C notation.  When quoting NUL, omit extra characters if next
86621         character is not digit.  Alter prototype.
86622         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
86623         callers.
86624         * modules/quotearg-tests: New module.
86625         * tests/test-quotearg.c: New test.
86627 2008-02-07  Eric Blake  <ebb9@byu.net>
86629         Quotearg part 3: add flag to control outer quote elision.
86630         * lib/quotearg.h (c_maybe_quoting_style): New style.
86631         (enum quoting_flags): Better documentation of flags.
86632         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
86633         c-maybe style.
86634         (quotearg_buffer_restyled): Handle new flag to elide outer
86635         quotes.
86637         Quotearg part 2: add flag that can control NUL elision.
86638         * lib/quotearg.h (set_quoting_flags): New prototype.
86639         * lib/quotearg.c (struct quoting_options): Add flag field.
86640         (set_quoting_flags): New function.
86641         (quotearg_buffer_restyled): Add flags parameter.
86642         (quotearg_alloc_mem): Set the flag if length cannot be returned.
86643         (quotearg_n_options): Set the flag, since length cannot be
86644         returned.
86645         (quoting_options_from_style): Default flags correctly.
86647         Quotearg part 1: more wrappers, restore quotearg_char state.
86648         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
86649         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
86650         (quotearg_colon_mem): New wrappers.
86651         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
86652         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
86653         functions.
86654         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
86655         (quotearg_colon_mem): New functions.
86657 2008-02-11  Bruno Haible  <bruno@clisp.org>
86659         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
86660         library in the current directory: it does not work with parallel make.
86661         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86663 2008-02-11  Bruno Haible  <bruno@clisp.org>
86665         * .gitattributes: New file.
86667 2008-02-11  Jim Meyering  <meyering@redhat.com>
86669         useless-if-before-free: Fix reversed exit values.
86670         * build-aux/useless-if-before-free: Use correct values
86671         for EXIT_MATCH and EXIT_NO_MATCH.
86673         * build-aux/useless-if-before-free: Close stdout carefully.
86675 2008-02-10  Bruno Haible  <bruno@clisp.org>
86677         New module 'git-merge-changelog'.
86678         * modules/git-merge-changelog: New file.
86679         * lib/git-merge-changelog.c: New file.
86681 2008-02-10  Jim Meyering  <meyering@redhat.com>
86683         useless-if-before-free: New option: --list (-l).
86685         useless-if-before-free: Don't exit immediately upon open failure.
86686         * build-aux/useless-if-before-free: Exit 2 for errors.
86687         Upon failure to open a file, don't exit immediately.
86688         Rather, just warn and continue with any remaining files.
86690 2008-02-10  Bruno Haible  <bruno@clisp.org>
86692         New abstract list operation 'node_set_value'.
86693         * lib/gl_list.h (gl_list_node_set_value): New function.
86694         (struct gl_list_implementation): New field node_set_value.
86695         * lib/gl_list.c (gl_list_node_set_value): New function.
86696         * lib/gl_array_list.c (gl_array_node_set_value): New function.
86697         (gl_array_list_implementation): Update.
86698         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
86699         (gl_carray_list_implementation): Update.
86700         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
86701         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
86702         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
86703         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
86704         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
86705         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
86706         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
86707         Update.
86708         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
86709         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
86710         (gl_sublist_list_implementation): Update.
86712 2008-02-10  Bruno Haible  <bruno@clisp.org>
86714         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
86715         Needed when ELEMENT is #defined to 'some_type *'.
86717 2008-02-10  Jim Meyering  <meyering@redhat.com>
86719         New script and module: useless-if-before-free
86720         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
86721         * build-aux/useless-if-before-free: New file.
86722         * modules/useless-if-before-free: New file.
86724         * build-aux/gitlog-to-changelog: Use committer date, not author date.
86726         xstrtol_error: Fix typo.
86727         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
86728         s/exit_failure/exit_status/.
86730 2008-02-09  Jim Meyering  <meyering@redhat.com>
86732         New script and module: gitlog-to-changelog
86733         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
86734         * modules/gitlog-to-changelog: New file.
86735         * build-aux/gitlog-to-changelog: New file.
86737 2008-02-08  Jim Meyering  <meyering@redhat.com>
86739         Avoid two "parameter unused" warnings.
86740         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
86741         Mark "st" as used.
86743         Use "git COMMAND", not "git-COMMAND".
86744         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
86745         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
86746         * build-aux/git-version-gen: Use "git status", not "git-status".
86748 2008-02-07  Bruno Haible  <bruno@clisp.org>
86750         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
86751         Avoids a crash on Windows Vista.
86752         Reported by Adam Strzelecki <ono@java.pl> via
86753         Simon Josefsson <simon@josefsson.org>.
86755 2008-02-06  Bruno Haible  <bruno@clisp.org>
86757         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
86758         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
86759         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
86760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
86761         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
86762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86763         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
86764         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
86765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86766         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86767         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86768         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86769         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86772         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
86773         left-adjust flag.
86774         * tests/test-snprintf-posix.h (test_function): Likewise.
86775         * tests/test-sprintf-posix.h (test_function): Likewise.
86776         * tests/test-vasprintf-posix.c (test_function): Likewise.
86777         * doc/posix-functions/fprintf.texi: Update.
86778         * doc/posix-functions/printf.texi: Update.
86779         * doc/posix-functions/snprintf.texi: Update.
86780         * doc/posix-functions/sprintf.texi: Update.
86781         * doc/posix-functions/vfprintf.texi: Update.
86782         * doc/posix-functions/vprintf.texi: Update.
86783         * doc/posix-functions/vsnprintf.texi: Update.
86784         * doc/posix-functions/vsprintf.texi: Update.
86785         Reported by Peter Fales <psfales@alcatel-lucent.com>.
86787 2008-02-06  Bruno Haible  <bruno@clisp.org>
86789         Fix bug introduced on 2008-01-26.
86790         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
86792 2008-02-06  Bruno Haible  <bruno@clisp.org>
86794         Fix bug introduced on 2007-06-10.
86795         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
86796         !NEED_PRINTF_FLAG_ZERO.
86798 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
86800         getloadavg: use libperfstat on AIX5
86801         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
86803 2008-02-03  Bruno Haible  <bruno@clisp.org>
86805         * lib/diffseq.h: Add comments about required #includes.
86806         Reported by Michael Biggs <gnulib@doubleplum.net>.
86808 2008-02-01  Bruno Haible  <bruno@clisp.org>
86810         * users.txt: Add gnuit.
86812 2008-01-31  Bruno Haible  <bruno@clisp.org>
86814         * lib/md4.c (set_uint32): Mark as inline.
86815         * lib/md5.c (set_uint32): Likewise.
86816         * lib/sha1.c (set_uint32): Likewise.
86817         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
86818         * m4/md5.m4 (gl_MD5): Likewise.
86819         * m4/sha1.m4 (gl_SHA1): Likewise.
86821 2008-01-31  Jim Meyering  <meyering@redhat.com>
86823         Use "sizeof VAR", rather than a literal "4".
86824         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
86825         * lib/md4.c (md4_read_ctx): Likewise.
86826         * lib/sha1.c (sha1_read_ctx): Likewise.
86828 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86830         * tests/test-sha1.c: New file, based on test-md5.c.
86832         * modules/crypto/sha1-tests: New file.
86834 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86836         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
86838 2008-01-31  Jim Meyering  <meyering@redhat.com>
86840         Prefer "sizeof v" over the equivalent "4".
86841         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
86842         * lib/md5.c (set_uint32): Likewise.
86843         * lib/sha1.c (set_uint32): Likewise.
86845 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86847         * lib/sha1.c (set_uint32): Mark function as static.
86849 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86851         md2: clarify comments to say that alignment is not required.
86852         * lib/md2.h: Remove warning about alignment in comment.
86853         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
86854         never been required.
86856 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86858         md4: adapt alignment constraint fix from sha1.
86859         * lib/md4.c (set_uint32): New function, from sha1.c
86860         (md4_read_ctx): Use it.
86861         (md4_finish_ctx): Doc fix.
86862         * lib/md4.h: Doc fix.
86864 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86866         md5: adapt alignment constraint fix from sha1.
86867         * lib/md5.c (set_uint32): New function, from sha1.c
86868         (md5_read_ctx): Use it.
86869         (md5_finish_ctx): Doc fix.
86870         * lib/md5.h: Doc fix.
86872 2008-01-30  Peter Palfrader  <weasel@debian.org>
86874         sha1: remove the result buffer alignment constraint
86875         * lib/sha1.c (set_uint32): New function.
86876         (sha1_read_ctx): Rewrite to remove the result buffer alignment
86877         constraint.
86878         (sha1_finish_ctx): Remove comment warning about alignment constraint.
86879         * lib/sha1.h: Likewise.
86881 2008-01-30  Andreas Schwab  <schwab@suse.de>
86882             Bruno Haible  <bruno@clisp.org>
86884         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
86885         correct definition of LDBL_MIN_EXP.
86887 2008-01-30  Karl Berry  <karl@gnu.org>
86889         * config/srclist-update: try to preserve x bit on updates.
86890         * config/srclistvars.sh: update for karl.
86892 2008-01-29  Jim Meyering  <meyering@redhat.com>
86894         vasnprintf.c: Avoid warning about unused label
86895         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
86896         "overflow" label definition and associated code with the
86897         same cpp condition that guards the sole use of that label.
86899 2008-01-26  Bruno Haible  <bruno@clisp.org>
86901         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
86902         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
86903         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
86904         * lib/isnanl-nolibm.h (isnanl): Likewise.
86905         Reported by Paul Eggert <eggert@cs.ucla.edu>.
86907 2008-01-26  Bruno Haible  <bruno@clisp.org>
86909         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
86910         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
86912 2008-01-26  Bruno Haible  <bruno@clisp.org>
86914         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
86915         GCC >= 4.0 built-in.
86916         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
86918 2008-01-26  Bruno Haible  <bruno@clisp.org>
86920         Rename isnan, applicable to 'double' only, to isnand.
86921         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
86922         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
86923         (configure.ac): Update.
86924         (Include): Replace "isnan.h" with "isnand.h".
86925         * m4/isnand.m4: Renamed from m4/isnan.m4.
86926         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
86927         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
86928         instead of isnan.c.
86929         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
86930         instead of HAVE_ISNAN_IN_LIBC.
86931         (isnand): Renamed from isnan.
86932         * lib/isnand.c: New file.
86933         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
86934         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
86935         (Makefile.am): Update.
86936         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
86937         Include isnand.h instead of isnan.h.
86938         (main): Test isnand instead of isnan.
86939         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
86940         isnan-nolibm.
86941         * modules/frexp (Depends-on): Likewise.
86942         * modules/frexp-tests (Depends-on): Likewise.
86943         * modules/frexp-nolibm (Depends-on): Likewise.
86944         * modules/frexp-nolibm-tests (Depends-on): Likewise.
86945         * modules/isfinite (Depends-on): Likewise.
86946         * modules/round-tests (Depends-on): Likewise.
86947         * modules/signbit (Depends-on): Likewise.
86948         * modules/signbit-tests (Depends-on): Likewise.
86949         * modules/snprintf-posix (Depends-on): Likewise.
86950         * modules/sprintf-posix (Depends-on): Likewise.
86951         * modules/trunc-tests (Depends-on): Likewise.
86952         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
86953         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
86954         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
86955         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
86956         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
86957         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
86958         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
86959         * modules/vasnprintf-posix (Depends-on): Likewise.
86960         * modules/vasprintf-posix (Depends-on): Likewise.
86961         * modules/vfprintf-posix (Depends-on): Likewise.
86962         * modules/vsnprintf-posix (Depends-on): Likewise.
86963         * modules/vsprintf-posix (Depends-on): Likewise.
86964         * lib/frexp.c: Include isnand.h instead of isnan.h.
86965         (ISNAN): Set to isnand instead of isnan.
86966         * lib/isfinite.c: Include isnand.h instead of isnan.h.
86967         (gl_isfinited): Use isnand instead of isnan.
86968         * lib/signbitd.c: Include isnand.h instead of isnan.h.
86969         (gl_signbitd): Use isnand instead of isnan.
86970         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
86971         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
86972         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
86973         (main): Use isnand instead of isnan.
86974         * tests/test-round1.c: Include isnand.h.
86975         (main): Use isnand instead of isnan.
86976         * tests/test-round2.c: Include isnand.h instead of isnan.h.
86977         (ISNAN): Set to isnand instead of isnan.
86978         * tests/test-trunc1.c: Include isnand.h.
86979         (main): Use isnand instead of isnan.
86980         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
86981         (equal): Use isnand instead of isnan.
86982         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
86983         isnand-nolibm.
86984         * NEWS: Mention the change.
86986 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
86987             Bruno Haible  <bruno@clisp.org>
86989         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
86990         the GCC builtins for signbits are present and set
86991         REPLACE_SIGNBIT_USING_GCC if so.
86992         * lib/math.in.h (signbit): Define using GCC builtins if
86993         REPLACE_SIGNBIT_USING_GCC is set.
86994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
86995         REPLACE_SIGNBIT_USING_GCC.
86996         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
86998 2008-01-25  Jim Meyering  <meyering@redhat.com>
87000         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
87001         * lib/poll.c: Include <config.h>, not "config.h".
87002         * tests/test-getaddrinfo.c: Likewise.
87004 2008-01-25  Simon Josefsson  <simon@josefsson.org>
87006         * modules/sockets-tests: New file.
87008 2008-01-24  Simon Josefsson  <simon@josefsson.org>
87010         * modules/sockets: New module, can be used to call WSA_Startup and
87011         WSA_Cleanup when needed.
87013         * lib/sockets.h, lib/sockets.c: New files.
87015         * m4/sockets.m4: New file.
87017         * tests/test-sockets.c: New file.
87019 2008-01-19  Bruno Haible  <bruno@clisp.org>
87021         * doc/posix-headers: Renamed from doc/headers.
87022         * doc/posix-functions: Renamed from doc/functions.
87023         * doc/gnulib.texi: Update.
87025 2008-01-19  Bruno Haible  <bruno@clisp.org>
87027         * doc/glibc-functions/strcasestr.texi: Include contents of
87028         doc/functions/strcasestr.texi, fixing the list of platforms.
87029         * doc/functions/strcasestr.texi: Remove file.
87031 2008-01-19  Bruno Haible  <bruno@clisp.org>
87033         * doc/glibc-functions/memmem.texi: Include contents of
87034         doc/functions/memmem.texi.
87035         * doc/functions/memmem.texi: Remove file.
87037 2008-01-18  Bruno Haible  <bruno@clisp.org>
87039         * doc/glibc-functions/*.texi: New files.
87040         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
87041         to use the new files.
87043 2008-01-17  Bruno Haible  <bruno@clisp.org>
87045         * tests/test-gethostname.c (main): Fix printf statement.
87047 2008-01-17  Simon Josefsson  <simon@josefsson.org>
87049         * modules/gethostname-tests: New file.
87051         * tests/test-gethostname.c: New file.
87053 2008-01-17  Simon Josefsson  <simon@josefsson.org>
87055         * lib/gethostname.c: Include string.h unconditionally, strncpy is
87056         used by the UNAME case.  Reported by Bruno Haible
87057         <bruno@clisp.org>.
87059 2008-01-17  Eric Blake  <ebb9@byu.net>
87061         Convert c-strcasestr to be more efficient.
87062         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
87063         (Depends-on): Add c-strcase, remove malloca, strnlen.
87064         * tests/test-c-strcasestr.c (main): Enhance test.
87065         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
87067 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
87069         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
87070         Use it in creating po/Makevars.
87072 2008-01-15  Simon Josefsson  <simon@josefsson.org>
87074         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
87075         Applications that requires it should initialize libgcrypt
87076         manually.
87078 2008-01-16  Simon Josefsson  <simon@josefsson.org>
87080         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
87082 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
87084         Fix problem with getdate on mingw32 reported by Simon Josefsson
87085         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
87086         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
87087         tzname", when deciding whether to declare tzname.
87088         * lib/strftime.c (tzname): Likewise.
87090 2008-01-15  Bruno Haible  <bruno@clisp.org>
87092         Work around a MacOS X 10.5 bug in frexpl().
87093         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
87094         * doc/functions/frexpl.texi: Document the bug.
87095         Reported by Elias Pipping <pipping@gentoo.org>.
87097 2008-01-14  Eric Blake  <ebb9@byu.net>
87099         Touch up previous patch.
87100         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
87101         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
87103         Convert strcasestr module to use Two-Way algorithm.
87104         * modules/strcasestr-simple: New module, based on the old
87105         strcasestr, but with Two-Way rather than KMP.
87106         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
87107         * lib/string.in.h (rpl_strcasestr): Declare.
87108         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
87109         performance.
87110         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
87111         * modules/string (Makefile.am): Support strcasestr.
87112         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
87113         * modules/strcasestr-tests (Depends-on): Check for alarm.
87114         * tests/test-strcasestr.c: Augment test.
87115         * lib/str-two-way.h: Clean up stray macro.
87116         * NEWS: Document new module.
87117         * MODULES.html.sh (string handling): Likewise.
87118         * doc/functions/strcasestr.texi: New file.
87119         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
87120         here, since it is not a POSIX function.
87122 2008-01-14  Colin Watson  <cjwatson@debian.org>
87123             Bruno Haible  <bruno@clisp.org>
87125         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
87126         works fine; if not, set REPLACE_STRSIGNAL.
87127         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
87128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
87129         REPLACE_STRSIGNAL.
87130         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
87131         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
87132         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
87134 2008-01-14  Bruno Haible  <bruno@clisp.org>
87136         * modules/strsignal (Include): Change to <string.h>.
87138 2008-01-14  Colin Watson  <cjwatson@debian.org>
87140         * modules/argp (Notice): Add a notice recommending to change
87141         XGETTEXT_OPTIONS.
87142         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
87144 2008-01-13  Colin Watson  <cjwatson@debian.org>
87146         * modules/strsignal-tests: New file.
87147         * tests/test-strsignal.c: New file.
87149         * lib/strsignal.c: New file, from glibc with modifications.
87150         * lib/siglist.h: New file, from glibc with modifications.
87151         * lib/string.in.h (strsignal): New declaration.
87152         * m4/strsignal.m4: New file.
87153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
87154         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
87155         * modules/strsignal: New file.
87156         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
87157         HAVE_DECL_STRSIGNAL.
87159 2008-01-13  Bruno Haible  <bruno@clisp.org>
87161         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
87162         locale encoding is not ASCII. Needed for OpenBSD 4.0.
87163         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
87164         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
87166 2008-01-13  Bruno Haible  <bruno@clisp.org>
87168         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
87169         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
87170         * lib/argp.h (__attribute__): Likewise.
87171         * lib/c-stack.c (__attribute__): Likewise.
87172         * lib/error.h (__attribute__): Likewise.
87173         * lib/fts.c (__attribute__): Likewise.
87174         * lib/openat.h (__attribute__): Likewise.
87175         * lib/stdio.in.h (__attribute__): Likewise.
87176         * lib/string.in.h (__attribute__): Likewise.
87177         * lib/utimens.c (__attribute__): Likewise.
87178         * lib/vasnprintf.h (__attribute__): Likewise.
87179         * lib/xalloc.h (__attribute__): Likewise.
87180         * lib/xprintf.h (__attribute__): Likewise.
87181         * lib/xstrtol.h (__attribute__): Likewise.
87182         * lib/xvasprintf.h (__attribute__): Likewise.
87184 2008-01-12  Bruno Haible  <bruno@clisp.org>
87186         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
87187         * doc/glibc-headers/a.out.texi: New file.
87188         * doc/glibc-headers/aliases.texi: New file.
87189         * doc/glibc-headers/alloca.texi: New file.
87190         * doc/glibc-headers/ar.texi: New file.
87191         * doc/glibc-headers/argp.texi: New file.
87192         * doc/glibc-headers/argz.texi: New file.
87193         * doc/glibc-headers/byteswap.texi: New file.
87194         * doc/glibc-headers/crypt.texi: New file.
87195         * doc/glibc-headers/endian.texi: New file.
87196         * doc/glibc-headers/envz.texi: New file.
87197         * doc/glibc-headers/err.texi: New file.
87198         * doc/glibc-headers/error.texi: New file.
87199         * doc/glibc-headers/execinfo.texi: New file.
87200         * doc/glibc-headers/fpu_control.texi: New file.
87201         * doc/glibc-headers/fstab.texi: New file.
87202         * doc/glibc-headers/fts.texi: New file.
87203         * doc/glibc-headers/getopt.texi: New file.
87204         * doc/glibc-headers/ieee754.texi: New file.
87205         * doc/glibc-headers/ifaddrs.texi: New file.
87206         * doc/glibc-headers/libintl.texi: New file.
87207         * doc/glibc-headers/mcheck.texi: New file.
87208         * doc/glibc-headers/mntent.texi: New file.
87209         * doc/glibc-headers/obstack.texi: New file.
87210         * doc/glibc-headers/paths.texi: New file.
87211         * doc/glibc-headers/printf.texi: New file.
87212         * doc/glibc-headers/pty.texi: New file.
87213         * doc/glibc-headers/resolv.texi: New file.
87214         * doc/glibc-headers/shadow.texi: New file.
87215         * doc/glibc-headers/sysexits.texi: New file.
87216         * doc/glibc-headers/ttyent.texi: New file.
87218 2008-01-12  Jim Meyering  <meyering@redhat.com>
87220         announce-gen: emit Gnulib's git-based version string.
87221         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
87222         New option --gnulib-version=V, where V is expected to be
87223         the output of running git describe in the gnulib directory.
87224         (get_tool_versions): Request feedback on xdelta.  I suspect it's
87225         not useful, and plan to stop publishing an xdelta file with each
87226         coreutils release.
87228         * build-aux/announce-gen: Also check for lzma-compressed files.
87230 2008-01-11  Bruno Haible  <bruno@clisp.org>
87232         * tests/test-memmem.c (main): Increase maximum allowed time.
87233         * tests/test-strstr.c (main): Likewise.
87235 2008-01-11  Bruno Haible  <bruno@clisp.org>
87237         * doc/functions/memmem.texi: Add more precisions about platforms.
87238         * doc/functions/strstr.texi: Likewise.
87240 2008-01-10  Eric Blake  <ebb9@byu.net>
87242         * m4/strstr.m4: Delete cruft from copy-n-paste.
87243         Reported by Bruno Haible.
87245 2008-01-10  Bruno Haible  <bruno@clisp.org>
87247         Make c-strstr rely on strstr.
87248         * lib/c-strstr.c: Don't include str-kmp.h.
87249         (c_strstr): Define in terms of strstr.
87250         * modules/c-strstr (Files): Remove lib/str-kmp.h.
87251         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
87253 2008-01-10  Bruno Haible  <bruno@clisp.org>
87255         * doc/gnulib.texi (String Functions in C Locale): New section.
87256         * doc/c-ctype.texi: New file.
87257         * doc/c-strcase.texi: New file.
87258         * doc/c-strcaseeq.texi: New file.
87259         * doc/c-strcasestr.texi: New file.
87260         * doc/c-strstr.texi: New file.
87261         * doc/c-strtod.texi: New file.
87262         * doc/c-strtold.texi: New file.
87264 2008-01-10  Eric Blake  <ebb9@byu.net>
87266         * lib/relocatable.h: Fix a comment.
87268 2008-01-10  Eric Blake  <ebb9@byu.net>
87270         Share two-way algorithm.
87271         * lib/str-two-way.h: New file, merged from...
87272         * lib/memmem.c: ...here...
87273         * lib/strstr.c: ...and here.
87274         * modules/memmem (Files): Use it.
87275         * modules/strstr (Files): Likewise.
87277         Avoid quadratic strstr implementations.
87278         * lib/strstr.c: New file.
87279         * m4/strstr.m4: Likewise.
87280         * modules/strstr: Likewise.
87281         * modules/strstr-tests: Likewise.
87282         * tests/test-strstr.c: Likewise.
87283         * lib/string.in.h (rpl_strstr): Declare.
87284         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
87285         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
87286         * modules/string (Makefile.am): Likewise.
87287         * MODULES.html.sh (string handling): Mention new module.
87288         * doc/functions/strstr.texi (strstr): Document the bug.
87290 2008-01-10  Bruno Haible  <bruno@clisp.org>
87292         * lib/relocatable.h (relocate): State whether result is freshly
87293         allocated or not.
87294         * lib/relocatable.c (relocate): Return a freshly allocated string
87295         instead of a pointer to a privately held string.
87296         Reported by Sylvain Beucler <beuc@gnu.org>.
87298 2008-01-10  Colin Watson  <cjwatson@debian.org>
87300         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
87301         s/S_ISNLK/S_ISLNK/.
87303 2008-01-09  Bruno Haible  <bruno@clisp.org>
87305         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
87306         and other files.
87307         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
87308         if it's only a guess.
87309         * modules/memmem: Simplify by depending on memmem-simple.
87311 2008-01-09  Bruno Haible  <bruno@clisp.org>
87313         Work around OpenBSD 4.0 tdelete() bug.
87314         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
87315         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
87316         macros and don't redefine the enum values.
87317         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
87318         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
87319         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
87321 2008-01-09  Bruno Haible  <bruno@clisp.org>
87323         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
87324         (main): Don't perform the tests if setlocale did not install a UTF-8
87325         locale. Needed on OpenBSD 4.0.
87326         * modules/wcwidth-tests (Depends-on): Add localcharset.
87328 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
87330         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
87331         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
87332         * NEWS: announce this.
87333         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
87335 2008-01-09  Simon Josefsson  <simon@josefsson.org>
87336         and Eric Blake  <ebb9@byu.net>
87338         Add memmem-simple module.
87339         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
87340         (gl_FUNC_MEMMEM): Separate performance from presence checks.
87341         * modules/memmem-simple: New file.
87342         * modules/memmem (Description): Tweak.
87343         * MODULES.html.sh (string handling): Mention new module.
87344         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
87345         addressed by memmem-simple.
87346         * NEWS: Document the difference.
87348 2008-01-09  Eric Blake  <ebb9@byu.net>
87350         Give gcc some memmem optimization hints.
87351         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
87352         (strcasestr): Declare as pure.
87353         * modules/memmem (Maintainer): Claim my implementation.
87355 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87357         Support AIX 6.1 and higher.
87358         * build-aux/config.libpath: Likewise.
87359         * build-aux/config.rpath: Likewise.
87361 2008-01-08  Jim Meyering  <meyering@redhat.com>
87362             Bruno Haible  <bruno@clisp.org>
87364         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
87365         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
87366         Reported by Peter Fales in
87367         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
87369 2008-01-08  Bruno Haible  <bruno@clisp.org>
87371         * modules/unictype/category-of (Depends-on): Add
87372         unictype/category-none.
87373         * modules/unictype/category-and-tests (Depends-on): Add
87374         unictype/category-{L,N,Lu,Nd}.
87375         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
87376         * modules/unictype/category-or-tests (Depends-on): Add
87377         unictype/category-{L,N}.
87378         * modules/unictype/category-name-tests (Depends-on): Add
87379         unictype/category-{Z,Nl}.
87380         Reported by Simon Josefsson.
87382 2008-01-08  Bruno Haible  <bruno@clisp.org>
87384         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
87385         convention better.
87386         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
87387         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
87388         Reported by Peter Miller <millerp@canb.auug.org.au>.
87390 2008-01-08  Eric Blake  <ebb9@byu.net>
87392         Rewrite memmem to guarantee linear complexity without malloc.
87393         * lib/memmem.c (memmem): Use Two-Way rather than
87394         Knuth-Morris-Pratt, to allow O(1) space usage.
87395         (critical_factorization, two_way_short_needle)
87396         (two_way_long_needle): New functions.
87397         (knuth_morris_pratt): Delete.
87398         * modules/memmem (Depends-on): No longer need malloca or stdbool.
87399         Add stdint.
87400         * tests/test-memmem.c (main): Add tests for periodic needle and
87401         sublinear performance.
87402         * doc/functions/memmem.texi (memmem): Document other deficiencies
87403         in cygwin and older glibc.
87405 2008-01-08  Bruno Haible  <bruno@clisp.org>
87407         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
87408         augmentation.
87410 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
87412         Add a configure time option: --disable-acl.
87413         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
87414         AC_ARG_ENABLE(acl).
87416 2008-01-06  Simon Josefsson  <simon@josefsson.org>
87418         * tests/test-localename.c: Don't include obsolete "setenv.h".
87420         * modules/localename-tests (Depends-on): Need unsetenv.
87422 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87424         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
87426 2008-01-06  Colin Watson  <cjwatson@debian.org>
87428         * users.txt: Add man-db.
87430 2008-01-07  Bruno Haible  <bruno@clisp.org>
87432         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
87433         previous section name.
87435 2008-01-07  Bruno Haible  <bruno@clisp.org>
87437         * lib/progname.c (set_program_name): Don't strip off a leading
87438         "lt-" prefix outside a .libs directory.
87439         Suggested by Paul Eggert.
87441 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
87442             Bruno Haible  <bruno@clisp.org>
87444         Improve memory cleanup in 'relocatable' module.
87445         * lib/relocatable.h (compute_curr_prefix): Change return type to
87446         'char *'.
87447         * lib/relocatable.c (compute_curr_prefix): Change return type to
87448         'char *'. Free curr_installdir after use.
87449         (relocate): Free curr_prefix_better after use.
87450         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
87452 2008-01-01  Bruno Haible  <bruno@clisp.org>
87454         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
87455         failure on older glibc systems.
87456         Reported by Peter Fales <psfales@alcatel-lucent.com>.
87458 2008-01-05  Eric Blake  <ebb9@byu.net>
87460         Avoid quadratic system memmem.
87461         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
87462         Reported by Ralf Wildenhues.
87464         Fix memmem test for mingw.
87465         * modules/memmem-tests (configure.ac): Check for alarm.
87466         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
87467         it.
87468         * doc/functions/memmem.texi: New file.
87469         * doc/gnulib.texi (Function Substitutes): Add memmem.
87470         Reported by Bruno Haible.
87472 2008-01-04  Bruno Haible  <bruno@clisp.org>
87474         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
87475         Require gl_HEADER_STRINGS_H_DEFAULTS, not
87476         gl_HEADER_STRING_H_DEFAULTS.
87478 2008-01-04  Eric Blake  <ebb9@byu.net>
87480         Shorten duration of memmem test.
87481         * tests/test-memmem.c (main): Use alarm to declare failure if test
87482         is taking too long.
87483         Reported by Ralf Wildenhues.
87485 2007-12-21  Simon Josefsson  <simon@josefsson.org>
87487         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
87488         string, needed by strerror.
87490 2008-01-03  Colin Watson  <cjwatson@debian.org>
87491             Bruno Haible  <bruno@clisp.org>
87493         * doc/gnulib-tool.texi (Localization): New section.
87495 2008-01-02  Bruno Haible  <bruno@clisp.org>
87497         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
87498         variables to 'unsigned char *' type.
87499         Reported by Paul Eggert.
87501 2008-01-02  Jim Meyering  <jim@meyering.net>
87503         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
87505 2007-12-31  Jim Meyering  <jim@meyering.net>
87507         Avoid use of private FTS type name.
87508         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
87510 2007-12-30  Karl Berry  <karl@gnu.org>
87512         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
87513         work around defect in Texinfo and/or the standalone Info browser.
87515 2007-12-30  Bruno Haible  <bruno@clisp.org>
87517         Unify 5 copies of the KMP code.
87518         * lib/str-kmp.h: New file.
87519         * lib/c-strcasestr.c: Include str-kmp.h.
87520         (knuth_morris_pratt): Remove function.
87521         (c_strcasestr): Update.
87522         * lib/c-strstr.c: Include str-kmp.h.
87523         (knuth_morris_pratt): Remove function.
87524         (c_strcasestr): Update.
87525         * lib/mbscasestr.c: Include str-kmp.h.
87526         (knuth_morris_pratt_unibyte): Remove function.
87527         * lib/mbsstr.c: Include str-kmp.h.
87528         (knuth_morris_pratt_unibyte): Remove function.
87529         * lib/strcasestr.c: Include str-kmp.h.
87530         (knuth_morris_pratt): Remove function.
87531         (strcasestr): Update.
87532         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
87533         * modules/c-strstr (Files): Likewise.
87534         * modules/mbscasestr (Files): Likewise.
87535         * modules/mbsstr (Files): Likewise.
87536         * modules/strcasestr (Files): Likewise.
87537         Suggested by Paul Eggert.
87539 2007-12-30  Bruno Haible  <bruno@clisp.org>
87541         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
87542         defined.
87544 2007-12-30  Bruno Haible  <bruno@clisp.org>
87546         * lib/xmalloca.h: Include xalloc.h.
87547         (xnmalloca): New macro.
87549 2007-12-30  Bruno Haible  <bruno@clisp.org>
87551         * lib/malloca.h (nmalloca): New macro.
87552         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
87553         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
87554         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
87555         knuth_morris_pratt_multibyte): Likewise.
87556         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
87557         knuth_morris_pratt_multibyte): Likewise.
87558         * lib/memmem.c (knuth_morris_pratt): Likewise.
87559         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
87561 2007-12-25  Bruno Haible  <bruno@clisp.org>
87563         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
87564         * lib/glob.c: Don't include openat.h.
87565         (link_exists2_p): Add back the code that deals with the
87566         !GLOB_ALTDIRFUNC case.
87567         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
87568         let it do the filename concatenation.
87569         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
87570         * modules/glob (Depends-on): Remove openat.
87572 2007-12-31  Bruno Haible  <bruno@clisp.org>
87574         * modules/dirfd (License): Change to LGPLv2+.
87575         Approved by Jim Meyering.
87577 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
87579         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
87580         when multiplying M by sizeof (size_t).
87582 2007-12-10  Martin Lambers  <marlam@marlam.de>
87584         Override getpagesize on mingw.
87585         * lib/getpagesize.c: New file.
87586         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
87587         * modules/getpagesize (Files): Add lib/getpagesize.c.
87588         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
87589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87590         REPLACE_GETPAGESIZE.
87591         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
87593 2007-12-25  Bruno Haible  <bruno@clisp.org>
87595         * modules/localcharset (Notice): New field.
87596         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
87597         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
87599 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
87600             Bruno Haible  <bruno@clisp.org>
87602         Avoid using the syntax symbol() in formatted documentation.
87603         * MODULES.html.sh (func_module): When replacing symbol() with a
87604         hyperlink, remove the parentheses. Show an error if some remain.
87605         Recognize and render the '...' syntax.
87606         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
87607         Rework. Add paragraph about GCC's inlining.
87608         * doc/alloca.texi: Likewise.
87609         * doc/error.texi: Remove parentheses from symbol reference.
87610         * doc/gnulib-intro.texi: Likewise.
87611         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
87612         * modules/fnmatch (Description): Reword to say "the ... function".
87613         * modules/full-read (Description): Likewise.
87614         * modules/full-write (Description): Likewise.
87615         * modules/safe-read (Description): Likewise.
87616         * modules/safe-write (Description): Likewise.
87617         * modules/strchrnul (Description): Likewise.
87618         * modules/trim (Description): Likewise.
87619         * modules/error (Description): Remove parentheses from symbol
87620         references.
87621         * modules/verror (Description): Likewise.
87622         Reported by Karl Berry.
87624 2007-12-25  Bruno Haible  <bruno@clisp.org>
87626         Fixup after 2007-10-16 commit.
87627         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
87629 2007-12-24  Bruno Haible  <bruno@clisp.org>
87631         Make --enable-relocatable work with DESTDIR.
87632         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
87633         to compute installdir from destprog.
87634         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
87635         also set the RELOC_DESTDIR variable.
87636         Reported by Левашев Иван <octagram@bluebottle.com>.
87638 2007-12-24  Bruno Haible  <bruno@clisp.org>
87640         Fix link error due to xalloc_die().
87641         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
87642         of xreadlink.
87643         * lib/relocwrapper.c: Update comments.
87644         * build-aux/install-reloc: Remove xreadlink.c from file list.
87645         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
87646         xreadlink.c.
87647         Reported by Левашев Иван <octagram@bluebottle.com>.
87649 2007-12-24  Bruno Haible  <bruno@clisp.org>
87651         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
87652         * lib/setenv.h: Remove file.
87653         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
87654         lib/setenv.h.
87655         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
87656         (Depends-on): Add stdlib.
87657         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
87658         gl_FUNC_UNSETENV.
87659         (Include): Replace setenv.h with <stdlib.h>.
87660         * modules/unsetenv: New file.
87661         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
87662         * lib/unsetenv.c: Include <stdlib.h> first.
87663         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
87664         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
87665         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
87666         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
87667         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
87668         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
87669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
87670         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
87671         * doc/functions/unsetenv.texi: Update.
87672         * modules/xsetenv (Depends-on): Add unsetenv.
87673         * modules/getdate (Depends-on): Likewise.
87674         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
87675         * lib/xsetenv.c: Don't include setenv.h.
87676         * lib/getdate.y: Likewise.
87677         * lib/relocwrapper.c: Likewise.
87678         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
87679         (Depends-on): Add stdlib.
87680         * NEWS: Mention the changes.
87681         Reported by Левашев Иван <octagram@bluebottle.com>.
87683 2007-12-23  Bruno Haible  <bruno@clisp.org>
87685         * lib/memmem.c (memmem): Use lowercase variable names. Tab
87686         indentation.
87688 2007-12-23  Bruno Haible  <bruno@clisp.org>
87690         * lib/c-strcasestr.c: Add more comments.
87691         * lib/c-strstr.c: Likewise.
87692         * lib/mbscasestr.c: Likewise.
87693         * lib/mbsstr.c: Likewise.
87694         * lib/strcasestr.c: Likewise.
87695         * lib/memmem.c: Likewise.
87697 2007-12-23  Bruno Haible  <bruno@clisp.org>
87699         * tests/test-memmem.c: Include <string.h> first.
87701 2007-12-22  Bruno Haible  <bruno@clisp.org>
87703         * gnulib-tool (func_create_testdir): Change $auxdir while generating
87704         the contents of $testsbase.
87705         Reported by Ralf Wildenhues.
87707 2007-12-22  Bruno Haible  <bruno@clisp.org>
87709         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
87710         two variables local_ldadd_before, local_ldadd_last.
87712 2007-12-20  Eric Blake  <ebb9@byu.net>
87714         Work around circular library issue when cross-compiling.
87715         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
87716         that progname.o does not need to pull in rpl_memcmp.
87718 2007-12-19  Eric Blake  <ebb9@byu.net>
87720         Fix memmem to avoid O(n^2) worst-case complexity.
87721         * lib/memmem.c (knuth_morris_pratt): New function.
87722         (memmem): Use it if first few naive iterations fail.
87723         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
87724         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
87725         * modules/memchr (License): Likewise.
87726         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
87727         malloca.
87728         * tests/test-memmem.c: Rewrite, borrowing ideas from
87729         test-mbsstr1.c; the old version wouldn't even compile!
87730         * modules/memmem-tests: New file.
87731         * lib/string.in.h (rpl_memmem): Add declaration.
87732         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
87733         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
87734         REPLACE_MEMMEM.
87736 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
87738         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
87739         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
87740         before any system include files, and undef after them all.  This
87741         should fix a problem on VMS reported by John E. Malmberg in
87742         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
87744 2007-12-17  Eric Blake  <ebb9@byu.net>
87746         Revert addition of verify, for BSD/OS.
87747         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
87748         can't handle large files, for the sake of obsolete platforms.
87749         * modules/fseeko (Depends-on): Remove verify.
87750         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
87751         * doc/functions/ftello.texi (ftello): Likewise.
87752         * doc/functions/fgetpos.texi (fgetpos): Likewise.
87753         Reported by Larry Jones.
87755 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
87757         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
87758         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
87760 2007-12-17  Jim Meyering  <meyering@redhat.com>
87762         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
87763         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
87764         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
87765         * modules/getcwd (Depends-on): Add openat.
87766         Reported by Petr Salinger.
87768 2007-12-17  Bruno Haible  <bruno@clisp.org>
87770         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
87771         avoid a segmentation fault of the configure test on x86_64 systems.
87773 2007-12-15  Jim Meyering  <meyering@redhat.com>
87775         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
87777 2007-12-13  Eric Blake  <ebb9@byu.net>
87779         Another fseek test.
87780         * tests/test-fseek.c (main): Also test ungetc handling.
87781         * tests/test-fseeko.c (main): Likewise.
87782         * modules/fseeko (Depends-on): Add verify.
87783         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
87784         large.
87785         Reported by Larry Jones.
87787         Fix fseeko on mingw.
87788         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
87789         seek.
87791         Beef up fseek tests.
87792         * tests/test-fseek.c (main): Also test eof handling.
87793         * tests/test-fseeko.c (main): Likewise.
87794         Reported by Larry Jones.
87796 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
87798         Fix fseeko on BSD-based platforms.
87799         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
87800         successful seek.
87802 2007-12-12  Eric Blake  <ebb9@byu.net>
87804         Allow circular dependency of separate libtests.a
87805         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
87806         when use_libtests.
87808 2007-12-11  Eric Blake  <ebb9@byu.net>
87810         Fix bug with -0.0L in previous patch.
87811         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
87812         * tests/test-isnan.c (main): Also test on zeroes.
87813         * tests/test-isnanf.c (main): Likewise.
87814         * tests/test-isnanl.h (main): Likewise.
87816         Detect pseudo-denormals on x86 even when cross-compiling.
87817         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
87818         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
87819         invalid bit patterns that happen to satisfy ==.
87821         Avoid link failures with separate libtests.a.
87822         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
87823         last, to satisfy circular dependencies.
87825 2007-12-11  Eric Blake  <ebb9@byu.net>
87826         and Bruno Haible  <bruno@clisp.org>
87828         Fix OpenBSD 4.0 <float.h> handling of long double.
87829         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
87830         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
87831         * doc/headers/float.texi (float.h): Document OpenBSD bug.
87833 2007-12-11  Jim Meyering  <meyering@redhat.com>
87835         * users.txt: Add libvirt.
87837         Support versions of autoconf prior to 2.59c.
87838         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
87839         if it is not already defined.
87841 2007-12-09  Bruno Haible  <bruno@clisp.org>
87843         Let 'gnulib-tool --import' collect sources needed for the tests in
87844         tests/ rather than in lib/.
87845         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
87846         argument. If true, add rules to generate libtests.a, and put libtests.a
87847         into $(LDADD). Consider source files in subdirectories and set
87848         uses_subdirs.
87849         (func_emit_initmacro_start, func_emit_initmacro_end,
87850         func_emit_initmacro_done): Pass all arguments explicitly.
87851         (func_import): Determine two module lists main_modules,
87852         testsrelated_modules. Determine use_libtests. Determine two variables
87853         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
87854         instead of just sed_transform_lib_file. Determine two variables
87855         main_files and testsrelated_files. Compute 'files' as the union of
87856         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
87857         func_add_or_update. In the generated gnulib-comp.m4, collect the
87858         object files for tests/ in different variables than those for lib/.
87859         Substitute LIBTESTS_LIBDEPS.
87860         (func_create_testdir): Combine the uses_subdirs results from
87861         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
87863 2007-12-09  Bruno Haible  <bruno@clisp.org>
87865         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
87866         the build-aux directory.
87868 2007-12-09  Bruno Haible  <bruno@clisp.org>
87870         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
87871         introduced on 2006-09-09.
87873 2007-12-07  Jim Meyering  <meyering@redhat.com>
87875         Let these macros work also with autoconf-2.59.
87876         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
87877         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
87878         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
87880 2007-12-06  Jim Meyering  <meyering@redhat.com>
87882         Avoid a configure-time syntax error in gl_FUNC_ACL.
87883         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
87884         function in each branch, before testing the cache variable.
87886 2007-12-04  Eric Blake  <ebb9@byu.net>
87888         Make scripts executable.
87889         * build-aux/config.guess: Add execute permissions.
87890         * build-aux/config.sub: Likewise.
87891         * build-aux/gendocs.sh: Likewise.
87893         Fix frexp on mingw.
87894         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
87895         cross-compiling.
87896         * doc/functions/frexp.texi (frexp): Document the bug.
87898         Make cygwin fseeko check more reliable.
87899         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
87900         version numbers, rather than unrelated feature check.
87901         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
87902         * doc/functions/ftello.texi (ftello): Likewise.
87903         Reported by Bruno Haible.
87905         * m4/strerror.m4: Bump version number.
87907 2007-12-03  Bruno Haible  <bruno@clisp.org>
87909         * doc/functions/mprotect.texi: Mention the mingw problem.
87911 2007-12-03  Eric Blake  <ebb9@byu.net>
87913         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
87914         REPLACE_STRERROR is initialized before this macro.
87916 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
87918         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
87919         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
87920         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
87921         put -lsec in even for programs other than 'ls'.  This fixes a problem
87922         for gettext reported by Bruno Haible in
87923         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
87924         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
87925         Add support for Solaris 10.  This isn't efficient, but should get the
87926         job done for now.
87928 2007-12-03  James Youngman  <jay@gnu.org>
87930         * doc/regexprops-generic.texi: change "an close-group" to "a
87931         close-group" and "illegal" to "not allowed".
87933 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87935         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
87936         pr_byname.h. Needed for the rare case when the maintainer has done
87937         "make maintainer-clean" in the source directory and then attempts a
87938         build outside the source directory.
87939         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
87940         scripts_byname.h.
87942 2007-12-02  Martin Lambers  <marlam@marlam.de>
87943             Bruno Haible  <bruno@clisp.org>
87945         * lib/getpagesize.h: Remove file.
87946         * lib/unistd.in.h: Include declaration of getpagesize here.
87947         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
87948         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
87949         HAVE_SYS_PARAM_H.
87950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
87951         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
87952         * modules/getpagesize (Files): Remove lib/getpagesize.h.
87953         (Depends-on): Add unistd.
87954         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87955         (Include): Use <unistd.h> instead of getpagesize.h.
87956         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
87957         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
87958         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
87959         gl_GETPAGESIZE invocation, already handled by module dependency.
87960         * lib/pagealign_alloc.c: Don't include getpagesize.h.
87962 2007-12-02  Bruno Haible  <bruno@clisp.org>
87964         * modules/strings-tests: New file.
87965         * tests/test-strings.c: New file.
87967         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
87968         * lib/strings.in.h: New file.
87969         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
87970         * m4/strings_h.m4: New file.
87971         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
87972         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
87973         * modules/strings: New file.
87974         * modules/string (Makefile.am): Update.
87975         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
87976         Reported by Karl Berry.
87978 2007-12-01  Eric Blake  <ebb9@byu.net>
87980         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
87981         accommodate fix in cygwin 1.5.25.
87983 2007-12-01  Jim Meyering  <meyering@redhat.com>
87985         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
87986         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
87987         that would inhibit utf8-optimization of a regexp containing line-
87988         or buffer-anchors, e.g., `^', `$'.
87990 2007-11-30  Bruno Haible  <bruno@clisp.org>
87992         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
87993         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
87994         glthread_recursive_lock_init.
87995         * lib/lock.c (glthread_recursive_lock_init)
87996         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
87997         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87999 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
88001         New function qset_acl, like set_acl but with syscall semantics.
88002         * lib/acl.h (qset_acl): New decl.
88003         * lib/acl.c (qset_acl): New function.
88004         (set_acl): Use new function.  Use more-consistent diagnostics.
88006 2007-11-28  Jim Meyering  <meyering@redhat.com>
88008         * modules/physmem (License): Change from GPL to LGPLv2+.
88010 2007-11-26  Bruno Haible  <bruno@clisp.org>
88012         * lib/vasnprintf.c (decode_long_double): Don't abort if the
88013         'long double' type has excess precision.
88014         Reported by Jim Meyering in
88015         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
88017 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88019         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
88020         Sync from <http://gnu.org/licenses>.
88021         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
88022         with license text from same location.
88023         * doc/maintain.texi, doc/standards.texi:  Sync from
88024         <http://savannah.gnu.org/projects/gnustandards>.
88026 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
88027         and Jim Meyering  <meyering@redhat.com>
88029         Adjust getdate' grammar to accept a slightly more regular language.
88030         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
88031         Before, the former was rejected.
88032         * lib/getdate.y (digits_to_date_time): New function, factored
88033         out of ...
88034         (number): ...here.  Just call digits_to_date_time.
88035         (hybrid): New non-terminal to handle an <unsigned number,
88036         signed relative offset> sequence consistently.
88038 2007-11-18  Jim Meyering  <meyering@redhat.com>
88040         Pull my changes from coreutils:
88041         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
88042         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
88043         use of $gnulib_tool_option_extras, so that it's separated from the
88044         preceding argument.
88046         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
88047         * build-aux/bootstrap (cp_mark_as_generated): Create any required
88048         parent destination directories before copying a file into place.
88050 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
88052         bootstrap: work also with 4-argument variant of AC_INIT
88053         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
88055 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88057         Port test-getaddrinfo to Solaris.
88058         Problem reported by Bruno Haible in
88059         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
88060         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
88061         explanation of setting 'hints'.
88062         Don't reject an implementation merely because it returns EAI_SERVICE.
88063         (EAI_SERVICE): Define to 0 if not defined.
88065 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
88067         The license of gnu-make and posix-shell is now "GPLed build tool".
88068         * modules/gnu-make (License): Likewise.
88069         * modules/posix-shell (License): Likewise.
88071         New module posix-shell, for determining a POSIX shell
88072         or perhaps something that is close enough to a POSIX shell.
88073         * m4/posix-shell.m4: New file.
88074         * modules/posix-shell: New file.
88076         * MODULES.html.sh: Mention new module.
88078         New module gnu-make, for determining whether we're using GNU Make.
88079         * m4/gnu-make.m4: New file.
88080         * modules/gnu-make: New file.
88081         * MODULES.html.sh: Mention new module.
88083 2007-11-14  Jim Meyering  <meyering@redhat.com>
88085         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
88086         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
88087         use this macro to create a function _definition_.
88088         Remove useless "#undef ARGMATCH_DIE".
88090 2007-11-14  Bruno Haible  <bruno@clisp.org>
88092         * lib/config.charset: Update for OpenBSD 4.1.
88093         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
88095 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
88097         Document 64-bit #if problems in stdint.texi.
88098         * doc/headers/stdint.texi (stdint.h): Mention problems with
88099         64-bit-#if, and how to work around them.
88101         Don't insist on 'long long int' support in the preprocessor.  It
88102         breaks too many things.  For example, PRIdMAX still uses a 'long
88103         long int' format with the latest Sun compiler, even though
88104         HAVE_LONG_LONG_INT isn't defined due to that compiler's
88105         preprocessor problem.  This causes the latest coreutils to dump
88106         core on Solaris 10 sparc with the Sun C compiler.
88107         Instead, fix the 2007-10-16 problem in a different way, by evaluating
88108         the troublesome expressions at configure-time, not at #if-time.
88109         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
88110         preprocessor.
88111         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
88112         compile-time C checks, done at 'configure'-time.
88113         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
88114         * modules/inttypes (Makefile): Substitute the new symbols that
88115         gl_INTTYPES_H now generates.
88116         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
88118 2007-11-12  Bruno Haible  <bruno@clisp.org>
88120         Tests for Unicode character classification functions.
88122         * modules/unictype/bidicategory-byname-tests: New file.
88123         * modules/unictype/bidicategory-name-tests: New file.
88124         * modules/unictype/bidicategory-of-tests: New file.
88125         * modules/unictype/bidicategory-test-tests: New file.
88126         * modules/unictype/block-list-tests: New file.
88127         * modules/unictype/block-of-tests: New file.
88128         * modules/unictype/block-test-tests: New file.
88129         * modules/unictype/category-C-tests: New file.
88130         * modules/unictype/category-Cc-tests: New file.
88131         * modules/unictype/category-Cf-tests: New file.
88132         * modules/unictype/category-Cn-tests: New file.
88133         * modules/unictype/category-Co-tests: New file.
88134         * modules/unictype/category-Cs-tests: New file.
88135         * modules/unictype/category-L-tests: New file.
88136         * modules/unictype/category-Ll-tests: New file.
88137         * modules/unictype/category-Lm-tests: New file.
88138         * modules/unictype/category-Lo-tests: New file.
88139         * modules/unictype/category-Lt-tests: New file.
88140         * modules/unictype/category-Lu-tests: New file.
88141         * modules/unictype/category-M-tests: New file.
88142         * modules/unictype/category-Mc-tests: New file.
88143         * modules/unictype/category-Me-tests: New file.
88144         * modules/unictype/category-Mn-tests: New file.
88145         * modules/unictype/category-N-tests: New file.
88146         * modules/unictype/category-Nd-tests: New file.
88147         * modules/unictype/category-Nl-tests: New file.
88148         * modules/unictype/category-No-tests: New file.
88149         * modules/unictype/category-P-tests: New file.
88150         * modules/unictype/category-Pc-tests: New file.
88151         * modules/unictype/category-Pd-tests: New file.
88152         * modules/unictype/category-Pe-tests: New file.
88153         * modules/unictype/category-Pf-tests: New file.
88154         * modules/unictype/category-Pi-tests: New file.
88155         * modules/unictype/category-Po-tests: New file.
88156         * modules/unictype/category-Ps-tests: New file.
88157         * modules/unictype/category-S-tests: New file.
88158         * modules/unictype/category-Sc-tests: New file.
88159         * modules/unictype/category-Sk-tests: New file.
88160         * modules/unictype/category-Sm-tests: New file.
88161         * modules/unictype/category-So-tests: New file.
88162         * modules/unictype/category-Z-tests: New file.
88163         * modules/unictype/category-Zl-tests: New file.
88164         * modules/unictype/category-Zp-tests: New file.
88165         * modules/unictype/category-Zs-tests: New file.
88166         * modules/unictype/category-and-not-tests: New file.
88167         * modules/unictype/category-and-tests: New file.
88168         * modules/unictype/category-byname-tests: New file.
88169         * modules/unictype/category-name-tests: New file.
88170         * modules/unictype/category-none-tests: New file.
88171         * modules/unictype/category-of-tests: New file.
88172         * modules/unictype/category-or-tests: New file.
88173         * modules/unictype/category-test-withtable-tests: New file.
88174         * modules/unictype/combining-class-tests: New file.
88175         * modules/unictype/ctype-alnum-tests: New file.
88176         * modules/unictype/ctype-alpha-tests: New file.
88177         * modules/unictype/ctype-blank-tests: New file.
88178         * modules/unictype/ctype-cntrl-tests: New file.
88179         * modules/unictype/ctype-digit-tests: New file.
88180         * modules/unictype/ctype-graph-tests: New file.
88181         * modules/unictype/ctype-lower-tests: New file.
88182         * modules/unictype/ctype-print-tests: New file.
88183         * modules/unictype/ctype-punct-tests: New file.
88184         * modules/unictype/ctype-space-tests: New file.
88185         * modules/unictype/ctype-upper-tests: New file.
88186         * modules/unictype/ctype-xdigit-tests: New file.
88187         * modules/unictype/decimal-digit-tests: New file.
88188         * modules/unictype/digit-tests: New file.
88189         * modules/unictype/mirror-tests: New file.
88190         * modules/unictype/numeric-tests: New file.
88191         * modules/unictype/property-alphabetic-tests: New file.
88192         * modules/unictype/property-ascii-hex-digit-tests: New file.
88193         * modules/unictype/property-bidi-arabic-digit-tests: New file.
88194         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
88195         * modules/unictype/property-bidi-block-separator-tests: New file.
88196         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
88197         * modules/unictype/property-bidi-common-separator-tests: New file.
88198         * modules/unictype/property-bidi-control-tests: New file.
88199         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
88200         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
88201         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
88202         * modules/unictype/property-bidi-european-digit-tests: New file.
88203         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
88204         * modules/unictype/property-bidi-left-to-right-tests: New file.
88205         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
88206         * modules/unictype/property-bidi-other-neutral-tests: New file.
88207         * modules/unictype/property-bidi-pdf-tests: New file.
88208         * modules/unictype/property-bidi-segment-separator-tests: New file.
88209         * modules/unictype/property-bidi-whitespace-tests: New file.
88210         * modules/unictype/property-byname-tests: New file.
88211         * modules/unictype/property-combining-tests: New file.
88212         * modules/unictype/property-composite-tests: New file.
88213         * modules/unictype/property-currency-symbol-tests: New file.
88214         * modules/unictype/property-dash-tests: New file.
88215         * modules/unictype/property-decimal-digit-tests: New file.
88216         * modules/unictype/property-default-ignorable-code-point-tests: New file.
88217         * modules/unictype/property-deprecated-tests: New file.
88218         * modules/unictype/property-diacritic-tests: New file.
88219         * modules/unictype/property-extender-tests: New file.
88220         * modules/unictype/property-format-control-tests: New file.
88221         * modules/unictype/property-grapheme-base-tests: New file.
88222         * modules/unictype/property-grapheme-extend-tests: New file.
88223         * modules/unictype/property-grapheme-link-tests: New file.
88224         * modules/unictype/property-hex-digit-tests: New file.
88225         * modules/unictype/property-hyphen-tests: New file.
88226         * modules/unictype/property-id-continue-tests: New file.
88227         * modules/unictype/property-id-start-tests: New file.
88228         * modules/unictype/property-ideographic-tests: New file.
88229         * modules/unictype/property-ids-binary-operator-tests: New file.
88230         * modules/unictype/property-ids-trinary-operator-tests: New file.
88231         * modules/unictype/property-ignorable-control-tests: New file.
88232         * modules/unictype/property-iso-control-tests: New file.
88233         * modules/unictype/property-join-control-tests: New file.
88234         * modules/unictype/property-left-of-pair-tests: New file.
88235         * modules/unictype/property-line-separator-tests: New file.
88236         * modules/unictype/property-logical-order-exception-tests: New file.
88237         * modules/unictype/property-lowercase-tests: New file.
88238         * modules/unictype/property-math-tests: New file.
88239         * modules/unictype/property-non-break-tests: New file.
88240         * modules/unictype/property-not-a-character-tests: New file.
88241         * modules/unictype/property-numeric-tests: New file.
88242         * modules/unictype/property-other-alphabetic-tests: New file.
88243         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
88244         * modules/unictype/property-other-grapheme-extend-tests: New file.
88245         * modules/unictype/property-other-id-continue-tests: New file.
88246         * modules/unictype/property-other-id-start-tests: New file.
88247         * modules/unictype/property-other-lowercase-tests: New file.
88248         * modules/unictype/property-other-math-tests: New file.
88249         * modules/unictype/property-other-uppercase-tests: New file.
88250         * modules/unictype/property-paired-punctuation-tests: New file.
88251         * modules/unictype/property-paragraph-separator-tests: New file.
88252         * modules/unictype/property-pattern-syntax-tests: New file.
88253         * modules/unictype/property-pattern-white-space-tests: New file.
88254         * modules/unictype/property-private-use-tests: New file.
88255         * modules/unictype/property-punctuation-tests: New file.
88256         * modules/unictype/property-quotation-mark-tests: New file.
88257         * modules/unictype/property-radical-tests: New file.
88258         * modules/unictype/property-sentence-terminal-tests: New file.
88259         * modules/unictype/property-soft-dotted-tests: New file.
88260         * modules/unictype/property-space-tests: New file.
88261         * modules/unictype/property-terminal-punctuation-tests: New file.
88262         * modules/unictype/property-test-tests: New file.
88263         * modules/unictype/property-titlecase-tests: New file.
88264         * modules/unictype/property-unassigned-code-value-tests: New file.
88265         * modules/unictype/property-unified-ideograph-tests: New file.
88266         * modules/unictype/property-uppercase-tests: New file.
88267         * modules/unictype/property-variation-selector-tests: New file.
88268         * modules/unictype/property-white-space-tests: New file.
88269         * modules/unictype/property-xid-continue-tests: New file.
88270         * modules/unictype/property-xid-start-tests: New file.
88271         * modules/unictype/property-zero-width-tests: New file.
88272         * modules/unictype/scripts-tests: New file.
88273         * modules/unictype/syntax-c-ident-tests: New file.
88274         * modules/unictype/syntax-c-whitespace-tests: New file.
88275         * modules/unictype/syntax-java-ident-tests: New file.
88276         * modules/unictype/syntax-java-whitespace-tests: New file.
88277         * tests/unictype/test-bidi_byname.c: New file.
88278         * tests/unictype/test-bidi_name.c: New file.
88279         * tests/unictype/test-bidi_of.c: New file.
88280         * tests/unictype/test-bidi_test.c: New file.
88281         * tests/unictype/test-block_list.c: New file.
88282         * tests/unictype/test-block_of.c: New file.
88283         * tests/unictype/test-block_test.c: New file.
88284         * tests/unictype/test-categ_and.c: New file.
88285         * tests/unictype/test-categ_and_not.c: New file.
88286         * tests/unictype/test-categ_byname.c: New file.
88287         * tests/unictype/test-categ_name.c: New file.
88288         * tests/unictype/test-categ_none.c: New file.
88289         * tests/unictype/test-categ_of.c: New file.
88290         * tests/unictype/test-categ_or.c: New file.
88291         * tests/unictype/test-categ_test_withtable.c: New file.
88292         * tests/unictype/test-combining.c: New file.
88293         * tests/unictype/test-decdigit.c: New file.
88294         * tests/unictype/test-digit.c: New file.
88295         * tests/unictype/test-mirror.c: New file.
88296         * tests/unictype/test-numeric.c: New file.
88297         * tests/unictype/test-pr_byname.c: New file.
88298         * tests/unictype/test-pr_test.c: New file.
88299         * tests/unictype/test-predicate-part1.h: New file.
88300         * tests/unictype/test-predicate-part2.h: New file.
88301         * tests/unictype/test-scripts.c: New file.
88302         * tests/unictype/test-sy_c_ident.c: New file.
88303         * tests/unictype/test-sy_java_ident.c: New file.
88305         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
88306         for Unicode 5.0.0.
88307         * tests/unictype/test-categ_Cc.c: Likewise.
88308         * tests/unictype/test-categ_Cf.c: Likewise.
88309         * tests/unictype/test-categ_Cn.c: Likewise.
88310         * tests/unictype/test-categ_Co.c: Likewise.
88311         * tests/unictype/test-categ_Cs.c: Likewise.
88312         * tests/unictype/test-categ_L.c: Likewise.
88313         * tests/unictype/test-categ_Ll.c: Likewise.
88314         * tests/unictype/test-categ_Lm.c: Likewise.
88315         * tests/unictype/test-categ_Lo.c: Likewise.
88316         * tests/unictype/test-categ_Lt.c: Likewise.
88317         * tests/unictype/test-categ_Lu.c: Likewise.
88318         * tests/unictype/test-categ_M.c: Likewise.
88319         * tests/unictype/test-categ_Mc.c: Likewise.
88320         * tests/unictype/test-categ_Me.c: Likewise.
88321         * tests/unictype/test-categ_Mn.c: Likewise.
88322         * tests/unictype/test-categ_N.c: Likewise.
88323         * tests/unictype/test-categ_Nd.c: Likewise.
88324         * tests/unictype/test-categ_Nl.c: Likewise.
88325         * tests/unictype/test-categ_No.c: Likewise.
88326         * tests/unictype/test-categ_P.c: Likewise.
88327         * tests/unictype/test-categ_Pc.c: Likewise.
88328         * tests/unictype/test-categ_Pd.c: Likewise.
88329         * tests/unictype/test-categ_Pe.c: Likewise.
88330         * tests/unictype/test-categ_Pf.c: Likewise.
88331         * tests/unictype/test-categ_Pi.c: Likewise.
88332         * tests/unictype/test-categ_Po.c: Likewise.
88333         * tests/unictype/test-categ_Ps.c: Likewise.
88334         * tests/unictype/test-categ_S.c: Likewise.
88335         * tests/unictype/test-categ_Sc.c: Likewise.
88336         * tests/unictype/test-categ_Sk.c: Likewise.
88337         * tests/unictype/test-categ_Sm.c: Likewise.
88338         * tests/unictype/test-categ_So.c: Likewise.
88339         * tests/unictype/test-categ_Z.c: Likewise.
88340         * tests/unictype/test-categ_Zl.c: Likewise.
88341         * tests/unictype/test-categ_Zp.c: Likewise.
88342         * tests/unictype/test-categ_Zs.c: Likewise.
88343         * tests/unictype/test-ctype_alnum.c: Likewise.
88344         * tests/unictype/test-ctype_alpha.c: Likewise.
88345         * tests/unictype/test-ctype_blank.c: Likewise.
88346         * tests/unictype/test-ctype_cntrl.c: Likewise.
88347         * tests/unictype/test-ctype_digit.c: Likewise.
88348         * tests/unictype/test-ctype_graph.c: Likewise.
88349         * tests/unictype/test-ctype_lower.c: Likewise.
88350         * tests/unictype/test-ctype_print.c: Likewise.
88351         * tests/unictype/test-ctype_punct.c: Likewise.
88352         * tests/unictype/test-ctype_space.c: Likewise.
88353         * tests/unictype/test-ctype_upper.c: Likewise.
88354         * tests/unictype/test-ctype_xdigit.c: Likewise.
88355         * tests/unictype/test-decdigit.h: Likewise.
88356         * tests/unictype/test-digit.h: Likewise.
88357         * tests/unictype/test-numeric.h: Likewise.
88358         * tests/unictype/test-pr_alphabetic.c: Likewise.
88359         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
88360         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
88361         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
88362         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
88363         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
88364         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
88365         * tests/unictype/test-pr_bidi_control.c: Likewise.
88366         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
88367         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
88368         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
88369         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
88370         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
88371         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
88372         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
88373         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
88374         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
88375         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
88376         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
88377         * tests/unictype/test-pr_combining.c: Likewise.
88378         * tests/unictype/test-pr_composite.c: Likewise.
88379         * tests/unictype/test-pr_currency_symbol.c: Likewise.
88380         * tests/unictype/test-pr_dash.c: Likewise.
88381         * tests/unictype/test-pr_decimal_digit.c: Likewise.
88382         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
88383         * tests/unictype/test-pr_deprecated.c: Likewise.
88384         * tests/unictype/test-pr_diacritic.c: Likewise.
88385         * tests/unictype/test-pr_extender.c: Likewise.
88386         * tests/unictype/test-pr_format_control.c: Likewise.
88387         * tests/unictype/test-pr_grapheme_base.c: Likewise.
88388         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
88389         * tests/unictype/test-pr_grapheme_link.c: Likewise.
88390         * tests/unictype/test-pr_hex_digit.c: Likewise.
88391         * tests/unictype/test-pr_hyphen.c: Likewise.
88392         * tests/unictype/test-pr_id_continue.c: Likewise.
88393         * tests/unictype/test-pr_id_start.c: Likewise.
88394         * tests/unictype/test-pr_ideographic.c: Likewise.
88395         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
88396         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
88397         * tests/unictype/test-pr_ignorable_control.c: Likewise.
88398         * tests/unictype/test-pr_iso_control.c: Likewise.
88399         * tests/unictype/test-pr_join_control.c: Likewise.
88400         * tests/unictype/test-pr_left_of_pair.c: Likewise.
88401         * tests/unictype/test-pr_line_separator.c: Likewise.
88402         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
88403         * tests/unictype/test-pr_lowercase.c: Likewise.
88404         * tests/unictype/test-pr_math.c: Likewise.
88405         * tests/unictype/test-pr_non_break.c: Likewise.
88406         * tests/unictype/test-pr_not_a_character.c: Likewise.
88407         * tests/unictype/test-pr_numeric.c: Likewise.
88408         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
88409         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
88410         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
88411         * tests/unictype/test-pr_other_id_continue.c: Likewise.
88412         * tests/unictype/test-pr_other_id_start.c: Likewise.
88413         * tests/unictype/test-pr_other_lowercase.c: Likewise.
88414         * tests/unictype/test-pr_other_math.c: Likewise.
88415         * tests/unictype/test-pr_other_uppercase.c: Likewise.
88416         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
88417         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
88418         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
88419         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
88420         * tests/unictype/test-pr_private_use.c: Likewise.
88421         * tests/unictype/test-pr_punctuation.c: Likewise.
88422         * tests/unictype/test-pr_quotation_mark.c: Likewise.
88423         * tests/unictype/test-pr_radical.c: Likewise.
88424         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
88425         * tests/unictype/test-pr_soft_dotted.c: Likewise.
88426         * tests/unictype/test-pr_space.c: Likewise.
88427         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
88428         * tests/unictype/test-pr_titlecase.c: Likewise.
88429         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
88430         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
88431         * tests/unictype/test-pr_uppercase.c: Likewise.
88432         * tests/unictype/test-pr_variation_selector.c: Likewise.
88433         * tests/unictype/test-pr_white_space.c: Likewise.
88434         * tests/unictype/test-pr_xid_continue.c: Likewise.
88435         * tests/unictype/test-pr_xid_start.c: Likewise.
88436         * tests/unictype/test-pr_zero_width.c: Likewise.
88437         * tests/unictype/test-sy_c_whitespace.c: Likewise.
88438         * tests/unictype/test-sy_java_whitespace.c: Likewise.
88440 2007-11-12  Bruno Haible  <bruno@clisp.org>
88442         Unicode character classification functions.
88443         * lib/unictype.h: New file.
88444         * modules/unictype/base: New file.
88445         * modules/unictype/category-L: New file.
88446         * modules/unictype/category-Lu: New file.
88447         * modules/unictype/category-Ll: New file.
88448         * modules/unictype/category-Lt: New file.
88449         * modules/unictype/category-Lm: New file.
88450         * modules/unictype/category-Lo: New file.
88451         * modules/unictype/category-M: New file.
88452         * modules/unictype/category-Mn: New file.
88453         * modules/unictype/category-Mc: New file.
88454         * modules/unictype/category-Me: New file.
88455         * modules/unictype/category-N: New file.
88456         * modules/unictype/category-Nd: New file.
88457         * modules/unictype/category-Nl: New file.
88458         * modules/unictype/category-No: New file.
88459         * modules/unictype/category-P: New file.
88460         * modules/unictype/category-Pc: New file.
88461         * modules/unictype/category-Pd: New file.
88462         * modules/unictype/category-Ps: New file.
88463         * modules/unictype/category-Pe: New file.
88464         * modules/unictype/category-Pi: New file.
88465         * modules/unictype/category-Pf: New file.
88466         * modules/unictype/category-Po: New file.
88467         * modules/unictype/category-S: New file.
88468         * modules/unictype/category-Sm: New file.
88469         * modules/unictype/category-Sc: New file.
88470         * modules/unictype/category-Sk: New file.
88471         * modules/unictype/category-So: New file.
88472         * modules/unictype/category-Z: New file.
88473         * modules/unictype/category-Zs: New file.
88474         * modules/unictype/category-Zl: New file.
88475         * modules/unictype/category-Zp: New file.
88476         * modules/unictype/category-C: New file.
88477         * modules/unictype/category-Cc: New file.
88478         * modules/unictype/category-Cf: New file.
88479         * modules/unictype/category-Cs: New file.
88480         * modules/unictype/category-Co: New file.
88481         * modules/unictype/category-Cn: New file.
88482         * modules/unictype/category-or: New file.
88483         * modules/unictype/category-of: New file.
88484         * modules/unictype/category-test: New file.
88485         * modules/unictype/category-test-withtable: New file.
88486         * modules/unictype/category-byname: New file.
88487         * modules/unictype/category-none: New file.
88488         * modules/unictype/category-and: New file.
88489         * modules/unictype/category-and-not: New file.
88490         * modules/unictype/category-name: New file.
88491         * modules/unictype/combining-class: New file.
88492         * modules/unictype/category-all: New file.
88493         * modules/unictype/bidicategory-all: New file.
88494         * modules/unictype/bidicategory-byname: New file.
88495         * modules/unictype/bidicategory-name: New file.
88496         * modules/unictype/bidicategory-of: New file.
88497         * modules/unictype/bidicategory-test: New file.
88498         * modules/unictype/decimal-digit: New file.
88499         * modules/unictype/digit: New file.
88500         * modules/unictype/numeric: New file.
88501         * modules/unictype/mirror: New file.
88502         * modules/unictype/property-white-space: New file.
88503         * modules/unictype/property-alphabetic: New file.
88504         * modules/unictype/property-other-alphabetic: New file.
88505         * modules/unictype/property-not-a-character: New file.
88506         * modules/unictype/property-default-ignorable-code-point: New file.
88507         * modules/unictype/property-other-default-ignorable-code-point: New
88508         file.
88509         * modules/unictype/property-deprecated: New file.
88510         * modules/unictype/property-logical-order-exception: New file.
88511         * modules/unictype/property-variation-selector: New file.
88512         * modules/unictype/property-private-use: New file.
88513         * modules/unictype/property-unassigned-code-value: New file.
88514         * modules/unictype/property-uppercase: New file.
88515         * modules/unictype/property-other-uppercase: New file.
88516         * modules/unictype/property-lowercase: New file.
88517         * modules/unictype/property-other-lowercase: New file.
88518         * modules/unictype/property-titlecase: New file.
88519         * modules/unictype/property-soft-dotted: New file.
88520         * modules/unictype/property-id-start: New file.
88521         * modules/unictype/property-other-id-start: New file.
88522         * modules/unictype/property-id-continue: New file.
88523         * modules/unictype/property-other-id-continue: New file.
88524         * modules/unictype/property-xid-start: New file.
88525         * modules/unictype/property-xid-continue: New file.
88526         * modules/unictype/property-pattern-white-space: New file.
88527         * modules/unictype/property-pattern-syntax: New file.
88528         * modules/unictype/property-join-control: New file.
88529         * modules/unictype/property-grapheme-base: New file.
88530         * modules/unictype/property-grapheme-extend: New file.
88531         * modules/unictype/property-other-grapheme-extend: New file.
88532         * modules/unictype/property-grapheme-link: New file.
88533         * modules/unictype/property-bidi-control: New file.
88534         * modules/unictype/property-bidi-left-to-right: New file.
88535         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
88536         * modules/unictype/property-bidi-arabic-right-to-left: New file.
88537         * modules/unictype/property-bidi-european-digit: New file.
88538         * modules/unictype/property-bidi-eur-num-separator: New file.
88539         * modules/unictype/property-bidi-eur-num-terminator: New file.
88540         * modules/unictype/property-bidi-arabic-digit: New file.
88541         * modules/unictype/property-bidi-common-separator: New file.
88542         * modules/unictype/property-bidi-block-separator: New file.
88543         * modules/unictype/property-bidi-segment-separator: New file.
88544         * modules/unictype/property-bidi-whitespace: New file.
88545         * modules/unictype/property-bidi-non-spacing-mark: New file.
88546         * modules/unictype/property-bidi-boundary-neutral: New file.
88547         * modules/unictype/property-bidi-pdf: New file.
88548         * modules/unictype/property-bidi-embedding-or-override: New file.
88549         * modules/unictype/property-bidi-other-neutral: New file.
88550         * modules/unictype/property-hex-digit: New file.
88551         * modules/unictype/property-ascii-hex-digit: New file.
88552         * modules/unictype/property-ideographic: New file.
88553         * modules/unictype/property-unified-ideograph: New file.
88554         * modules/unictype/property-radical: New file.
88555         * modules/unictype/property-ids-binary-operator: New file.
88556         * modules/unictype/property-ids-trinary-operator: New file.
88557         * modules/unictype/property-zero-width: New file.
88558         * modules/unictype/property-space: New file.
88559         * modules/unictype/property-non-break: New file.
88560         * modules/unictype/property-iso-control: New file.
88561         * modules/unictype/property-format-control: New file.
88562         * modules/unictype/property-dash: New file.
88563         * modules/unictype/property-hyphen: New file.
88564         * modules/unictype/property-punctuation: New file.
88565         * modules/unictype/property-line-separator: New file.
88566         * modules/unictype/property-paragraph-separator: New file.
88567         * modules/unictype/property-quotation-mark: New file.
88568         * modules/unictype/property-sentence-terminal: New file.
88569         * modules/unictype/property-terminal-punctuation: New file.
88570         * modules/unictype/property-currency-symbol: New file.
88571         * modules/unictype/property-math: New file.
88572         * modules/unictype/property-other-math: New file.
88573         * modules/unictype/property-paired-punctuation: New file.
88574         * modules/unictype/property-left-of-pair: New file.
88575         * modules/unictype/property-combining: New file.
88576         * modules/unictype/property-composite: New file.
88577         * modules/unictype/property-decimal-digit: New file.
88578         * modules/unictype/property-numeric: New file.
88579         * modules/unictype/property-diacritic: New file.
88580         * modules/unictype/property-extender: New file.
88581         * modules/unictype/property-ignorable-control: New file.
88582         * modules/unictype/property-test: New file.
88583         * modules/unictype/property-byname: New file.
88584         * modules/unictype/property-all: New file.
88585         * modules/unictype/scripts: New file.
88586         * modules/unictype/scripts-all: New file.
88587         * modules/unictype/block-of: New file.
88588         * modules/unictype/block-test: New file.
88589         * modules/unictype/block-list: New file.
88590         * modules/unictype/block-all: New file.
88591         * modules/unictype/syntax-c-whitespace: New file.
88592         * modules/unictype/syntax-java-whitespace: New file.
88593         * modules/unictype/syntax-c-ident: New file.
88594         * modules/unictype/syntax-java-ident: New file.
88595         * modules/unictype/ctype-alnum: New file.
88596         * modules/unictype/ctype-alpha: New file.
88597         * modules/unictype/ctype-cntrl: New file.
88598         * modules/unictype/ctype-digit: New file.
88599         * modules/unictype/ctype-graph: New file.
88600         * modules/unictype/ctype-lower: New file.
88601         * modules/unictype/ctype-print: New file.
88602         * modules/unictype/ctype-punct: New file.
88603         * modules/unictype/ctype-space: New file.
88604         * modules/unictype/ctype-upper: New file.
88605         * modules/unictype/ctype-xdigit: New file.
88606         * modules/unictype/ctype-blank: New file.
88607         * lib/unictype/bidi_byname.c: New file.
88608         * lib/unictype/bidi_name.c: New file.
88609         * lib/unictype/bidi_of.c: New file.
88610         * lib/unictype/bidi_test.c: New file.
88611         * lib/unictype/bitmap.h: New file.
88612         * lib/unictype/block_test.c: New file.
88613         * lib/unictype/blocks.c: New file.
88614         * lib/unictype/categ_C.c: New file.
88615         * lib/unictype/categ_Cc.c: New file.
88616         * lib/unictype/categ_Cf.c: New file.
88617         * lib/unictype/categ_Cn.c: New file.
88618         * lib/unictype/categ_Co.c: New file.
88619         * lib/unictype/categ_Cs.c: New file.
88620         * lib/unictype/categ_L.c: New file.
88621         * lib/unictype/categ_Ll.c: New file.
88622         * lib/unictype/categ_Lm.c: New file.
88623         * lib/unictype/categ_Lo.c: New file.
88624         * lib/unictype/categ_Lt.c: New file.
88625         * lib/unictype/categ_Lu.c: New file.
88626         * lib/unictype/categ_M.c: New file.
88627         * lib/unictype/categ_Mc.c: New file.
88628         * lib/unictype/categ_Me.c: New file.
88629         * lib/unictype/categ_Mn.c: New file.
88630         * lib/unictype/categ_N.c: New file.
88631         * lib/unictype/categ_Nd.c: New file.
88632         * lib/unictype/categ_Nl.c: New file.
88633         * lib/unictype/categ_No.c: New file.
88634         * lib/unictype/categ_P.c: New file.
88635         * lib/unictype/categ_Pc.c: New file.
88636         * lib/unictype/categ_Pd.c: New file.
88637         * lib/unictype/categ_Pe.c: New file.
88638         * lib/unictype/categ_Pf.c: New file.
88639         * lib/unictype/categ_Pi.c: New file.
88640         * lib/unictype/categ_Po.c: New file.
88641         * lib/unictype/categ_Ps.c: New file.
88642         * lib/unictype/categ_S.c: New file.
88643         * lib/unictype/categ_Sc.c: New file.
88644         * lib/unictype/categ_Sk.c: New file.
88645         * lib/unictype/categ_Sm.c: New file.
88646         * lib/unictype/categ_So.c: New file.
88647         * lib/unictype/categ_Z.c: New file.
88648         * lib/unictype/categ_Zl.c: New file.
88649         * lib/unictype/categ_Zp.c: New file.
88650         * lib/unictype/categ_Zs.c: New file.
88651         * lib/unictype/categ_and.c: New file.
88652         * lib/unictype/categ_and_not.c: New file.
88653         * lib/unictype/categ_byname.c: New file.
88654         * lib/unictype/categ_name.c: New file.
88655         * lib/unictype/categ_none.c: New file.
88656         * lib/unictype/categ_of.c: New file.
88657         * lib/unictype/categ_or.c: New file.
88658         * lib/unictype/categ_test.c: New file.
88659         * lib/unictype/combining.c: New file.
88660         * lib/unictype/ctype_alnum.c: New file.
88661         * lib/unictype/ctype_alpha.c: New file.
88662         * lib/unictype/ctype_blank.c: New file.
88663         * lib/unictype/ctype_cntrl.c: New file.
88664         * lib/unictype/ctype_digit.c: New file.
88665         * lib/unictype/ctype_graph.c: New file.
88666         * lib/unictype/ctype_lower.c: New file.
88667         * lib/unictype/ctype_print.c: New file.
88668         * lib/unictype/ctype_punct.c: New file.
88669         * lib/unictype/ctype_space.c: New file.
88670         * lib/unictype/ctype_upper.c: New file.
88671         * lib/unictype/ctype_xdigit.c: New file.
88672         * lib/unictype/decdigit.c: New file.
88673         * lib/unictype/digit.c: New file.
88674         * lib/unictype/identsyntaxmap.h: New file.
88675         * lib/unictype/mirror.c: New file.
88676         * lib/unictype/numeric.c: New file.
88677         * lib/unictype/pr_alphabetic.c: New file.
88678         * lib/unictype/pr_ascii_hex_digit.c: New file.
88679         * lib/unictype/pr_bidi_arabic_digit.c: New file.
88680         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
88681         * lib/unictype/pr_bidi_block_separator.c: New file.
88682         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
88683         * lib/unictype/pr_bidi_common_separator.c: New file.
88684         * lib/unictype/pr_bidi_control.c: New file.
88685         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
88686         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
88687         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
88688         * lib/unictype/pr_bidi_european_digit.c: New file.
88689         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
88690         * lib/unictype/pr_bidi_left_to_right.c: New file.
88691         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
88692         * lib/unictype/pr_bidi_other_neutral.c: New file.
88693         * lib/unictype/pr_bidi_pdf.c: New file.
88694         * lib/unictype/pr_bidi_segment_separator.c: New file.
88695         * lib/unictype/pr_bidi_whitespace.c: New file.
88696         * lib/unictype/pr_byname.c: New file.
88697         * lib/unictype/pr_byname.gperf: New file.
88698         * lib/unictype/pr_combining.c: New file.
88699         * lib/unictype/pr_composite.c: New file.
88700         * lib/unictype/pr_currency_symbol.c: New file.
88701         * lib/unictype/pr_dash.c: New file.
88702         * lib/unictype/pr_decimal_digit.c: New file.
88703         * lib/unictype/pr_default_ignorable_code_point.c: New file.
88704         * lib/unictype/pr_deprecated.c: New file.
88705         * lib/unictype/pr_diacritic.c: New file.
88706         * lib/unictype/pr_extender.c: New file.
88707         * lib/unictype/pr_format_control.c: New file.
88708         * lib/unictype/pr_grapheme_base.c: New file.
88709         * lib/unictype/pr_grapheme_extend.c: New file.
88710         * lib/unictype/pr_grapheme_link.c: New file.
88711         * lib/unictype/pr_hex_digit.c: New file.
88712         * lib/unictype/pr_hyphen.c: New file.
88713         * lib/unictype/pr_id_continue.c: New file.
88714         * lib/unictype/pr_id_start.c: New file.
88715         * lib/unictype/pr_ideographic.c: New file.
88716         * lib/unictype/pr_ids_binary_operator.c: New file.
88717         * lib/unictype/pr_ids_trinary_operator.c: New file.
88718         * lib/unictype/pr_ignorable_control.c: New file.
88719         * lib/unictype/pr_iso_control.c: New file.
88720         * lib/unictype/pr_join_control.c: New file.
88721         * lib/unictype/pr_left_of_pair.c: New file.
88722         * lib/unictype/pr_line_separator.c: New file.
88723         * lib/unictype/pr_logical_order_exception.c: New file.
88724         * lib/unictype/pr_lowercase.c: New file.
88725         * lib/unictype/pr_math.c: New file.
88726         * lib/unictype/pr_non_break.c: New file.
88727         * lib/unictype/pr_not_a_character.c: New file.
88728         * lib/unictype/pr_numeric.c: New file.
88729         * lib/unictype/pr_other_alphabetic.c: New file.
88730         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
88731         * lib/unictype/pr_other_grapheme_extend.c: New file.
88732         * lib/unictype/pr_other_id_continue.c: New file.
88733         * lib/unictype/pr_other_id_start.c: New file.
88734         * lib/unictype/pr_other_lowercase.c: New file.
88735         * lib/unictype/pr_other_math.c: New file.
88736         * lib/unictype/pr_other_uppercase.c: New file.
88737         * lib/unictype/pr_paired_punctuation.c: New file.
88738         * lib/unictype/pr_paragraph_separator.c: New file.
88739         * lib/unictype/pr_pattern_syntax.c: New file.
88740         * lib/unictype/pr_pattern_white_space.c: New file.
88741         * lib/unictype/pr_private_use.c: New file.
88742         * lib/unictype/pr_punctuation.c: New file.
88743         * lib/unictype/pr_quotation_mark.c: New file.
88744         * lib/unictype/pr_radical.c: New file.
88745         * lib/unictype/pr_sentence_terminal.c: New file.
88746         * lib/unictype/pr_soft_dotted.c: New file.
88747         * lib/unictype/pr_space.c: New file.
88748         * lib/unictype/pr_terminal_punctuation.c: New file.
88749         * lib/unictype/pr_test.c: New file.
88750         * lib/unictype/pr_titlecase.c: New file.
88751         * lib/unictype/pr_unassigned_code_value.c: New file.
88752         * lib/unictype/pr_unified_ideograph.c: New file.
88753         * lib/unictype/pr_uppercase.c: New file.
88754         * lib/unictype/pr_variation_selector.c: New file.
88755         * lib/unictype/pr_white_space.c: New file.
88756         * lib/unictype/pr_xid_continue.c: New file.
88757         * lib/unictype/pr_xid_start.c: New file.
88758         * lib/unictype/pr_zero_width.c: New file.
88759         * lib/unictype/scripts.c: New file.
88760         * lib/unictype/sy_c_ident.c: New file.
88761         * lib/unictype/sy_c_whitespace.c: New file.
88762         * lib/unictype/sy_java_ident.c: New file.
88763         * lib/unictype/sy_java_whitespace.c: New file.
88765         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
88766         Unicode 5.0.0.
88767         * lib/unictype/blocks.h: Likewise.
88768         * lib/unictype/categ_C.h: Likewise.
88769         * lib/unictype/categ_Cc.h: Likewise.
88770         * lib/unictype/categ_Cf.h: Likewise.
88771         * lib/unictype/categ_Cn.h: Likewise.
88772         * lib/unictype/categ_Co.h: Likewise.
88773         * lib/unictype/categ_Cs.h: Likewise.
88774         * lib/unictype/categ_L.h: Likewise.
88775         * lib/unictype/categ_Ll.h: Likewise.
88776         * lib/unictype/categ_Lm.h: Likewise.
88777         * lib/unictype/categ_Lo.h: Likewise.
88778         * lib/unictype/categ_Lt.h: Likewise.
88779         * lib/unictype/categ_Lu.h: Likewise.
88780         * lib/unictype/categ_M.h: Likewise.
88781         * lib/unictype/categ_Mc.h: Likewise.
88782         * lib/unictype/categ_Me.h: Likewise.
88783         * lib/unictype/categ_Mn.h: Likewise.
88784         * lib/unictype/categ_N.h: Likewise.
88785         * lib/unictype/categ_Nd.h: Likewise.
88786         * lib/unictype/categ_Nl.h: Likewise.
88787         * lib/unictype/categ_No.h: Likewise.
88788         * lib/unictype/categ_P.h: Likewise.
88789         * lib/unictype/categ_Pc.h: Likewise.
88790         * lib/unictype/categ_Pd.h: Likewise.
88791         * lib/unictype/categ_Pe.h: Likewise.
88792         * lib/unictype/categ_Pf.h: Likewise.
88793         * lib/unictype/categ_Pi.h: Likewise.
88794         * lib/unictype/categ_Po.h: Likewise.
88795         * lib/unictype/categ_Ps.h: Likewise.
88796         * lib/unictype/categ_S.h: Likewise.
88797         * lib/unictype/categ_Sc.h: Likewise.
88798         * lib/unictype/categ_Sk.h: Likewise.
88799         * lib/unictype/categ_Sm.h: Likewise.
88800         * lib/unictype/categ_So.h: Likewise.
88801         * lib/unictype/categ_Z.h: Likewise.
88802         * lib/unictype/categ_Zl.h: Likewise.
88803         * lib/unictype/categ_Zp.h: Likewise.
88804         * lib/unictype/categ_Zs.h: Likewise.
88805         * lib/unictype/categ_of.h: Likewise.
88806         * lib/unictype/combining.h: Likewise.
88807         * lib/unictype/ctype_alnum.h: Likewise.
88808         * lib/unictype/ctype_alpha.h: Likewise.
88809         * lib/unictype/ctype_blank.h: Likewise.
88810         * lib/unictype/ctype_cntrl.h: Likewise.
88811         * lib/unictype/ctype_digit.h: Likewise.
88812         * lib/unictype/ctype_graph.h: Likewise.
88813         * lib/unictype/ctype_lower.h: Likewise.
88814         * lib/unictype/ctype_print.h: Likewise.
88815         * lib/unictype/ctype_punct.h: Likewise.
88816         * lib/unictype/ctype_space.h: Likewise.
88817         * lib/unictype/ctype_upper.h: Likewise.
88818         * lib/unictype/ctype_xdigit.h: Likewise.
88819         * lib/unictype/decdigit.h: Likewise.
88820         * lib/unictype/digit.h: Likewise.
88821         * lib/unictype/mirror.h: Likewise.
88822         * lib/unictype/numeric.h: Likewise.
88823         * lib/unictype/pr_alphabetic.h: Likewise.
88824         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
88825         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
88826         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
88827         * lib/unictype/pr_bidi_block_separator.h: Likewise.
88828         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
88829         * lib/unictype/pr_bidi_common_separator.h: Likewise.
88830         * lib/unictype/pr_bidi_control.h: Likewise.
88831         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
88832         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
88833         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
88834         * lib/unictype/pr_bidi_european_digit.h: Likewise.
88835         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
88836         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
88837         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
88838         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
88839         * lib/unictype/pr_bidi_pdf.h: Likewise.
88840         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
88841         * lib/unictype/pr_bidi_whitespace.h: Likewise.
88842         * lib/unictype/pr_combining.h: Likewise.
88843         * lib/unictype/pr_composite.h: Likewise.
88844         * lib/unictype/pr_currency_symbol.h: Likewise.
88845         * lib/unictype/pr_dash.h: Likewise.
88846         * lib/unictype/pr_decimal_digit.h: Likewise.
88847         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
88848         * lib/unictype/pr_deprecated.h: Likewise.
88849         * lib/unictype/pr_diacritic.h: Likewise.
88850         * lib/unictype/pr_extender.h: Likewise.
88851         * lib/unictype/pr_format_control.h: Likewise.
88852         * lib/unictype/pr_grapheme_base.h: Likewise.
88853         * lib/unictype/pr_grapheme_extend.h: Likewise.
88854         * lib/unictype/pr_grapheme_link.h: Likewise.
88855         * lib/unictype/pr_hex_digit.h: Likewise.
88856         * lib/unictype/pr_hyphen.h: Likewise.
88857         * lib/unictype/pr_id_continue.h: Likewise.
88858         * lib/unictype/pr_id_start.h: Likewise.
88859         * lib/unictype/pr_ideographic.h: Likewise.
88860         * lib/unictype/pr_ids_binary_operator.h: Likewise.
88861         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
88862         * lib/unictype/pr_ignorable_control.h: Likewise.
88863         * lib/unictype/pr_iso_control.h: Likewise.
88864         * lib/unictype/pr_join_control.h: Likewise.
88865         * lib/unictype/pr_left_of_pair.h: Likewise.
88866         * lib/unictype/pr_line_separator.h: Likewise.
88867         * lib/unictype/pr_logical_order_exception.h: Likewise.
88868         * lib/unictype/pr_lowercase.h: Likewise.
88869         * lib/unictype/pr_math.h: Likewise.
88870         * lib/unictype/pr_non_break.h: Likewise.
88871         * lib/unictype/pr_not_a_character.h: Likewise.
88872         * lib/unictype/pr_numeric.h: Likewise.
88873         * lib/unictype/pr_other_alphabetic.h: Likewise.
88874         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
88875         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
88876         * lib/unictype/pr_other_id_continue.h: Likewise.
88877         * lib/unictype/pr_other_id_start.h: Likewise.
88878         * lib/unictype/pr_other_lowercase.h: Likewise.
88879         * lib/unictype/pr_other_math.h: Likewise.
88880         * lib/unictype/pr_other_uppercase.h: Likewise.
88881         * lib/unictype/pr_paired_punctuation.h: Likewise.
88882         * lib/unictype/pr_paragraph_separator.h: Likewise.
88883         * lib/unictype/pr_pattern_syntax.h: Likewise.
88884         * lib/unictype/pr_pattern_white_space.h: Likewise.
88885         * lib/unictype/pr_private_use.h: Likewise.
88886         * lib/unictype/pr_punctuation.h: Likewise.
88887         * lib/unictype/pr_quotation_mark.h: Likewise.
88888         * lib/unictype/pr_radical.h: Likewise.
88889         * lib/unictype/pr_sentence_terminal.h: Likewise.
88890         * lib/unictype/pr_soft_dotted.h: Likewise.
88891         * lib/unictype/pr_space.h: Likewise.
88892         * lib/unictype/pr_terminal_punctuation.h: Likewise.
88893         * lib/unictype/pr_titlecase.h: Likewise.
88894         * lib/unictype/pr_unassigned_code_value.h: Likewise.
88895         * lib/unictype/pr_unified_ideograph.h: Likewise.
88896         * lib/unictype/pr_uppercase.h: Likewise.
88897         * lib/unictype/pr_variation_selector.h: Likewise.
88898         * lib/unictype/pr_white_space.h: Likewise.
88899         * lib/unictype/pr_xid_continue.h: Likewise.
88900         * lib/unictype/pr_xid_start.h: Likewise.
88901         * lib/unictype/pr_zero_width.h: Likewise.
88902         * lib/unictype/scripts.h: Likewise.
88903         * lib/unictype/scripts_byname.gperf: Likewise.
88904         * lib/unictype/sy_c_ident.h: Likewise.
88905         * lib/unictype/sy_c_whitespace.h: Likewise.
88906         * lib/unictype/sy_java_ident.h: Likewise.
88907         * lib/unictype/sy_java_whitespace.h: Likewise.
88909         * lib/unictype/Makefile: New file.
88910         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
88911         glibc.
88912         * lib/unictype/3level.h: New file, copied from glibc.
88913         * lib/unictype/3levelbit.h: New file.
88915 2007-11-11  Bruno Haible  <bruno@clisp.org>
88917         * modules/gperf: New file.
88918         * modules/iconv_open (Depends-on): Add it.
88919         (Makefile.am): Remove the GPERF definition.
88921 2007-11-11  Bruno Haible  <bruno@clisp.org>
88923         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
88924         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
88926 2007-11-11  Bruno Haible  <bruno@clisp.org>
88928         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
88929         (usage): Remove function.
88931 2007-11-11  Bruno Haible  <bruno@clisp.org>
88933         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
88934         gl_FUNC_CEILF_LIBS.
88935         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
88936         gl_FUNC_CEIL_LIBS.
88937         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
88938         gl_FUNC_CEILL_LIBS.
88939         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
88940         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
88941         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
88943 2007-11-11  Bruno Haible  <bruno@clisp.org>
88945         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
88946         roundf were declared but do not exist on functions.
88947         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
88948         roundl were declared but do not exist on functions.
88949         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
88950         HAVE_FLOORL_AND_CEILL, respectively.
88951         Needed for Sun C on Solaris 10.
88953 2007-11-11  Bruno Haible  <bruno@clisp.org>
88955         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
88956         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
88957         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
88958         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
88959         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
88960         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
88961         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
88962         HAVE_DECL_ROUNDF.
88963         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
88964         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
88965         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
88966         of HAVE_DECL_ROUND*.
88967         * modules/math (Makefile.am): Update.
88969 2007-11-10  Bruno Haible  <bruno@clisp.org>
88971         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
88972         ptrdiff_t as m4/intl.m4.
88974 2007-11-10  Jim Meyering  <meyering@redhat.com>
88976         Avoid link failure for the argmatch test.
88977         * tests/test-argmatch.c (usage): Define function to avoid a link
88978         failure: argmatch_die requires a usage function.
88980 2007-11-09  Bruno Haible  <bruno@clisp.org>
88982         * doc/functions/snprintf.texi: Mention BeOS deficiency.
88983         * doc/functions/vsnprintf.texi: Likewise.
88984         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
88985         with a size argument < 2.
88987 2007-11-09  Bruno Haible  <bruno@clisp.org>
88989         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
88990         buffer. Fixes an inefficiency introduced on 2007-11-03.
88992 2007-11-09  Bruno Haible  <bruno@clisp.org>
88994         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
88995         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
88997 2007-11-08  Jim Meyering  <meyering@redhat.com>
88999         Change cache variable name prefix "jm_" to "gl_" everywhere.
89000         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
89001         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
89002         * m4/uptime.m4: s/gl_/jm_/
89004 2007-11-07  Bruno Haible  <bruno@clisp.org>
89006         Update to GNU gettext 0.17.
89007         * m4/intl.m4: Update to GNU gettext 0.17.
89008         * m4/po.m4: Likewise.
89009         * modules/gettext (Files): Remove m4/ulonglong.m4.
89010         (configure.ac): Require gettext infrastructure from version 0.17.
89012 2007-11-06  Bruno Haible  <bruno@clisp.org>
89014         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
89015         symbolic values are not defined in a public header.
89016         * lib/freadable.c (freadable) [QNX]: Likewise.
89017         * lib/freadahead.c (freadahead) [QNX]: Likewise.
89018         * lib/freading.c (freading) [QNX]: Likewise.
89019         * lib/fseterr.c (fseterr) [QNX]: Likewise.
89020         * lib/fwritable.c (fwritable) [QNX]: Likewise.
89021         * lib/fwriting.c (fwriting) [QNX]: Likewise.
89022         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
89023         Reported by Alain Magloire.
89025         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
89027 2007-11-05  Bruno Haible  <bruno@clisp.org>
89029         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
89030         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
89031         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
89032         Reported by Eric Blake.
89034 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89035             Bruno Haible  <bruno@clisp.org>
89037         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
89038         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
89039         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
89040         (malloc): Undefine also before including <stdlib.h>.
89041         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
89042         Needed on OSF/1 4.0.
89044 2007-11-05  Jim Meyering  <meyering@redhat.com>
89046         git-version-gen: sync from coreutils.
89047         * build-aux/git-version-gen: Add comments.
89048         Change the first '-' to '.' in the snapshot version string,
89049         e.g., 6.9-377-08144 -> 6.9.377-08144
89050         Remove first parameter.
89051         Don't declare a version "-dirty" merely because a time
89052         stamp has changed.
89054 2007-11-04  Bruno Haible  <bruno@clisp.org>
89056         * lib/lock.h: Protect all macro definitions containing an 'if'
89057         statement through a "do { ... } while (0)".
89058         * lib/tls.h: Likewise.
89060 2007-11-04  Bruno Haible  <bruno@clisp.org>
89062         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
89064 2007-11-04  Bruno Haible  <bruno@clisp.org>
89066         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
89067         * modules/fprintf-posix (Depends-on): Add nocrash.
89068         * modules/snprintf-posix (Depends-on): Likewise.
89069         * modules/sprintf-posix (Depends-on): Likewise.
89070         * modules/vasnprintf-posix (Depends-on): Likewise.
89071         * modules/vasprintf-posix (Depends-on): Likewise.
89072         * modules/vfprintf-posix (Depends-on): Likewise.
89073         * modules/vsnprintf-posix (Depends-on): Likewise.
89074         * modules/vsprintf-posix (Depends-on): Likewise.
89075         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
89076         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
89077         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
89078         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
89079         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
89080         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
89081         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
89083 2007-11-04  Bruno Haible  <bruno@clisp.org>
89085         * modules/nocrash: New file.
89086         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
89087         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
89089 2007-11-04  Bruno Haible  <bruno@clisp.org>
89091         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
89092         precision handling.
89093         * tests/test-vasprintf-posix.c (test_function): Likewise.
89094         * tests/test-snprintf-posix.h (test_function): Likewise.
89095         * tests/test-sprintf-posix.h (test_function): Likewise.
89097         Fix *printf behaviour for large precisions on mingw and BeOS.
89098         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
89099         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
89100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
89101         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
89102         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
89103         gl_PRINTF_PRECISION and test its result. Invoke
89104         gl_PREREQ_VASNPRINTF_PRECISION.
89105         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
89106         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
89107         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
89108         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
89109         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
89110         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
89111         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
89112         * doc/functions/fprintf.texi: Update.
89113         * doc/functions/printf.texi: Update.
89114         * doc/functions/snprintf.texi: Update.
89115         * doc/functions/sprintf.texi: Update.
89116         * doc/functions/vfprintf.texi: Update.
89117         * doc/functions/vprintf.texi: Update.
89118         * doc/functions/vsnprintf.texi: Update.
89119         * doc/functions/vsprintf.texi: Update.
89121 2007-11-04  Bruno Haible  <bruno@clisp.org>
89123         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
89125 2007-11-04  Bruno Haible  <bruno@clisp.org>
89127         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
89128         Reported by Sylvain Beucler <beuc@gnu.org>.
89130 2007-11-03  Bruno Haible  <bruno@clisp.org>
89132         * tests/test-fprintf-posix2.sh: New file.
89133         * tests/test-fprintf-posix2.c: New file.
89134         * modules/fprintf-posix-tests (Files): Add them.
89135         (TESTS): Add test-fprintf-posix2.sh.
89136         (configure.ac): Check for getrlimit and setrlimit.
89137         (check_PROGRAMS): Add test-fprintf-posix2.
89139         * tests/test-printf-posix2.sh: New file.
89140         * tests/test-printf-posix2.c: New file.
89141         * modules/printf-posix-tests (Files): Add them.
89142         (TESTS): Add test-printf-posix2.sh.
89143         (configure.ac): Check for getrlimit and setrlimit.
89144         (check_PROGRAMS): Add test-printf-posix2.
89146         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
89147         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
89148         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
89149         (decode_double): New function, copied from decode_long_double.
89150         (scale10_round_decimal_decoded): New function, extracted from
89151         scale10_round_decimal_long_double.
89152         (scale10_round_decimal_long_double): Use it.
89153         (scale10_round_decimal_double): New function.
89154         (floorlog10): New function.
89155         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
89156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
89157         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
89158         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
89159         gl_PRINTF_ENOMEM and test its result. Invoke
89160         gl_PREREQ_VASNPRINTF_ENOMEM.
89161         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
89162         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
89163         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
89164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
89165         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
89166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
89167         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
89168         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
89169         * modules/snprintf-posix (Depends-on): Likewise.
89170         * modules/sprintf-posix (Depends-on): Likewise.
89171         * modules/vasnprintf-posix (Depends-on): Likewise.
89172         * modules/vasprintf-posix (Depends-on): Likewise.
89173         * modules/vfprintf-posix (Depends-on): Likewise.
89174         * modules/vsnprintf-posix (Depends-on): Likewise.
89175         * modules/vsprintf-posix (Depends-on): Likewise.
89176         * doc/functions/fprintf.texi: Update.
89177         * doc/functions/printf.texi: Update.
89178         * doc/functions/snprintf.texi: Update.
89179         * doc/functions/sprintf.texi: Update.
89180         * doc/functions/vfprintf.texi: Update.
89181         * doc/functions/vprintf.texi: Update.
89182         * doc/functions/vsnprintf.texi: Update.
89183         * doc/functions/vsprintf.texi: Update.
89185 2007-11-03  Bruno Haible  <bruno@clisp.org>
89187         * modules/frexp-nolibm-tests: New file.
89189         * modules/frexp-nolibm: New file.
89190         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
89192 2007-11-03  Bruno Haible  <bruno@clisp.org>
89194         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
89195         value is C99 compliant.
89196         Needed for OSF/1 5.1.
89198 2007-11-03  Bruno Haible  <bruno@clisp.org>
89200         Fix out-of-memory handling of vasnprintf.
89201         * lib/printf-parse.c: Include <errno.h>.
89202         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
89203         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
89204         is already set.
89206 2007-11-02  Eric Blake  <ebb9@byu.net>
89208         Fix tests on cygwin.
89209         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
89211 2007-11-01  Bruno Haible  <bruno@clisp.org>
89213         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
89214         warning.
89215         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
89216         needed for POSIX compatibility.
89218 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89220         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
89221         for compatibility with GNU.
89223 2007-11-01  Bruno Haible  <bruno@clisp.org>
89225         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
89226         (putenv): Renamed from rpl_putenv. Change argument type from
89227         'const char *' to 'char *'.
89228         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
89229         of defining putenv in config.h, just set REPLACE_PUTENV.
89230         * modules/putenv (Depends-on): Add stdlib.
89231         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89232         (Include): Use <stdlib.h>.
89233         * lib/stdlib.in.h (putenv): New declaration.
89234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
89235         REPLACE_PUTENV.
89236         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
89237         REPLACE_PUTENV.
89238         Needed for MacOS X 10.5.0.
89239         Reported by Peter O'Gorman <peter@pogma.com>.
89241 2007-11-01  Jim Meyering  <meyering@redhat.com>
89243         Treat an empty date string exactly like "0".
89244         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
89245         if the remaining date string (to be parsed) is empty, use "0".
89246         Reported by Mischa Molhoek and discussed in this thread:
89247         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
89249 2007-10-31  Bruno Haible  <bruno@clisp.org>
89251         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
89252         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
89253         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
89254         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
89255         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
89256         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
89258 2007-10-31  Bruno Haible  <bruno@clisp.org>
89260         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
89261         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
89262         (AC_TYPE_LONG_LONG_INT): Use it.
89263         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
89264         it as well.
89265         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
89266         to m4/longlong.m4.
89267         * modules/stdint (Files): Remove m4/ulonglong.m4.
89268         * modules/strtoull (Files): Use m4/longlong.m4 instead of
89269         m4/ulonglong.m4.
89270         * modules/strtoumax (Files): Likewise.
89272 2007-10-30  Bruno Haible  <bruno@clisp.org>
89274         * modules/xvasprintf-posix: New file.
89275         Suggested by Eric Blake.
89277 2007-10-30  Bruno Haible  <bruno@clisp.org>
89279         * modules/xprintf-posix-tests: New file.
89280         * tests/test-xprintf-posix.sh: New file.
89281         * tests/test-xprintf-posix.c: New file.
89282         * tests/test-xfprintf-posix.c: New file.
89284         * modules/xprintf-posix: New file.
89286 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89288         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
89289         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
89290         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
89292 2007-10-29  Bruno Haible  <bruno@clisp.org>
89294         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
89295         contain the special marker '_cv_'.
89296         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
89297         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
89298         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
89299         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
89300         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
89301         Reported by Ralf Wildenhues.
89303 2007-10-29  Bruno Haible  <bruno@clisp.org>
89305         * gnulib-tool (func_import): When --lgpl is not specified, set
89306         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
89307         GPLv3.
89308         Reported by Simon Josefsson.
89310 2007-10-28  Bruno Haible  <bruno@clisp.org>
89312         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
89313         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
89314         HAVE_DECL_ISFINITE.
89315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
89316         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
89317         HAVE_DECL_ISFINITE.
89319 2007-10-28  Bruno Haible  <bruno@clisp.org>
89321         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
89322         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
89324 2007-10-28  Bruno Haible  <bruno@clisp.org>
89326         Fix link errors with Sun C 5.0 on Solaris 10.
89327         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
89328         function is declared but not present in the compiler's libm.
89329         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
89330         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
89331         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
89332         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
89333         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
89334         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
89335         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
89336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
89337         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
89338         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
89339         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
89340         HAVE_DECL_FLOORL.
89342 2007-10-28  Bruno Haible  <bruno@clisp.org>
89344         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
89345         gl_FUNC_FLOORL. Cache the result.
89346         (gl_FUNC_FLOORL): Use it.
89347         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
89348         gl_FUNC_CEILL. Cache the result.
89349         (gl_FUNC_CEILL): Use it.
89351         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
89352         gl_FUNC_FLOOR. Cache the result.
89353         (gl_FUNC_FLOOR): Use it.
89354         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
89355         gl_FUNC_CEIL. Cache the result.
89356         (gl_FUNC_CEIL): Use it.
89358         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
89359         gl_FUNC_FLOORF. Cache the result.
89360         (gl_FUNC_FLOORF): Use it.
89361         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
89362         gl_FUNC_CEILF. Cache the result.
89363         (gl_FUNC_CEILF): Use it.
89365 2007-10-28  Bruno Haible  <bruno@clisp.org>
89367         * gnulib-tool: Allow specifying the LGPL version number through
89368         --lgpl=2 or --lgpl=3.
89369         (func_usage): Document --lgpl with argument.
89370         Handle --lgpl=... arguments.
89371         (func_import): Recognize also gl_LGPL calls with an argument. When
89372         --lgpl=2 is used and the module's license is just LGPL, report an
89373         error. Set sed_transform_lib_file according to the lgpl variable. In
89374         the generated files, use --lgpl or gl_LGPL invocations with argument,
89375         if necessary.
89376         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
89377         an LGPv2+ license.
89378         * doc/gnulib-tool.texi (Modified imports): Update explanation of
89379         gl_LGPL macro.
89381 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89382             Bruno Haible  <bruno@clisp.org>
89384         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
89385         (u16_uctomb_aux): Likewise.
89386         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
89387         !HAVE_INLINE.
89388         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
89390 2007-10-28  Bruno Haible  <bruno@clisp.org>
89392         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
89393         Invoke AM_GETTEXT_OPTION if it exists.
89394         * modules/vasprintf: Likewise.
89395         * modules/verror: Likewise.
89396         * modules/xprintf: Likewise.
89397         * modules/xvasprintf: Likewise.
89399 2007-10-27  Ben Pfaff  <blp@gnu.org>
89401         * lib/math.in.h: Define isfinite macro and prototypes for
89402         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
89403         implementations.
89404         * m4/math_h.m4: New substitutions for isfinite module.
89405         * lib/isfinite.c: New file.
89406         * m4/isfinite.m4: New file.
89407         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
89408         * modules/isfinite: New file.
89409         * modules/isfinite-tests: New file.
89410         * tests/tests-isfinite.c: New file.
89411         * doc/functions/isfinite.texi: Mention isfinite module.
89412         * MODULES.html.sh: Mention new module.
89414 2007-10-27  Ben Pfaff  <blp@gnu.org>
89416         Ralf Wildenhues reported that Tru64 4.0D declares the round
89417         functions but does not have definitions.
89418         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
89419         cannot be found in any library, set the output variable to
89420         "missing" instead of "".
89421         * m4/round.m4: Also use our substitute if we cannot find round in
89422         any library, even if it is declared.
89423         * m4/roundf.m4: Likewise for roundf.
89424         * m4/roundl.m4: Likewise for roundl.
89425         * lib/math.in.h: Undefine roundf, round, roundl before defining
89426         their replacements, to allow for hypothetical systems where these
89427         may be defined as macros but not available in libraries.
89429 2007-10-27  Bruno Haible  <bruno@clisp.org>
89431         * doc/gnulib.texi: Invoke @firstparagraphindent.
89432         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
89433         changes in gnulib.
89434         (Source changes): New section.
89436 2007-10-26  Bruno Haible  <bruno@clisp.org>
89438         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
89439         borrowed from autoconf.
89441 2007-10-26  Bruno Haible  <bruno@clisp.org>
89443         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
89444         strerror returned the empty string. Needed on HP-UX 11.00.
89446 2007-10-24  Micah Cowan  <micah@cowan.name>
89448         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
89449         * build-aux/bootstrap: Remove support for now-unnecessary option,
89450         --cvs-user, and envvars CVS_USER, CVS_RSH.
89452 2007-10-24  Jim Meyering  <meyering@redhat.com>
89454         Avoid diagnostics from sha1sum when there is no cached checksum.
89455         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
89456         if the po.s1 file hasn't been created yet.
89458         * build-aux/bootstrap: Sync from coreutils:
89459         2007-10-24  Jim Meyering  <meyering@redhat.com>
89460         Get gnulib from the git repository, not from an obsolete cvs one.
89461         * build-aux/bootstrap: Suggestion from Micah Cowan.
89462         2007-10-04  Jim Meyering  <jim@meyering.net>
89463         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
89464         (update_po_files): Work also when there are no .po files in po/.
89466 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89468         * README: Append ".git" to git and cg examples.
89469         Problem reported by Benoit Sigoure.
89471 2007-10-23  Micah Cowan  <micah@cowan.name>
89473         * users.txt: Add wget.
89475 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89477         Fix linking of some unistdio tests on FreeBSD.
89478         * modules/unistdio/u16-vsnprintf-tests
89479         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
89480         * modules/unistdio/u16-vsprintf-tests
89481         (test_u16_vsnprintf1_LDADD): Likewise.
89482         * modules/unistdio/u32-vsnprintf-tests
89483         (test_u32_vsnprintf1_LDADD): Likewise.
89484         * modules/unistdio/u32-vsprintf-tests
89485         (test_u32_vsprintf1_LDADD): Likewise.
89486         * modules/unistdio/u8-vsnprintf-tests
89487         (test_u8_vsnprintf1_LDADD): Likewise.
89488         * modules/unistdio/u8-vsprintf-tests
89489         (test_u8_vsprintf1_LDADD): Likewise.
89490         * modules/unistdio/ulc-vsnprintf-tests
89491         (test_ulc_vsnprintf1_LDADD): Likewise.
89492         * modules/unistdio/ulc-vsprintf-tests
89493         (test_ulc_vsprintf1_LDADD): Likewise.
89495         Fix linking of some uniconv tests on FreeBSD.
89496         * modules/uniconv/u16-conv-from-enc-tests
89497         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
89498         * modules/uniconv/u16-conv-to-enc-tests
89499         (test_u16_conv_to_enc_LDADD): Likewise.
89500         * modules/uniconv/u16-strconv-from-enc-tests
89501         (test_u16_strconv_from_enc_LDADD): Likewise.
89502         * modules/uniconv/u16-strconv-to-enc-tests
89503         (test_u16_strconv_to_enc_LDADD): Likewise.
89504         * modules/uniconv/u32-conv-from-enc-tests
89505         (test_u32_conv_from_enc_LDADD): Likewise.
89506         * modules/uniconv/u32-conv-to-enc-tests
89507         (test_u32_conv_to_enc_LDADD): Likewise.
89508         * modules/uniconv/u32-strconv-from-enc-tests
89509         (test_u32_strconv_from_enc_LDADD): Likewise.
89510         * modules/uniconv/u32-strconv-to-enc-tests
89511         (test_u32_strconv_to_enc_LDADD): Likewise.
89512         * modules/uniconv/u8-conv-from-enc-tests
89513         (test_u8_conv_from_enc_LDADD): Likewise.
89514         * modules/uniconv/u8-conv-to-enc-tests
89515         (test_u8_conv_to_enc_LDADD): Likewise.
89516         * modules/uniconv/u8-strconv-from-enc-tests
89517         (test_u8_strconv_from_enc_LDADD): Likewise.
89518         * modules/uniconv/u8-strconv-to-enc-tests
89519         (test_u8_strconv_to_enc_LDADD): Likewise.
89521 2007-10-22  Bruno Haible  <bruno@clisp.org>
89523         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
89524         size.
89526 2007-10-22  Eric Blake  <ebb9@byu.net>
89528         Tweak x*printf documentation.
89529         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
89530         variable name and comments.
89531         Suggested by Bruno Haible.
89533 2007-10-22  Bruno Haible  <bruno@clisp.org>
89535         * lib/acl.c (copy_acl): Fix file name in comment.
89537 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89539         Fix Tru64 problem with stdbool.h.
89540         * lib/stdbool.in.h (false, true):
89541         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
89542         Don't declare as an enum in this situation; it runs afoul of Tru64.
89543         Problem reported by Steven M. Schweda in
89544         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
89546 2007-10-22  Eric Blake  <ebb9@byu.net>
89548         Also wrap vf?printf.
89549         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
89550         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
89551         (xvprintf, xvfprintf): New functions.
89553 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89555         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
89556         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
89558         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
89559         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
89561 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89563         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
89564         by Bruno Haible.
89566 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89568         * lib/getloadavg.c
89569         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
89570         Undef `sys' after including sys/table.h, for Tru64 4.0D.
89572         * tests/test-i-ring.c: Work for C89.
89574 2007-10-22  Bruno Haible  <bruno@clisp.org>
89576         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
89577         -1u, in preprocessor expression, so that we don't test for the bug
89578         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
89579         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
89581 2007-10-22  Eric Blake  <ebb9@byu.net>
89583         * tests/test-yesno.sh: Silence stderr during test.
89585 2007-10-22  Simon Josefsson  <simon@josefsson.org>
89587         * modules/crypto/gc-camellia: New file.
89589         * m4/gc-camellia.m4: New file.
89591         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
89593         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
89595 2007-10-22  Simon Josefsson  <simon@josefsson.org>
89597         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
89598         --help to stdout.  Reported by sms@antinode.org (Steven
89599         M. Schweda).
89601 2007-10-22  Simon Josefsson  <simon@josefsson.org>
89603         * users.txt: Fix link to libksba.
89605 2007-10-21  Ben Pfaff  <blp@gnu.org>
89607         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
89608         round.c roundf implementation that depends on floorf and ceilf to
89609         be tested unconditionally.
89611 2007-10-21  Ben Pfaff  <blp@gnu.org>
89613         * m4/check-libm-func.m4: Removed.
89614         * m4/check-math-lib.m4: New file.
89615         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
89616         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
89617         definition and lack of AC_LIBOBJ([roundf]).
89618         * m4/roundl.m4: Ditto, and similarly for roundl.
89619         * modules/round: Reference new m4 file.
89620         * modules/roundf: Ditto.
89621         * modules/roundl: Ditto.
89622         * tests/test-round2.c (main): Use ROUND instead of round.
89623         Bug report from Bruno Haible.
89625 2007-10-21  Bruno Haible  <bruno@clisp.org>
89627         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
89628         context.
89630 2007-10-21  Bruno Haible  <bruno@clisp.org>
89632         * tests/test-wcwidth.c (main): Allow negative result for some control
89633         characters.
89635         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
89636         Needed on OSF/1 5.1.
89638 2007-10-21  Bruno Haible  <bruno@clisp.org>
89640         * tests/test-floorf1.c: Include isnanf.h.
89641         (main): Use isnanf() instead of isnan().
89642         * tests/test-ceilf1.c: Include isnanf.h.
89643         (main): Use isnanf() instead of isnan().
89644         * tests/test-truncf1.c: Include isnanf.h.
89645         (main): Use isnanf() instead of isnan().
89646         * tests/test-roundf1.c: Include isnanf.h.
89647         (main): Use isnanf() instead of isnan().
89649 2007-10-21  Eric Blake  <ebb9@byu.net>
89651         * users.txt: Update URL for m4.
89653 2007-10-21  Bruno Haible  <bruno@clisp.org>
89655         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
89657 2007-10-21  Bruno Haible  <bruno@clisp.org>
89659         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
89660         Git's management files if the CVS files are not present.
89662 2007-10-20  Bruno Haible  <bruno@clisp.org>
89664         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
89665         gcc-3.4.x.
89667 2007-10-20  Ben Pfaff  <blp@gnu.org>
89669         * lib/math.in.h: Declare round, roundf, roundl if we are providing
89670         implementations.
89671         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
89672         * lib/round.c: New file.
89673         * lib/roundf.c: New file.
89674         * lib/roundl.c: New file.
89675         * m4/round.m4: New file.
89676         * m4/roundf.m4: New file.
89677         * m4/roundl.m4: New file.
89678         * m4/check-libm-func-m4: New file.
89679         * modules/math: Replace round, roundf, roundl related @VARS@ in
89680         math.in.h.
89681         * modules/round: New file.
89682         * modules/round-tests: New file.
89683         * modules/roundf: New file.
89684         * modules/roundf-tests: New file.
89685         * modules/roundl: New file.
89686         * modules/roundl-tests: New file.
89687         * tests/test-round1.c: New file.
89688         * tests/test-round2.c: New file.
89689         * tests/test-roundf1.c: New file.
89690         * tests/test-roundf2.c: New file.
89691         * tests/test-roundl.c: New file.
89692         * doc/functions/round.texi: Mention round module.
89693         * doc/functions/roundf.texi: Mention roundf module.
89694         * doc/functions/roundl.texi: Mention roundl module.
89695         * MODULES.html.sh: Mention new modules.
89696         Thanks to Bruno Haible for suggestions.
89698 2007-10-20  Jim Meyering  <meyering@redhat.com>
89700         * lib/xprintf.c: Include <config.h> unconditionally.
89702         Change xprintf's license to GPL.
89703         * modules/xprintf (License): s/LGPL/GPL/, since this module
89704         depends on modules (exit and exitfail) which are GPL.
89705         Suggestion from Bruno Haible.
89707         xprintf fixes.
89708         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
89709         Use a clearer diagnostic.
89710         Patch from Bruno Haible.
89712 2007-10-20  Bruno Haible  <bruno@clisp.org>
89714         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
89715         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
89716         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89718 2007-10-20  Bruno Haible  <bruno@clisp.org>
89720         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
89721         precision in the comparison result > x - 1 or similar.
89722         * tests/test-ceilf2.c (correct_result_p): Likewise.
89723         * tests/test-truncf2.c (correct_result_p): Likewise.
89724         * tests/test-trunc2.c (correct_result_p): Likewise.
89725         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89727 2007-10-20  Bruno Haible  <bruno@clisp.org>
89729         * modules/ceil: New file.
89730         * m4/ceil.m4: New file.
89731         * doc/functions/ceil.texi: Mention the 'ceil' module.
89733 2007-10-20  Bruno Haible  <bruno@clisp.org>
89735         * modules/floor: New file.
89736         * m4/floor.m4: New file.
89737         * doc/functions/floor.texi: Mention the 'floor' module.
89739 2007-10-20  Bruno Haible  <bruno@clisp.org>
89741         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
89742         of %a.
89743         * modules/floorf-tests (Depends-on): Likewise.
89744         * modules/truncf-tests (Depends-on): Likewise.
89745         * modules/trunc-tests (Depends-on): Likewise.
89746         Reported by Ben Pfaff.
89748 2007-10-19  Jim Meyering  <meyering@redhat.com>
89750         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
89751         Don't bother testing specific errno values.  Just test ferror.
89753         New module: xprintf
89754         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
89756 2007-10-19  Bruno Haible  <bruno@clisp.org>
89758         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
89759         syntax.
89760         * modules/javaexec (Makefile.am): Likewise.
89761         * modules/relocatable-prog (Makefile.am): Likewise.
89762         Suggested by Jim Meyering.
89764 2007-10-18  Bruno Haible  <bruno@clisp.org>
89766         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
89767         Reported by Jim Meyering.
89769 2007-10-18  Eric Blake  <ebb9@byu.net>
89771         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
89773 2007-10-18  Bruno Haible  <bruno@clisp.org>
89775         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
89776         the format string into writable memory. Needed in Fortify conditions.
89778 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
89779             Bruno Haible  <bruno@clisp.org>
89781         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
89782         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
89783         * modules/trim (Depends-on): Add mbchar.
89784         (configure.ac): Add gl_FUNC_MBRTOWC.
89785         (Makefile.am): Augment lib_SOURCES.
89787 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89789         Modify glob.c to use fstatat and dirfd, to simplify it.
89790         Suggested by Eric Blake.
89791         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
89792         Don't include <stdbool.h>; not used.
89793         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
89794         (link_exists_p): Simplify implementation, since we can now assume
89795         dirfd and fstatat.
89796         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
89798 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89800         * gnulib-tool (func_get_dependencies): Fix sed script to
89801         match only tests.
89803 2007-10-17  Bruno Haible  <bruno@clisp.org>
89805         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
89806         allow locale names without encoding suffix.
89807         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
89808         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
89810 2007-10-16  Bruno Haible  <bruno@clisp.org>
89812         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
89813         * lib/getgroups.c (getgroups): Likewise.
89814         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
89816 2007-10-16  Bruno Haible  <bruno@clisp.org>
89818         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
89819         * modules/malloc-posix (License): Likewise.
89820         * modules/realloc-posix (License): Likewise.
89821         * modules/calloc-posix (License): Likewise.
89822         * modules/intprops (License): Change from GPL to LGPL, with
89823         Paul Eggert's approval.
89825 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89827         Merge glibc changes into lib/glob.c.
89829         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
89830         2007-10-15 04:59:03 UTC.  Here are the changes:
89832         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
89834         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
89836         * lib/glob.c: Add some branch prediction throughout.
89838         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
89840         [BZ #5103]
89841         * lib/glob.c (glob): Recognize patterns starting \/.
89843         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
89845         [BZ #3996]
89846         * lib/glob.c (attribute_hidden): Define if not defined.
89847         (glob): Unescape dirname, filename or username when needed and not
89848         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
89849         is NULL.  Handle unescaped [ in pattern without closing ].
89850         Don't pass GLOB_CHECK down to recursive glob for directories.
89851         (__glob_pattern_type): New function.
89852         (__glob_pattern_p): Implement using __glob_pattern_type.
89853         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
89854         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
89855         Remove unreachable code.
89857         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
89859         * lib/glob.c (glob_in_dir): Add some comments and asserts to
89860         explain why there are no leaks.
89862         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
89864         [BZ #3253]
89865         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
89866         time, rather allocate increasingly bigger arrays of pointers, if
89867         possible with alloca, if too large with malloc.
89869 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89871         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
89872         Problem reported by H.Merijn Brand in
89873         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
89874         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
89875         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
89877 2007-10-15  Bruno Haible  <bruno@clisp.org>
89879         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
89880         with explicit rpl_ prefix.
89881         * lib/fopen.c (fopen): Likewise.
89882         * lib/freopen.c (freopen): Likewise.
89883         * lib/iconv.c (iconv): Likewise.
89884         * lib/iconv_close.c (iconv_close): Likewise.
89886 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89888         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
89890 2007-10-15  Bruno Haible  <bruno@clisp.org>
89892         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
89893         <stddef.h> instead of <stdlib.h> since we only need NULL.
89894         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89896 2007-10-15  Bruno Haible  <bruno@clisp.org>
89898         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
89899         Replace paragraph talking about LIBOBJS.
89900         Reported by Colin Watson <cjwatson@debian.org>.
89902 2007-10-15  Bruno Haible  <bruno@clisp.org>
89904         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
89905         <stdlib.h> before using NULL.
89907 2007-10-15  Simon Josefsson  <simon@josefsson.org>
89909         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
89910         Reported by Albert Chin <china@thewrittenword.com>.
89912 2007-10-14  Bruno Haible  <bruno@clisp.org>
89914         * modules/iconv_open-utf-tests: New file.
89915         * tests/test-iconv-utf.c: New file.
89917         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
89918         * modules/iconv_open-utf: New file.
89919         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
89920         (iconv, iconv_close): New declarations.
89921         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
89922         be defined.
89923         (iconv_open): Add special handling of conversion between UTF-8 and
89924         UTF-{16,32}{BE,LE}.
89925         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
89926         * lib/iconv_close.c: New file.
89927         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
89928         gl_FUNC_ICONV_OPEN.
89929         (gl_FUNC_ICONV_OPEN): Use it.
89930         (gl_FUNC_ICONV_OPEN_UTF): New macro.
89931         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
89932         and REPLACE_ICONV_UTF.
89933         * modules/iconv_open (Depends-on): Add c-strcase.
89934         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
89935         ICONV_CONST.
89936         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
89938 2007-10-13  Albert Chin  <china@thewrittenword.com>
89939             Bruno Haible  <bruno@clisp.org>
89941         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
89942         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
89944 2007-10-13  Bruno Haible  <bruno@clisp.org>
89946         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
89947         defined, use the ISO C99 inline semantics.
89948         * lib/argp.h (ARGP_EI): Likewise.
89950 2007-10-13  Bruno Haible  <bruno@clisp.org>
89952         Handle 'inline' change in gcc 4.3.0.
89953         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
89954         argp_fmtstream_write, argp_fmtstream_set_lmargin,
89955         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
89956         argp_fmtstream_point): Disable 'extern' declaration if the function
89957         definition is going to be provided inline.
89958         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
89959         semantics, not the ISO C99 inline semantics.
89960         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
89961         'extern' declaration if the function definition is going to be provided
89962         inline.
89963         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
89964         the GNU C inline semantics, not the ISO C99 inline semantics. With
89965         GCC 4.2, avoid a warning.
89967 2007-10-13  Bruno Haible  <bruno@clisp.org>
89969         * lib/freading.h (freading): Enable the use of __freading for
89970         glibc >= 2.7.
89971         * lib/freading.c (freading): Likewise.
89973 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
89975         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
89976         "warning: C99 inline functions are not supported; using GNU89".
89978 2007-10-12  Bruno Haible  <bruno@clisp.org>
89980         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
89981         of 2.
89982         * tests/test-ceilf2.c: New file.
89983         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
89985         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
89986         * modules/ceilf-tests: Update.
89988 2007-10-12  Bruno Haible  <bruno@clisp.org>
89990         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
89991         of 2.
89992         * tests/test-floorf2.c: New file.
89993         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
89995         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
89996         * modules/floorf-tests: Update.
89998 2007-10-12  Bruno Haible  <bruno@clisp.org>
90000         * tests/test-trunc2.c: New file.
90001         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
90003         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
90004         * modules/trunc-tests: Update.
90006 2007-10-12  Bruno Haible  <bruno@clisp.org>
90008         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
90009         of 2.
90010         * tests/test-truncf2.c: New file.
90011         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
90013         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
90014         * modules/truncf-tests: Update.
90016 2007-10-11  Eric Blake  <ebb9@byu.net>
90018         Don't claim strerror is broken on Interix.
90019         * doc/functions/strerror.texi (strerror): Known broken systems are
90020         now Solaris 8, and not Interix.
90021         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
90022         Interix on cross-compile.
90023         Reported by Martin Koeppe in
90024         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
90026 2007-10-11  Bruno Haible  <bruno@clisp.org>
90028         * modules/i-ring-tests: New file.
90029         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
90030         instead of assert.
90032 2007-10-11  Bruno Haible  <bruno@clisp.org>
90034         * modules/filenamecat-tests: New file.
90035         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
90036         * lib/filenamecat.c: Remove test code.
90038 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
90040         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
90042         * lib/strerror.c: Include <string.h> always, to test interface,
90043         and to remove the need for the dummy.
90044         Include intprops.h to compute width instead of doing it ourselves
90045         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
90046         (strerror): Define it to return NULL if there's no system strerror.
90047         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
90048         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
90049         ancient pre-strerror Unix systems well any more.  Saying "unknown
90050         system error" is enough.
90051         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
90052         simpler strerror.c implementation.
90053         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
90054         Simplify the tests to reflect the simpler strerror implementation.
90055         * modules/strerror (Depends-on): Add intprops.
90057 2007-10-09  Eric Blake  <ebb9@byu.net>
90059         Silence test-fpending.
90060         * modules/fpending-tests (Files): Add wrapper script.
90061         * tests/test-fpending.sh: New file.
90063 2007-10-09  Bruno Haible  <bruno@clisp.org>
90065         * MODULES.html.sh (func_module): Don't create a hyperlink for
90066         function names like 'printf_frexp'.
90067         (Misc): Add crc, memxor.
90068         (Characteristics of floating types): New section.
90069         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
90070         isnanf-nolibm, signbit, trunc, truncf, truncl.
90071         (Enhancements for ISO C 99 functions): New subsection Input/output.
90072         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
90073         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
90074         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
90075         (Compatibility checks for POSIX:2001 functions): Add clock-time.
90076         (Enhancements for POSIX:2001 functions): Add chdir-long.
90077         (File system functions): Add areadlink, chdir-safer, read-file.
90078         Remove cycle-check.
90079         (File system as inode set): New section.
90080         (Date and time): Add gethrxtime.
90081         (Multithreading): Add openmp.
90082         (Internationalization functions): Add localename.
90083         (Unicode string functions): Add unistr/u*-mbsnlen.
90084         (Support for maintaining and releasing projects): Add git-version-gen.
90085         (Lone files): Remove directories.
90087 2007-10-08  Ben Pfaff  <blp@gnu.org>
90089         * lib/xmalloca.h: Fix typo in comment.
90091 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
90093         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
90094         when avoiding problems with integer overflow.  Use a portable test
90095         instead.
90097 2007-10-08  Simon Josefsson  <simon@josefsson.org>
90099         * modules/dummy (License): Change to LGPLv2+.
90100         * modules/float (License): Likewise
90101         * modules/realloc (License): Likewise
90102         * modules/stdlib (License): Likewise
90104 2007-10-07  Bruno Haible  <bruno@clisp.org>
90106         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
90107         * floor.c (TWO_MANT_DIG): Likewise.
90108         * ceil.c (TWO_MANT_DIG): Likewise.
90109         Reported by Ben Pfaff.
90111 2007-10-07  Bruno Haible  <bruno@clisp.org>
90113         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
90114         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
90115         * lib/frexp.c (FUNC): Likewise.
90116         * lib/printf-frexp.h (printf_frexp): Likewise.
90117         * lib/printf-frexpl.h (printf_frexpl): Likewise.
90118         * lib/printf-frexp.c (FUNC): Likewise.
90119         Suggested by Jim Meyering.
90121 2007-10-07  Jim Meyering  <meyering@redhat.com>
90123         Make xnanosleep's integer overflow test more robust.
90124         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
90125         so that gcc-4.3.0 doesn't optimize away this test for overflow.
90127 2007-10-07  Bruno Haible  <bruno@clisp.org>
90129         * NEWS: Mention the license change.
90131         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
90132         abbreviations in the modules files.
90134         Change copyright notice from GPLv2+ to GPLv3+.
90135         * README: Change copyright notice.
90136         * MODULES.html.sh: Likewise.
90137         * build-aux/bootstrap.conf: Likewise.
90138         * build-aux/config.libpath: Likewise.
90139         * build-aux/csharpcomp.sh.in: Likewise.
90140         * build-aux/csharpexec.sh.in: Likewise.
90141         * build-aux/install-reloc: Likewise.
90142         * build-aux/javacomp.sh.in: Likewise.
90143         * build-aux/javaexec.sh.in: Likewise.
90144         * build-aux/ldd.sh.in: Likewise.
90145         * build-aux/reloc-ldflags: Likewise.
90146         * build-aux/relocatable.sh.in: Likewise.
90147         * build-aux/x-to-1.in: Likewise.
90148         * check-module: Likewise.
90149         * config/srclistvars.sh: Likewise.
90150         * gnulib-tool: Likewise.
90151         * lib/acl-internal.h: Likewise.
90152         * lib/acl.c: Likewise.
90153         * lib/acl.h: Likewise.
90154         * lib/acl_entries.c: Likewise.
90155         * lib/areadlink-with-size.c: Likewise.
90156         * lib/areadlink.c: Likewise.
90157         * lib/areadlink.h: Likewise.
90158         * lib/argmatch.c: Likewise.
90159         * lib/argmatch.h: Likewise.
90160         * lib/argp-ba.c: Likewise.
90161         * lib/argp-eexst.c: Likewise.
90162         * lib/argp-fmtstream.c: Likewise.
90163         * lib/argp-fmtstream.h: Likewise.
90164         * lib/argp-fs-xinl.c: Likewise.
90165         * lib/argp-help.c: Likewise.
90166         * lib/argp-namefrob.h: Likewise.
90167         * lib/argp-parse.c: Likewise.
90168         * lib/argp-pin.c: Likewise.
90169         * lib/argp-pv.c: Likewise.
90170         * lib/argp-pvh.c: Likewise.
90171         * lib/argp-xinl.c: Likewise.
90172         * lib/argp.h: Likewise.
90173         * lib/at-func.c: Likewise.
90174         * lib/atanl.c: Likewise.
90175         * lib/backupfile.c: Likewise.
90176         * lib/backupfile.h: Likewise.
90177         * lib/basename.c: Likewise.
90178         * lib/binary-io.h: Likewise.
90179         * lib/byteswap.in.h: Likewise.
90180         * lib/c-stack.c: Likewise.
90181         * lib/c-stack.h: Likewise.
90182         * lib/c-strcasestr.c: Likewise.
90183         * lib/c-strcasestr.h: Likewise.
90184         * lib/c-strstr.c: Likewise.
90185         * lib/c-strstr.h: Likewise.
90186         * lib/c-strtod.c: Likewise.
90187         * lib/calloc.c: Likewise.
90188         * lib/canon-host.c: Likewise.
90189         * lib/canon-host.h: Likewise.
90190         * lib/canonicalize-lgpl.c: Likewise.
90191         * lib/canonicalize.c: Likewise.
90192         * lib/canonicalize.h: Likewise.
90193         * lib/ceil.c: Likewise.
90194         * lib/ceilf.c: Likewise.
90195         * lib/ceill.c: Likewise.
90196         * lib/chdir-long.c: Likewise.
90197         * lib/chdir-long.h: Likewise.
90198         * lib/chdir-safer.c: Likewise.
90199         * lib/chdir-safer.h: Likewise.
90200         * lib/chown.c: Likewise.
90201         * lib/classpath.c: Likewise.
90202         * lib/classpath.h: Likewise.
90203         * lib/clean-temp.c: Likewise.
90204         * lib/clean-temp.h: Likewise.
90205         * lib/cloexec.c: Likewise.
90206         * lib/close-stream.c: Likewise.
90207         * lib/closein.c: Likewise.
90208         * lib/closein.h: Likewise.
90209         * lib/closeout.c: Likewise.
90210         * lib/closeout.h: Likewise.
90211         * lib/concat-filename.c: Likewise.
90212         * lib/copy-file.c: Likewise.
90213         * lib/copy-file.h: Likewise.
90214         * lib/count-one-bits.h: Likewise.
90215         * lib/crc.c: Likewise.
90216         * lib/crc.h: Likewise.
90217         * lib/creat-safer.c: Likewise.
90218         * lib/csharpcomp.c: Likewise.
90219         * lib/csharpcomp.h: Likewise.
90220         * lib/csharpexec.c: Likewise.
90221         * lib/csharpexec.h: Likewise.
90222         * lib/cycle-check.c: Likewise.
90223         * lib/cycle-check.h: Likewise.
90224         * lib/diacrit.c: Likewise.
90225         * lib/diacrit.h: Likewise.
90226         * lib/diffseq.h: Likewise.
90227         * lib/dirchownmod.c: Likewise.
90228         * lib/dirent.in.h: Likewise.
90229         * lib/dirfd.c: Likewise.
90230         * lib/dirfd.h: Likewise.
90231         * lib/dirname.c: Likewise.
90232         * lib/dirname.h: Likewise.
90233         * lib/dummy.c: Likewise.
90234         * lib/dup-safer.c: Likewise.
90235         * lib/dup2.c: Likewise.
90236         * lib/eealloc.h: Likewise.
90237         * lib/error.c: Likewise.
90238         * lib/error.h: Likewise.
90239         * lib/euidaccess.c: Likewise.
90240         * lib/exclude.c: Likewise.
90241         * lib/exclude.h: Likewise.
90242         * lib/execute.c: Likewise.
90243         * lib/execute.h: Likewise.
90244         * lib/exitfail.c: Likewise.
90245         * lib/exitfail.h: Likewise.
90246         * lib/expl.c: Likewise.
90247         * lib/fatal-signal.c: Likewise.
90248         * lib/fatal-signal.h: Likewise.
90249         * lib/fbufmode.c: Likewise.
90250         * lib/fbufmode.h: Likewise.
90251         * lib/fchdir.c: Likewise.
90252         * lib/fchmodat.c: Likewise.
90253         * lib/fchownat.c: Likewise.
90254         * lib/fcntl--.h: Likewise.
90255         * lib/fcntl-safer.h: Likewise.
90256         * lib/fcntl.in.h: Likewise.
90257         * lib/fd-safer.c: Likewise.
90258         * lib/fflush.c: Likewise.
90259         * lib/file-has-acl.c: Likewise.
90260         * lib/file-set.c: Likewise.
90261         * lib/file-type.c: Likewise.
90262         * lib/file-type.h: Likewise.
90263         * lib/fileblocks.c: Likewise.
90264         * lib/filemode.c: Likewise.
90265         * lib/filemode.h: Likewise.
90266         * lib/filename.h: Likewise.
90267         * lib/filenamecat.c: Likewise.
90268         * lib/filenamecat.h: Likewise.
90269         * lib/findprog.c: Likewise.
90270         * lib/findprog.h: Likewise.
90271         * lib/float.in.h: Likewise.
90272         * lib/floor.c: Likewise.
90273         * lib/floorf.c: Likewise.
90274         * lib/floorl.c: Likewise.
90275         * lib/fopen-safer.c: Likewise.
90276         * lib/fopen.c: Likewise.
90277         * lib/fpending.c: Likewise.
90278         * lib/fpending.h: Likewise.
90279         * lib/fprintf.c: Likewise.
90280         * lib/fprintftime.h: Likewise.
90281         * lib/fpucw.h: Likewise.
90282         * lib/fpurge.c: Likewise.
90283         * lib/fpurge.h: Likewise.
90284         * lib/freadable.c: Likewise.
90285         * lib/freadable.h: Likewise.
90286         * lib/freadahead.c: Likewise.
90287         * lib/freadahead.h: Likewise.
90288         * lib/freading.c: Likewise.
90289         * lib/freading.h: Likewise.
90290         * lib/free.c: Likewise.
90291         * lib/freopen.c: Likewise.
90292         * lib/frexp.c: Likewise.
90293         * lib/frexpl.c: Likewise.
90294         * lib/fseek.c: Likewise.
90295         * lib/fseterr.c: Likewise.
90296         * lib/fseterr.h: Likewise.
90297         * lib/fstatat.c: Likewise.
90298         * lib/fstrcmp.c: Likewise.
90299         * lib/fstrcmp.h: Likewise.
90300         * lib/fsusage.c: Likewise.
90301         * lib/fsusage.h: Likewise.
90302         * lib/ftell.c: Likewise.
90303         * lib/ftello.c: Likewise.
90304         * lib/fts-cycle.c: Likewise.
90305         * lib/fts.c: Likewise.
90306         * lib/fts_.h: Likewise.
90307         * lib/full-read.c: Likewise.
90308         * lib/full-read.h: Likewise.
90309         * lib/full-write.c: Likewise.
90310         * lib/full-write.h: Likewise.
90311         * lib/fwritable.c: Likewise.
90312         * lib/fwritable.h: Likewise.
90313         * lib/fwriteerror.c: Likewise.
90314         * lib/fwriteerror.h: Likewise.
90315         * lib/fwriting.c: Likewise.
90316         * lib/fwriting.h: Likewise.
90317         * lib/gcd.c: Likewise.
90318         * lib/gcd.h: Likewise.
90319         * lib/getcwd.c: Likewise.
90320         * lib/getdate.h: Likewise.
90321         * lib/getdate.y: Likewise.
90322         * lib/getdomainname.c: Likewise.
90323         * lib/getdomainname.h: Likewise.
90324         * lib/getgroups.c: Likewise.
90325         * lib/gethostname.c: Likewise.
90326         * lib/gethrxtime.c: Likewise.
90327         * lib/gethrxtime.h: Likewise.
90328         * lib/getloadavg.c: Likewise.
90329         * lib/getndelim2.c: Likewise.
90330         * lib/getndelim2.h: Likewise.
90331         * lib/getnline.c: Likewise.
90332         * lib/getnline.h: Likewise.
90333         * lib/getopt.c: Likewise.
90334         * lib/getopt.in.h: Likewise.
90335         * lib/getopt1.c: Likewise.
90336         * lib/getopt_int.h: Likewise.
90337         * lib/getpagesize.h: Likewise.
90338         * lib/getsubopt.c: Likewise.
90339         * lib/gettime.c: Likewise.
90340         * lib/getugroups.c: Likewise.
90341         * lib/getugroups.h: Likewise.
90342         * lib/getusershell.c: Likewise.
90343         * lib/gl_anyavltree_list1.h: Likewise.
90344         * lib/gl_anyavltree_list2.h: Likewise.
90345         * lib/gl_anyhash_list1.h: Likewise.
90346         * lib/gl_anyhash_list2.h: Likewise.
90347         * lib/gl_anylinked_list1.h: Likewise.
90348         * lib/gl_anylinked_list2.h: Likewise.
90349         * lib/gl_anyrbtree_list1.h: Likewise.
90350         * lib/gl_anyrbtree_list2.h: Likewise.
90351         * lib/gl_anytree_list1.h: Likewise.
90352         * lib/gl_anytree_list2.h: Likewise.
90353         * lib/gl_anytree_oset.h: Likewise.
90354         * lib/gl_anytreehash_list1.h: Likewise.
90355         * lib/gl_anytreehash_list2.h: Likewise.
90356         * lib/gl_array_list.c: Likewise.
90357         * lib/gl_array_list.h: Likewise.
90358         * lib/gl_array_oset.c: Likewise.
90359         * lib/gl_array_oset.h: Likewise.
90360         * lib/gl_avltree_list.c: Likewise.
90361         * lib/gl_avltree_list.h: Likewise.
90362         * lib/gl_avltree_oset.c: Likewise.
90363         * lib/gl_avltree_oset.h: Likewise.
90364         * lib/gl_avltreehash_list.c: Likewise.
90365         * lib/gl_avltreehash_list.h: Likewise.
90366         * lib/gl_carray_list.c: Likewise.
90367         * lib/gl_carray_list.h: Likewise.
90368         * lib/gl_linked_list.c: Likewise.
90369         * lib/gl_linked_list.h: Likewise.
90370         * lib/gl_linkedhash_list.c: Likewise.
90371         * lib/gl_linkedhash_list.h: Likewise.
90372         * lib/gl_list.c: Likewise.
90373         * lib/gl_list.h: Likewise.
90374         * lib/gl_oset.c: Likewise.
90375         * lib/gl_oset.h: Likewise.
90376         * lib/gl_rbtree_list.c: Likewise.
90377         * lib/gl_rbtree_list.h: Likewise.
90378         * lib/gl_rbtree_oset.c: Likewise.
90379         * lib/gl_rbtree_oset.h: Likewise.
90380         * lib/gl_rbtreehash_list.c: Likewise.
90381         * lib/gl_rbtreehash_list.h: Likewise.
90382         * lib/gl_sublist.c: Likewise.
90383         * lib/gl_sublist.h: Likewise.
90384         * lib/group-member.c: Likewise.
90385         * lib/group-member.h: Likewise.
90386         * lib/hard-locale.c: Likewise.
90387         * lib/hard-locale.h: Likewise.
90388         * lib/hash-pjw.c: Likewise.
90389         * lib/hash-pjw.h: Likewise.
90390         * lib/hash-triple.c: Likewise.
90391         * lib/hash.c: Likewise.
90392         * lib/hash.h: Likewise.
90393         * lib/human.c: Likewise.
90394         * lib/human.h: Likewise.
90395         * lib/i-ring.c: Likewise.
90396         * lib/i-ring.h: Likewise.
90397         * lib/idcache.c: Likewise.
90398         * lib/imaxabs.c: Likewise.
90399         * lib/imaxdiv.c: Likewise.
90400         * lib/inet_pton.c: Likewise.
90401         * lib/inet_pton.h: Likewise.
90402         * lib/intprops.h: Likewise.
90403         * lib/inttostr.c: Likewise.
90404         * lib/inttostr.h: Likewise.
90405         * lib/inttypes.in.h: Likewise.
90406         * lib/isapipe.c: Likewise.
90407         * lib/isdir.c: Likewise.
90408         * lib/isnan.c: Likewise.
90409         * lib/isnan.h: Likewise.
90410         * lib/isnanf.c: Likewise.
90411         * lib/isnanf.h: Likewise.
90412         * lib/isnanl-nolibm.h: Likewise.
90413         * lib/isnanl.c: Likewise.
90414         * lib/isnanl.h: Likewise.
90415         * lib/javacomp.c: Likewise.
90416         * lib/javacomp.h: Likewise.
90417         * lib/javaexec.c: Likewise.
90418         * lib/javaexec.h: Likewise.
90419         * lib/javaversion.c: Likewise.
90420         * lib/javaversion.h: Likewise.
90421         * lib/javaversion.java: Likewise.
90422         * lib/lbrkprop.h: Likewise.
90423         * lib/lchmod.h: Likewise.
90424         * lib/lchown.c: Likewise.
90425         * lib/ldexpl.c: Likewise.
90426         * lib/linebreak.c: Likewise.
90427         * lib/linebreak.h: Likewise.
90428         * lib/linebuffer.c: Likewise.
90429         * lib/linebuffer.h: Likewise.
90430         * lib/locale.in.h: Likewise.
90431         * lib/logl.c: Likewise.
90432         * lib/long-options.c: Likewise.
90433         * lib/long-options.h: Likewise.
90434         * lib/lstat.c: Likewise.
90435         * lib/lstat.h: Likewise.
90436         * lib/math.in.h: Likewise.
90437         * lib/mbchar.c: Likewise.
90438         * lib/mbchar.h: Likewise.
90439         * lib/mbfile.h: Likewise.
90440         * lib/mbiter.h: Likewise.
90441         * lib/mbscasecmp.c: Likewise.
90442         * lib/mbscasestr.c: Likewise.
90443         * lib/mbschr.c: Likewise.
90444         * lib/mbscspn.c: Likewise.
90445         * lib/mbslen.c: Likewise.
90446         * lib/mbsncasecmp.c: Likewise.
90447         * lib/mbsnlen.c: Likewise.
90448         * lib/mbspbrk.c: Likewise.
90449         * lib/mbspcasecmp.c: Likewise.
90450         * lib/mbsrchr.c: Likewise.
90451         * lib/mbssep.c: Likewise.
90452         * lib/mbsspn.c: Likewise.
90453         * lib/mbsstr.c: Likewise.
90454         * lib/mbstok_r.c: Likewise.
90455         * lib/mbswidth.c: Likewise.
90456         * lib/mbswidth.h: Likewise.
90457         * lib/mbuiter.h: Likewise.
90458         * lib/memcasecmp.c: Likewise.
90459         * lib/memcasecmp.h: Likewise.
90460         * lib/memchr.c: Likewise.
90461         * lib/memcmp.c: Likewise.
90462         * lib/memcoll.c: Likewise.
90463         * lib/memcoll.h: Likewise.
90464         * lib/memcpy.c: Likewise.
90465         * lib/memrchr.c: Likewise.
90466         * lib/mkancesdirs.c: Likewise.
90467         * lib/mkdir-p.c: Likewise.
90468         * lib/mkdir-p.h: Likewise.
90469         * lib/mkdir.c: Likewise.
90470         * lib/mkdirat.c: Likewise.
90471         * lib/mkdtemp.c: Likewise.
90472         * lib/mkstemp-safer.c: Likewise.
90473         * lib/mkstemp.c: Likewise.
90474         * lib/modechange.c: Likewise.
90475         * lib/modechange.h: Likewise.
90476         * lib/mountlist.c: Likewise.
90477         * lib/mountlist.h: Likewise.
90478         * lib/mpsort.c: Likewise.
90479         * lib/nanosleep.c: Likewise.
90480         * lib/obstack.c: Likewise.
90481         * lib/obstack.h: Likewise.
90482         * lib/open-safer.c: Likewise.
90483         * lib/open.c: Likewise.
90484         * lib/openat-die.c: Likewise.
90485         * lib/openat-priv.h: Likewise.
90486         * lib/openat-proc.c: Likewise.
90487         * lib/openat.c: Likewise.
90488         * lib/openat.h: Likewise.
90489         * lib/pagealign_alloc.c: Likewise.
90490         * lib/pagealign_alloc.h: Likewise.
90491         * lib/physmem.c: Likewise.
90492         * lib/physmem.h: Likewise.
90493         * lib/pipe-safer.c: Likewise.
90494         * lib/pipe.c: Likewise.
90495         * lib/pipe.h: Likewise.
90496         * lib/posixtm.c: Likewise.
90497         * lib/posixtm.h: Likewise.
90498         * lib/posixver.c: Likewise.
90499         * lib/printf-frexp.c: Likewise.
90500         * lib/printf-frexp.h: Likewise.
90501         * lib/printf-frexpl.c: Likewise.
90502         * lib/printf-frexpl.h: Likewise.
90503         * lib/printf.c: Likewise.
90504         * lib/progname.c: Likewise.
90505         * lib/progname.h: Likewise.
90506         * lib/progreloc.c: Likewise.
90507         * lib/putenv.c: Likewise.
90508         * lib/quote.c: Likewise.
90509         * lib/quote.h: Likewise.
90510         * lib/quotearg.c: Likewise.
90511         * lib/quotearg.h: Likewise.
90512         * lib/raise.c: Likewise.
90513         * lib/readline.c: Likewise.
90514         * lib/readline.h: Likewise.
90515         * lib/readlink.c: Likewise.
90516         * lib/readtokens.c: Likewise.
90517         * lib/readtokens.h: Likewise.
90518         * lib/readtokens0.c: Likewise.
90519         * lib/readtokens0.h: Likewise.
90520         * lib/readutmp.c: Likewise.
90521         * lib/readutmp.h: Likewise.
90522         * lib/realloc.c: Likewise.
90523         * lib/relocwrapper.c: Likewise.
90524         * lib/rename-dest-slash.c: Likewise.
90525         * lib/rename.c: Likewise.
90526         * lib/rmdir.c: Likewise.
90527         * lib/rpmatch.c: Likewise.
90528         * lib/safe-read.c: Likewise.
90529         * lib/safe-read.h: Likewise.
90530         * lib/safe-write.c: Likewise.
90531         * lib/safe-write.h: Likewise.
90532         * lib/same-inode.h: Likewise.
90533         * lib/same.c: Likewise.
90534         * lib/same.h: Likewise.
90535         * lib/save-cwd.c: Likewise.
90536         * lib/save-cwd.h: Likewise.
90537         * lib/savedir.c: Likewise.
90538         * lib/savedir.h: Likewise.
90539         * lib/savewd.c: Likewise.
90540         * lib/savewd.h: Likewise.
90541         * lib/search.in.h: Likewise.
90542         * lib/setenv.c: Likewise.
90543         * lib/setenv.h: Likewise.
90544         * lib/settime.c: Likewise.
90545         * lib/sh-quote.c: Likewise.
90546         * lib/sh-quote.h: Likewise.
90547         * lib/sig2str.c: Likewise.
90548         * lib/sig2str.h: Likewise.
90549         * lib/signal.in.h: Likewise.
90550         * lib/signbitd.c: Likewise.
90551         * lib/signbitf.c: Likewise.
90552         * lib/signbitl.c: Likewise.
90553         * lib/sigprocmask.c: Likewise.
90554         * lib/sincosl.c: Likewise.
90555         * lib/sleep.c: Likewise.
90556         * lib/sprintf.c: Likewise.
90557         * lib/sqrtl.c: Likewise.
90558         * lib/stat-time.h: Likewise.
90559         * lib/stdio--.h: Likewise.
90560         * lib/stdio-safer.h: Likewise.
90561         * lib/stdlib--.h: Likewise.
90562         * lib/stdlib-safer.h: Likewise.
90563         * lib/stdlib.in.h: Likewise.
90564         * lib/stpcpy.c: Likewise.
90565         * lib/stpncpy.c: Likewise.
90566         * lib/strchrnul.c: Likewise.
90567         * lib/strcspn.c: Likewise.
90568         * lib/strerror.c: Likewise.
90569         * lib/strftime.c: Likewise.
90570         * lib/strftime.h: Likewise.
90571         * lib/striconveh.c: Likewise.
90572         * lib/striconveh.h: Likewise.
90573         * lib/striconveha.c: Likewise.
90574         * lib/striconveha.h: Likewise.
90575         * lib/stripslash.c: Likewise.
90576         * lib/strnlen1.c: Likewise.
90577         * lib/strnlen1.h: Likewise.
90578         * lib/strtod.c: Likewise.
90579         * lib/strtoimax.c: Likewise.
90580         * lib/strtok_r.c: Likewise.
90581         * lib/strtol.c: Likewise.
90582         * lib/strtoll.c: Likewise.
90583         * lib/strtoul.c: Likewise.
90584         * lib/strtoull.c: Likewise.
90585         * lib/sysexits.in.h: Likewise.
90586         * lib/tempname.c: Likewise.
90587         * lib/tempname.h: Likewise.
90588         * lib/timespec.h: Likewise.
90589         * lib/tls.c: Likewise.
90590         * lib/tls.h: Likewise.
90591         * lib/tmpdir.c: Likewise.
90592         * lib/tmpdir.h: Likewise.
90593         * lib/tmpfile-safer.c: Likewise.
90594         * lib/tmpfile.c: Likewise.
90595         * lib/trigl.c: Likewise.
90596         * lib/trigl.h: Likewise.
90597         * lib/trim.c: Likewise.
90598         * lib/trim.h: Likewise.
90599         * lib/trunc.c: Likewise.
90600         * lib/truncf.c: Likewise.
90601         * lib/truncl.c: Likewise.
90602         * lib/tsearch.c: Likewise.
90603         * lib/unicodeio.c: Likewise.
90604         * lib/unicodeio.h: Likewise.
90605         * lib/unistd--.h: Likewise.
90606         * lib/unistd-safer.h: Likewise.
90607         * lib/unistdio/ulc-fprintf.c: Likewise.
90608         * lib/unistdio/ulc-vfprintf.c: Likewise.
90609         * lib/unlinkdir.c: Likewise.
90610         * lib/unlinkdir.h: Likewise.
90611         * lib/unlocked-io.h: Likewise.
90612         * lib/unsetenv.c: Likewise.
90613         * lib/userspec.c: Likewise.
90614         * lib/utime.c: Likewise.
90615         * lib/utimecmp.c: Likewise.
90616         * lib/utimecmp.h: Likewise.
90617         * lib/utimens.c: Likewise.
90618         * lib/verify.h: Likewise.
90619         * lib/verror.c: Likewise.
90620         * lib/verror.h: Likewise.
90621         * lib/version-etc-fsf.c: Likewise.
90622         * lib/version-etc.c: Likewise.
90623         * lib/version-etc.h: Likewise.
90624         * lib/vfprintf.c: Likewise.
90625         * lib/vprintf.c: Likewise.
90626         * lib/vsprintf.c: Likewise.
90627         * lib/w32spawn.h: Likewise.
90628         * lib/wait-process.c: Likewise.
90629         * lib/wait-process.h: Likewise.
90630         * lib/wcwidth.c: Likewise.
90631         * lib/write-any-file.c: Likewise.
90632         * lib/xalloc-die.c: Likewise.
90633         * lib/xalloc.h: Likewise.
90634         * lib/xasprintf.c: Likewise.
90635         * lib/xgetcwd.c: Likewise.
90636         * lib/xgetcwd.h: Likewise.
90637         * lib/xgetdomainname.c: Likewise.
90638         * lib/xgetdomainname.h: Likewise.
90639         * lib/xgethostname.c: Likewise.
90640         * lib/xmalloc.c: Likewise.
90641         * lib/xmalloca.c: Likewise.
90642         * lib/xmalloca.h: Likewise.
90643         * lib/xmemcoll.c: Likewise.
90644         * lib/xnanosleep.c: Likewise.
90645         * lib/xreadlink.c: Likewise.
90646         * lib/xreadlink.h: Likewise.
90647         * lib/xsetenv.c: Likewise.
90648         * lib/xsetenv.h: Likewise.
90649         * lib/xstriconv.c: Likewise.
90650         * lib/xstriconv.h: Likewise.
90651         * lib/xstrndup.c: Likewise.
90652         * lib/xstrndup.h: Likewise.
90653         * lib/xstrtod.c: Likewise.
90654         * lib/xstrtod.h: Likewise.
90655         * lib/xstrtol-error.c: Likewise.
90656         * lib/xstrtol.c: Likewise.
90657         * lib/xstrtol.h: Likewise.
90658         * lib/xtime.h: Likewise.
90659         * lib/xvasprintf.c: Likewise.
90660         * lib/xvasprintf.h: Likewise.
90661         * lib/yesno.c: Likewise.
90662         * lib/yesno.h: Likewise.
90663         * posix-modules: Likewise.
90664         * tests/test-alloca-opt.c: Likewise.
90665         * tests/test-arcfour.c: Likewise.
90666         * tests/test-arctwo.c: Likewise.
90667         * tests/test-argmatch.c: Likewise.
90668         * tests/test-argp-2.sh: Likewise.
90669         * tests/test-argp.c: Likewise.
90670         * tests/test-arpa_inet.c: Likewise.
90671         * tests/test-array_list.c: Likewise.
90672         * tests/test-array_oset.c: Likewise.
90673         * tests/test-atexit.c: Likewise.
90674         * tests/test-avltree_list.c: Likewise.
90675         * tests/test-avltree_oset.c: Likewise.
90676         * tests/test-avltreehash_list.c: Likewise.
90677         * tests/test-base64.c: Likewise.
90678         * tests/test-binary-io.c: Likewise.
90679         * tests/test-byteswap.c: Likewise.
90680         * tests/test-c-ctype.c: Likewise.
90681         * tests/test-c-strcasecmp.c: Likewise.
90682         * tests/test-c-strcasestr.c: Likewise.
90683         * tests/test-c-strncasecmp.c: Likewise.
90684         * tests/test-c-strstr.c: Likewise.
90685         * tests/test-canonicalize-lgpl.c: Likewise.
90686         * tests/test-canonicalize.c: Likewise.
90687         * tests/test-carray_list.c: Likewise.
90688         * tests/test-ceilf.c: Likewise.
90689         * tests/test-ceill.c: Likewise.
90690         * tests/test-count-one-bits.c: Likewise.
90691         * tests/test-crc.c: Likewise.
90692         * tests/test-dirname.c: Likewise.
90693         * tests/test-fbufmode.c: Likewise.
90694         * tests/test-fcntl.c: Likewise.
90695         * tests/test-fflush.c: Likewise.
90696         * tests/test-floorf.c: Likewise.
90697         * tests/test-floorl.c: Likewise.
90698         * tests/test-fopen.c: Likewise.
90699         * tests/test-fprintf-posix.c: Likewise.
90700         * tests/test-fprintf-posix.h: Likewise.
90701         * tests/test-fpurge.c: Likewise.
90702         * tests/test-freadable.c: Likewise.
90703         * tests/test-freadahead.c: Likewise.
90704         * tests/test-freading.c: Likewise.
90705         * tests/test-freopen.c: Likewise.
90706         * tests/test-frexp.c: Likewise.
90707         * tests/test-frexpl.c: Likewise.
90708         * tests/test-fseek.c: Likewise.
90709         * tests/test-fseeko.c: Likewise.
90710         * tests/test-fseterr.c: Likewise.
90711         * tests/test-fstrcmp.c: Likewise.
90712         * tests/test-ftell.c: Likewise.
90713         * tests/test-ftello.c: Likewise.
90714         * tests/test-fwritable.c: Likewise.
90715         * tests/test-fwriting.c: Likewise.
90716         * tests/test-getaddrinfo.c: Likewise.
90717         * tests/test-getpass.c: Likewise.
90718         * tests/test-gettimeofday.c: Likewise.
90719         * tests/test-hmac-md5.c: Likewise.
90720         * tests/test-hmac-sha1.c: Likewise.
90721         * tests/test-iconv.c: Likewise.
90722         * tests/test-iconvme.c: Likewise.
90723         * tests/test-inttypes.c: Likewise.
90724         * tests/test-isnan.c: Likewise.
90725         * tests/test-isnanf.c: Likewise.
90726         * tests/test-isnanl-nolibm.c: Likewise.
90727         * tests/test-isnanl.c: Likewise.
90728         * tests/test-isnanl.h: Likewise.
90729         * tests/test-ldexpl.c: Likewise.
90730         * tests/test-linked_list.c: Likewise.
90731         * tests/test-linkedhash_list.c: Likewise.
90732         * tests/test-locale.c: Likewise.
90733         * tests/test-localename.c: Likewise.
90734         * tests/test-lock.c: Likewise.
90735         * tests/test-lseek.c: Likewise.
90736         * tests/test-malloca.c: Likewise.
90737         * tests/test-math.c: Likewise.
90738         * tests/test-mbscasecmp.c: Likewise.
90739         * tests/test-mbscasestr1.c: Likewise.
90740         * tests/test-mbscasestr2.c: Likewise.
90741         * tests/test-mbscasestr3.c: Likewise.
90742         * tests/test-mbscasestr4.c: Likewise.
90743         * tests/test-mbschr.c: Likewise.
90744         * tests/test-mbscspn.c: Likewise.
90745         * tests/test-mbsncasecmp.c: Likewise.
90746         * tests/test-mbspbrk.c: Likewise.
90747         * tests/test-mbspcasecmp.c: Likewise.
90748         * tests/test-mbsrchr.c: Likewise.
90749         * tests/test-mbsspn.c: Likewise.
90750         * tests/test-mbsstr1.c: Likewise.
90751         * tests/test-mbsstr2.c: Likewise.
90752         * tests/test-mbsstr3.c: Likewise.
90753         * tests/test-md5.c: Likewise.
90754         * tests/test-memmem.c: Likewise.
90755         * tests/test-netinet_in.c: Likewise.
90756         * tests/test-open.c: Likewise.
90757         * tests/test-printf-frexp.c: Likewise.
90758         * tests/test-printf-frexpl.c: Likewise.
90759         * tests/test-printf-posix.c: Likewise.
90760         * tests/test-printf-posix.h: Likewise.
90761         * tests/test-rbtree_list.c: Likewise.
90762         * tests/test-rbtree_oset.c: Likewise.
90763         * tests/test-rbtreehash_list.c: Likewise.
90764         * tests/test-read-file.c: Likewise.
90765         * tests/test-rijndael.c: Likewise.
90766         * tests/test-search.c: Likewise.
90767         * tests/test-signbit.c: Likewise.
90768         * tests/test-sleep.c: Likewise.
90769         * tests/test-snprintf-posix.c: Likewise.
90770         * tests/test-snprintf-posix.h: Likewise.
90771         * tests/test-snprintf.c: Likewise.
90772         * tests/test-sprintf-posix.c: Likewise.
90773         * tests/test-sprintf-posix.h: Likewise.
90774         * tests/test-stat-time.c: Likewise.
90775         * tests/test-stdbool.c: Likewise.
90776         * tests/test-stdint.c: Likewise.
90777         * tests/test-stdio.c: Likewise.
90778         * tests/test-stdlib.c: Likewise.
90779         * tests/test-stpncpy.c: Likewise.
90780         * tests/test-strcasestr.c: Likewise.
90781         * tests/test-striconv.c: Likewise.
90782         * tests/test-striconveh.c: Likewise.
90783         * tests/test-striconveha.c: Likewise.
90784         * tests/test-string.c: Likewise.
90785         * tests/test-sys_select.c: Likewise.
90786         * tests/test-sys_socket.c: Likewise.
90787         * tests/test-sys_stat.c: Likewise.
90788         * tests/test-sys_time.c: Likewise.
90789         * tests/test-sysexits.c: Likewise.
90790         * tests/test-time.c: Likewise.
90791         * tests/test-tls.c: Likewise.
90792         * tests/test-trunc.c: Likewise.
90793         * tests/test-truncf.c: Likewise.
90794         * tests/test-truncl.c: Likewise.
90795         * tests/test-unistd.c: Likewise.
90796         * tests/test-vasnprintf-posix.c: Likewise.
90797         * tests/test-vasnprintf-posix2.c: Likewise.
90798         * tests/test-vasnprintf.c: Likewise.
90799         * tests/test-vasprintf-posix.c: Likewise.
90800         * tests/test-vasprintf.c: Likewise.
90801         * tests/test-verify.c: Likewise.
90802         * tests/test-vfprintf-posix.c: Likewise.
90803         * tests/test-vprintf-posix.c: Likewise.
90804         * tests/test-vsnprintf-posix.c: Likewise.
90805         * tests/test-vsnprintf.c: Likewise.
90806         * tests/test-vsprintf-posix.c: Likewise.
90807         * tests/test-wchar.c: Likewise.
90808         * tests/test-wctype.c: Likewise.
90809         * tests/test-wcwidth.c: Likewise.
90810         * tests/test-xstrtol.c: Likewise.
90811         * tests/test-xvasprintf.c: Likewise.
90812         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
90813         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
90814         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
90815         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
90816         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
90817         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
90818         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
90819         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
90820         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
90821         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
90822         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
90823         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
90824         * tests/uniname/test-uninames.c: Likewise.
90825         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
90826         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
90827         * tests/unistdio/test-u16-printf1.h: Likewise.
90828         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
90829         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
90830         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
90831         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
90832         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
90833         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
90834         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
90835         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
90836         * tests/unistdio/test-u32-printf1.h: Likewise.
90837         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
90838         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
90839         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
90840         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
90841         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
90842         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
90843         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
90844         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
90845         * tests/unistdio/test-u8-printf1.h: Likewise.
90846         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
90847         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
90848         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
90849         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
90850         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
90851         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
90852         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
90853         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
90854         * tests/unistdio/test-ulc-printf1.h: Likewise.
90855         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
90856         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
90857         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
90858         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
90859         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
90860         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
90861         * tests/uniwidth/test-u16-strwidth.c: Likewise.
90862         * tests/uniwidth/test-u16-width.c: Likewise.
90863         * tests/uniwidth/test-u32-strwidth.c: Likewise.
90864         * tests/uniwidth/test-u32-width.c: Likewise.
90865         * tests/uniwidth/test-u8-strwidth.c: Likewise.
90866         * tests/uniwidth/test-u8-width.c: Likewise.
90867         * tests/uniwidth/test-uc_width.c: Likewise.
90868         * config/srclist-update: Likewise.
90869         (fixlicense): Update to GPLv3+.
90871         Change copyright notice from LGPLv2.1+ to LGPLv3+.
90872         * tests/test-tsearch.c: Change copyright notice.
90874         Change copyright notice from LGPLv2.0+ to LGPLv3+.
90875         * lib/c-strcaseeq.h: Change copyright notice.
90876         * lib/streq.h: Likewise.
90877         * lib/uniconv.h: Likewise.
90878         * lib/uniconv/u-conv-from-enc.h: Likewise.
90879         * lib/uniconv/u-conv-to-enc.h: Likewise.
90880         * lib/uniconv/u-strconv-from-enc.h: Likewise.
90881         * lib/uniconv/u-strconv-to-enc.h: Likewise.
90882         * lib/uniconv/u16-conv-from-enc.c: Likewise.
90883         * lib/uniconv/u16-conv-to-enc.c: Likewise.
90884         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
90885         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
90886         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
90887         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
90888         * lib/uniconv/u32-conv-from-enc.c: Likewise.
90889         * lib/uniconv/u32-conv-to-enc.c: Likewise.
90890         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
90891         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
90892         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
90893         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
90894         * lib/uniconv/u8-conv-from-enc.c: Likewise.
90895         * lib/uniconv/u8-conv-to-enc.c: Likewise.
90896         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
90897         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
90898         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
90899         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
90900         * lib/uniname.h: Likewise.
90901         * lib/uniname/uniname.c: Likewise.
90902         * lib/unistdio.h: Likewise.
90903         * lib/unistdio/u-asnprintf.h: Likewise.
90904         * lib/unistdio/u-asprintf.h: Likewise.
90905         * lib/unistdio/u-printf-args.c: Likewise.
90906         * lib/unistdio/u-printf-args.h: Likewise.
90907         * lib/unistdio/u-printf-parse.h: Likewise.
90908         * lib/unistdio/u-snprintf.h: Likewise.
90909         * lib/unistdio/u-sprintf.h: Likewise.
90910         * lib/unistdio/u-vasprintf.h: Likewise.
90911         * lib/unistdio/u-vsnprintf.h: Likewise.
90912         * lib/unistdio/u-vsprintf.h: Likewise.
90913         * lib/unistdio/u16-asnprintf.c: Likewise.
90914         * lib/unistdio/u16-asprintf.c: Likewise.
90915         * lib/unistdio/u16-printf-parse.c: Likewise.
90916         * lib/unistdio/u16-snprintf.c: Likewise.
90917         * lib/unistdio/u16-sprintf.c: Likewise.
90918         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
90919         * lib/unistdio/u16-u16-asprintf.c: Likewise.
90920         * lib/unistdio/u16-u16-snprintf.c: Likewise.
90921         * lib/unistdio/u16-u16-sprintf.c: Likewise.
90922         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
90923         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
90924         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
90925         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
90926         * lib/unistdio/u16-vasnprintf.c: Likewise.
90927         * lib/unistdio/u16-vasprintf.c: Likewise.
90928         * lib/unistdio/u16-vsnprintf.c: Likewise.
90929         * lib/unistdio/u16-vsprintf.c: Likewise.
90930         * lib/unistdio/u32-asnprintf.c: Likewise.
90931         * lib/unistdio/u32-asprintf.c: Likewise.
90932         * lib/unistdio/u32-printf-parse.c: Likewise.
90933         * lib/unistdio/u32-snprintf.c: Likewise.
90934         * lib/unistdio/u32-sprintf.c: Likewise.
90935         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
90936         * lib/unistdio/u32-u32-asprintf.c: Likewise.
90937         * lib/unistdio/u32-u32-snprintf.c: Likewise.
90938         * lib/unistdio/u32-u32-sprintf.c: Likewise.
90939         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
90940         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
90941         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
90942         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
90943         * lib/unistdio/u32-vasnprintf.c: Likewise.
90944         * lib/unistdio/u32-vasprintf.c: Likewise.
90945         * lib/unistdio/u32-vsnprintf.c: Likewise.
90946         * lib/unistdio/u32-vsprintf.c: Likewise.
90947         * lib/unistdio/u8-asnprintf.c: Likewise.
90948         * lib/unistdio/u8-asprintf.c: Likewise.
90949         * lib/unistdio/u8-printf-parse.c: Likewise.
90950         * lib/unistdio/u8-snprintf.c: Likewise.
90951         * lib/unistdio/u8-sprintf.c: Likewise.
90952         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
90953         * lib/unistdio/u8-u8-asprintf.c: Likewise.
90954         * lib/unistdio/u8-u8-snprintf.c: Likewise.
90955         * lib/unistdio/u8-u8-sprintf.c: Likewise.
90956         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
90957         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
90958         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
90959         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
90960         * lib/unistdio/u8-vasnprintf.c: Likewise.
90961         * lib/unistdio/u8-vasprintf.c: Likewise.
90962         * lib/unistdio/u8-vsnprintf.c: Likewise.
90963         * lib/unistdio/u8-vsprintf.c: Likewise.
90964         * lib/unistdio/ulc-asnprintf.c: Likewise.
90965         * lib/unistdio/ulc-asprintf.c: Likewise.
90966         * lib/unistdio/ulc-printf-parse.c: Likewise.
90967         * lib/unistdio/ulc-snprintf.c: Likewise.
90968         * lib/unistdio/ulc-sprintf.c: Likewise.
90969         * lib/unistdio/ulc-vasnprintf.c: Likewise.
90970         * lib/unistdio/ulc-vasprintf.c: Likewise.
90971         * lib/unistdio/ulc-vsnprintf.c: Likewise.
90972         * lib/unistdio/ulc-vsprintf.c: Likewise.
90973         * lib/unistr.h: Likewise.
90974         * lib/unistr/u-cpy-alloc.h: Likewise.
90975         * lib/unistr/u-cpy.h: Likewise.
90976         * lib/unistr/u-endswith.h: Likewise.
90977         * lib/unistr/u-move.h: Likewise.
90978         * lib/unistr/u-set.h: Likewise.
90979         * lib/unistr/u-startswith.h: Likewise.
90980         * lib/unistr/u-stpcpy.h: Likewise.
90981         * lib/unistr/u-stpncpy.h: Likewise.
90982         * lib/unistr/u-strcat.h: Likewise.
90983         * lib/unistr/u-strcpy.h: Likewise.
90984         * lib/unistr/u-strcspn.h: Likewise.
90985         * lib/unistr/u-strdup.h: Likewise.
90986         * lib/unistr/u-strlen.h: Likewise.
90987         * lib/unistr/u-strncat.h: Likewise.
90988         * lib/unistr/u-strncpy.h: Likewise.
90989         * lib/unistr/u-strnlen.h: Likewise.
90990         * lib/unistr/u-strpbrk.h: Likewise.
90991         * lib/unistr/u-strspn.h: Likewise.
90992         * lib/unistr/u-strstr.h: Likewise.
90993         * lib/unistr/u-strtok.h: Likewise.
90994         * lib/unistr/u16-check.c: Likewise.
90995         * lib/unistr/u16-chr.c: Likewise.
90996         * lib/unistr/u16-cmp.c: Likewise.
90997         * lib/unistr/u16-cpy-alloc.c: Likewise.
90998         * lib/unistr/u16-cpy.c: Likewise.
90999         * lib/unistr/u16-endswith.c: Likewise.
91000         * lib/unistr/u16-mblen.c: Likewise.
91001         * lib/unistr/u16-mbsnlen.c: Likewise.
91002         * lib/unistr/u16-mbtouc-aux.c: Likewise.
91003         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
91004         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
91005         * lib/unistr/u16-mbtouc.c: Likewise.
91006         * lib/unistr/u16-mbtoucr.c: Likewise.
91007         * lib/unistr/u16-move.c: Likewise.
91008         * lib/unistr/u16-next.c: Likewise.
91009         * lib/unistr/u16-prev.c: Likewise.
91010         * lib/unistr/u16-set.c: Likewise.
91011         * lib/unistr/u16-startswith.c: Likewise.
91012         * lib/unistr/u16-stpcpy.c: Likewise.
91013         * lib/unistr/u16-stpncpy.c: Likewise.
91014         * lib/unistr/u16-strcat.c: Likewise.
91015         * lib/unistr/u16-strchr.c: Likewise.
91016         * lib/unistr/u16-strcmp.c: Likewise.
91017         * lib/unistr/u16-strcpy.c: Likewise.
91018         * lib/unistr/u16-strcspn.c: Likewise.
91019         * lib/unistr/u16-strdup.c: Likewise.
91020         * lib/unistr/u16-strlen.c: Likewise.
91021         * lib/unistr/u16-strmblen.c: Likewise.
91022         * lib/unistr/u16-strmbtouc.c: Likewise.
91023         * lib/unistr/u16-strncat.c: Likewise.
91024         * lib/unistr/u16-strncmp.c: Likewise.
91025         * lib/unistr/u16-strncpy.c: Likewise.
91026         * lib/unistr/u16-strnlen.c: Likewise.
91027         * lib/unistr/u16-strpbrk.c: Likewise.
91028         * lib/unistr/u16-strrchr.c: Likewise.
91029         * lib/unistr/u16-strspn.c: Likewise.
91030         * lib/unistr/u16-strstr.c: Likewise.
91031         * lib/unistr/u16-strtok.c: Likewise.
91032         * lib/unistr/u16-to-u32.c: Likewise.
91033         * lib/unistr/u16-to-u8.c: Likewise.
91034         * lib/unistr/u16-uctomb-aux.c: Likewise.
91035         * lib/unistr/u16-uctomb.c: Likewise.
91036         * lib/unistr/u32-check.c: Likewise.
91037         * lib/unistr/u32-chr.c: Likewise.
91038         * lib/unistr/u32-cmp.c: Likewise.
91039         * lib/unistr/u32-cpy-alloc.c: Likewise.
91040         * lib/unistr/u32-cpy.c: Likewise.
91041         * lib/unistr/u32-endswith.c: Likewise.
91042         * lib/unistr/u32-mblen.c: Likewise.
91043         * lib/unistr/u32-mbsnlen.c: Likewise.
91044         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
91045         * lib/unistr/u32-mbtouc.c: Likewise.
91046         * lib/unistr/u32-mbtoucr.c: Likewise.
91047         * lib/unistr/u32-move.c: Likewise.
91048         * lib/unistr/u32-next.c: Likewise.
91049         * lib/unistr/u32-prev.c: Likewise.
91050         * lib/unistr/u32-set.c: Likewise.
91051         * lib/unistr/u32-startswith.c: Likewise.
91052         * lib/unistr/u32-stpcpy.c: Likewise.
91053         * lib/unistr/u32-stpncpy.c: Likewise.
91054         * lib/unistr/u32-strcat.c: Likewise.
91055         * lib/unistr/u32-strchr.c: Likewise.
91056         * lib/unistr/u32-strcmp.c: Likewise.
91057         * lib/unistr/u32-strcpy.c: Likewise.
91058         * lib/unistr/u32-strcspn.c: Likewise.
91059         * lib/unistr/u32-strdup.c: Likewise.
91060         * lib/unistr/u32-strlen.c: Likewise.
91061         * lib/unistr/u32-strmblen.c: Likewise.
91062         * lib/unistr/u32-strmbtouc.c: Likewise.
91063         * lib/unistr/u32-strncat.c: Likewise.
91064         * lib/unistr/u32-strncmp.c: Likewise.
91065         * lib/unistr/u32-strncpy.c: Likewise.
91066         * lib/unistr/u32-strnlen.c: Likewise.
91067         * lib/unistr/u32-strpbrk.c: Likewise.
91068         * lib/unistr/u32-strrchr.c: Likewise.
91069         * lib/unistr/u32-strspn.c: Likewise.
91070         * lib/unistr/u32-strstr.c: Likewise.
91071         * lib/unistr/u32-strtok.c: Likewise.
91072         * lib/unistr/u32-to-u16.c: Likewise.
91073         * lib/unistr/u32-to-u8.c: Likewise.
91074         * lib/unistr/u32-uctomb.c: Likewise.
91075         * lib/unistr/u8-check.c: Likewise.
91076         * lib/unistr/u8-chr.c: Likewise.
91077         * lib/unistr/u8-cmp.c: Likewise.
91078         * lib/unistr/u8-cpy-alloc.c: Likewise.
91079         * lib/unistr/u8-cpy.c: Likewise.
91080         * lib/unistr/u8-endswith.c: Likewise.
91081         * lib/unistr/u8-mblen.c: Likewise.
91082         * lib/unistr/u8-mbsnlen.c: Likewise.
91083         * lib/unistr/u8-mbtouc-aux.c: Likewise.
91084         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
91085         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
91086         * lib/unistr/u8-mbtouc.c: Likewise.
91087         * lib/unistr/u8-mbtoucr.c: Likewise.
91088         * lib/unistr/u8-move.c: Likewise.
91089         * lib/unistr/u8-next.c: Likewise.
91090         * lib/unistr/u8-prev.c: Likewise.
91091         * lib/unistr/u8-set.c: Likewise.
91092         * lib/unistr/u8-startswith.c: Likewise.
91093         * lib/unistr/u8-stpcpy.c: Likewise.
91094         * lib/unistr/u8-stpncpy.c: Likewise.
91095         * lib/unistr/u8-strcat.c: Likewise.
91096         * lib/unistr/u8-strchr.c: Likewise.
91097         * lib/unistr/u8-strcmp.c: Likewise.
91098         * lib/unistr/u8-strcpy.c: Likewise.
91099         * lib/unistr/u8-strcspn.c: Likewise.
91100         * lib/unistr/u8-strdup.c: Likewise.
91101         * lib/unistr/u8-strlen.c: Likewise.
91102         * lib/unistr/u8-strmblen.c: Likewise.
91103         * lib/unistr/u8-strmbtouc.c: Likewise.
91104         * lib/unistr/u8-strncat.c: Likewise.
91105         * lib/unistr/u8-strncmp.c: Likewise.
91106         * lib/unistr/u8-strncpy.c: Likewise.
91107         * lib/unistr/u8-strnlen.c: Likewise.
91108         * lib/unistr/u8-strpbrk.c: Likewise.
91109         * lib/unistr/u8-strrchr.c: Likewise.
91110         * lib/unistr/u8-strspn.c: Likewise.
91111         * lib/unistr/u8-strstr.c: Likewise.
91112         * lib/unistr/u8-strtok.c: Likewise.
91113         * lib/unistr/u8-to-u16.c: Likewise.
91114         * lib/unistr/u8-to-u32.c: Likewise.
91115         * lib/unistr/u8-uctomb-aux.c: Likewise.
91116         * lib/unistr/u8-uctomb.c: Likewise.
91117         * lib/unitypes.h: Likewise.
91118         * lib/uniwidth.h: Likewise.
91119         * lib/uniwidth/cjk.h: Likewise.
91120         * lib/uniwidth/u16-strwidth.c: Likewise.
91121         * lib/uniwidth/u16-width.c: Likewise.
91122         * lib/uniwidth/u32-strwidth.c: Likewise.
91123         * lib/uniwidth/u32-width.c: Likewise.
91124         * lib/uniwidth/u8-strwidth.c: Likewise.
91125         * lib/uniwidth/u8-width.c: Likewise.
91126         * lib/uniwidth/width.c: Likewise.
91128 2007-10-07  Bruno Haible  <bruno@clisp.org>
91130         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
91131         The file is still under LGPL (see modules/inttypes).
91133 2007-10-06  Bruno Haible  <bruno@clisp.org>
91135         * modules/trunc (Dependencies): Add 'extensions'.
91136         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
91137         Reported by Ben Pfaff <blp@gnu.org>.
91139 2007-10-06  Bruno Haible  <bruno@clisp.org>
91141         * modules/freopen-tests: New file.
91142         * tests/test-freopen.c: New file.
91144         * modules/fopen-tests: New file.
91145         * tests/test-fopen.c: New file.
91147         * modules/fopen: New file.
91148         * lib/fopen.c: New file.
91149         * m4/fopen.m4: New file.
91150         * modules/freopen: New file.
91151         * lib/freopen.c: New file.
91152         * m4/freopen.m4: New file.
91153         * lib/stdio.in.h (fopen, freopen): New declarations.
91154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
91155         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
91156         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
91157         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
91158         * doc/functions/fopen.texi: Mention the 'fopen' module.
91159         * doc/functions/freopen.texi: Mention the 'freopen' module.
91161 2007-10-06  Bruno Haible  <bruno@clisp.org>
91163         * modules/open-tests: New file.
91164         * tests/test-open.c: New file.
91166         * modules/open: New file.
91167         * lib/open.c: New file.
91168         * m4/open.m4: New file.
91169         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
91170         lib/open.c does.
91171         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
91172         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
91173         macros.
91174         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
91175         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
91176         REPLACE_OPEN.
91177         * doc/functions/open.texi: Mention the 'open' module.
91179 2007-10-04  Bruno Haible  <bruno@clisp.org>
91181         * modules/ceill-tests: New file.
91182         * tests/test-ceill.c: New file.
91184         * modules/ceill: New file.
91185         * lib/ceill.c: Replace entire file.
91186         * m4/ceill.m4: New file.
91187         * lib/math.in.h (ceill): Replace declaration.
91188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
91189         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
91190         * doc/functions/ceill.texi: Mention the 'ceill' module.
91191         * modules/mathl (Files): Remove lib/ceill.c.
91192         (Depends-on): Add ceill.
91194 2007-10-04  Bruno Haible  <bruno@clisp.org>
91196         * modules/ceilf-tests: New file.
91197         * tests/test-ceilf.c: New file.
91199         * modules/ceilf: New file.
91200         * lib/ceil.c: New file.
91201         * lib/ceilf.c: New file.
91202         * m4/ceilf.m4: New file.
91203         * lib/math.in.h (ceilf): New declaration.
91204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
91205         HAVE_DECL_CEILF.
91206         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
91207         HAVE_DECL_CEILF.
91208         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
91210 2007-10-04  Bruno Haible  <bruno@clisp.org>
91212         * modules/floorl-tests: New file.
91213         * tests/test-floorl.c: New file.
91215         * modules/floorl: New file.
91216         * lib/floorl.c: Replace entire file.
91217         * m4/floorl.m4: New file.
91218         * lib/math.in.h (floorl): Replace declaration.
91219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
91220         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
91221         * doc/functions/floorl.texi: Mention the 'floorl' module.
91222         * modules/mathl (Files): Remove lib/floorl.c.
91223         (Depends-on): Add floorl.
91225 2007-10-04  Bruno Haible  <bruno@clisp.org>
91227         * modules/floorf-tests: New file.
91228         * tests/test-floorf.c: New file.
91230         * modules/floorf: New file.
91231         * lib/floor.c: New file.
91232         * lib/floorf.c: New file.
91233         * m4/floorf.m4: New file.
91234         * lib/math.in.h (floorf): New declaration.
91235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
91236         HAVE_DECL_FLOORF.
91237         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
91238         HAVE_DECL_FLOORF.
91239         * doc/functions/floorf.texi: Mention the 'floorf' module.
91241 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
91242             Bruno Haible  <bruno@clisp.org>
91244         Advertise for the Git server instead of the CVS server.
91245         * doc/gnulib-intro.texi (Steady Development): Mention the Git
91246         repository instead of the CVS one.
91247         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
91248         about all VCS systems generically.
91249         * doc/gnulib.texi (Introduction): Capitalize `Git'.
91251 2007-10-04  Bruno Haible  <bruno@clisp.org>
91253         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
91254         means.
91255         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
91257 2007-10-04  Bruno Haible  <bruno@clisp.org>
91259         * modules/truncl-tests: New file.
91260         * tests/test-truncl.c: New file.
91262         * modules/truncl: New file.
91263         * lib/truncl.c: New file.
91264         * m4/truncl.m4: New file.
91265         * lib/math.in.h (truncl): New declaration.
91266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
91267         HAVE_DECL_TRUNCL.
91268         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
91269         HAVE_DECL_TRUNCL.
91270         * doc/functions/truncl.texi: Mention the 'truncl' module.
91272 2007-10-04  Bruno Haible  <bruno@clisp.org>
91274         * modules/truncf-tests: New file.
91275         * tests/test-truncf.c: New file.
91277         * modules/truncf: New file.
91278         * lib/trunc.c: Make paramerizable through USE_* macros.
91279         * lib/truncf.c: New file.
91280         * m4/truncf.m4: New file.
91281         * lib/math.in.h (truncf): New declaration.
91282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
91283         HAVE_DECL_TRUNCF.
91284         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
91285         HAVE_DECL_TRUNCF.
91286         * doc/functions/truncf.texi: Mention the 'truncf' module.
91288 2007-10-03  Bruno Haible  <bruno@clisp.org>
91290         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
91291         augmentation also for tests modules.
91292         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
91293         * modules/atexit-tests (Makefile.am): Likewise.
91294         * modules/binary-io-tests (Makefile.am): Likewise.
91295         * modules/c-strcase-tests (Makefile.am): Likewise.
91296         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
91297         * modules/canonicalize-tests (Makefile.am): Likewise.
91298         * modules/closein-tests (Makefile.am): Likewise.
91299         * modules/fprintf-posix-tests (Makefile.am): Likewise.
91300         * modules/freadahead-tests (Makefile.am): Likewise.
91301         * modules/fseek-tests (Makefile.am): Likewise.
91302         * modules/fseeko-tests (Makefile.am): Likewise.
91303         * modules/ftell-tests (Makefile.am): Likewise.
91304         * modules/ftello-tests (Makefile.am): Likewise.
91305         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
91306         * modules/isnanl-tests (Makefile.am): Likewise.
91307         * modules/lseek-tests (Makefile.am): Likewise.
91308         * modules/mbscasecmp-tests (Makefile.am): Likewise.
91309         * modules/mbscasestr-tests (Makefile.am): Likewise.
91310         * modules/mbschr-tests (Makefile.am): Likewise.
91311         * modules/mbscspn-tests (Makefile.am): Likewise.
91312         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
91313         * modules/mbspbrk-tests (Makefile.am): Likewise.
91314         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
91315         * modules/mbsrchr-tests (Makefile.am): Likewise.
91316         * modules/mbsspn-tests (Makefile.am): Likewise.
91317         * modules/mbsstr-tests (Makefile.am): Likewise.
91318         * modules/printf-posix-tests (Makefile.am): Likewise.
91319         * modules/snprintf-posix-tests (Makefile.am): Likewise.
91320         * modules/sprintf-posix-tests (Makefile.am): Likewise.
91321         * modules/tsearch-tests (Makefile.am): Likewise.
91322         * modules/uniname/uniname-tests (Makefile.am): Likewise.
91323         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
91324         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
91325         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
91326         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
91327         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
91328         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
91329         * modules/vprintf-posix-tests (Makefile.am): Likewise.
91330         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
91331         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
91332         * modules/xstrtoimax-tests (Makefile.am): Likewise.
91333         * modules/xstrtol-tests (Makefile.am): Likewise.
91334         * modules/xstrtoumax-tests (Makefile.am): Likewise.
91335         * modules/yesno-tests (Makefile.am): Likewise.
91337 2007-10-03  Bruno Haible  <bruno@clisp.org>
91339         * modules/trunc-tests: New file.
91340         * tests/test-trunc.c: New file.
91342         * modules/trunc: New file.
91343         * lib/trunc.c: New file.
91344         * m4/trunc.m4: New file.
91345         * lib/math.in.h (trunc): New declaration.
91346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
91347         HAVE_DECL_TRUNC.
91348         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
91349         HAVE_DECL_TRUNC.
91350         * doc/functions/trunc.texi: Mention the 'trunc' module.
91352 2007-10-03  Bruno Haible  <bruno@clisp.org>
91354         * tests/test-fpending.c: New file, mostly copied
91355         from coreutils/lib/t-fpending.c.
91356         * modules/fpending-tests: New file.
91358 2007-10-03  Bruno Haible  <bruno@clisp.org>
91360         Port the stdio extensions to QNX (untested).
91361         * lib/fseterr.c (fseterr): Add support for QNX.
91362         * lib/fbufmode.c (fbufmode): Likewise.
91363         * lib/freadable.c (freadable): Likewise.
91364         * lib/fwritable.c (fwritable): Likewise.
91365         * lib/freading.c (freading): Likewise.
91366         * lib/fwriting.c (fwriting): Likewise.
91367         * lib/freadahead.c (freadahed): Likewise.
91368         * lib/fpurge.c (fpurge): Likewise.
91369         * lib/fseeko.c (rpl_fseeko): Likewise.
91371 2007-10-03  Bruno Haible  <bruno@clisp.org>
91372             Jim Meyering  <jim@meyering.net>
91373             Eric Blake  <ebb9@byu.net>
91375         * doc/relocatable.texi: Use @command instead of @program.
91377 2007-10-02  Jim Meyering  <jim@meyering.net>
91379         Perform one more "_.h" -> ".in.h" substitution.
91380         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
91381         instead of unistd_.h here, too.
91383 2007-10-01  Bruno Haible  <bruno@clisp.org>
91385         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
91386         Needed for the alloca-opt module.
91388 2007-09-30  Bruno Haible  <bruno@clisp.org>
91390         * lib/alloca.in.h: Renamed from lib/alloca_.h.
91391         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
91392         alloca_.h.
91393         * lib/argz.in.h: Renamed from lib/argz_.h.
91394         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
91395         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
91396         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
91397         byteswap_.h.
91398         * lib/dirent.in.h: Renamed from lib/dirent_.h.
91399         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
91400         dirent_.h.
91401         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
91402         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
91403         fcntl_.h.
91404         * lib/float.in.h: Renamed from lib/float_.h.
91405         * modules/float (Files, Makefile.am): Use float.in.h instead of
91406         float_.h.
91407         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
91408         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
91409         fnmatch_.h.
91410         * lib/getopt.in.h: Renamed from lib/getopt_.h.
91411         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
91412         getopt_.h.
91413         * lib/glob.in.h: Renamed from lib/glob_.h.
91414         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
91415         * lib/iconv.in.h: Renamed from lib/iconv_.h.
91416         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
91417         iconv_.h.
91418         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
91419         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
91420         inttypes_.h.
91421         * lib/locale.in.h: Renamed from lib/locale_.h.
91422         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
91423         locale_.h.
91424         * lib/math.in.h: Renamed from lib/math_.h.
91425         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
91426         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
91427         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
91428         of netinet_in_.h. Add dependency.
91429         * lib/poll.in.h: Renamed from lib/poll_.h.
91430         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
91431         * lib/search.in.h: Renamed from lib/search_.h.
91432         * modules/search (Files, Makefile.am): Use search.in.h instead of
91433         search_.h.
91434         * lib/signal.in.h: Renamed from lib/signal_.h.
91435         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
91436         _signal.h.
91437         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
91438         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
91439         stdbool_.h.
91440         * lib/stdint.in.h: Renamed from lib/stdint_.h.
91441         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
91442         stdint_.h.
91443         * lib/stdio.in.h: Renamed from lib/stdio_.h.
91444         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
91445         stdio_.h.
91446         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
91447         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
91448         stdlib_.h.
91449         * lib/string.in.h: Renamed from lib/string_.h.
91450         * modules/string (Files, Makefile.am): Use string.in.h instead of
91451         string_.h.
91452         * doc/gnulib-tool.texi (Initial import): Update.
91453         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
91454         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
91455         of sys_select_.h. Add dependency.
91456         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
91457         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
91458         of sys_socket_.h.
91459         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
91460         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
91461         sys_stat_.h.
91462         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
91463         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
91464         sys_time_.h.
91465         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
91466         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
91467         sysexits_.h.
91468         * lib/time.in.h: Renamed from lib/time_.h.
91469         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
91470         * lib/unistd.in.h: Renamed from lib/unistd_.h.
91471         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
91472         unistd_.h.
91473         * lib/wchar.in.h: Renamed from lib/wchar_.h.
91474         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
91475         wchar_.h.
91476         * lib/wctype.in.h: Renamed from lib/wctype_.h.
91477         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
91478         wctype_.h.
91479         * build-aux/bootstrap (slurp): Update.
91480         * lib/.cppi-disable: Update.
91482 2007-09-30  Bruno Haible  <bruno@clisp.org>
91484         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
91485         Needed on BeOS.
91487 2007-09-30  Bruno Haible  <bruno@clisp.org>
91489         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
91491 2007-09-29  Bruno Haible  <bruno@clisp.org>
91493         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
91495 2007-09-29  Bruno Haible  <bruno@clisp.org>
91497         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
91498         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
91499         * build-aux/install-reloc: Compile also areadlink.c.
91500         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
91502 2007-09-29  Bruno Haible  <bruno@clisp.org>
91504         * gnulib-tool (func_emit_initmacro_done): Indentation.
91506 2007-09-29  Bruno Haible  <bruno@clisp.org>
91508         * README: Add CVS checkout update instructions.
91509         Info from Bob Proulx <bob@proulx.com>.
91511 2007-09-28  Eric Blake  <ebb9@byu.net>
91513         Provide move-if-change.
91514         * build-aux/move-if-change: New file, based on best practice
91515         rather than any canonical upstream location.
91517 2007-09-28  Jim Meyering  <jim@meyering.net>
91519         Fix canonicalize loop-detection corner case.
91520         Do not attempt to stat the symlink values stored via seen_triple.
91521         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
91522         on linux-2.6.18, (but not 2.6.22).
91523         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
91524         triple_compare.  The former compares dev,ino,filename, while the latter
91525         would actually stat dirname(filename) when dev and ino were equal.
91526         * lib/hash-triple.c: Install <string.h>.
91527         (STREQ): Define.
91528         (triple_compare_ino_str): New function.
91529         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
91531 2007-09-28  Eric Blake  <ebb9@byu.net>
91533         Enforce that AC_REPLACE_FUNCS files exist.
91534         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
91535         override check for typos.
91537         Fix test-closein on Solaris 10.
91538         * tests/test-closein.c (main): Don't assume stdin can be inherited
91539         closed on all systems.
91540         * tests/test-closein.sh: Likewise.
91541         Reported by Piotr Tarnowski.
91543 2007-09-28  Jim Meyering  <jim@meyering.net>
91545         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
91547 2007-09-27  Jim Meyering  <jim@meyering.net>
91549         canonicalize: Avoid a false-positive cycle failure.
91550         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
91551         Sort.  Remove cycle-check.
91552         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
91553         not cycle-check.h.
91554         (seen_triple): New function.
91555         (canonicalize_filename_mode): Use it instead of cycle-check.
91556         * tests/test-canonicalize.c: Add a test for this bug.
91557         * tests/test-canonicalize.sh: Set up and run the test.
91559         New module, file-set, from coreutils.
91560         * modules/file-set: Define it.
91561         * lib/file-set.c, lib/file-set.h: Implement.
91563         New module, hash-triple, from coreutils.
91564         * modules/hash-triple: Define it.
91565         * lib/hash-triple.c, lib/hash-triple.h: Implement.
91567 2007-09-25  Eric Blake  <ebb9@byu.net>
91569         Fix strerror on Interix.
91570         * lib/string_.h (strerror): Declare replacement.
91571         * doc/functions/strerror.texi (strerror): Document the Interix
91572         shortcoming.
91573         * modules/string (Makefile.am): Support new hooks.
91574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
91575         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
91576         gl_FUNC_STRERROR_SEPARATE.
91577         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
91578         * lib/strerror.c (rpl_strerror): Provide replacement.
91579         * modules/strerror (Depends-on): Add string.
91580         (configure.ac): Detect use of module.
91581         * tests/test-strerror.c: New file.
91582         * modules/strerror-tests: New test module.
91583         * modules/argp (Depends-on): Add strerror.
91584         * modules/error (Depends-on): Likewise.
91585         Reported by Martin Koeppe.
91587 2007-09-24  Bruno Haible  <bruno@clisp.org>
91589         * README: Update git instructions.
91591 2007-09-24  Eric Blake  <ebb9@byu.net>
91593         Revert fpending breakage from 2007-09-08.
91594         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
91595         __fpending.c.
91597 2007-09-24  Jim Meyering  <jim@meyering.net>
91599         filenamecat.c: Add a test.
91600         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
91601         showing how the function works when DIR is the empty string.
91603 2007-09-21  Simon Josefsson  <simon@josefsson.org>
91605         * tests/test-canonicalize.sh: Turn on executable bit.
91607 2007-09-19  Eric Blake  <ebb9@byu.net>
91609         * README: Update CVS instructions.
91611 2007-09-18  Bruno Haible  <bruno@clisp.org>
91613         * modules/areadlink: New file.
91614         * lib/areadlink.h (areadlink): New declaration.
91615         * lib/areadlink.c: New file, based on lib/xreadlink.c.
91617 2007-09-17  Jim Meyering  <jim@meyering.net>
91619         * lib/savewd.c (ESTALE) [!defined]: Define.
91620         Reported to be required on Interix by Martin Koeppe.
91622 2007-09-17  Bruno Haible  <bruno@clisp.org>
91624         * gnulib-tool (func_version): Use $version.
91626 2007-09-16  Bruno Haible  <bruno@clisp.org>
91628         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
91629         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
91630         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
91631         Reported by Greg Schafer <gschafer@zip.com.au>.
91633 2007-09-15  Bruno Haible  <bruno@clisp.org>
91635         * gnulib-tool (sed): Try a little harder to make bash understand the
91636         alias.
91637         Reported by Bruce Korb <bruce.korb@gmail.com>.
91639 2007-09-13  Eric Blake  <ebb9@byu.net>
91641         * ChangeLog: Remove conflict markers.
91643 2007-09-13  Simon Josefsson  <simon@josefsson.org>
91645         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
91646         Reported by Bruno Haible <bruno@clisp.org>.
91648 2007-09-12  Bruno Haible  <bruno@clisp.org>
91650         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
91651         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
91652         is not defined.
91654 2007-09-12  Eric Blake  <ebb9@byu.net>
91656         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
91657         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
91658         Autoconf definition.
91659         * modules/euidaccess (Depends-on): Add extensions, for
91660         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
91661         * modules/fnmatch (Depends-on): Likewise.
91662         * modules/getaddrinfo (Depends-on): Likewise.
91663         * modules/getdelim (Depends-on): Likewise.
91664         * modules/getline (Depends-on): Likewise.
91665         * modules/getsubopt (Depends-on): Likewise.
91666         * modules/gettext (Depends-on): Likewise.
91667         * modules/group-member (Depends-on): Likewise.
91668         * modules/mbchar (Depends-on): Likewise.
91669         * modules/memmem (Depends-on): Likewise.
91670         * modules/mempcpy (Depends-on): Likewise.
91671         * modules/memrchr (Depends-on): Likewise.
91672         * modules/pagealign_alloc (Depends-on): Likewise.
91673         * modules/readutmp (Depends-on): Likewise.
91674         * modules/stpcpy (Depends-on): Likewise.
91675         * modules/stpncpy (Depends-on): Likewise.
91676         * modules/strchrnul (Depends-on): Likewise.
91677         * modules/strndup (Depends-on): Likewise.
91678         * modules/strsep (Depends-on): Likewise.
91679         * modules/strverscmp (Depends-on): Likewise.
91680         * modules/vasprintf (Depends-on): Likewise.
91681         * modules/wcwidth (Depends-on): Likewise.
91682         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
91683         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
91684         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
91685         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
91686         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
91687         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
91688         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
91689         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
91690         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
91691         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
91692         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
91693         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
91694         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
91695         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
91696         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
91697         * m4/readutmp.m4 (gl_READUTMP): Likewise.
91698         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
91699         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
91700         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
91701         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
91702         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
91703         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
91704         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
91705         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
91706         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
91707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
91708         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
91709         so that lock.m4 can be used in gettext without extensions module.
91711 2007-09-11  Bruno Haible  <bruno@clisp.org>
91713         * m4/isc-posix.m4: Remove file.
91714         Suggested by Eric Blake.
91716 2007-09-11  Eric Blake  <ebb9@byu.net>
91718         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
91720 2007-09-10  Bruno Haible  <bruno@clisp.org>
91722         * posix-modules: Fix typo in error message.
91723         Reported by Matt <mkraai@beckman.com>.
91725 2007-09-09  Bruno Haible  <bruno@clisp.org>
91727         * doc/functions/getdelim.texi: Update list of platforms lacking the
91728         function.
91729         * doc/functions/getline.texi: Likewise.
91731 2007-09-09  Jim Meyering  <jim@meyering.net>
91733         * lib/hash.c (hash_initialize): Detect calloc failure.
91734         Reported by Bruno Haible.
91736 2007-09-09  Bruno Haible  <bruno@clisp.org>
91738         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
91739         malloc or realloc fails.
91741 2007-09-09  Bruno Haible  <bruno@clisp.org>
91743         * modules/getcwd (Depends-on): Add malloc-posix.
91744         * modules/glob (Depends-on): Likewise.
91745         * modules/putenv (Depends-on): Likewise.
91746         * modules/strdup (Depends-on): Likewise.
91747         * modules/getdelim (Depends-on): Add realloc-posix.
91748         * modules/read-file (Depends-on): Likewise.
91750 2007-09-09  Bruno Haible  <bruno@clisp.org>
91752         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
91753         (gl_FUNC_MALLOC_POSIX): Require it.
91754         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
91755         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
91756         * modules/realloc (Files): Add m4/malloc.m4.
91757         * modules/calloc (Files): Likewise.
91759 2007-09-09  Bruno Haible  <bruno@clisp.org>
91761         * modules/malloc-posix: New file.
91762         * modules/malloc (Depends-on): Add malloc-posix.
91763         * lib/malloc.c: Include errno.h.
91764         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
91765         and a POSIX-compatible malloc into a single function. Set ENOMEM
91766         when returning NULL.
91767         * m4/malloc.m4: New file.
91768         * doc/functions/malloc.texi: Mention the malloc-posix module.
91769         * lib/stdlib_.h (malloc): New declaration.
91770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
91771         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
91772         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
91773         and HAVE_MALLOC_POSIX.
91775 2007-09-09  Bruno Haible  <bruno@clisp.org>
91777         * modules/realloc-posix: New file.
91778         * modules/realloc (Depends-on): Add realloc-posix.
91779         * lib/realloc.c: Include errno.h.
91780         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
91781         and a POSIX-compatible realloc into a single function. Set ENOMEM
91782         when returning NULL.
91783         * m4/realloc.m4: New file.
91784         * doc/functions/realloc.texi: Mention the realloc-posix module.
91785         * lib/stdlib_.h (realloc): New declaration.
91786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
91787         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
91788         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
91789         and HAVE_REALLOC_POSIX.
91791 2007-09-09  Bruno Haible  <bruno@clisp.org>
91793         * modules/calloc-posix: New file.
91794         * modules/calloc (Depends-on): Add calloc-posix.
91795         * lib/calloc.c: Include errno.h.
91796         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
91797         and a POSIX-compatible calloc into a single function. Set ENOMEM
91798         when returning NULL.
91799         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
91800         * doc/functions/calloc.texi: Mention the calloc-posix module.
91801         * lib/stdlib_.h (calloc): New declaration.
91802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
91803         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
91804         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
91805         and HAVE_CALLOC_POSIX.
91807 2007-09-09  Bruno Haible  <bruno@clisp.org>
91809         Allow for modules to show an arbitrary notice.
91810         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
91811         * gnulib-tool: New option --extract-notice.
91812         (func_usage): Document it.
91813         (sed_extract_prog): Update.
91814         (func_get_notice): New function.
91815         (func_modules_notice): New function.
91816         (func_import, func_create_testdir): Invoke it.
91817         Suggested by Jim Meyering.
91819 2007-09-09  Bruno Haible  <bruno@clisp.org>
91821         * gnulib-tool: New options --verbose, --quiet.
91822         (func_usage): Document them.
91823         (verbose): New variable.
91824         (func_execute_command): New function.
91825         (func_import): Don't show the module list and the file list if
91826         $verbose < 0.
91827         (func_create_testdir): Likewise. Use func_execute_command.
91828         (func_create_megatestdir): Use func_execute_command.
91830 2007-09-08  Bruno Haible  <bruno@clisp.org>
91832         * gnulib-tool (func_import): Prefer rsync over wget when available,
91833         for fetching the PO files.
91835 2007-09-08  Bruno Haible  <bruno@clisp.org>
91837         * posix-modules: New file. Portions copied from gnulib-tool.
91838         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
91840 2007-09-08  Jim Meyering  <jim@meyering.net>
91842         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
91843         * lib/fpending.h: Rename from __fpending.h.
91844         * lib/fpending.c: Rename from __fpending.c.
91845         Include "fpending.h", not "__fpending.h".
91846         * lib/__fpending.h, lib/__fpending.c: Remove files.
91847         * modules/fpending (Files): Reflect new file names.
91848         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
91850 2007-09-08  Bruno Haible  <bruno@clisp.org>
91852         * m4/inttypes-h.m4: Remove stub file.
91854 2007-09-07  Simon Josefsson  <simon@josefsson.org>
91856         * doc/headers/stdint.texi: Discuss #include_next issue.
91858 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
91860         * build-aux/bootstrap: Remove obsolete comment about wget --help.
91862 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91864         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
91865         in variable name.
91867 2007-09-03  Jim Meyering  <jim@meyering.net>
91869         New module: git-version-gen.
91870         * modules/git-version-gen: New file.
91872         Import changes from coreutils for bootstrap script.
91874         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
91876         bootstrap: uses rsync to download the .po files
91877         * build-aux/bootstrap (po_download_command_format): New global.
91878         (download_po_files): Use rsync.
91879         (update_po_files): Don't remove .po files after download,
91880         so future rsync runs can take advantage of the copies.
91882         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
91884         Solve the unnecessary-.po-file-regeneration problem once and for all.
91885         * build-aux/bootstrap (download_po_files): New function, renamed from
91886         get_translations.  Now, downloads, but doesn't update LINGUAS.
91887         (update_po_files): New function.
91889         bootstrap: Ignore more.
91890         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
91891         uniwidth to e.g., lib/.gitignore.
91892         (slurp): Handle the sys_stat_.h -> sys mapping, too.
91894         * build-aux/bootstrap: New setting: vc_ignore.
91895         (insert_sorted_if_absent): Create $file if absent.
91896         Adapt to new, possibly empty, list: $vc_ignore.
91898         bootstrap: generate more ignorable names
91899         * build-aux/bootstrap (slurp): When generating ignorable names,
91900         also map .sin to .sed, .gperf to .c, and .y to .c.
91902 2007-09-03  Jim Meyering  <jim@meyering.net>
91904         * build-aux/git-version-gen: New file, from coreutils.  For details, see
91905         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
91907 2007-09-02  Bruno Haible  <bruno@clisp.org>
91909         Fix mis-recognition of 'mcs' on QNX 6.
91910         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
91911         output contains the string "Mono".
91912         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
91913         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
91915 2007-09-01  Bruno Haible  <bruno@clisp.org>
91917         Fix collision between uniwidth/* and linebreak modules.
91918         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
91919         u32_width): Remove declarations.
91920         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
91921         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
91922         streq3, streq2, streq1, streq0): Remove functions.
91923         (STREQ): Remove macro.
91924         (is_cjk_encoding): Remove function.
91925         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
91926         (uc_width, u8_width, u16_width, u32_width): Remove functions.
91927         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
91928         * NEWS: Document the change.
91930 2007-09-01  Bruno Haible  <bruno@clisp.org>
91932         * lib/streq.h: Add double-inclusion guard.
91934 2007-09-01  Karl Berry  <karl@gnu.org>
91936         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
91938 2007-08-28  Jim Meyering  <jim@meyering.net>
91940         Rename mreadlink_with_size to areadlink_with_size.
91941         * NEWS: Document the change.
91942         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
91943         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
91944         * lib/mreadlink.h: Rename this to...
91945         * lib/areadlink.h: ...this.
91946         * modules/mreadlink-with-size: Rename this to...
91947         * modules/areadlink-with-size: ...this.
91948         * lib/canonicalize.c: Reflect the renaming.
91949         * modules/canonicalize: Likewise.
91951 2007-08-26  Bruno Haible  <bruno@clisp.org>
91953         * gnulib-tool (func_import): When deciding which files to remove,
91954         consider also dangling symbolic links.
91955         Reported by Eric Blake.
91957 2007-08-26  Bruno Haible  <bruno@clisp.org>
91959         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
91961 2007-08-23  Simon Josefsson  <simon@josefsson.org>
91963         * lib/readline.c: Don't include getline.h, the prototype is now
91964         found in stdio.h.
91966 2007-08-23  Jim Meyering  <jim@meyering.net>
91968         Getdelim touchup.
91969         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
91970         around the funlockfile call, since funlockfile never sets errno.
91971         Don't set errno upon failed realloc.
91973 2007-08-22  Eric Blake  <ebb9@byu.net>
91975         Getline touchups.
91976         * lib/getdelim.c (getdelim): Revert regression that required *n to
91977         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
91978         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
91979         getdelim, rather than whether implementation is missing.
91980         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
91981         * lib/stdio_.h (getline): Also declare if replacement is
91982         required.
91983         * doc/functions/getdelim.texi: New file.
91984         * doc/functions/getline.texi: Likewise.
91985         * doc/gnulib.texi (Function Substitutes): Add new files.
91986         Reported by Bruno Haible.
91988 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
91990         * users.txt: Add Guile.
91992 2007-08-22  Eric Blake  <ebb9@byu.net>
91994         * tests/test-getdelim.c (main): Use remove, not unlink.
91995         * tests/test-getline.c (main): Likewise.
91997         Move getline and getdelim into stdio.h, per POSIX 200x.
91998         * modules/getline (Files): Remove getline.h.
91999         (Depends-on): Add stdio.
92000         (configure.ac): Add module indicator.
92001         * modules/getdelim (Files): Remove getdelim.h.
92002         (Depends-on): Add stdio.
92003         (configure.ac): Add module indicator.
92004         * modules/stdio (Makefile.am): Work with new indicators.
92005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
92006         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
92007         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
92008         * lib/getdelim.h: Delete.
92009         * lib/getline.h: Delete.
92010         * lib/stdio_.h (getdelim, getline): Declare.
92011         * modules/getdelim-tests: New module.
92012         * modules/getline-tests: Likewise.
92013         * tests/test-getdelim.c: New file.
92014         * tests/test-getline.c: Likewise.
92015         * NEWS: Document the change.
92016         * lib/getline.c: Update choice of header.
92017         * lib/csharpcomp.c: Likewise.
92018         * lib/getpass.c: Likewise.
92019         * lib/javacomp.c: Likewise.
92020         * lib/javaversion.c: Likewise.
92021         * lib/yesno.c: Likewise.
92022         * lib/getdelim.c: Likewise.
92023         (getdelim): Set errno on failure, and avoid memory leak.
92025 2007-08-19  Bruno Haible  <bruno@clisp.org>
92027         * modules/closein (Depends-on): Add freadahead.
92028         * lib/closein.c: Include freadahead.h.
92029         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
92030         is zero.
92032 2007-08-19  Bruno Haible  <bruno@clisp.org>
92034         * modules/freadahead-tests: New file.
92035         * tests/test-freadahead.sh: New file.
92036         * tests/test-freadahead.c: New file.
92038         * modules/freadahead: New file.
92039         * lib/freadahead.h: New file.
92040         * lib/freadahead.c: New file.
92041         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
92042         fbufmode, fpurge, freadable, fwritable.
92044 2007-08-19  Eric Blake  <ebb9@byu.net>
92046         Test yesno in combination with closein.
92047         * lib/yesno.c (yesno): Document use of stdin.
92048         * modules/yesno-tests (Files): New module.
92049         * tests/test-yesno.c (main): New file.
92050         * tests/test-yesno.sh: Likewise.
92052 2007-08-19  Bruno Haible  <bruno@clisp.org>
92054         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
92055         * lib/fseeko.c (rpl_fseeko): Likewise.
92056         * lib/fseterr.c (fseterr): Likewise.
92058 2007-08-19  Bruno Haible  <bruno@clisp.org>
92060         * tests/test-lseek.c (main): Disable a test for BeOS.
92061         * doc/functions/lseek.texi: Document the BeOS bug.
92063 2007-08-19  Bruno Haible  <bruno@clisp.org>
92064             Eric Blake  <ebb9@byu.net>
92066         * lib/lseek.c: Include <sys/stat.h>.
92067         (rpl_lseek): Add workaround code also for Unix platforms.
92068         Needed for BeOS.
92069         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
92070         * doc/functions/lseek.texi: Document BeOS definiency.
92072 2007-08-18  Bruno Haible  <bruno@clisp.org>
92074         * modules/fstrcmp-tests: New file.
92075         * tests/test-fstrcmp.c: New file.
92077 2007-08-18  Bruno Haible  <bruno@clisp.org>
92079         * modules/fstrcmp: New file, from GNU gettext with modifications.
92080         * lib/fstrcmp.h: New file, from GNU gettext.
92081         * lib/fstrcmp.c: New file, from GNU gettext.
92082         * MODULES.html.sh (String handling): Add fstrcmp.
92084 2007-08-18  Bruno Haible  <bruno@clisp.org>
92086         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
92087         'bool'.
92088         (diag, compareseq): Remove const from the ctxt argument.
92089         (USE_HEURISTIC): Undefine at the end.
92091 2007-08-18  Jim Meyering  <jim@meyering.net>
92093         New file: lib/idcache.h
92094         * NEWS: Mention the addition.
92095         * modules/idcache (Files): Add lib/idcache.h
92096         * lib/idcache.c: Include "idcache.h".
92097         Don't include <sys/types.h>.
92098         Add a FIXME comment.
92099         Move file-scoped "static" declarations to the top.
92100         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
92102 2007-08-17  Bruno Haible  <bruno@clisp.org>
92103         and Paul Eggert  <eggert@cs.ucla.edu>
92105         * MODULES.html.sh: Add diffseq.
92106         * modules/diffseq: New file.
92107         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
92108         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
92110 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92112         Import changes from coreutils for bootstrap script.
92114         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
92116         * build-aux/bootstrap (slurp): Work even in environments where
92117         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
92118         current code does not slurp files whose names start with ".", and
92119         this looks like it might be a troublesome area.
92121         2007-07-11  Jim Meyering  <jim@meyering.net>
92123         If there's a GPL vN copyright comment, require that N == 3.
92125         2007-07-08  Jim Meyering  <jim@meyering.net>
92127         Run the coreutils-specific code only if tests/Makefile.am.in exists.
92128         * build-aux/bootstrap (mam_template): Move definition out of loop.
92130         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
92132         * build-aux/bootstrap (symlink_to_dir): Rename function from
92133         symlink_to_gnulib.  Add a directory parameter.  Update all
92134         callers.
92135         (cp_mark_as_generated): Also check for -- and link to -- files in
92136         gl/.
92138         2007-07-08  Jim Meyering  <jim@meyering.net>
92140         Adapt to deeper hierarchy in gnulib.
92141         * build-aux/bootstrap (symlink_to_dir): If the destination
92142         directory doesn't exist, create it. This is required at least for
92143         "lib/uniwidth/cjk.h".
92145         2007-05-15  Jim Meyering  <jim@meyering.net>
92147         * build-aux/bootstrap: Now that generated Makefile.am files
92148         are no longer under version control, they must be created at
92149         bootstrap time.
92151 2007-08-14  Ben Pfaff  <blp@gnu.org>
92153         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
92155 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
92157         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
92158         given the changes below.
92159         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
92160         even on hosts that have padding bits beyond the supported 64.
92162 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
92164         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
92165         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
92166         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
92167         depends on it.
92168         (xstrtol_error): Remove.
92169         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
92170         but with a different signature.
92171         (ATTRIBUTE_NORETURN, __attribute__): New macros.
92172         * lib/xstrtol-error.c: Include exitfail.h.
92173         (xstrtol_fatal): New function, with a different signature from the
92174         old xstrtol_error, so that the caller need not worry about passing
92175         in an exit status, or about storage management of the option argument.
92176         (xstrtol_error): Now a static function.  Redo signature to
92177         implement xstrtol_fatal.  Output the correct number of hyphens in
92178         front of the option so that the caller need not worry about
92179         storage management.
92180         (N_): New macro.
92181         (_): Remove; not used now.
92182         * modules/xstrtol: Depend on getopt.
92183         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
92184         of old STRTOL_FATAL_ERROR macro.
92185         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
92186         of test program.
92187         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
92188         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
92190 2007-08-08  Eric Blake  <ebb9@byu.net>
92192         * lib/xstrtol-error.c: Add missing include.
92194         Move xstrtol messages into gnulib domain, when --pobase is used.
92195         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
92196         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
92197         * modules/xstrtol (Files): Distribute new file.
92198         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
92199         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
92200         * tests/test-xstrtol.c: ...into new file.
92201         * tests/test-xstrtoul.c: Also test xstrtoul.
92202         * tests/test-xstrtoimax.c: Also test xstrtoimax.
92203         * tests/test-xstrtoumax.c: Also test xstrtoumax.
92204         * tests/test-xstrtol.sh: Drive the tests.
92205         * tests/test-xstrtoimax.sh: Likewise.
92206         * tests/test-xstrtoumax.sh: Likewise.
92207         * modules/xstrtol-tests: New module.
92208         * modules/xstrtoimax-tests: Likewise.
92209         * modules/xstrtoumax-tests: Likewise.
92211 2007-08-08  Jim Meyering  <jim@meyering.net>
92213         New function: mfile_name_concat.
92214         * lib/filenamecat.c (mfile_name_concat): New function, just like
92215         file_name_concat, but return NULL upon failure rather than exiting
92216         with a diagnostic.
92217         * lib/filenamecat.h: Declare it.
92219 2007-08-07  Bruno Haible  <bruno@clisp.org>
92221         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
92222         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
92223         warning from gcc.
92224         Reported by Eric Blake.
92226 2007-08-07  Simon Josefsson  <simon@josefsson.org>
92228         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
92229         * modules/crypto/arcfour (License): Likewise.
92230         * modules/crypto/des-tests (License): Likewise.
92231         * modules/crypto/gc-arctwo-tests (License): Likewise.
92232         * modules/crypto/gc-des-tests (License): Likewise.
92233         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
92234         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
92235         * modules/crypto/gc-md2-tests (License): Likewise.
92236         * modules/crypto/gc-md4-tests (License): Likewise.
92237         * modules/crypto/gc-md5-tests (License): Likewise.
92238         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
92239         * modules/crypto/gc-rijndael-tests (License): Likewise.
92240         * modules/crypto/gc-sha1-tests (License): Likewise.
92241         * modules/crypto/gc-tests (License): Likewise.
92242         * modules/crypto/hmac-md5 (License): Likewise.
92243         * modules/crypto/hmac-sha1 (License): Likewise.
92244         * modules/crypto/md2-tests (License): Likewise.
92245         * modules/crypto/md4-tests (License): Likewise.
92246         * modules/crypto/md5 (License): Likewise.
92247         * modules/crypto/rijndael (License): Likewise.
92248         * modules/crypto/sha1 (License): Likewise.
92249         * modules/memxor (License): Likewise.
92251 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
92252         and Bruno Haible  <bruno@clisp.org>
92254         * NEWS: Describe interface changes to human, xstrtol.
92255         * lib/human.h: Include <xstrtol.h>.
92256         (human_options): Return enum strtol_error, not int.  Remove
92257         bool arg; take int * instead.
92258         * lib/human.c: Don't include "gettext.h".
92259         (_): Remove; no longer used.
92260         Don't include <xstrtol.h>, since human.h does it.
92261         (human_options): Adjust to abovementioned interface changes.
92262         Do not report error to stderr; that's now the caller's
92263         responsibility.
92264         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
92265         interface change.
92266         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
92267         Str, Argument_type_string.  All uses changed.  Put " argument"
92268         in diagnostics to make them clearer.  Change wording of suffix
92269         message for clarity.
92270         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
92271         Argument_type_string.
92272         (STRTOL_FATAL_WARN): Remove; no longer used.
92273         * modules/human (Depends-on): Remove gettext-h.
92275 2007-08-06  Simon Josefsson  <simon@josefsson.org>
92277         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
92279 2007-07-31  Bruno Haible  <bruno@clisp.org>
92281         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
92282         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
92283         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
92285 2007-07-31  Bruno Haible  <bruno@clisp.org>
92287         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
92288         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
92290 2007-07-30  Bruno Haible  <bruno@clisp.org>
92292         * modules/base64 (License): Use the synonymous term "LGPLv2+".
92293         * modules/c-ctype (License): Likewise.
92294         * modules/c-strcase (License): Likewise.
92295         * modules/check-version (License): Likewise.
92296         * modules/iconv (License): Likewise.
92297         * modules/iconv_open (License): Likewise.
92298         * modules/read-file (License): Likewise.
92299         * modules/striconv (License): Likewise.
92300         * modules/strverscmp (License): Likewise.
92301         * modules/vasprintf (License): Likewise.
92302         * modules/crypto/des (License): Likewise.
92303         * modules/crypto/gc (License): Likewise.
92304         * modules/crypto/gc-arcfour (License): Likewise.
92305         * modules/crypto/gc-arctwo (License): Likewise.
92306         * modules/crypto/gc-des (License): Likewise.
92307         * modules/crypto/gc-hmac-md5 (License): Likewise.
92308         * modules/crypto/gc-hmac-sha1 (License): Likewise.
92309         * modules/crypto/gc-md2 (License): Likewise.
92310         * modules/crypto/gc-md4 (License): Likewise.
92311         * modules/crypto/gc-md5 (License): Likewise.
92312         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
92313         * modules/crypto/gc-random (License): Likewise.
92314         * modules/crypto/gc-rijndael (License): Likewise.
92315         * modules/crypto/gc-sha1 (License): Likewise.
92316         * modules/crypto/md2 (License): Likewise.
92317         * modules/crypto/md4 (License): Likewise.
92319 2007-07-30  Jim Meyering  <jim@meyering.net>
92321         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
92322         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
92323         it has valid stat data.  This bug would cause du not to count the
92324         sizes of inaccessible directories.
92325         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
92326         in <http://bugzilla.redhat.com/250077>.
92328 2007-07-25  Peter O'Gorman  <peter@pogma.com>
92329             Bruno Haible  <bruno@clisp.org>
92331         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
92332         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
92333         #include_next, gives a diagnostic about it, but reports no error in
92334         the exit code.
92335         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
92337 2007-07-24  Ben Pfaff  <blp@gnu.org>
92339         Improve name: "count-one-bits" is better than "popcount".
92340         * MODULES.html.sh: Update name.
92341         * lib/popcount.h: Renamed lib/count-one-bits.h.
92342         (popcount): Renamed count_one_bits.
92343         (popcountl): Renamed count_one_bits_l.
92344         (popcountll): Renamed count_one_bits_ll.
92345         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
92346         * modules/popcount: Renamed module/count-one-bits.
92347         * modules/popcount-tests: Renamed module/count-one-bits-tests.
92348         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
92350 2007-07-23  Ben Pfaff  <blp@gnu.org>
92352         * lib/popcount.h (popcount32): Reduce size of constants, to allow
92353         better code generation, and add U to large constants to avoid
92354         warnings, in non-GCC case.
92355         Suggested by Bruno Haible.
92357 2007-07-23  Ben Pfaff  <blp@gnu.org>
92359         * lib/popcount.h: Use verify_true instead of if...abort.
92360         * modules/popcount: Depend on verify module.
92361         Suggested by Jim Meyering.
92363 2007-07-23  Bruno Haible  <bruno@clisp.org>
92365         * gnulib-tool (func_import): Create a .cvsignore file also when the
92366         directory is not yet in CVS but the toplevel directory is. When
92367         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
92368         Reported by Karl Berry.
92370 2007-07-22  Ben Pfaff  <blp@gnu.org>
92372         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
92373         case.
92374         Suggested by Eric Blake.
92376 2007-07-22  Ben Pfaff  <blp@gnu.org>
92378         New module: popcount.
92379         * MODULES.html.sh: Add popcount.
92380         * modules/popcount: New file.
92381         * modules/popcount-tests: New file.
92382         * tests/test-popcount.c: New file.
92383         * lib/popcount.h: New file.
92384         * m4/popcount.m4: New file.
92386 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
92388         * build-aux/announce-gen: Update to GPLv3.
92390         * build-aux/config.guess: Update from config.
92392 2007-07-21  Bruno Haible  <bruno@clisp.org>
92394         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
92395         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
92397 2007-07-20  Jim Meyering  <jim@meyering.net>
92399         * check-module: Diagnose a self-dependency.
92401 2007-07-19  Bruno Haible  <bruno@clisp.org>
92403         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
92404         empty.
92405         Reported by Eric Blake.
92407 2007-07-18  Bruno Haible  <bruno@clisp.org>
92409         * gnulib-tool: New options --po-base, --po-domain.
92410         (func_usage): Document them.
92411         (pobase, po_domain): New variables.
92412         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
92413         DEFAULT_TEXT_DOMAIN.
92414         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
92415         (func_import): Consider pobase and po_domain. Create a po/ directory.
92416         (func_create_testdir): Set pobase and po_domain to empty.
92417         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
92418         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
92420 2007-07-18  Bruno Haible  <bruno@clisp.org>
92422         * gnulib-tool (func_get_automake_snippet): Synthesize also an
92423         EXTRA_DIST augmentation for files in build-aux/.
92425 2007-07-16  Bruno Haible  <bruno@clisp.org>
92427         * modules/lseek (License): Use the synonymous term "LGPLv2+".
92428         * modules/getdelim (License): Likewise.
92430 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92432         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
92433         * modules/d-type (License): Likewise.
92434         * modules/extensions (License): Likewise.
92435         * modules/fnmatch (License): Likewise.
92436         * modules/fseeko (License): Likewise.
92437         * modules/getaddrinfo (License): Likewise.
92438         * modules/getline (License): Likewise.
92439         * modules/getlogin_r (License): Likewise.
92440         * modules/getpass (License): Likewise.
92441         * modules/gettimeofday (License): Likewise.
92442         * modules/glob (License): Likewise.
92443         * modules/inet_ntop (License): Likewise.
92444         * modules/malloc (License): Likewise.
92445         * modules/malloca (License): Likewise.
92446         * modules/memmem (License): Likewise.
92447         * modules/mempcpy (License): Likewise.
92448         * modules/memset (License): Likewise.
92449         * modules/minmax (License): Likewise.
92450         * modules/mktime (License): Likewise.
92451         * modules/netinet_in (License): Likewise.
92452         * modules/pathmax (License): Likewise.
92453         * modules/poll (License): Likewise.
92454         * modules/regex (License): Likewise.
92455         * modules/snprintf (License): Likewise.
92456         * modules/stdbool (License): Likewise.
92457         * modules/stdint (License): Likewise.
92458         * modules/stdio (License): Likewise.
92459         * modules/strcase (License): Likewise.
92460         * modules/strcasestr (License): Likewise.
92461         * modules/strdup (License): Likewise.
92462         * modules/string (License): Likewise.
92463         * modules/strndup (License): Likewise.
92464         * modules/strnlen (License): Likewise.
92465         * modules/strpbrk (License): Likewise.
92466         * modules/strptime (License): Likewise.
92467         * modules/strsep (License): Likewise.
92468         * modules/sys_select (License): Likewise.
92469         * modules/sys_socket (License): Likewise.
92470         * modules/sys_stat (License): Likewise.
92471         * modules/sys_time (License): Likewise.
92472         * modules/time (License): Likewise.
92473         * modules/time_r (License): Likewise.
92474         * modules/timegm (License): Likewise.
92475         * modules/unistd (License): Likewise.
92476         * modules/vsnprintf (License): Likewise.
92477         * modules/wctype (License): Likewise.
92479 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92481         * modules/argz (License): LGPLv2+.
92483 2007-07-15  Karl Berry  <karl@gnu.org>
92485         * doc/gnulib.texi: revise node structure per new fdl.texi.
92487 2007-07-14  Bruno Haible  <bruno@clisp.org>
92489         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
92490         the output file.
92491         * lib/uniname/uninames.h: Regenerated.
92493 2007-07-14  Karl Berry  <karl@gnu.org>
92495         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
92496         omitting sectioning and index commands.
92498 2007-07-13  Bruno Haible  <bruno@clisp.org>
92500         New gnulib-tool option --more-symlinks.
92501         * gnulib-tool (func_usage): Document --more-symlinks.
92502         (do_copyrights): New variable.
92503         Recognize option --more-symlinks.
92504         (func_import): Don't add a copyright notice transform to
92505         sed_transform_lib_file if do_copyrights is empty.
92507 2007-07-13  Bruno Haible  <bruno@clisp.org>
92509         * lib/vasnprintf.c (decimal_point_char): Define also if
92510         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
92511         && !NEED_PRINTF_DIRECTIVE_A.
92512         Reported by Clemens Koller <clemens.koller@anagramm.de> via
92513         Gary V. Vaughan <gary@gnu.org>.
92515 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
92517         * lib/inttypes_.h: Undo previous change, since it was fixed
92518         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
92520 2007-07-13  Bruno Haible  <bruno@clisp.org>
92522         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
92523         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
92525 2007-07-13  Jim Meyering  <jim@meyering.net>
92527         df: Don't fail for Tru64's "file-on-file mount".
92528         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
92529         so we fall through and use statfs instead.  Details here:
92530         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
92531         Reported by Albert Chin.
92533 2007-07-13  Bruno Haible  <bruno@clisp.org>
92535         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
92536         * modules/configmake (License): Likewise.
92537         * modules/gettext (License): Likewise.
92538         * modules/gettext-h (License): Likewise.
92539         * modules/include_next (License): Likewise.
92540         * modules/link-warning (License): Likewise.
92541         * modules/localcharset (License): Likewise.
92542         * modules/localename (License): Likewise.
92543         * modules/lock (License): Likewise.
92544         * modules/relocatable-lib-lgpl (License): Likewise.
92545         * modules/size_max (License): Likewise.
92546         * modules/vasnprintf (License): Likewise.
92547         * modules/wchar (License): Likewise.
92548         * modules/xsize (License): Likewise.
92550 2007-07-13  Bruno Haible  <bruno@clisp.org>
92552         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
92553         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
92555 2007-07-12  Bruno Haible  <bruno@clisp.org>
92557         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
92558         in the modules files.
92560 2007-07-11  Karl Berry  <karl@gnu.org>
92562         * MODULES.html.sh (func_module): use
92563          sed -e '\|^'"${includefile}"'$|d'
92564          instead of /.../d, to avoid errors on $includefile's containing /.
92566 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
92568         * gnulib-tool (func_import): Avoid duplication of --avoid
92569         statements
92570         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
92571         names to `_' in variable names.
92573 2007-07-10  Eric Blake  <ebb9@byu.net>
92575         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
92576         * NEWS: Document this change.
92578 2007-07-08  Bruno Haible  <bruno@clisp.org>
92580         Update to Unicode 5.0.
92581         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
92582         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
92583         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
92584         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
92585         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
92586         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
92587         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
92588         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
92589         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
92590         U+10A3F, U+1D242..U+1D244.
92591         (nonspacing_table_ind): Update.
92592         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
92593         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
92595 2007-07-08  Bruno Haible  <bruno@clisp.org>
92597         Update to Unicode 5.0.
92598         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
92599         code transform. Extend the name index field of unicode_name_to_code and
92600         unicode_code_to_name from 16 to 24 bits.
92601         * lib/uniname/uniname.c (unicode_character_name,
92602         unicode_name_character): Add the range 0x12xxx to the code transform.
92603         * lib/uniname/uninames.h: Regenerated.
92604         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
92606 2007-07-07  Bruno Haible  <bruno@clisp.org>
92608         * modules/wcwidth-tests: New file.
92609         * tests/test-wcwidth.c: New file.
92611         Work around MacOS X wcwidth() bug.
92612         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
92613         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
92614         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
92615         original wcwidth in non-UTF-8 locales.
92616         * modules/wcwidth (Depends-on): Add localcharset, streq,
92617         uniwidth/width.
92618         * doc/functions/wcwidth.texi: Update.
92620 2007-07-07  Bruno Haible  <bruno@clisp.org>
92622         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
92623         (wcwidth): New declaration.
92624         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
92625         macros.
92626         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
92627         here. Prepare for creating <wchar.h> unconditionally.
92628         * modules/wchar (Depends-on): Add link-warning.
92629         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
92630         REPLACE_WCWIDTH, and GL_LINK_WARNING.
92631         * lib/wcwidth.h: Remove file.
92632         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
92633         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
92634         * modules/wcwidth (Files): Remove lib/wcwidth.h.
92635         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
92636         (Include): Replace wcwidth.h with <wchar.h>.
92637         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
92638         * lib/mbchar.h: Don't include wcwidth.h.
92639         * lib/mbswidth.c: Likewise.
92640         * NEWS: Mention the change.
92642 2007-07-07  Bruno Haible  <bruno@clisp.org>
92644         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
92645         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
92646         definition with an external declaration.
92647         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
92648         defined as a function. Remove AC_C_INLINE requirement.
92649         * modules/wcwidth (Files): Add lib/wcwidth.c.
92650         (Makefile.am): Remove redundant statement.
92652 2007-07-07  Bruno Haible  <bruno@clisp.org>
92654         * MODULES.html.sh (Unicode string functions): Add the new modules.
92656         * tests/uniwidth/test-u32-strwidth.c: New file.
92657         * modules/uniwidth/u32-strwidth-tests: New file.
92659         * lib/uniwidth/u32-strwidth.c: New file.
92660         * modules/uniwidth/u32-strwidth: New file.
92662         * tests/uniwidth/test-u16-strwidth.c: New file.
92663         * modules/uniwidth/u16-strwidth-tests: New file.
92665         * lib/uniwidth/u16-strwidth.c: New file.
92666         * modules/uniwidth/u16-strwidth: New file.
92668         * tests/uniwidth/test-u8-strwidth.c: New file.
92669         * modules/uniwidth/u8-strwidth-tests: New file.
92671         * lib/uniwidth/u8-strwidth.c: New file.
92672         * modules/uniwidth/u8-strwidth: New file.
92674         * tests/uniwidth/test-u32-width.c: New file.
92675         * modules/uniwidth/u32-width-tests: New file.
92677         * lib/uniwidth/u32-width.c: New file.
92678         * modules/uniwidth/u32-width: New file.
92680         * tests/uniwidth/test-u16-width.c: New file.
92681         * modules/uniwidth/u16-width-tests: New file.
92683         * lib/uniwidth/u16-width.c: New file.
92684         * modules/uniwidth/u16-width: New file.
92686         * tests/uniwidth/test-u8-width.c: New file.
92687         * modules/uniwidth/u8-width-tests: New file.
92689         * lib/uniwidth/u8-width.c: New file.
92690         * modules/uniwidth/u8-width: New file.
92692         * tests/uniwidth/test-uc_width.c: New file.
92693         * modules/uniwidth/width-tests: New file.
92695         * lib/uniwidth/width.c: New file, from GNU libiconv.
92696         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
92697         * modules/uniwidth/width: New file.
92699         * lib/uniwidth.h: New file, from GNU libiconv.
92700         * modules/uniwidth/base: New file.
92702 2007-07-07  Bruno Haible  <bruno@clisp.org>
92704         * lib/uniname.h: New file, from GNU gettext.
92705         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
92706         * lib/uniname/uninames.h: New file, from GNU gettext.
92707         * lib/uniname/uniname.c: New file, from GNU gettext.
92708         * tests/uniname/test-uninames.sh: New file.
92709         * tests/uniname/test-uninames.c: New file, from GNU gettext.
92710         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
92711         * modules/uniname/base: New file.
92712         * modules/uniname/uniname: New file.
92713         * modules/uniname/uniname-tests: New file.
92714         * MODULES.html.sh (Unicode string functions): Add the new modules.
92716 2007-07-06  Bruno Haible  <bruno@clisp.org>
92718         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
92720 2007-07-06  Bruno Haible  <bruno@clisp.org>
92722         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
92723         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
92724         includes <cygwin/sys_time.h> which includes <sys/select.h> which
92725         include <sys/time.h>.
92726         Reported by Eric Blake.
92728 2007-07-06  Eric Blake  <ebb9@byu.net>
92730         Fix testing canonicalize on cygwin.
92731         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
92732         Revert patch from 2007-06-19.
92733         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
92734         canonicalize module is also in use.
92735         * tests/test-canonicalize.c: New file.
92736         * tests/test-canonicalize.sh: Likewise.
92737         * modules/canonicalize-tests: Likewise.
92739 2007-07-06  Jim Meyering  <jim@meyering.net>
92741         * lib/getugroups.c (getugroups): Detect getgrent failure.
92742         Adjust comment to reflect reality: this function may return -1.
92744 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
92746         * build-aux/bootstrap (TP_URL,get_translations): Update to use
92747         the new TP address.
92748         (usage): Fix typo
92749         (gnulib_mk): New variable.
92751 2007-07-05  Jim Meyering  <jim@meyering.net>
92753         Don't let endgrent clobber errno, no matter how improbable.
92754         * lib/getugroups.c (getugroups): Save and restore errno around
92755         endgrent call.
92757         Close the group DB even when failing with 2^31 or more members.
92758         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
92760 2007-07-04  Jim Meyering  <jim@meyering.net>
92762         * lib/getugroups.h: New file.
92763         * lib/getugroups.c: Include "getugroups.h".
92764         Remove uses of "register" keyword.
92765         Move local variable, "cp", down into scope where used.
92766         Give "username" parameter the "const" attribute.
92767         * modules/getugroups (Files): Add lib/getugroups.h
92769 2007-07-04  Karl Berry  <karl@gnu.org>
92771         * MODULES.html.sh (func_all_modules): Complete rename of
92772         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
92774 2007-07-02  Bruno Haible  <bruno@clisp.org>
92776         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
92777         mode, when inttypes.h comes from gnulib.
92778         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92780 2007-07-02  Simon Josefsson  <simon@josefsson.org>
92782         * NEWS: Mention lgpl module name change.
92784         * modules/lgpl-2.1: Renamed from lgpl.
92786         * NEWS: Mention gpl module name change.
92788         * modules/gpl-3.0: New file, based on gpl-2.0.
92790         * modules/gpl-2.0: Renamed from gpl.
92792         * modules/gpl: Fix filename, doc/gpl.texi is now found at
92793         doc/gpl-2.0.texi.
92795 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
92797         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
92798         #define __STDC_LIMIT_MACROS temporarily while including
92799         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
92800         Problem reported by Joel E. Denny in
92801         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
92803 2007-07-01  Bruno Haible  <bruno@clisp.org>
92805         * lib/unistdio.h: New file.
92806         * lib/unistdio/u-asnprintf.h: New file.
92807         * lib/unistdio/u-asprintf.h: New file.
92808         * lib/unistdio/u-printf-args.c: New file.
92809         * lib/unistdio/u-printf-args.h: New file.
92810         * lib/unistdio/u-printf-parse.h: New file.
92811         * lib/unistdio/u-snprintf.h: New file.
92812         * lib/unistdio/u-sprintf.h: New file.
92813         * lib/unistdio/u-vasprintf.h: New file.
92814         * lib/unistdio/u-vsnprintf.h: New file.
92815         * lib/unistdio/u-vsprintf.h: New file.
92816         * lib/unistdio/ulc-asnprintf.c: New file.
92817         * lib/unistdio/ulc-asprintf.c: New file.
92818         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
92819         * lib/unistdio/ulc-printf-parse.c: New file.
92820         * lib/unistdio/ulc-snprintf.c: New file.
92821         * lib/unistdio/ulc-sprintf.c: New file.
92822         * lib/unistdio/ulc-vasnprintf.c: New file.
92823         * lib/unistdio/ulc-vasprintf.c: New file.
92824         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
92825         * lib/unistdio/ulc-vsnprintf.c: New file.
92826         * lib/unistdio/ulc-vsprintf.c: New file.
92827         * lib/unistdio/u8-asnprintf.c: New file.
92828         * lib/unistdio/u8-asprintf.c: New file.
92829         * lib/unistdio/u8-printf-parse.c: New file.
92830         * lib/unistdio/u8-snprintf.c: New file.
92831         * lib/unistdio/u8-sprintf.c: New file.
92832         * lib/unistdio/u8-vasnprintf.c: New file.
92833         * lib/unistdio/u8-vasprintf.c: New file.
92834         * lib/unistdio/u8-vsnprintf.c: New file.
92835         * lib/unistdio/u8-vsprintf.c: New file.
92836         * lib/unistdio/u8-u8-asnprintf.c: New file.
92837         * lib/unistdio/u8-u8-asprintf.c: New file.
92838         * lib/unistdio/u8-u8-snprintf.c: New file.
92839         * lib/unistdio/u8-u8-sprintf.c: New file.
92840         * lib/unistdio/u8-u8-vasnprintf.c: New file.
92841         * lib/unistdio/u8-u8-vasprintf.c: New file.
92842         * lib/unistdio/u8-u8-vsnprintf.c: New file.
92843         * lib/unistdio/u8-u8-vsprintf.c: New file.
92844         * lib/unistdio/u16-asnprintf.c: New file.
92845         * lib/unistdio/u16-asprintf.c: New file.
92846         * lib/unistdio/u16-printf-parse.c: New file.
92847         * lib/unistdio/u16-snprintf.c: New file.
92848         * lib/unistdio/u16-sprintf.c: New file.
92849         * lib/unistdio/u16-vasnprintf.c: New file.
92850         * lib/unistdio/u16-vasprintf.c: New file.
92851         * lib/unistdio/u16-vsnprintf.c: New file.
92852         * lib/unistdio/u16-vsprintf.c: New file.
92853         * lib/unistdio/u16-u16-asnprintf.c: New file.
92854         * lib/unistdio/u16-u16-asprintf.c: New file.
92855         * lib/unistdio/u16-u16-snprintf.c: New file.
92856         * lib/unistdio/u16-u16-sprintf.c: New file.
92857         * lib/unistdio/u16-u16-vasnprintf.c: New file.
92858         * lib/unistdio/u16-u16-vasprintf.c: New file.
92859         * lib/unistdio/u16-u16-vsnprintf.c: New file.
92860         * lib/unistdio/u16-u16-vsprintf.c: New file.
92861         * lib/unistdio/u32-asnprintf.c: New file.
92862         * lib/unistdio/u32-asprintf.c: New file.
92863         * lib/unistdio/u32-printf-parse.c: New file.
92864         * lib/unistdio/u32-snprintf.c: New file.
92865         * lib/unistdio/u32-sprintf.c: New file.
92866         * lib/unistdio/u32-vasnprintf.c: New file.
92867         * lib/unistdio/u32-vasprintf.c: New file.
92868         * lib/unistdio/u32-vsnprintf.c: New file.
92869         * lib/unistdio/u32-vsprintf.c: New file.
92870         * lib/unistdio/u32-u32-asnprintf.c: New file.
92871         * lib/unistdio/u32-u32-asprintf.c: New file.
92872         * lib/unistdio/u32-u32-snprintf.c: New file.
92873         * lib/unistdio/u32-u32-sprintf.c: New file.
92874         * lib/unistdio/u32-u32-vasnprintf.c: New file.
92875         * lib/unistdio/u32-u32-vasprintf.c: New file.
92876         * lib/unistdio/u32-u32-vsnprintf.c: New file.
92877         * lib/unistdio/u32-u32-vsprintf.c: New file.
92878         * tests/unistdio/test-ulc-asnprintf1.c: New file.
92879         * tests/unistdio/test-ulc-asnprintf1.h: New file.
92880         * tests/unistdio/test-ulc-printf1.h: New file.
92881         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
92882         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
92883         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
92884         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
92885         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
92886         * tests/unistdio/test-ulc-vasprintf1.c: New file.
92887         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
92888         * tests/unistdio/test-ulc-vsprintf1.c: New file.
92889         * tests/unistdio/test-u8-asnprintf1.c: New file.
92890         * tests/unistdio/test-u8-asnprintf1.h: New file.
92891         * tests/unistdio/test-u8-printf1.h: New file.
92892         * tests/unistdio/test-u8-vasnprintf1.c: New file.
92893         * tests/unistdio/test-u8-vasnprintf2.c: New file.
92894         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
92895         * tests/unistdio/test-u8-vasnprintf3.c: New file.
92896         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
92897         * tests/unistdio/test-u8-vasprintf1.c: New file.
92898         * tests/unistdio/test-u8-vsnprintf1.c: New file.
92899         * tests/unistdio/test-u8-vsprintf1.c: New file.
92900         * tests/unistdio/test-u16-asnprintf1.c: New file.
92901         * tests/unistdio/test-u16-asnprintf1.h: New file.
92902         * tests/unistdio/test-u16-printf1.h: New file.
92903         * tests/unistdio/test-u16-vasnprintf1.c: New file.
92904         * tests/unistdio/test-u16-vasnprintf2.c: New file.
92905         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
92906         * tests/unistdio/test-u16-vasnprintf3.c: New file.
92907         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
92908         * tests/unistdio/test-u16-vasprintf1.c: New file.
92909         * tests/unistdio/test-u16-vsnprintf1.c: New file.
92910         * tests/unistdio/test-u16-vsprintf1.c: New file.
92911         * tests/unistdio/test-u32-asnprintf1.c: New file.
92912         * tests/unistdio/test-u32-asnprintf1.h: New file.
92913         * tests/unistdio/test-u32-printf1.h: New file.
92914         * tests/unistdio/test-u32-vasnprintf1.c: New file.
92915         * tests/unistdio/test-u32-vasnprintf2.c: New file.
92916         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
92917         * tests/unistdio/test-u32-vasnprintf3.c: New file.
92918         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
92919         * tests/unistdio/test-u32-vasprintf1.c: New file.
92920         * tests/unistdio/test-u32-vsnprintf1.c: New file.
92921         * tests/unistdio/test-u32-vsprintf1.c: New file.
92922         * modules/unistdio/base: New file.
92923         * modules/unistdio/u-printf-args: New file.
92924         * modules/unistdio/ulc-asnprintf: New file.
92925         * modules/unistdio/ulc-asprintf: New file.
92926         * modules/unistdio/ulc-fprintf: New file.
92927         * modules/unistdio/ulc-printf-parse: New file.
92928         * modules/unistdio/ulc-snprintf: New file.
92929         * modules/unistdio/ulc-sprintf: New file.
92930         * modules/unistdio/ulc-vasnprintf: New file.
92931         * modules/unistdio/ulc-vasprintf: New file.
92932         * modules/unistdio/ulc-vfprintf: New file.
92933         * modules/unistdio/ulc-vsnprintf: New file.
92934         * modules/unistdio/ulc-vsprintf: New file.
92935         * modules/unistdio/u8-asnprintf: New file.
92936         * modules/unistdio/u8-asprintf: New file.
92937         * modules/unistdio/u8-printf-parse: New file.
92938         * modules/unistdio/u8-snprintf: New file.
92939         * modules/unistdio/u8-sprintf: New file.
92940         * modules/unistdio/u8-vasnprintf: New file.
92941         * modules/unistdio/u8-vasprintf: New file.
92942         * modules/unistdio/u8-vsnprintf: New file.
92943         * modules/unistdio/u8-vsprintf: New file.
92944         * modules/unistdio/u8-u8-asnprintf: New file.
92945         * modules/unistdio/u8-u8-asprintf: New file.
92946         * modules/unistdio/u8-u8-snprintf: New file.
92947         * modules/unistdio/u8-u8-sprintf: New file.
92948         * modules/unistdio/u8-u8-vasnprintf: New file.
92949         * modules/unistdio/u8-u8-vasprintf: New file.
92950         * modules/unistdio/u8-u8-vsnprintf: New file.
92951         * modules/unistdio/u8-u8-vsprintf: New file.
92952         * modules/unistdio/u16-asnprintf: New file.
92953         * modules/unistdio/u16-asprintf: New file.
92954         * modules/unistdio/u16-printf-parse: New file.
92955         * modules/unistdio/u16-snprintf: New file.
92956         * modules/unistdio/u16-sprintf: New file.
92957         * modules/unistdio/u16-vasnprintf: New file.
92958         * modules/unistdio/u16-vasprintf: New file.
92959         * modules/unistdio/u16-vsnprintf: New file.
92960         * modules/unistdio/u16-vsprintf: New file.
92961         * modules/unistdio/u16-u16-asnprintf: New file.
92962         * modules/unistdio/u16-u16-asprintf: New file.
92963         * modules/unistdio/u16-u16-snprintf: New file.
92964         * modules/unistdio/u16-u16-sprintf: New file.
92965         * modules/unistdio/u16-u16-vasnprintf: New file.
92966         * modules/unistdio/u16-u16-vasprintf: New file.
92967         * modules/unistdio/u16-u16-vsnprintf: New file.
92968         * modules/unistdio/u16-u16-vsprintf: New file.
92969         * modules/unistdio/u32-asnprintf: New file.
92970         * modules/unistdio/u32-asprintf: New file.
92971         * modules/unistdio/u32-printf-parse: New file.
92972         * modules/unistdio/u32-snprintf: New file.
92973         * modules/unistdio/u32-sprintf: New file.
92974         * modules/unistdio/u32-vasnprintf: New file.
92975         * modules/unistdio/u32-vasprintf: New file.
92976         * modules/unistdio/u32-vsnprintf: New file.
92977         * modules/unistdio/u32-vsprintf: New file.
92978         * modules/unistdio/u32-u32-asnprintf: New file.
92979         * modules/unistdio/u32-u32-asprintf: New file.
92980         * modules/unistdio/u32-u32-snprintf: New file.
92981         * modules/unistdio/u32-u32-sprintf: New file.
92982         * modules/unistdio/u32-u32-vasnprintf: New file.
92983         * modules/unistdio/u32-u32-vasprintf: New file.
92984         * modules/unistdio/u32-u32-vsnprintf: New file.
92985         * modules/unistdio/u32-u32-vsprintf: New file.
92986         * modules/unistdio/ulc-asnprintf-tests: New file.
92987         * modules/unistdio/ulc-vasnprintf-tests: New file.
92988         * modules/unistdio/ulc-vasprintf-tests: New file.
92989         * modules/unistdio/ulc-vsnprintf-tests: New file.
92990         * modules/unistdio/ulc-vsprintf-tests: New file.
92991         * modules/unistdio/u8-asnprintf-tests: New file.
92992         * modules/unistdio/u8-vasnprintf-tests: New file.
92993         * modules/unistdio/u8-vasprintf-tests: New file.
92994         * modules/unistdio/u8-vsnprintf-tests: New file.
92995         * modules/unistdio/u8-vsprintf-tests: New file.
92996         * modules/unistdio/u16-asnprintf-tests: New file.
92997         * modules/unistdio/u16-vasnprintf-tests: New file.
92998         * modules/unistdio/u16-vasprintf-tests: New file.
92999         * modules/unistdio/u16-vsnprintf-tests: New file.
93000         * modules/unistdio/u16-vsprintf-tests: New file.
93001         * modules/unistdio/u32-asnprintf-tests: New file.
93002         * modules/unistdio/u32-vasnprintf-tests: New file.
93003         * modules/unistdio/u32-vasprintf-tests: New file.
93004         * modules/unistdio/u32-vsnprintf-tests: New file.
93005         * modules/unistdio/u32-vsprintf-tests: New file.
93006         * MODULES.html.sh (Unicode string functions): Add the new modules.
93008 2007-07-01  Bruno Haible  <bruno@clisp.org>
93010         * lib/sprintf.c (sprintf): Limit the available length estimation,
93011         to avoid address wraparound.
93012         * lib/vsprintf.c (vsprintf): Likewise.
93013         * modules/sprintf-posix (Dependencies): Add stdint.
93014         * modules/vsprintf-posix (Dependencies): Likewise.
93016 2007-07-01  Bruno Haible  <bruno@clisp.org>
93018         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
93019         Windows PATH as well. Conservative double-quoting. Comments.
93021 2007-07-01  Bruno Haible  <bruno@clisp.org>
93022             Eric Blake  <ebb9@byu.net>
93023             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93025         * gnulib-tool (self_abspathname): Fix algorithm to cope with
93026         empty components in $PATH, denoting '.'.
93028 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93030         * gnulib-tool: Fix indentation.
93031         (func_create_megatestdir): Likewise.
93032         Report by Bruno Haible.
93034 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93036         Sync from Automake.
93037         * build-aux/gnupload: Fix shell portability issues with for loops.
93038         Report by Karl Berry.
93040 2007-06-29  Simon Josefsson  <simon@josefsson.org>
93042         * build-aux/maint.mk (POURL): Use translationproject.org.
93044 2007-06-27  Simon Josefsson  <simon@josefsson.org>
93045             Bruno Haible  <bruno@clisp.org>
93047         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
93048         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
93049         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
93050         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
93051         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
93053 2007-06-27  Bruno Haible  <bruno@clisp.org>
93055         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
93056         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
93058 2007-06-26  Karl Berry  <karl@gnu.org>
93060         * MODULES.html.sh: remove xreadlink-with-size.
93062 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
93064         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
93065         method that I hope also handles the double-include problem noted
93066         by Bruno Haible in
93067         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
93069 2007-06-23  Bruno Haible  <bruno@clisp.org>
93071         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93072         Don't let the 'mostlyclean' target fail if the last subdirectory could
93073         not be removed.
93074         Reported by Karl Berry.
93076 2007-06-23  Bruno Haible  <bruno@clisp.org>
93078         * gnulib-tool (echo): Add a speedier workaround for ksh.
93079         * tests/test-echo.sh: Likewise.
93081 2007-06-23  Bruno Haible  <bruno@clisp.org>
93083         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
93084         * tests/test-echo.sh: Likewise.
93086 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93088         * gnulib-tool (IFS): Initialize early, so we don't set it to
93089         empty later.
93090         (self_abspathname): Rewrite algorithm to set it, reindent.
93091         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
93092         (func_create_megatestdir): Merge some sed scripts.
93094 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
93096         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
93097         exposed by Sun Studio 11 cc on Solaris 8.
93099 2007-06-22  Bruno Haible  <bruno@clisp.org>
93101         * gnulib-tool (echo): Ensure the echo primitive does not interpret
93102         backslashes.
93103         * tests/test-echo.sh: New file.
93105 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93107         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
93108         simplify `sed_replace_build_aux' scripts, they are portable but
93109         echoing them with `echo' is not.
93110         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
93112 2007-06-21  Karl Berry  <karl@gnu.org>
93114         * config/srclist.txt: guess we can't handle the licenses via
93115         srclist at the moment.
93117 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
93119         * MODULES.html.sh: Add include_next.
93120         * modules/include_next: New file.
93122 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
93124         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
93125         INCLUDE_NEXT.
93126         (gl_CHECK_NEXT_HEADERS): New macro.
93127         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
93128         the obsolescent gl_ABSOLUTE_HEADER.
93129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
93130         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
93131         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
93132         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
93133         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
93134         * m4/math_h.m4 (gl_MATH_H): Likewise.
93135         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
93136         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
93137         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
93138         * m4/stdint.m4 (gl_STDINT_H): Likewise.
93139         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
93140         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
93141         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
93142         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
93143         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
93144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
93145         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
93146         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
93147         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
93148         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
93149         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
93150         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
93151         * m4/inttypes.m4 (gl_INTTYPES_H): Define
93152         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
93153         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
93154         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
93155         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
93156         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
93157         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
93158         * lib/float_.h: Likewise.
93159         * lib/inttypes_.h: Likewise.
93160         * lib/math_.h: Likewise.
93161         * lib/search_.h: Likewise.
93162         * lib/signal_.h: Likewise.
93163         * lib/stdint_.h: Likewise.
93164         * lib/stdio_.h: Likewise.
93165         * lib/stdlib_.h: Likewise.
93166         * lib/string_.h: Likewise.
93167         * lib/sys_stat_.h: Likewise.
93168         * lib/sys_time_.h: Likewise.
93169         * lib/time_.h: Likewise.
93170         * lib/unistd_.h: Likewise.
93171         * lib/wchar_.h: Likewise.
93172         * lib/wctype_.h: Likewise.
93173         * lib/dirent_.h: Likewise.
93174         * lib/iconv_.h: Likewise.
93175         * lib/locale_.h: Likewise.
93176         * lib/netinet_in_.h: Likewise.
93177         * lib/sys_select_.h: Likewise.
93178         * lib/sys_socket_.h: Likewise.
93179         * lib/sysexits_.h: Likewise.
93180         * modules/fcntl (Depends-on): Depend on include_next, not
93181         absolute_header.
93182         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
93183         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
93184         * modules/fchdir: Likewise.
93185         * modules/float: Likewise.
93186         * modules/iconv_open: Likewise.
93187         * modules/inttypes: Likewise.
93188         * modules/locale: Likewise.
93189         * modules/math: Likewise.
93190         * modules/netinet_in: Likewise.
93191         * modules/search: Likewise.
93192         * modules/signal: Likewise.
93193         * modules/stdint: Likewise.
93194         * modules/stdio: Likewise.
93195         * modules/stdlib: Likewise.
93196         * modules/string: Likewise.
93197         * modules/sys_select: Likewise.
93198         * modules/sys_socket: Likewise.
93199         * modules/sys_stat: Likewise.
93200         * modules/sys_time: Likewise.
93201         * modules/sysexits: Likewise.
93202         * modules/time: Likewise.
93203         * modules/unistd: Likewise.
93204         * modules/wchar: Likewise.
93205         * modules/wctype: Likewise.
93206         * modules/sys_stat: Change maintainer to "all".
93207         * modules/unistd: Likewise.
93209 2007-06-20  Karl Berry  <karl@gnu.org>
93211         * config/srclist.txt: track www changes in license files.
93213 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
93215         * build-aux/bootstrap: Remove stray dot.
93216         Make sure build_aux settings are honored when linking
93217         gnulib_extra_files.
93219 2007-06-19  Eric Blake  <ebb9@byu.net>
93221         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
93222         Allow compilation on cygwin.
93224 2007-06-19  Jim Meyering  <jim@meyering.net>
93226         xreadlink-with-size: Remove module.  No longer used.
93227         Ex-callers now use xreadlink or mreadlink-with-size.
93228         * modules/xreadlink-with-size: Remove module.
93229         * lib/xreadlink-with-size.c: Remove file.
93230         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
93231         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
93232         just before the function definition *is* accurate.
93234         Eliminate one way canonicalize_filename_mode could exit.
93235         * lib/canonicalize.c (canonicalize_filename_mode):
93236         Use mreadlink_with_size, not xreadlink_with_size.
93238 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
93240         Detect porting problems to FreeBSD/arm, which has time_t wider than
93241         long int.  Original problem reported for GNU diff by Xin Li in
93242         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
93243         * modules/getdate (Depends-on): Add intprops, verify.
93244         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
93245         is an integer type no wider than long int.
93247 2007-06-18  Jim Meyering  <jim@meyering.net>
93249         New module: mreadlink-with-size.
93250         * MODULES.html.sh: Add mreadlink-with-size.
93251         * modules/mreadlink-with-size: New module
93252         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
93253         not xreadlink-with-size.
93254         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
93256 2007-06-16  Bruno Haible  <bruno@clisp.org>
93258         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
93259         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
93260         Reported by Gary V. Vaughan <gary@gnu.org>.
93262 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
93264         Revamp lchown so that it lives in unistd.h where it belongs.
93265         * lib/lchown.h: Remove.
93266         * lib/dirchownmod.c: Don't include lib/lchown.h.
93267         * lib/fchownat.c: Likewise.
93268         * lib/openat.c: Likewise.
93269         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
93270         does not follow symlinks.
93271         (EOPNOTSUPP): Define if not defined.
93272         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
93273         is defined to 0.
93274         (lchown): New decl.
93275         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
93276         Do not check for lchown decl.
93277         Set REPLACE_LCHOWN.
93278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
93279         REPLACE_LCHOWN.
93280         * modules/chown: Make it clear it follows symlinks.
93281         * modules/lchown: Make it clear it doesn't follow symlinks.
93282         (Files): Remove lib/lchown.h
93283         (Depends-on): Add unistd.
93284         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
93285         (Include): Include <unistd.h>, not "lchown.h".
93286         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
93287         REPLACE_LCHOWN.
93289 2007-06-15  Jim Meyering  <jim@meyering.net>
93291         Change license (GPL to LGPL) of fsusage and dependents.
93292         * modules/fsusage (License): Change to LGPL.
93293         * modules/full-read (License): Likewise.
93294         * modules/full-write (License): Likewise.
93295         * modules/safe-read (License): Likewise.
93296         * modules/safe-write (License): Likewise.
93298 2007-06-14  Ben Pfaff  <blp@gnu.org>
93300         Missing part of allocsa -> malloca transition.
93301         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
93302         gl_MALLOCA.
93304 2007-06-12  Bruno Haible  <bruno@clisp.org>
93306         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
93307         to ia64, x86_64, i386.
93308         Reported by Eric Blake.
93310 2007-06-12  Bruno Haible  <bruno@clisp.org>
93312         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
93313         cross-compiling to x86_64.
93315 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
93317         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
93318         glitch reported by Ralf Wildenhues in
93319         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
93321         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
93322         Vin Shelton.
93324 2007-06-11  Bruno Haible  <bruno@clisp.org>
93326         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
93327         replacement string.
93328         Reported by Eric Blake.
93330 2007-06-10  Bruno Haible  <bruno@clisp.org>
93332         Prepare vasnprintf code for use with Unicode strings.
93333         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
93334         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
93335         TYPE_U32_STRING.
93336         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
93337         a_u32_string variants.
93338         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
93339         * lib/printf-args.c: Don't include config.h and the specification
93340         header if PRINTF_FETCHARGS is already defined.
93341         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
93342         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
93343         TYPE_U16_STRING, TYPE_U32_STRING.
93344         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
93345         u16_directive, u16_directives, u32_directive, u32_directives): New
93346         types.
93347         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
93348         New declarations.
93349         * lib/printf-parse.c: Don't include config.h and the specification
93350         header if PRINTF_PARSE is already defined. Eliminate the set of
93351         parameters for WIDE_CHAR_VERSION; the user of this file must provide
93352         them now. Include c-ctype.h.
93353         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
93354         directive and CHAR_T_ONLY_ASCII.
93355         * lib/vasnprintf.c: Don't include config.h and the specification header
93356         if VASNPRINTF is already defined.
93357         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
93358         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
93359         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
93360         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
93361         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
93362         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
93363         code accordingly.
93364         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
93365         pad_ourselves also in this case, with the 'c' and 's' directives, and
93366         with a different notion of "width".
93367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
93369 2007-06-10  Bruno Haible  <bruno@clisp.org>
93371         * modules/unistr/u32-mbsnlen: New file.
93372         * lib/unistr/u32-mbsnlen.c: New file.
93374         * modules/unistr/u16-mbsnlen: New file.
93375         * lib/unistr/u16-mbsnlen.c: New file.
93377         * modules/unistr/u8-mbsnlen: New file.
93378         * lib/unistr/u8-mbsnlen.c: New file.
93380         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
93381         declarations.
93383 2007-06-10  Bruno Haible  <bruno@clisp.org>
93385         * lib/string_.h (mbsnlen): New declaration.
93386         * lib/mbsnlen.c: New file.
93387         * m4/mbsnlen.m4: New file.
93388         * modules/mbsnlen: New file.
93389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
93390         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
93391         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
93393 2007-06-10  Bruno Haible  <bruno@clisp.org>
93395         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
93397 2007-06-10  Bruno Haible  <bruno@clisp.org>
93399         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
93400         * lib/mbuiter.h: Likewise.
93402 2007-06-10  Bruno Haible  <bruno@clisp.org>
93404         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
93405         declaration.
93407 2007-06-10  Karl Berry  <karl@gnu.org>
93409         * config/srclist.txt: remove gettext entries, Bruno prefers
93410         to update individually.
93412 2007-06-10  Bruno Haible  <bruno@clisp.org>
93414         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
93415         'maxlen'. Ensure only length + width bytes are allocated, not
93416         length + 1 + width.
93418 2007-06-09  Bruno Haible  <bruno@clisp.org>
93420         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
93421         (CHAR_T): Remove macro.
93422         (VASNPRINTF): Update.
93424 2007-06-09  Bruno Haible  <bruno@clisp.org>
93426         * MODULES.html.sh (Unicode string functions): Add the new modules.
93428         * modules/uniconv/u32-conv-to-enc: New file.
93429         * lib/uniconv/u32-conv-to-enc.c: New file.
93430         * modules/uniconv/u32-conv-to-enc-tests: New file.
93431         * tests/uniconv/test-u32-conv-to-enc.c: New file.
93433         * modules/uniconv/u16-conv-to-enc: New file.
93434         * lib/uniconv/u16-conv-to-enc.c: New file.
93435         * lib/uniconv/u-conv-to-enc.h: New file.
93436         * modules/uniconv/u16-conv-to-enc-tests: New file.
93437         * tests/uniconv/test-u16-conv-to-enc.c: New file.
93439         * modules/uniconv/u8-conv-to-enc: New file.
93440         * lib/uniconv/u8-conv-to-enc.c: New file.
93441         * modules/uniconv/u8-conv-to-enc-tests: New file.
93442         * tests/uniconv/test-u8-conv-to-enc.c: New file.
93444         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
93445         u32_conv_to_encoding): New declarations.
93447 2007-06-09  Bruno Haible  <bruno@clisp.org>
93449         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
93451 2007-06-09  Bruno Haible  <bruno@clisp.org>
93453         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
93454         * modules/malloca: Renamed from modules/allocsa, updated.
93455         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
93456         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
93457         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
93458         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
93459         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
93460         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
93461         * modules/xmalloca: Renamed from modules/xallocsa, updated.
93462         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
93463         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
93464         * modules/c-strcasestr (Depends-on): Update.
93465         * lib/c-strcasestr.c: Update.
93466         * modules/c-strstr (Depends-on): Update.
93467         * lib/c-strstr.c: Update.
93468         * modules/canonicalize-lgpl (Depends-on): Update.
93469         * lib/canonicalize-lgpl.c: Update.
93470         * modules/clean-temp (Depends-on): Update.
93471         * lib/clean-temp.c: Update.
93472         * modules/csharpcomp (Depends-on): Update.
93473         * lib/csharpcomp.c: Update.
93474         * modules/csharpexec (Depends-on): Update.
93475         * lib/csharpexec.c: Update.
93476         * modules/javacomp (Depends-on): Update.
93477         * lib/javacomp.c: Update.
93478         * modules/javaexec (Depends-on): Update.
93479         * lib/javaexec.c: Update.
93480         * modules/mbscasestr (Depends-on): Update.
93481         * lib/mbscasestr.c: Update.
93482         * modules/mbsstr (Depends-on): Update.
93483         * lib/mbsstr.c: Update.
93484         * modules/setenv (Depends-on): Update.
93485         * lib/setenv.c: Update.
93486         * modules/strcasestr (Depends-on): Update.
93487         * lib/strcasestr.c: Update.
93488         * modules/striconveha (Depends-on): Update.
93489         * lib/striconveha.c: Update.
93490         * modules/relocatable-prog-wrapper (Files): Update.
93491         * lib/relocwrapper.c: Update.
93492         * build-aux/install-reloc: Update.
93493         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
93495 2007-06-08  Bruno Haible  <bruno@clisp.org>
93497         Port to uClibc.
93498         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
93499         * lib/fpurge.c (fpurge): Likewise.
93500         * lib/freading.c (freading): Likewise.
93501         * lib/fseeko.c (rpl_fseeko): Likewise.
93502         * lib/fseterr.c (fseterr): Likewise.
93503         * lib/fwriting.c (fwriting): Likewise.
93504         * tests/test-fflush.c (main): Avoid a failure on uClibc.
93506 2007-06-08  Bruno Haible  <bruno@clisp.org>
93508         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
93509         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
93510         * modules/gettext (Files): Add m4/intlmacosx.m4.
93512 2007-06-07  Bruno Haible  <bruno@clisp.org>
93514         * modules/localename-tests: New file.
93515         * tests/test-localename.c: New file.
93517         New module 'localename'.
93518         * lib/localename.h: New file.
93519         * lib/localename.c: New file, from GNU gettext.
93520         * m4/localename.m4: New file.
93521         * modules/localename: New file.
93523 2007-06-07  Bruno Haible  <bruno@clisp.org>
93525         Work around the lack of <wchar.h> on some builds of uClibc.
93526         * doc/headers/wchar.texi: Update.
93527         * lib/wchar_.h: Include <wchar.h> only if it exists.
93528         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
93529         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
93530         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
93531         doesn't exist.
93532         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
93533         * modules/mbfile (Depends-on): Add wchar.
93534         * modules/mbiter (Depends-on): Likewise.
93535         * modules/mbuiter (Depends-on): Likewise.
93536         Reported by Simon Josefsson.
93538 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
93540         Work around problem reported by Steven M. Schweda in
93541         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
93542         Tru64 5.1B with the Compaq compiler environment installed declares
93543         an 'isblank' function but does not define it in the C library.
93544         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
93545         * lib/regex_internal.h (isblank): Likewise.
93546         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
93547         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
93549 2007-06-05  Bruno Haible  <bruno@clisp.org>
93551         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
93552         ia64.
93553         * modules/printf-safe: New file.
93554         * modules/fprintf-posix (Depends-on): Add printf-safe.
93555         * modules/printf-posix (Depends-on): Likewise.
93556         * modules/snprintf-posix (Depends-on): Likewise.
93557         * modules/sprintf-posix (Depends-on): Likewise.
93558         * modules/vasnprintf-posix (Depends-on): Likewise.
93559         * modules/vasprintf-posix (Depends-on): Likewise.
93560         * modules/vfprintf-posix (Depends-on): Likewise.
93561         * modules/vprintf-posix (Depends-on): Likewise.
93562         * modules/vsnprintf-posix (Depends-on): Likewise.
93563         * modules/vsprintf-posix (Depends-on): Likewise.
93564         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
93565         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
93566         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
93567         "no" on i386, x86_64, ia64.
93568         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
93569         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
93570         on i386, x86_64, ia64.
93571         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
93572         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
93573         on i386, x86_64, ia64.
93574         * tests/test-vasnprintf-posix.c: Include float.h.
93575         (LDBL80_WORDS): New macro.
93576         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
93577         on i386, x86_64, ia64.
93578         * tests/test-vasprintf-posix.c: Include float.h.
93579         (LDBL80_WORDS): New macro.
93580         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
93581         on i386, x86_64, ia64.
93582         * tests/test-snprintf-posix.c: Include float.h.
93583         * tests/test-sprintf-posix.c: Likewise.
93584         * tests/test-vsnprintf-posix.c: Likewise.
93585         * tests/test-vsprintf-posix.c: Likewise.
93587 2007-06-05  Bruno Haible  <bruno@clisp.org>
93589         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
93590         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
93591         non-IEEE numbers on i386, x86_64, ia64.
93592         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
93593         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
93594         * tests/test-isnanl.h: Include float.h.
93595         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
93597 2007-06-05  Bruno Haible  <bruno@clisp.org>
93599         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
93600         also the %a / %A. Handle the %a / %A code before this extra handling.
93602 2007-06-05  Bruno Haible  <bruno@clisp.org>
93604         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
93605         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
93607 2007-06-05  Bruno Haible  <bruno@clisp.org>
93609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
93610         typo in variable name.
93612 2007-06-05  Eric Blake  <ebb9@byu.net>
93614         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
93615         Reported by Simon Josefsson.
93617 2007-06-04  Bruno Haible  <bruno@clisp.org>
93619         Avoid test failures on some PowerPC platforms.
93620         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
93621         Define differently for PowerPC.
93622         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
93623         Reported by Gary V. Vaughan <gary@gnu.org>.
93625 2007-06-02  Bruno Haible  <bruno@clisp.org>
93627         Fix test-stdint failure on FreeBSD/ia64.
93628         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
93629         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
93630         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
93631         * doc/headers/stdint.texi: Update.
93633 2007-06-01  Bruno Haible  <bruno@clisp.org>
93635         * tests/test-binary-io.c (main): Pass a third argument to open().
93636         Reported by Gary V. Vaughan <gary@gnu.org>.
93638 2007-06-01  Bruno Haible  <bruno@clisp.org>
93640         * doc/functions/frexpl.texi: Update for mingw.
93642 2007-06-01  Bruno Haible  <bruno@clisp.org>
93644         * tests/test-lseek.c (main): Disable test of errno for invalid third
93645         argument.
93646         * doc/functions/lseek.texi: Update.
93647         Reported by Gary V. Vaughan <gary@gnu.org>.
93649 2007-05-28  Bruno Haible  <bruno@clisp.org>
93651         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
93653 2007-05-31  Eric Blake  <ebb9@byu.net>
93655         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
93656         cross compiling.
93658 2007-05-30  Eric Blake  <ebb9@byu.net>
93659         and Bruno Haible  <bruno@clisp.org>
93661         Work around mingw test failures exposed by m4-1.4.9b.
93662         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
93663         * tests/test-unistd.c: Disable uid_t and git_t tests for the
93664         moment.
93666 2007-05-30  Bruno Haible  <bruno@clisp.org>
93668         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
93669         assuming that they are closed. Needed on HP-UX 11.
93671 2007-05-29  Bruno Haible  <bruno@clisp.org>
93673         Fix a problem with #include_next.
93674         * lib/dirent_.h: Split the double-inclusion guard.
93675         * lib/fcntl_.h: Likewise.
93676         * lib/float_.h: Likewise.
93677         * lib/iconv_.h: Likewise.
93678         * lib/inttypes_.h: Likewise.
93679         * lib/locale_.h: Likewise.
93680         * lib/math_.h: Likewise.
93681         * lib/netinet_in_.h: Likewise.
93682         * lib/search_.h: Likewise.
93683         * lib/signal_.h: Likewise.
93684         * lib/stdint_.h: Likewise.
93685         * lib/stdio_.h: Likewise.
93686         * lib/stdlib_.h: Likewise.
93687         * lib/string_.h: Likewise.
93688         * lib/sys_select_.h: Likewise.
93689         * lib/sys_socket_.h: Likewise.
93690         * lib/sys_stat_.h: Likewise.
93691         * lib/sys_time_.h: Likewise.
93692         * lib/sysexits_.h: Likewise.
93693         * lib/time_.h: Likewise.
93694         * lib/unistd_.h: Likewise.
93695         * lib/wchar_.h: Likewise.
93696         * lib/wctype_.h: Likewise.
93698 2007-05-29  Bruno Haible  <bruno@clisp.org>
93700         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
93701         for the moment.
93703 2007-05-29  Bruno Haible  <bruno@clisp.org>
93705         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
93706         invocation.
93707         Reported by Eric Blake.
93709 2007-05-29  Bruno Haible  <bruno@clisp.org>
93711         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
93712         compiling case.
93714 2007-05-29  Eric Blake  <ebb9@byu.net>
93715             Bruno Haible  <bruno@clisp.org>
93717         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
93718         cross compiles.
93720 2007-05-28  Eric Blake  <ebb9@byu.net>
93722         * modules/closein-tests (test_closein_LDADD): Support test on
93723         cygwin with libtool.
93725 2007-05-28  Bruno Haible  <bruno@clisp.org>
93727         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
93728         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
93729         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
93730         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
93731         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
93732         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
93733         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
93734         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
93735         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
93737 2007-05-28  Eric Blake  <ebb9@byu.net>
93739         Unconditionally include <config.h> in unit tests.
93740         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
93741         * tests/test-allocsa.c, tests/test-arcfour.c,
93742         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
93743         tests/test-array_list.c, tests/test-array_oset.c,
93744         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
93745         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
93746         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
93747         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
93748         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
93749         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
93750         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
93751         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
93752         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
93753         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
93754         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
93755         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
93756         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
93757         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
93758         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
93759         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
93760         test-md5.c, test-memmem.c, test-printf-posix.c,
93761         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
93762         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
93763         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
93764         test-strcasestr.c, test-striconv.c, test-striconveh.c,
93765         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
93766         test-vasnprintf-posix2.c, test-vasnprintf.c,
93767         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
93768         test-vfprintf-posix.c, test-vprintf-posix.c,
93769         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
93770         test-xvasprintf.c: Likewise.
93772 2007-05-28  Bruno Haible  <bruno@clisp.org>
93774         * gnulib-tool (func_import): Remember the --with-tests command-line
93775         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
93776         Reported by Eric Blake.
93778 2007-05-28  Bruno Haible  <bruno@clisp.org>
93780         * modules/ftell-tests: New file.
93781         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
93782         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
93784         * lib/ftell.c: New file.
93785         * modules/ftell: New file.
93786         * m4/ftell.m4: New file.
93787         * doc/functions/ftell.texi: Update.
93788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
93789         REPLACE_FTELL.
93790         * lib/stdio_.h (rpl_ftell): New declaration.
93791         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
93792         REPLACE_FTELL.
93794 2007-05-28  Eric Blake  <ebb9@byu.net>
93796         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
93798 2007-05-28  Bruno Haible  <bruno@clisp.org>
93800         * modules/fseek-tests: New file.
93801         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
93802         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
93804         * lib/fseek.c: New file.
93805         * modules/fseek: New file.
93806         * m4/fseek.m4: New file.
93807         * doc/functions/fseek.texi: Update.
93808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
93809         REPLACE_FSEEK.
93810         * lib/stdio_.h (rpl_fseek): New declaration.
93811         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
93812         REPLACE_FSEEK.
93814 2007-05-28  Bruno Haible  <bruno@clisp.org>
93816         * lib/stdio_.h (fflush): More comments.
93818 2007-05-28  Bruno Haible  <bruno@clisp.org>
93820         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
93821         runtime test.
93823 2007-05-28  Eric Blake  <ebb9@byu.net>
93825         Improve lseek module.
93826         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
93827         * lib/unistd_.h (lseek): Scale back link warning message.
93828         * tests/test-lseek.c: Beef up test.
93829         * tests/test-lseek.sh: Exercise more facets of lseek.
93830         Reported by Bruno Haible.
93832 2007-05-28  Bruno Haible  <bruno@clisp.org>
93834         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
93835         to define.
93837 2007-05-27  Bruno Haible  <bruno@clisp.org>
93839         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
93841 2007-05-27  Bruno Haible  <bruno@clisp.org>
93843         * modules/openmp: New file.
93844         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
93845         Noah Misch.
93847 2007-05-26  Bruno Haible  <bruno@clisp.org>
93849         * modules/chdir-long (Depends-on): Add fchdir.
93850         * modules/chdir-safer (Depends-on): Likewise.
93851         * modules/fts (Depends-on): Likewise.
93852         * modules/fts-lgpl (Depends-on): Likewise.
93853         * modules/openat (Depends-on): Likewise.
93854         * modules/savewd (Depends-on): Likewise.
93856 2007-05-24  Eric Blake  <ebb9@byu.net>
93858         Fix lseek on mingw.
93859         * modules/lseek: New module.
93860         * m4/lseek.m4: New file.
93861         * lib/lseek.c: New file.
93862         * modules/lseek-tests: New file.
93863         * tests/test-lseek.c: New file.
93864         * tests/test-lseek.sh: New file.
93865         * MODULES.html.sh: Document lseek module.
93866         * modules/fflush (Depends-on): Add lseek, fseeko.
93867         * modules/fseeko (Depends-on): Likewise.
93868         * modules/ftello (Depends-on): Likewise.
93869         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
93870         broken.
93871         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
93872         broken.
93873         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
93874         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
93875         * lib/ftello.c (rpl_ftello): Likewise.
93876         * tests/test-fseeko.c (main): Test this.
93877         * tests/test-fseeko.sh: Likewise.
93878         * tests/test-ftello.c (main): Likewise.
93879         * tests/test-ftello.sh: Likewise.
93880         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
93881         implies replacing fseek.
93882         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
93883         HAVE_FTELLO.
93884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
93885         * modules/unistd (Makefile.am): Likewise.
93886         * lib/unistd_.h (lseek): Declare a replacement.
93887         * doc/functions/lseek.texi (lseek): Document this fix.
93888         * doc/functions/fseek.texi (fseek): Likewise.
93889         * doc/functions/ftell.texi (ftell): Likewise.
93891 2007-05-24  Bruno Haible  <bruno@clisp.org>
93893         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
93894         in the printed representation of a NaN.
93895         * tests/test-vasprintf-posix.c (test_function): Likewise.
93896         * tests/test-snprintf-posix.h (test_function): Likewise.
93897         * tests/test-sprintf-posix.h (test_function): Likewise.
93898         Reported by Eric Blake.
93900 2007-05-23  Eric Blake  <ebb9@byu.net>
93902         Fix fseeko/ftello on cygwin 1.5.24.
93903         * doc/functions/fseeko.texi (fseeko): Document the fix.
93904         * doc/functions/ftello.texi (ftello): Document the fix.
93905         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
93906         * doc/functions/stdout.text (stdout): New file.
93907         * doc/functions/stderr.text (stderr): New file.
93908         * doc/gnulib.texi (Function Substitutes): Use new files.
93909         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
93910         prior to 1.7.0.
93911         * tests/test-ftello.c (main): Likewise for ftello.
93912         * tests/test-fseeko.sh: New file.
93913         * tests/test-ftello.sh: New file.
93914         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
93915         with seekable stdin.
93916         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
93917         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
93918         (gl_REPLACE_FSEEKO): New macro.
93919         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
93920         * modules/fseeko (Files): Distribute fseeko.c.
93921         * modules/ftello (Files): Distribute ftello.c.
93922         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
93923         mode.
93924         * lib/ftello.c (rpl_ftello): New file.
93925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
93926         fseeko, ftello.
93927         (gl_STDIN_LARGE_OFFSET): New macro.
93928         * modules/stdio (Makefile.am): Perform the replacement.
93929         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
93931 2007-05-23  Bruno Haible  <bruno@clisp.org>
93933         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
93934         GNULIB_POSIXCHECK is defined.
93936 2007-05-21  Bruno Haible  <bruno@clisp.org>
93938         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
93939         Check also the output for NaN arguments. When cross-compiling, guess
93940         no on IRIX.
93941         * lib/vasnprintf.c: Update comments.
93942         * tests/test-vasnprintf-posix.c (strisnan): New function.
93943         (test_function): Use it.
93944         * tests/test-vasprintf-posix.c (strisnan): New function.
93945         (test_function): Use it.
93946         * tests/test-snprintf-posix.h (strisnan): New function.
93947         (test_function): Use it.
93948         * tests/test-sprintf-posix.h (strisnan): New function.
93949         (test_function): Use it.
93950         Reported by Eric Blake.
93952 2007-05-20  Bruno Haible  <bruno@clisp.org>
93954         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
93955         numbers that fails on BeOS.
93956         * doc/functions/frexpl.texi: Update.
93958 2007-05-20  Jim Meyering  <jim@meyering.net>
93960         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
93961         forced upon us by glibc-2.6.
93963 2007-05-20  Bruno Haible  <bruno@clisp.org>
93965         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
93966         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
93967         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
93968         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
93969         NEED_PRINTF_INFINITE.
93970         (is_infinitel): New function.
93971         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
93972         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
93973         gl_PREREQ_VASNPRINTF_INFINITE.
93974         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
93975         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93976         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
93977         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
93978         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
93979         gl_PREREQ_VASNPRINTF_INFINITE.
93980         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93981         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93982         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93983         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93984         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93986         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93987         * doc/functions/fprintf.texi: Update.
93988         * doc/functions/printf.texi: Update.
93989         * doc/functions/snprintf.texi: Update.
93990         * doc/functions/sprintf.texi: Update.
93991         * doc/functions/vfprintf.texi: Update.
93992         * doc/functions/vprintf.texi: Update.
93993         * doc/functions/vsnprintf.texi: Update.
93994         * doc/functions/vsprintf.texi: Update.
93996 2007-05-20  Bruno Haible  <bruno@clisp.org>
93998         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
93999         was not found in libc.
94000         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
94002 2007-05-20  Bruno Haible  <bruno@clisp.org>
94004         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
94005         printed as "-nan" instead of "nan".
94006         * tests/test-vasprintf-posix.c (test_function): Likewise.
94007         * tests/test-snprintf-posix.h (test_function): Likewise.
94008         * tests/test-sprintf-posix.h (test_function): Likewise.
94009         Needed for HP-UX 11.
94011 2007-05-20  Jim Meyering  <jim@meyering.net>
94013         Fix buggy test for the fchownat-deref bug.
94014         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
94015         symlink required for the run-test.  Without it, this test would
94016         always declare that fchownat doesn't work, and client code would
94017         unnecessarily use the replacement function with fixed libc.
94018         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
94019         Reported by Greg Schafer.
94021 2007-05-19  Bruno Haible  <bruno@clisp.org>
94023         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
94024         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
94025         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
94026         Needed for IRIX 6.5 and Solaris 2.5.1.
94028 2007-05-19  Bruno Haible  <bruno@clisp.org>
94030         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
94031         (test_function): Skip tests involving -0.0 on platforms where
94032         -0.0 = 0.0.
94033         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
94034         (test_function): Skip tests involving -0.0 on platforms where
94035         -0.0 = 0.0.
94036         * tests/test-snprintf-posix.h (have_minus_zero): New function.
94037         (test_function): Skip tests involving -0.0 on platforms where
94038         -0.0 = 0.0.
94039         * tests/test-sprintf-posix.h (have_minus_zero): New function.
94040         (test_function): Skip tests involving -0.0 on platforms where
94041         -0.0 = 0.0.
94042         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
94043         tests.
94044         * tests/test-printf-posix.h (test_function): Likewise.
94045         * tests/test-printf-posix.output: Remove all -0.0 related results.
94046         Needed for IRIX 6.5.
94048 2007-05-19  Bruno Haible  <bruno@clisp.org>
94050         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
94051         printed as "nan0x7fffffff" instead of "nan".
94052         * tests/test-vasprintf-posix.c (test_function): Likewise.
94053         * tests/test-snprintf-posix.h (test_function): Likewise.
94054         * tests/test-sprintf-posix.h (test_function): Likewise.
94055         * tests/test-fprintf-posix.h (NaN): Remove macro.
94056         (test_function): Remove all NaN related tests.
94057         * tests/test-printf-posix.h (NaN): Remove macro.
94058         (test_function): Remove all NaN related tests.
94059         * tests/test-printf-posix.output: Remove all NaN related results.
94060         Needed for IRIX 6.5.
94062 2007-05-19  Bruno Haible  <bruno@clisp.org>
94064         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
94065         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
94067 2007-05-19  Bruno Haible  <bruno@clisp.org>
94069         * lib/float_.h: New file.
94070         * m4/float_h.m4: New file.
94071         * modules/float: New file.
94072         * modules/isnanl (Dependencies): Add float.
94073         * modules/isnanl-nolibm (Dependencies): Likewise.
94074         * modules/mathl (Dependencies): Likewise.
94075         * modules/printf-frexpl (Dependencies): Likewise.
94076         * modules/signbit (Dependencies): Likewise.
94077         * modules/vasnprintf (Dependencies): Likewise.
94078         * doc/headers/float.texi: Update.
94080 2007-05-19  Jim Meyering  <jim@meyering.net>
94082         * lib/utimens.c (gl_futimens): Rename from futimens,
94083         now that glibc-2.6 declares futimens.
94084         * lib/utimens.h: Likewise.
94086 2007-05-19  Bruno Haible  <bruno@clisp.org>
94088         Avoid test failures on mingw.
94089         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
94090         * tests/test-printf-posix.sh: Likewise.
94091         * tests/test-vfprintf-posix.sh: Likewise.
94092         * tests/test-vprintf-posix.sh: Likewise.
94094 2007-05-19  Bruno Haible  <bruno@clisp.org>
94096         Fix *printf result for NaN, Inf, -0.0 on mingw.
94097         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
94098         * lib/vasnprintf.c: Include math.h and isnan.h.
94099         (is_infinite_or_zero): New function.
94100         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
94101         values in the %f, %F, %e, %E, %g, %G directives.
94102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
94103         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
94104         gl_PRINTF_INFINITE and test its result. Invoke
94105         gl_PREREQ_VASNPRINTF_INFINITE.
94106         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
94107         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
94108         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94109         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
94110         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
94111         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94112         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
94113         * doc/functions/fprintf.texi: Update.
94114         * doc/functions/printf.texi: Update.
94115         * doc/functions/snprintf.texi: Update.
94116         * doc/functions/sprintf.texi: Update.
94117         * doc/functions/vfprintf.texi: Update.
94118         * doc/functions/vprintf.texi: Update.
94119         * doc/functions/vsnprintf.texi: Update.
94120         * doc/functions/vsprintf.texi: Update.
94122 2007-05-19  Bruno Haible  <bruno@clisp.org>
94124         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
94125         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
94126         Instead of multiplying with 10^k, set extra_zeroes to k.
94127         (scale10_round_long_double): Remove function.
94129 2007-05-18  Bruno Haible  <bruno@clisp.org>
94131         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
94132         introduced on 2007-05-06.
94134 2007-05-18  Bruno Haible  <bruno@clisp.org>
94136         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
94137         %g directives.
94138         * tests/test-vasprintf-posix.c (test_function): Likewise.
94139         * tests/test-snprintf-posix.h (test_function): Likewise.
94140         * tests/test-sprintf-posix.h (test_function): Likewise.
94142 2007-05-18  Bruno Haible  <bruno@clisp.org>
94144         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
94145         (strmatch): New function.
94146         (test_function): Test the %f directive on numbers of various exponents.
94147         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
94148         (strmatch): New function.
94149         (test_function): Test the %f directive on numbers of various exponents.
94150         * tests/test-snprintf-posix.h (strmatch): New function.
94151         (test_function): Test the %f directive on numbers of various exponents.
94152         * tests/test-sprintf-posix.h (strmatch): New function.
94153         (test_function): Test the %f directive on numbers of various exponents.
94154         * tests/test-snprintf-posix.c (SIZEOF): New macro.
94155         * tests/test-sprintf-posix.c (SIZEOF): New macro.
94156         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
94157         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
94159 2007-05-18  Bruno Haible  <bruno@clisp.org>
94161         Add support for 'long double' number output.
94162         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
94163         * lib/vasnprintf.c: Include math.h and float+.h.
94164         (mp_limb_t): New type.
94165         (GMP_LIMB_BITS): New macro.
94166         (mp_twolimb_t): New type.
94167         (GMP_TWOLIMB_BITS): New macro.
94168         (mpn_t): New type.
94169         (multiply, divide, convert_to_decimal, decode_long_double,
94170         scale10_round_long_double, scale10_round_decimal_long_double,
94171         floorlog10l): New functions.
94172         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
94173         for the %f, %F, %e, %E, %g, %G directives.
94174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
94175         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
94176         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
94177         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
94178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
94179         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
94180         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94181         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
94182         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
94183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
94185         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
94186         * modules/snprintf-posix (Depends-on): Likewise.
94187         * modules/sprintf-posix (Depends-on): Likewise.
94188         * modules/vasnprintf-posix (Depends-on): Likewise.
94189         * modules/vasprintf-posix (Depends-on): Likewise.
94190         * modules/vfprintf-posix (Depends-on): Likewise.
94191         * modules/vsnprintf-posix (Depends-on): Likewise.
94192         * modules/vsprintf-posix (Depends-on): Likewise.
94193         * modules/vasnprintf (Files): Add lib/float+.h.
94194         * doc/functions/fprintf.texi: Update.
94195         * doc/functions/printf.texi: Update.
94196         * doc/functions/snprintf.texi: Update.
94197         * doc/functions/sprintf.texi: Update.
94198         * doc/functions/vfprintf.texi: Update.
94199         * doc/functions/vprintf.texi: Update.
94200         * doc/functions/vsnprintf.texi: Update.
94201         * doc/functions/vsprintf.texi: Update.
94203 2007-05-18  Bruno Haible  <bruno@clisp.org>
94205         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
94207 2007-05-18  Bruno Haible  <bruno@clisp.org>
94209         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
94210         for printing 64-bit integers. Needed for mingw.
94212 2007-05-18  Bruno Haible  <bruno@clisp.org>
94214         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
94215         gl_FUNC_FREXPL_WORKS.
94216         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
94218 2007-05-18  Bruno Haible  <bruno@clisp.org>
94220         * modules/frexpl-nolibm-tests: New file.
94222         * modules/frexpl-nolibm: New file.
94223         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
94225 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
94227         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
94228         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
94229         GCC 4.2, which otherwise issues a lot of warnings.
94230         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
94231         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
94232         Likewise.
94233         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
94234         * modules/iconv_open (iconv.h): Likewise.
94235         * modules/locale (locale.h): Likewise.
94236         * modules/netinet_in (netinet/in.h): Likewise.
94237         * modules/sys_select (sys_select.h): Likewise.
94238         * modules/sys_socket (sys/socket.h): Likewise.
94239         * modules/sys_stat (sys/stat.h): Likewise.
94240         * modules/sysexits (sysexits.h): Likewise.
94241         * modules/unistd (unistd.h): Likewise.
94243 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94245         * modules/closein-tests (Makefile.am): Distribute
94246         `test-closein.sh'.
94248 2007-05-17  Bruno Haible  <bruno@clisp.org>
94250         * tests/test-printf-posix.output: Renamed from
94251         tests/test-fprintf-posix.out.
94252         * modules/fprintf-posix-tests: Update.
94253         * modules/printf-posix-tests: Update.
94254         * modules/vfprintf-posix-tests: Update.
94255         * modules/vprintf-posix-tests: Update.
94256         * tests/test-fprintf-posix.sh: Update.
94257         * tests/test-printf-posix.sh: Update.
94258         * tests/test-vfprintf-posix.sh: Update.
94259         * tests/test-vprintf-posix.sh: Update.
94260         Reported by Ralf Wildenhues.
94262 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
94264         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
94265         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
94266         GCC 4.2, which otherwise issues a lot of warnings.
94267         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
94268         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
94269         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
94270         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
94271         it should no longer be needed.
94272         * lib/string_.h: Likewise.
94273         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
94274         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
94275         * modules/inttypes (inttypes.h): Likewise.
94276         * modules/math (math.h): Likewise.
94277         * modules/search (search.h): Likewise.
94278         * modules/signal (signal.h): Likewise.
94279         * modules/stdint (stdint.h): Likewise.
94280         * modules/stdio (stdio.h): Likewise.
94281         * modules/stdlib (stdlib.h): Likewise.
94282         * modules/string (string.h): Likewise.
94283         * modules/sys_time (sys/time.h): Likewise.
94284         * modules/time (time.h): Likewise.
94285         * modules/wchar (wchar.h): Likewise.
94286         * modules/wctype (wtype.h): Likewise.
94288 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
94290         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
94292 2007-05-13  Bruno Haible  <bruno@clisp.org>
94294         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
94295         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
94296         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
94297         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
94298         (gl_PREREQ_STRTOK_R): Don't require it here.
94300 2007-05-13  Bruno Haible  <bruno@clisp.org>
94302         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
94303         when used in C++ mode.
94305 2007-05-12  Bruno Haible  <bruno@clisp.org>
94307         * lib/linebuffer.h: Tweak doc.
94308         * lib/linebuffer.c: Likewise.
94310 2007-05-12  James Youngman  <jay@gnu.org>
94312         * lib/linebuffer.c (readlinebuffer_delim): New function,
94313         like readlinebuffer, but use a caller-specified delimiter.
94314         (readlinebuffer): Just call readlinebuffer_delim with '\n'
94315         as the delimiter.
94316         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
94318 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
94320         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
94321         * modules/openat (Files): Remove openat-die.c.
94322         (Depends-on): Add openat-die.
94323         * modules/openat-die: New module.
94325 2007-05-06  Bruno Haible  <bruno@clisp.org>
94327         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
94328         Update with info about Cygwin.
94329         * doc/functions/fprintf.texi: Update.
94330         * doc/functions/printf.texi: Update.
94331         * doc/functions/snprintf.texi: Update.
94332         * doc/functions/sprintf.texi: Update.
94333         * doc/functions/vfprintf.texi: Update.
94334         * doc/functions/vprintf.texi: Update.
94335         * doc/functions/vsnprintf.texi: Update.
94336         * doc/functions/vsprintf.texi: Update.
94337         Reported by Eric Blake.
94339 2007-05-06  Bruno Haible  <bruno@clisp.org>
94341         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
94342         padding ourselves for the floating-point directives.
94343         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
94344         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
94345         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94346         gl_PRINTF_FLAG_ZERO and test its result. Invoke
94347         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
94348         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
94349         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
94350         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94351         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
94352         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
94353         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94354         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
94355         * tests/test-snprintf-posix.h (test_function): Also check the width
94356         and some flags in the %f directive.
94357         * tests/test-sprintf-posix.h (test_function): Likewise.
94358         * tests/test-vasnprintf-posix.c (test_function): Likewise.
94359         * tests/test-vasprintf-posix.c (test_function): Likewise.
94360         * doc/functions/fprintf.texi: Update.
94361         * doc/functions/printf.texi: Update.
94362         * doc/functions/snprintf.texi: Update.
94363         * doc/functions/sprintf.texi: Update.
94364         * doc/functions/vfprintf.texi: Update.
94365         * doc/functions/vprintf.texi: Update.
94366         * doc/functions/vsnprintf.texi: Update.
94367         * doc/functions/vsprintf.texi: Update.
94369 2007-05-06  Bruno Haible  <bruno@clisp.org>
94371         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
94372         pass the ' flag character to sprintf or snprintf.
94373         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
94374         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
94375         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94376         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
94377         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
94378         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
94379         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
94380         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94381         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
94382         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
94383         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94384         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
94385         * tests/test-snprintf-posix.h (test_function): Also check the grouping
94386         flag.
94387         * tests/test-sprintf-posix.h (test_function): Likewise.
94388         * tests/test-vasnprintf-posix.c (test_function): Likewise.
94389         * tests/test-vasprintf-posix.c (test_function): Likewise.
94390         * doc/functions/fprintf.texi: Update.
94391         * doc/functions/printf.texi: Update.
94392         * doc/functions/snprintf.texi: Update.
94393         * doc/functions/sprintf.texi: Update.
94394         * doc/functions/vfprintf.texi: Update.
94395         * doc/functions/vprintf.texi: Update.
94396         * doc/functions/vsnprintf.texi: Update.
94397         * doc/functions/vsprintf.texi: Update.
94399 2007-05-01  Bruno Haible  <bruno@clisp.org>
94401         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
94403 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
94405         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
94406         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
94408 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
94410         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
94411         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
94412         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
94414 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
94416         * lib/argp-help.c (struct hol_entry): New member `ord'.
94417         (HOL_ENTRY_PTRCMP): Use ord for comparison
94418         (hol_sort): Initialize ord.
94420 2007-05-01  Bruno Haible  <bruno@clisp.org>
94422         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
94423         Reported by Eric Blake.
94424         * doc/gnulib.texi (Function Substitutes): Update.
94426 2007-05-01  Bruno Haible  <bruno@clisp.org>
94428         * doc/functions.texi: Remove file, now redundant through
94429         doc/functions/*.texi.
94431 2007-05-01  Bruno Haible  <bruno@clisp.org>
94433         * modules/argp (Depends-on): Add sleep.
94435 2007-05-01  Bruno Haible  <bruno@clisp.org>
94437         * modules/sleep-tests: New file.
94438         * tests/test-sleep.c: New file.
94440         * modules/sleep: New file.
94441         * lib/sleep.c: New file.
94442         * m4/sleep.m4: New file.
94443         * lib/unistd_.h (sleep): New declaration.
94444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
94445         HAVE_SLEEP.
94446         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
94447         * doc/functions/sleep.texi: Document the sleep module.
94449 2007-05-01  Bruno Haible  <bruno@clisp.org>
94451         * lib/sigprocmask.h: Remove file.
94452         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
94453         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
94454         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
94455         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
94456         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
94457         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
94458         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
94459         HAVE_SIGSET_T as a shell variable.
94460         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
94461         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
94462         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
94463         (Depends-on): Add signal. Remove verify.
94464         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
94465         (Include): Mention <signal.h> instead of sigprocmask.h.
94466         * NEWS: Mention the change.
94467         * lib/fatal-signal.c: Don't include sigprocmask.h.
94469 2007-05-01  Bruno Haible  <bruno@clisp.org>
94471         * modules/signal: New file.
94472         * lib/signal_.h: New file.
94473         * m4/signal_h.m4: New file.
94475 2007-05-01  Bruno Haible  <bruno@clisp.org>
94477         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
94478         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
94479         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
94480         HAVE_WCTYPE_CTMP_BUG into wctype.h.
94482 2007-05-01  Bruno Haible  <bruno@clisp.org>
94484         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
94485         configure time.
94486         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
94487         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
94488         * modules/sys_stat (Makefile.am): Substitute their values into
94489         sys/stat.h.
94491 2007-05-01  Bruno Haible  <bruno@clisp.org>
94493         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
94494         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
94495         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
94497 2007-05-01  Bruno Haible  <bruno@clisp.org>
94499         * doc/header/assert.texi: Undo last change: don't mention the gnulib
94500         'assert' module here.
94502 2007-05-01  Bruno Haible  <bruno@clisp.org>
94504         * doc/functions/*.texi: New files.
94505         * doc/functions/google-ranking.txt: New file.
94506         * doc/gnulib.texi (Function Substitutes): New chapter.
94507         (ctime, inet_ntoa): Remove sections.
94508         * doc/ctime.texi: Remove file.
94509         * doc/inet_ntoa.texi: Remove file.
94510         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
94511         dependencies.
94512         (%.info): New rule, specifying a --reference-limit.
94514 2007-05-01  Bruno Haible  <bruno@clisp.org>
94516         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
94518 2007-05-01  Bruno Haible  <bruno@clisp.org>
94520         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
94521         the portability of 'mkdir' to mingw systems.
94523 2007-05-01  Bruno Haible  <bruno@clisp.org>
94525         * doc/headers/google-ranking.txt: New file.
94527 2007-04-30  Eric Blake  <ebb9@byu.net>
94529         Prefer fseeko to fseek.
94530         * modules/getpass (Depends-on): Add fseeko.
94531         * lib/getpass.c (getpass): Use fseeko, not fseek.
94533 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
94535         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
94536         assumes the sorting is stable, while most qsort implementations
94537         are not.  Use argument addresses to ensure they never compare as
94538         equal.
94540         * tests/test-argp-2.sh (usage-indent test): Fix output
94541         (func_compare): Restore diff options
94542         * tests/test-argp.c: Restore #include "progname.h"
94544 2007-04-29  Bruno Haible  <bruno@clisp.org>
94546         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
94547         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94548         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
94549         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94550         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
94551         (configure.ac): Define CHECK_SNPRINTF_POSIX.
94552         (TESTS, check_PROGRAMS): Add test-snprintf.
94553         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
94554         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
94555         (TESTS, check_PROGRAMS): Add test-vsnprintf.
94556         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
94557         assertions that fail on HP-UX, OSF/1, or IRIX.
94558         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
94560 2007-04-29  Bruno Haible  <bruno@clisp.org>
94562         * MODULES.html.sh (posix_functions): Remove 'contents'.
94564 2007-04-29  Karl Berry  <karl@gnu.org>
94566         * config/srclist.txt (gendocs_template_min): new entry.
94568 2007-04-29  Bruno Haible  <bruno@clisp.org>
94570         Work around fpurge bug on BSD systems.
94571         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
94572         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
94573         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
94574         fpurge to rpl_fpurge if the system already has this function.
94575         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
94576         the case where the system already has this function. Correct invariants
94577         on BSD systems.
94578         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
94579         BSD systems.
94581 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
94583         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
94584         proposed by Sven Verdoolaege.
94586         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
94587         options.
94588         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
94589         (usage and help tests): Update
94591 2007-04-29  Bruno Haible  <bruno@clisp.org>
94593         * tests/test-fflush.c (main): Use a file of size 17, not 10.
94594         Print more information in case of failure. Disable a test on BeOS.
94596 2007-04-29  Bruno Haible  <bruno@clisp.org>
94598         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
94599         This helps debugging on systems on which no gdb is available.
94601 2007-04-29  Bruno Haible  <bruno@clisp.org>
94603         * lib/freading.h: Improve comments.
94604         * lib/fwriting.h: Likewise.
94605         * tests/test-freading.c (main): Don't check freading immediately after
94606         repositioning. Needed for glibc.
94608 2007-04-29  Bruno Haible  <bruno@clisp.org>
94610         * lib/freading.c (freading): Trivial simplification.
94612 2007-04-28  Bruno Haible  <bruno@clisp.org>
94614         * tests/test-fwriting.c (main): Also test the interaction between
94615         fflush and fwriting.
94616         * modules/fwriting-tests (Depends-on): Add fflush.
94618         * tests/test-freading.c (main): Also test the interaction between
94619         fflush and freading.
94620         * modules/freading-tests (Depends-on): Add fflush.
94622 2007-04-28  Bruno Haible  <bruno@clisp.org>
94624         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
94625         fseeko and ftello.
94626         Suggested by Eric Blake.
94628 2007-04-28  Jim Meyering  <jim@meyering.net>
94630         Avoid false-negative in gl_STDINT_H's C99 conformance test.
94631         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
94632         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
94634 2007-04-27  Eric Blake  <ebb9@byu.net>
94636         * doc/headers/assert.texi (assert.h): Document assert module use.
94638 2007-04-27  Bruno Haible  <bruno@clisp.org>
94640         * doc/headers/*.texi: New files.
94641         * doc/gnulib.texi (Header File Substitutes): New chapter.
94642         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
94643         dependencies.
94644         (standards.info ,standards.html, standards.dvi): Update dependencies.
94645         (mostlyclean, clean): New targets.
94647 2007-04-27  Bruno Haible  <bruno@clisp.org>
94649         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
94650         * modules/sysexits (Files, Makefile.am): Update.
94652         * lib/sys_socket_.h: Renamed from lib/socket_.h.
94653         * modules/sys_socket (Files, Makefile.am): Update.
94655         * lib/sys_stat_.h: Renamed from lib/stat_.h.
94656         * modules/sys_stat (Files, Makefile.am): Update.
94658 2007-04-27  Eric Blake  <ebb9@byu.net>
94660         * lib/freading.h: Improve comments.
94661         * lib/fwriting.h: Likewise.
94662         * lib/fflush.c: Likewise.
94664         Fix closein for mingw.
94665         * modules/closein-tests: Add tests for closein.
94666         * tests/test-closein.c: New file.
94667         * tests/test-closein.sh: Likewise.
94668         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
94669         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
94671 2007-04-27  Bruno Haible  <bruno@clisp.org>
94673         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
94674         version is < 6.
94675         * lib/math_.h [__DECC]: Likewise.
94676         * lib/stdio_.h [__DECC]: Likewise.
94677         * lib/stdlib_.h [__DECC]: Likewise.
94678         * lib/string_.h [__DECC]: Likewise.
94679         * lib/time_.h [__DECC]: Likewise.
94680         * lib/wchar_.h [__DECC]: Likewise.
94681         * lib/wctype_.h [__DECC]: Likewise.
94683 2007-04-27  Bruno Haible  <bruno@clisp.org>
94685         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
94687 2007-04-27  Bruno Haible  <bruno@clisp.org>
94689         * lib/fflush.c: Add comments.
94690         * modules/fpurge-tests (Depends-on): Add fflush.
94691         * modules/freadable-tests (Depends-on): Likewise.
94692         * modules/fwritable-tests (Depends-on): Likewise.
94694 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
94696         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
94697         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
94698         Report by Bruno Haible <bruno@clisp.org>.
94700 2007-04-26  Eric Blake  <ebb9@byu.net>
94702         Fix fflush on mingw.
94703         * modules/fflush (Depends-on): Add freading.
94704         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
94705         but unread data.
94707 2007-04-26  Eric Blake  <ebb9@byu.net>
94708         and Bruno Haible  <bruno@clisp.org>
94710         Implement freading and fwriting.
94711         * lib/freading.c: New file.
94712         * lib/freading.h: Likewise.
94713         * m4/freading.m4: Likewise.
94714         * modules/freading: Likewise.
94715         * modules/freading-tests: Likewise.
94716         * tests/test-freading.c: Likewise.
94717         * lib/fwriting.c: New file.
94718         * lib/fwriting.h: Likewise.
94719         * m4/fwriting.m4: Likewise.
94720         * modules/fwriting: Likewise.
94721         * modules/fwriting-tests: Likewise.
94722         * tests/test-fwriting.c: Likewise.
94723         * MODULES.html.sh (File stream based Input/Output): Mention them.
94725 2007-04-26  Bruno Haible  <bruno@clisp.org>
94727         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
94728         'long' when we assume it.
94729         Suggested by Eric Blake.
94731 2007-04-26  Bruno Haible  <bruno@clisp.org>
94733         Ensure fseeko, ftello are declared on glibc systems.
94734         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
94735         * modules/fseeko (configure.ac-early): Likewise.
94736         * modules/ftello (configure.ac-early): Likewise.
94737         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
94738         AC_FUNC_FSEEKO for this.
94739         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
94740         (gl_CHECK_FSEEKO): Remove macro.
94742 2007-04-26  Bruno Haible  <bruno@clisp.org>
94744         * tests/test-fflush.c (main): Also check the ftell result after
94745         fflush and fseek/fseeko.
94746         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
94747         file descriptor position cache in the stream.
94748         * lib/fseeko.c (rpl_fseeko): Likewise.
94750 2007-04-26  Bruno Haible  <bruno@clisp.org>
94752         * modules/fflush-tests (Depends-on): Add fseeko.
94754 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
94755             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94757         * lib/argz_.h: ensure error_t definition is obtained in same
94758         mechanism system argz.h would have.
94759         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
94760         argz facilities are known bad.  Err on the side of caution if
94761         cross-compiling.
94763 2007-04-25  Eric Blake  <ebb9@byu.net>
94765         * lib/fpurge.c (includes): Use stdlib.h for free.
94766         * tests/test-fflush.c (main): Also test fflush-fseeko.
94768 2007-04-25  Bruno Haible  <bruno@clisp.org>
94770         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
94771         * lib/fseeko.c: New file.
94772         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
94773         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
94774         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
94775         gl_FUNC_FSEEKO.
94776         (gl_FUNC_FSEEKO): Invoke it.
94777         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
94778         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
94779         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
94781 2007-04-25  Bruno Haible  <bruno@clisp.org>
94783         * modules/fflush (Depends-on): Add ftello.
94785 2007-04-25  Bruno Haible  <bruno@clisp.org>
94787         * modules/ftello-tests: New file.
94788         * tests/test-ftello.c: New file.
94790         * modules/ftello: New file.
94791         * m4/ftello.m4: New file.
94792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
94793         HAVE_FTELLO.
94794         * lib/stdio_.h (ftello): New declaration.
94795         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
94796         HAVE_FTELLO.
94798 2007-04-25  Bruno Haible  <bruno@clisp.org>
94800         * modules/fseeko-tests: New file.
94801         * tests/test-fseeko.c: New file.
94803         * modules/fseeko: New file.
94804         * m4/fseeko.m4: New file.
94805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
94806         HAVE_FSEEKO.
94807         * lib/stdio_.h (fseeko): New declaration.
94808         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
94809         HAVE_FSEEKO.
94811 2007-04-25  Bruno Haible  <bruno@clisp.org>
94813         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
94815 2007-04-25  Bruno Haible  <bruno@clisp.org>
94817         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
94818         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
94819         * tests/test-unistd.c: Likewise.
94820         * tests/test-fcntl.c: Likewise.
94822 2007-04-23  Eric Blake  <ebb9@byu.net>
94824         * lib/fflush.c: Fix missing include.
94825         Reported by Bruno Haible.
94827 2007-04-23  Bruno Haible  <bruno@clisp.org>
94829         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
94830         Reported by Eric Blake.
94832 2007-04-23  Bruno Haible  <bruno@clisp.org>
94834         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
94836 2007-04-23  Bruno Haible  <bruno@clisp.org>
94838         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
94840 2007-04-23  Bruno Haible  <bruno@clisp.org>
94842         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
94843         Needed on HP-UX 11.
94845 2007-04-16  Eric Blake  <ebb9@byu.net>
94847         Make fflush rely on fpurge.
94848         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
94849         open coding all variants.
94850         * modules/fflush (Depends-on): Add fpurge and unistd.
94851         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
94852         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
94854         Fix --with-tests compilation on cygwin.
94855         * modules/argmatch-tests (Makefile.am): List gnulib library first
94856         in LDADD.
94857         * modules/argp-tests (Makefile.am): Likewise.
94858         * modules/array-list-tests (Makefile.am): Likewise.
94859         * modules/array-oset-tests (Makefile.am): Likewise.
94860         * modules/avltree-list-tests (Makefile.am): Likewise.
94861         * modules/avltree-oset-tests (Makefile.am): Likewise.
94862         * modules/avltreehash-list-tests (Makefile.am): Likewise.
94863         * modules/carray-list-tests (Makefile.am): Likewise.
94864         * modules/dirname-tests (Makefile.am): Likewise.
94865         * modules/frexp-tests (Makefile.am): Likewise.
94866         * modules/isnanl-tests (Makefile.am): Likewise.
94867         * modules/linked-list-tests (Makefile.am): Likewise.
94868         * modules/linkedhash-list-tests (Makefile.am): Likewise.
94869         * modules/lock-tests (Makefile.am): Likewise.
94870         * modules/rbtree-list-tests (Makefile.am): Likewise.
94871         * modules/rbtree-oset-tests (Makefile.am): Likewise.
94872         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
94873         * modules/tls-tests (Makefile.am): Likewise.
94874         * modules/tsearch-tests (Makefile.am): Likewise.
94875         * modules/xvasprintf-tests (Makefile.am): Likewise.
94877         Fix fpurge for cygwin.
94878         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
94879         value.
94880         * modules/fpurge-tests (Depends-on): Clean up trash.
94882 2007-04-16  Simon Josefsson  <simon@josefsson.org>
94884         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
94886         * m4/autobuild.m4: Re-indent.
94888 2007-04-13  Bruno Haible  <bruno@clisp.org>
94890         * modules/fpurge-tests: New file.
94891         * tests/test-fpurge.c: New file.
94893         * modules/fpurge: New file.
94894         * lib/fpurge.h: New file.
94895         * lib/fpurge.c: New file.
94896         * m4/fpurge.m4: New file.
94898 2007-04-13  Bruno Haible  <bruno@clisp.org>
94900         * modules/fbufmode-tests: New file.
94901         * tests/test-fbufmode.c: New file.
94903         * modules/fbufmode: New file.
94904         * lib/fbufmode.h: New file.
94905         * lib/fbufmode.c: New file.
94906         * m4/fbufmode.m4: New file.
94908 2007-04-13  Bruno Haible  <bruno@clisp.org>
94910         * modules/fwritable-tests: New file.
94911         * tests/test-fwritable.c: New file.
94913         * modules/fwritable: New file.
94914         * lib/fwritable.h: New file.
94915         * lib/fwritable.c: New file.
94916         * m4/fwritable.m4: New file.
94918 2007-04-13  Bruno Haible  <bruno@clisp.org>
94920         * modules/freadable-tests: New file.
94921         * tests/test-freadable.c: New file.
94923         * modules/freadable: New file.
94924         * lib/freadable.h: New file.
94925         * lib/freadable.c: New file.
94926         * m4/freadable.m4: New file.
94928 2007-04-13  Bruno Haible  <bruno@clisp.org>
94930         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
94931         MOSTLYCLEANFILES.
94933 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
94935         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
94936         gzip bootstrap.conf to avoid dragging in i18n machinery.
94937         (gnulib_tool_option): Use it.
94939 2007-04-13  Bruno Haible  <bruno@clisp.org>
94941         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
94942         %F directives.
94943         * tests/test-vasprintf-posix.c (test_function): Likewise.
94944         * tests/test-snprintf-posix.h (test_function): Likewise.
94945         * tests/test-sprintf-posix.h (test_function): Likewise.
94946         * tests/test-fprintf-posix.h (test_function): Likewise.
94947         * tests/test-printf-posix.h (test_function): Likewise.
94948         * tests/test-fprintf-posix.out: Likewise.
94950 2007-04-13  Bruno Haible  <bruno@clisp.org>
94952         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
94953         * modules/tls-tests (configure.ac): Likewise.
94954         Reported by Arto C. Nirkko <anirkko@insel.ch>.
94956 2007-04-13  Bruno Haible  <bruno@clisp.org>
94958         * lib/tls.c (glthread_tls_get): Fix return type.
94959         Patch by Arto C. Nirkko <anirkko@insel.ch>.
94961 2007-04-12  Eric Blake  <ebb9@byu.net>
94963         * modules/gettime (Depends-on): Remove gettime.
94964         Reported by Dmitry V. Levin.
94966 2007-04-12  Bruno Haible  <bruno@clisp.org>
94968         * modules/fflush (Include): Mention <stdio.h>.
94969         * modules/strtoimax (Include): Mention <inttypes.h>.
94970         * modules/strtoumax (Include): Likewise.
94972 2007-04-12  Eric Blake  <ebb9@byu.net>
94974         * .cvsignore: New file.
94975         * .gitignore: Likewise.
94977 2007-04-12  Bruno Haible  <bruno@clisp.org>
94979         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
94980         not before, since $(LDADD) often contains libgnu.a.
94981         * modules/striconv-tests (test_striconv_LDADD): Likewise.
94982         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
94983         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
94984         Needed on Cygwin.
94986 2007-04-12  Eric Blake  <ebb9@byu.net>
94988         Work around glibc's failure to flush stdin on fclose.
94989         * lib/closein.c (close_stdin): Flush stdin before closing.
94991         Work around glibc's failure to reset seekable stdin on exit.
94992         * modules/closein: New module.
94993         * lib/closein.c: New file.
94994         * lib/closein.h: Likewise.
94995         * m4/closein.m4: Likewise.
94996         * MODULES.html.sh (File stream based Input/Output): Document it.
94998 2007-04-12  Simon Josefsson  <simon@josefsson.org>
95000         * gnulib-tool: Rename generated 'autobuild' script to
95001         'do-autobuild' in --create-megatestdir output.
95003         * doc/gnulib.texi (Build robot for gnulib): Fix.
95005 2007-04-12  Simon Josefsson  <simon@josefsson.org>
95007         * modules/sysexits (Depends-on): Add absolute-header.
95009 2007-04-12  Eric Blake  <ebb9@byu.net>
95011         No need to preserve errno on success.
95012         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
95013         Reported by Bruno Haible.
95015 2007-04-12  Simon Josefsson  <simon@josefsson.org>
95017         * MODULES.html.sh (Support for maintaining and releasing
95018         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
95020 2007-04-12  Simon Josefsson  <simon@josefsson.org>
95022         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
95024 2007-04-12  Simon Josefsson  <simon@josefsson.org>
95026         * modules/autobuild: New module.
95028         * m4/autobuild.m4: New file.
95030 2007-04-11  Bruno Haible  <bruno@clisp.org>
95032         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
95033         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
95034         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
95035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
95036         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95037         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95038         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95039         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
95040         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95041         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95042         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
95043         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95044         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95045         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
95046         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95047         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95048         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
95049         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95050         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95051         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
95052         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95053         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95054         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
95055         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95056         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95057         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
95058         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95059         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95060         Reported by Eric Blake.
95062 2007-04-11  Bruno Haible  <bruno@clisp.org>
95064         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
95066 2007-04-10  Bruno Haible  <bruno@clisp.org>
95068         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
95069         for NaN and Infinity. Needed on FreeBSD 6.1.
95070         * tests/test-vasnprintf-posix.c (test_function): Undo last change
95071         regarding results for "%010a" of Infinity and NaN.
95072         * tests/test-vasprintf-posix.c (test_function): Likewise.
95073         * tests/test-snprintf-posix.h (test_function): Likewise.
95074         * tests/test-sprintf-posix.h (test_function): Likewise.
95075         * tests/test-fprintf-posix.h (test_function): Likewise.
95076         * tests/test-printf-posix.h (test_function): Likewise.
95077         * tests/test-fprintf-posix.out: Likewise.
95079 2007-04-10  Bruno Haible  <bruno@clisp.org>
95081         * modules/locale-tests: New file.
95082         * tests/test-locale.c: New file.
95084         * modules/locale: New file.
95085         * lib/locale_.h: New file.
95086         * m4/locale_h.m4: New file.
95088 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
95089             Bruno Haible  <bruno@clisp.org>
95091         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
95092         be determined, test for availability of the copysignf, copysign,
95093         copysignl functions.
95094         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
95095         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
95096         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
95098 2007-04-09  Eric Blake  <ebb9@byu.net>
95100         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
95101         * modules/stdio (Makefile.am): Support fflush.
95102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
95103         * modules/fflush: New file.
95104         * lib/fflush.c: Likewise.
95105         * m4/fflush.m4: Likewise.
95106         * modules/fflush-tests: New test.
95107         * tests/test-fflush.c: Likewise.
95108         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
95110 2007-04-06  Bruno Haible  <bruno@clisp.org>
95112         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
95113         (VASNPRINTF): Use signbit for faster determination whether to print a
95114         minus sign.
95115         * modules/vasnprintf (Files): Remove lib/float+.h.
95116         * modules/fprintf-posix (Depends-on): Add signbit.
95117         * modules/snprintf-posix (Depends-on): Likewise.
95118         * modules/sprintf-posix (Depends-on): Likewise.
95119         * modules/vasnprintf-posix (Depends-on): Likewise.
95120         * modules/vasprintf-posix (Depends-on): Likewise.
95121         * modules/vfprintf-posix (Depends-on): Likewise.
95122         * modules/vsnprintf-posix (Depends-on): Likewise.
95123         * modules/vsprintf-posix (Depends-on): Likewise.
95125 2007-04-06  Bruno Haible  <bruno@clisp.org>
95127         * tests/test-frexp.c (main): Test also the sign bit of zero results.
95128         * tests/test-frexpl.c (main): Likewise.
95129         * tests/test-ldexpl.c (main): Likewise.
95130         * modules/frexp-tests (Depends-on): Add signbit.
95131         * modules/frexpl-tests (Depdends-on): Likewise.
95132         * modules/ldexpl-tests (Depdends-on): Likewise.
95134 2007-04-06  Bruno Haible  <bruno@clisp.org>
95136         * modules/signbit-tests: New file.
95137         * tests/test-signbit.c: New file.
95139         * modules/signbit: New file.
95140         * lib/signbitf.c: New file.
95141         * lib/signbitd.c: New file.
95142         * lib/signbitl.c: New file.
95143         * m4/signbit.m4: New file.
95144         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
95145         (signbit): New macro.
95146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
95147         REPLACE_SIGNBIT.
95148         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
95149         REPLACE_FREXPL into math.h.
95151 2007-04-06  Bruno Haible  <bruno@clisp.org>
95153         * modules/isnanf-nolibm-tests: New file.
95154         * tests/test-isnanf.c: New file.
95156         * modules/isnanf-nolibm: New file.
95157         * lib/isnanf.h: New file.
95158         * lib/isnanf.c: New file.
95159         * lib/isnan.c: Consider the USE_FLOAT macro.
95160         * m4/isnanf.m4: New file.
95162 2007-04-06  Bruno Haible  <bruno@clisp.org>
95164         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
95165         (Link): New section.
95167         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
95169 2007-04-06  Bruno Haible  <bruno@clisp.org>
95171         Assume the 'long double' type.
95172         * m4/longdouble.m4: Remove file.
95173         * config/srclist.txt: Don't mention longdouble.m4.
95174         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
95175         * lib/float+.h: Likewise.
95176         * lib/frexp.c: Likewise.
95177         * lib/printf-args.h: Likewise.
95178         * lib/printf-args.c: Likewise.
95179         * lib/printf-frexp.c: Likewise.
95180         * lib/printf-parse.c: Likewise.
95181         * lib/vasnprintf.c: Likewise.
95182         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
95183         * m4/intl.m4: Likewise.
95184         * m4/isnanl.m4: Likewise.
95185         * m4/printf.m4: Likewise.
95186         * m4/printf-frexpl.m4: Likewise.
95187         * m4/vasnprintf.m4: Likewise.
95188         * modules/allocsa (Files): Remove m4/longdouble.m4.
95189         * modules/gettext (Files): Likewise.
95190         * modules/relocatable-prog-wrapper (Files): Likewise.
95191         * modules/vasnprintf (Files): Likewise.
95192         * modules/isnanl (Files): Likewise.
95193         (Include): Simplify.
95194         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
95195         (Include): Simplify.
95196         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
95197         (Include): Simplify.
95198         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
95199         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
95200         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
95201         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
95202         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
95203         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
95204         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
95205         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
95206         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
95207         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
95208         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
95209         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
95210         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
95211         * tests/test-isnanl.c: Likewise.
95212         * tests/test-snprintf-posix.h: Likewise.
95213         * tests/test-sprintf-posix.h: Likewise.
95214         * tests/test-vasnprintf-posix.c: Likewise.
95215         * tests/test-vasnprintf-posix2.c: Likewise.
95216         * tests/test-vasprintf-posix.c: Likewise.
95218 2007-04-06  Bruno Haible  <bruno@clisp.org>
95220         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
95221         * lib/math_.h [__DECC]: Include the overridden include file through
95222         #include_next, outside the double-inclusion guard.
95223         * lib/stdio_.h [__DECC]: Likewise.
95224         * lib/stdlib_.h [__DECC]: Likewise.
95225         * lib/string_.h [__DECC]: Likewise.
95226         * lib/time_.h [__DECC]: Likewise.
95227         * lib/wchar_.h [__DECC]: Likewise.
95228         * lib/wctype_.h [__DECC]: Likewise.
95229         * lib/inttypes_.h [__DECC]: Likewise.
95230         Reported by Albert Chin <china@thewrittenword.com> in
95231         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
95233 2007-04-04  Eric Blake  <ebb9@byu.net>
95235         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
95236         1.5.x.
95238 2007-04-04  Bruno Haible  <bruno@clisp.org>
95240         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
95241         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
95243 2007-04-04  Bruno Haible  <bruno@clisp.org>
95245         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
95246         results for "%010a" of Infinity and NaN.
95247         * tests/test-vasprintf-posix.c (test_function): Likewise.
95248         * tests/test-snprintf-posix.h (test_function): Likewise.
95249         * tests/test-sprintf-posix.h (test_function): Likewise.
95250         * tests/test-fprintf-posix.h (test_function): Remove these tests.
95251         * tests/test-printf-posix.h (test_function): Likewise.
95252         * tests/test-fprintf-posix.out: Update.
95253         Needed for FreeBSD 6.1.
95255 2007-04-04  Bruno Haible  <bruno@clisp.org>
95257         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
95258         directly used by the gnulib modules nor by gnulib-tool.
95260 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
95262         * DEPENDENCIES: Give overall description of version dependency
95263         desirability.  Use more-typical names for apps.
95264         Add shell, coreutils, diffutils, grep, tar, gzip.
95266 2007-04-04  Simon Josefsson  <simon@josefsson.org>
95268         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
95270 2007-04-04  Karl Berry  <karl@gnu.org>
95272         * MODULES.html.sh (func_module): missing '.
95274 2007-04-03  Bruno Haible  <bruno@clisp.org>
95276         * modules/argmatch-tests (Makefile.am): New variable
95277         test_argmatch_LDADD.
95278         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
95279         * modules/array-list-tests (Makefile.am): New variable
95280         test_array_list_LDADD.
95281         * modules/array-oset-tests (Makefile.am): New variable
95282         test_array_oset_LDADD.
95283         * modules/avltree-list-tests (Makefile.am): New variable
95284         test_avltree_list_LDADD.
95285         * modules/avltree-oset-tests (Makefile.am): New variable
95286         test_avltree_oset_LDADD.
95287         * modules/avltreehash-list-tests (Makefile.am): New variable
95288         test_avltreehash_list_LDADD.
95289         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
95290         test_canonicalize_lgpl_LDADD.
95291         * modules/carray-list-tests (Makefile.am): New variable
95292         test_carray_list_LDADD.
95293         * modules/dirname-tests (Makefile.am): New variable
95294         test_dirname_LDADD.
95295         * modules/linked-list-tests (Makefile.am): New variable
95296         test_linked_list_LDADD.
95297         * modules/linkedhash-list-tests (Makefile.am): New variable
95298         test_linkedhash_list_LDADD.
95299         * modules/rbtree-list-tests (Makefile.am): New variable
95300         test_rbtree_list_LDADD.
95301         * modules/rbtree-oset-tests (Makefile.am): New variable
95302         test_rbtree_oset_LDADD.
95303         * modules/rbtreehash-list-tests (Makefile.am): New variable
95304         test_rbtreehash_list_LDADD.
95305         * modules/xvasprintf-tests (Makefile.am): New variable
95306         test_xvasprintf_LDADD.
95307         Reported by Eric Blake.
95309 2007-04-03  Eric Blake  <ebb9@byu.net>
95311         * DEPENDENCIES: Weaken m4 requirements.
95313 2007-04-03  Bruno Haible  <bruno@clisp.org>
95315         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
95316         * modules/isnanl-tests (configure.ac): Likewise.
95318 2007-04-03  Ben Pfaff  <blp@gnu.org>
95320         * modules/iconv_open: Add $(srcdir)/ to source directory
95321         references in Makefile fragments that call gperf, to fix VPATH
95322         builds.
95324 2007-04-03  Bruno Haible  <bruno@clisp.org>
95326         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
95327         * lib/ldexpl.c: Undo last change.
95329 2007-04-03  Bruno Haible  <bruno@clisp.org>
95331         * modules/printf-frexpl (Depends-on): Undo last change.
95332         (Files): Add m4/ldexpl.m4.
95334 2007-04-03  Bruno Haible  <bruno@clisp.org>
95336         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
95337         * modules/isnanl (Link): New section.
95339         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
95340         * modules/frexp (Link): New section.
95342         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
95343         * modules/frexpl (Link): New section.
95345         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
95346         * modules/ldexpl (Link): New section.
95348 2007-04-03  Bruno Haible  <bruno@clisp.org>
95350         * modules/TEMPLATE-EXTENDED: New file.
95351         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
95353 2007-04-03  Bruno Haible  <bruno@clisp.org>
95355         * DEPENDENCIES: New file.
95356         Suggested by Simon Josefsson.
95358 2007-04-03  Bruno Haible  <bruno@clisp.org>
95360         * doc/gnulib.texi: Escape @.
95362 2007-04-03  James Youngman  <jay@gnu.org>
95363         and Paul Eggert  <eggert@cs.ucla.edu>
95365         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
95366         birthtime on all systems that have birthtime, not just those which
95367         use st_birthtimensec rather than st_birthtim.  Putting zero in
95368         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
95369         that the birth time is not available for files on an NFS mount.
95371 2007-04-03  Simon Josefsson  <simon@josefsson.org>
95373         * modules/memxor: Move back from crypto/, suggested by Bruno.
95374         * modules/crypto/hmac-sha1: Fix memxor dependency.
95376         * modules/crypto/gc: Moved from ../.
95378 2007-04-02  Eric Blake  <ebb9@byu.net>
95380         * lib/ldexpl.c (includes): Avoid libm.
95382         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
95384 2007-04-02  Bruno Haible  <bruno@clisp.org>
95386         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
95387         on IRIX.
95389 2007-04-02  Bruno Haible  <bruno@clisp.org>
95391         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
95392         x86 or x86_64 platforms running MacOS X.
95393         Reported by Ryan Schmidt <@ryandesign.com>.
95395 2007-04-02  Bruno Haible  <bruno@clisp.org>
95397         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
95398         i386.
95400 2007-04-01  Simon Josefsson  <simon@josefsson.org>
95402         * modules/crypto/arcfour: Moved from ../.
95403         * modules/crypto/arcfour-tests: Moved from ../.
95404         * modules/crypto/arctwo: Moved from ../.
95405         * modules/crypto/arctwo-tests: Moved from ../.
95406         * modules/crypto/des: Moved from ../.
95407         * modules/crypto/des-tests: Moved from ../.
95408         * modules/crypto/gc-arcfour: Moved from ../.
95409         * modules/crypto/gc-arcfour-tests: Moved from ../.
95410         * modules/crypto/gc-arctwo: Moved from ../.
95411         * modules/crypto/gc-arctwo-tests: Moved from ../.
95412         * modules/crypto/gc-des: Moved from ../.
95413         * modules/crypto/gc-des-tests: Moved from ../.
95414         * modules/crypto/gc-hmac-md5: Moved from ../.
95415         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
95416         * modules/crypto/gc-hmac-sha1: Moved from ../.
95417         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
95418         * modules/crypto/gc-md2: Moved from ../.
95419         * modules/crypto/gc-md2-tests: Moved from ../.
95420         * modules/crypto/gc-md4: Moved from ../.
95421         * modules/crypto/gc-md4-tests: Moved from ../.
95422         * modules/crypto/gc-md5: Moved from ../.
95423         * modules/crypto/gc-md5-tests: Moved from ../.
95424         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
95425         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
95426         * modules/crypto/gc-random: Moved from ../.
95427         * modules/crypto/gc-rijndael: Moved from ../.
95428         * modules/crypto/gc-rijndael-tests: Moved from ../.
95429         * modules/crypto/gc-sha1: Moved from ../.
95430         * modules/crypto/gc-sha1-tests: Moved from ../.
95431         * modules/crypto/gc-tests: Moved from ../.
95432         * modules/crypto/hmac-md5: Moved from ../.
95433         * modules/crypto/hmac-md5-tests: Moved from ../.
95434         * modules/crypto/hmac-sha1: Moved from ../.
95435         * modules/crypto/hmac-sha1-tests: Moved from ../.
95436         * modules/crypto/md2: Moved from ../.
95437         * modules/crypto/md2-tests: Moved from ../.
95438         * modules/crypto/md4: Moved from ../.
95439         * modules/crypto/md4-tests: Moved from ../.
95440         * modules/crypto/md5: Moved from ../.
95441         * modules/crypto/md5-tests: Moved from ../.
95442         * modules/crypto/memxor: Moved from ../.
95443         * modules/crypto/rijndael: Moved from ../.
95444         * modules/crypto/rijndael-tests: Moved from ../.
95445         * modules/crypto/sha1: Moved from ../.
95447 2007-03-30  James Youngman  <jay@gnu.org>
95449         * tests/test-stat-time.c (prepare_test): use chmod() rather than
95450         rename() to change the ctime of a file (because ctime is unaffected
95451         by rename on jfs2 on AIX 5.1).
95452         (main): Start by doing cleanup, in case a previous run failed leaving
95453         test files behind.
95455 2007-03-31  Bruno Haible  <bruno@clisp.org>
95457         Support old proprietary implementations of iconv.
95458         * modules/iconv_open: New file.
95459         * lib/iconv_.h: New file.
95460         * m4/iconv_h.m4: New file.
95461         * lib/iconv_open.c: New file.
95462         * lib/iconv_open-aix.gperf: New file.
95463         * lib/iconv_open-hpux.gperf: New file.
95464         * lib/iconv_open-irix.gperf: New file.
95465         * lib/iconv_open-osf.gperf: New file.
95466         * m4/iconv_open.m4: New file.
95467         * modules/linebreak (Depends-on): Add iconv_open.
95468         * modules/striconv (Depends-on): Likewise.
95469         * modules/striconveh (Depends-on): Likewise.
95470         * modules/unicodeio (Depends-on): Likewise.
95471         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
95472         (iconv_t)(-1).
95473         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
95474         conversion if cd is (iconv_t)(-1).
95475         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
95476         is not possible.
95478 2007-03-31  Bruno Haible  <bruno@clisp.org>
95480         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
95481         work on Solaris either. Protect also second use of "autodetect_jp".
95483 2007-03-31  Bruno Haible  <bruno@clisp.org>
95485         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
95486         the function is not present.
95488 2007-03-31  Bruno Haible  <bruno@clisp.org>
95490         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
95491         the function is not present.
95493 2007-03-31  Bruno Haible  <bruno@clisp.org>
95495         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
95496         a bug in HP-UX iconv_open().
95498 2007-03-31  Bruno Haible  <bruno@clisp.org>
95500         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
95501         (Mathematics <math.h>): New section, add fpieee.
95502         (Input/output <stdio.h>): Add fseterr.
95503         (Mathematics <math.h>): New section, add printf-frexp.
95504         (Container data structures): Add sublist.
95505         (Core language properties): Add fpucw, inline.
95506         (Functions for greatest-width integer types <inttypes.h>): Add
95507         imaxabs, imaxdiv, inttypes.
95508         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
95509         isnanl-nolibm, ldexp.
95510         (Mathematics <math.h>): New section, add printf-frexpl.
95511         (Support for systems lacking POSIX:2001): Add fprintf-posix,
95512         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
95513         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
95514         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
95515         (Unicode string functions): Add unistr/u*-mbtoucr.
95516         (Java): Add javacomp-script, javaexec-script.
95517         (C#): Add csharpcomp-script, csharpexec-script.
95518         (Support for building libraries and executables): Add havelib,
95519         relocatable-*.
95520         (Support for maintaining and releasing projects): Renamed from
95521         'Support for maintaining and release projects'. Add announce-gen.
95523 2007-03-31  Bruno Haible  <bruno@clisp.org>
95525         * README: Talk primarily about git.
95526         (git and CVS): Renamed from CVS.
95527         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
95528         gnulib is available through git.
95529         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
95531 2007-03-30  Bruno Haible  <bruno@clisp.org>
95533         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
95534         * lib/poll_.h: Likewise.
95535         * lib/stat_.h: Likewise.
95536         * lib/sys_time_.h: Likewise.
95537         * lib/sysexit_.h: Likewise.
95538         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
95539         * lib/stdbool_.h: Likewise.
95540         * lib/byteswap_.h: Add double-inclusion guard.
95542 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
95544         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
95546 2007-03-30  Karl Berry  <karl@gnu.org>
95548         * config/srclist-update: double space after USA in the license
95549         substitution, since that's how it's usually (?) written.
95551 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
95553         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
95554         reported by Bruno Haible.
95556 2007-03-29  Bruno Haible  <bruno@clisp.org>
95558         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
95559         a bug in AIX iconv().
95561 2007-03-29  Bruno Haible  <bruno@clisp.org>
95563         * modules/ldexpl-tests: New file.
95564         * tests/test-ldexpl.c: New file.
95566 2007-03-29  Bruno Haible  <bruno@clisp.org>
95568         * lib/ldexpl.c: Include fpucw.h.
95569         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
95570         multiplication.
95571         * modules/ldexpl (Depends-on): Add fpucw.
95573 2007-03-29  Bruno Haible  <bruno@clisp.org>
95575         * modules/ldexpl: New file.
95576         * m4/ldexpl.m4: New file.
95577         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
95578         set.
95579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
95580         REPLACE_LDEXPL.
95581         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
95582         REPLACE_LDEXPL.
95583         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
95584         gl_FUNC_LDEXPL_WORKS.
95585         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
95586         * modules/mathl (Files): Remove lib/ldexpl.c.
95587         (Depends-on): Add ldexpl.
95589 2007-03-29  Bruno Haible  <bruno@clisp.org>
95591         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
95593 2007-03-29  Bruno Haible  <bruno@clisp.org>
95595         * tests/test-striconveh.c (main): Don't assume that a direct conversion
95596         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
95597         and possibly also HP-UX.
95598         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
95599         work on AIX, IRIX, HP-UX, OSF/1.
95600         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
95601         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
95602         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
95603         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
95604         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
95605         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
95607 2007-03-29  Bruno Haible  <bruno@clisp.org>
95609         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
95611 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
95613         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
95614         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
95616 2007-03-29  Eric Blake  <ebb9@byu.net>
95618         * lib/acl-internal.h: Remove redundant include.
95619         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
95620         Cygwin when a file is locked.
95622 2007-03-29  Bruno Haible  <bruno@clisp.org>
95624         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
95625         file.
95626         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
95628 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
95630         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
95631         try to remove a parent directory if the child couldn't be removed
95632         (except for the first rmdir, which could fail because the child
95633         doesn't exist).  Problem reported by Jeff Blaine in
95634         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
95636 2007-03-28  Bruno Haible  <bruno@clisp.org>
95638         * lib/striconveh.c (utf8conv_carefully): New function.
95639         (mem_cd_iconveh_internal): Invoke it.
95641 2007-03-28  Bruno Haible  <bruno@clisp.org>
95643         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
95644         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
95645         input.
95646         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
95647         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
95648         unistr/u8-uctomb.
95650 2007-03-28  Bruno Haible  <bruno@clisp.org>
95652         * modules/unistr/u8-mbtoucr: New file.
95653         * lib/unistr/u8-mbtoucr.c: New file.
95654         * modules/unistr/u16-mbtoucr: New file.
95655         * lib/unistr/u16-mbtoucr.c: New file.
95656         * modules/unistr/u16-mbtoucr: New file.
95657         * lib/unistr/u16-mbtoucr.c: New file.
95658         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
95660 2007-03-27  Simon Josefsson  <simon@josefsson.org>
95661             Bruno Haible  <bruno@clisp.org>
95663         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
95664         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
95665         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
95667         * m4/stdio_h.m4: Add stubs for vasprintf too.
95669         * modules/stdio: Support vasprintf in sed command.
95671         * modules/vasprintf: Depend on stdio for prototypes.  Remove
95672         vasprintf.h.  Add stdio module indicator.
95674         * lib/stdio_.h: Declare asprintf and vasprintf, based on
95675         vasprintf.h.
95677         * lib/vasprintf.h: File removed.
95679         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
95680         * lib/vasprintf.c: Ditto.
95681         * lib/xvasprintf.c: Ditto.
95682         * tests/test-vasprintf-posix.c: Ditto.
95683         * tests/test-vasprintf.c: Ditto.
95685 2007-03-27  Bruno Haible  <bruno@clisp.org>
95687         Make vasnprintf multithread-safe.
95688         * lib/vasnprintf.c (decimal_point_char): New function.
95689         (VASNPRINTF): Use it.
95690         Suggested by Simon Josefsson.
95692 2007-03-27  Eric Blake  <ebb9@byu.net>
95694         Support sub-second birthtime on cygwin.
95695         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
95696         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
95697         (get_stat_birthtime): Also work with st_birthtim.
95699 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
95701         * lib/stat-time.h (USE_BIRTHTIME): Remove.
95702         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
95703         (get_stat_birthtime_ns): Do not try to use "spare" fields.
95704         (get_stat_birthtime_ns): Simplify compile-time tests.
95705         (get_stat_birthtime): Change the API to look like
95706         get_stat_mtime etc., except return a negative tv_nsec on error.
95707         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
95708         Don't check for "spare" fields.
95709         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
95710         or for struct stat.st_birthtime, as these tests aren't used.
95711         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
95713 2007-03-27  Bruno Haible  <bruno@clisp.org>
95715         * lib/stat-time.h: Include <sys/stat.h>.
95717 2007-03-27  James Youngman  <jay@gnu.org>
95719         * lib/stat-time.h (get_stat_birthtime): New function for
95720           retrieving st_birthtime as provided by UFS2 (hence *BSD).
95721         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
95722           and its variants.
95723         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
95724         * modules/stat-time-test: New file.
95725         * tests/test-stat-time.c: New test, devised by Bruno Haible.
95727 2007-03-26  Bruno Haible  <bruno@clisp.org>
95729         Better support of signalling NaNs.
95730         * lib/atanl.c: Include isnanl.h.
95731         (atanl): Perform test for NaN at the beginning of the function and
95732         through a call to isnanl.
95733         * lib/cosl.c: Include isnanl.h.
95734         (cosl): Perform test for NaN at the beginning of the function and
95735         through a call to isnanl.
95736         * lib/ldexpl.c: Include isnanl.h.
95737         (ldexpl): Perform test for NaN through a call to isnanl.
95738         * lib/logl.c: Include isnanl.h.
95739         (logl): Perform test for NaN at the beginning of the function and
95740         through a call to isnanl.
95741         * lib/sinl.c: Include isnanl.h.
95742         (sinl): Perform test for NaN at the beginning of the function and
95743         through a call to isnanl.
95744         * lib/sqrtl.c: Include isnanl.h.
95745         (sqrtl): Perform test for NaN at the beginning of the function and
95746         through a call to isnanl.
95747         * lib/tanl.c: Include isnanl.h.
95748         (tanl): Perform test for NaN at the beginning of the function and
95749         through a call to isnanl.
95750         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
95751         * modules/mathl (Depends-on): Add isnanl.
95753 2007-03-26  Eric Blake  <ebb9@byu.net>
95755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
95756         regression in logic sense of previous patch.
95758 2007-03-26  Bruno Haible  <bruno@clisp.org>
95760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
95761         unportable shell command "if ! ...".
95762         Reported by Ralf Wildenhues.
95764 2007-03-25  Bruno Haible  <bruno@clisp.org>
95766         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
95767         <sysexits.h> file, and only add EX_CONFIG.
95768         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
95769         absolute file name and whether it is sufficient. Substitute also
95770         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
95771         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
95772         ABSOLUTE_SYSEXITS_H into sysexits.h.
95774 2007-03-25  Bruno Haible  <bruno@clisp.org>
95776         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
95777         hints is NULL.
95779 2007-03-25  Bruno Haible  <bruno@clisp.org>
95781         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
95782         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
95784 2007-03-25  Bruno Haible  <bruno@clisp.org>
95786         * lib/vasnprintf.c: Include langinfo.h.
95787         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
95788         multithread-safe.
95789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
95790         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
95791         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95792         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95793         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95794         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95795         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95796         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
95797         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95798         Reported by Simon Josefsson.
95800 2007-03-25  Bruno Haible  <bruno@clisp.org>
95802         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
95803         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
95804         * modules/vasnprintf (Depends-on): Add stdint.
95806 2007-03-25  Bruno Haible  <bruno@clisp.org>
95808         * modules/fpieee: New file.
95809         * m4/fpieee.m4: New file.
95810         * modules/isnan-nolibm (Depends-on): Add fpieee.
95811         * modules/isnanl-nolibm (Depends-on): Add fpieee.
95812         * modules/isnanl (Depends-on): Add fpieee.
95814 2007-03-25  Bruno Haible  <bruno@clisp.org>
95816         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
95818 2007-03-25  Bruno Haible  <bruno@clisp.org>
95820         Avoid test failures on IRIX 6.5.
95821         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
95822         (main): Use it.
95823         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
95824         macros.
95825         (main): Use them.
95827 2007-03-25  Bruno Haible  <bruno@clisp.org>
95829         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
95830         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
95831         exists but doesn't work.
95832         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
95833         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
95834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
95835         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
95836         math.h.
95838 2007-03-25  Bruno Haible  <bruno@clisp.org>
95840         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
95841         returns inf. Needed on IRIX 6.5.
95843 2007-03-25  Bruno Haible  <bruno@clisp.org>
95845         * tests/test-frexpl.c: Include isnanl-nolibm.h.
95846         (main): Use isnanl instead of x != x idiom.
95847         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
95849         * tests/test-frexp.c: Include isnan.h.
95850         (main): Use isnan instead of x != x idiom.
95851         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
95853 2007-03-25  Bruno Haible  <bruno@clisp.org>
95855         * tests/test-frexp.c (NaN): New function/macro.
95856         (main): Use it instead of 0.0 / 0.0.
95857         * tests/test-isnan.c (NaN): New function/macro.
95858         (main): Use it instead of 0.0 / 0.0.
95859         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
95860         (test_function): Use it instead of 0.0 / 0.0.
95861         * tests/test-vasprintf-posix.c (NaN): New function/macro.
95862         (test_function): Use it instead of 0.0 / 0.0.
95863         * tests/test-snprintf-posix.h (NaN): New function/macro.
95864         (test_function): Use it instead of 0.0 / 0.0.
95865         * tests/test-sprintf-posix.h (NaN): New function/macro.
95866         (test_function): Use it instead of 0.0 / 0.0.
95867         * tests/test-fprintf-posix.h (NaN): New function/macro.
95868         (test_function): Use it instead of 0.0 / 0.0.
95869         * tests/test-printf-posix.h (NaN): New function/macro.
95870         (test_function): Use it instead of 0.0 / 0.0.
95872         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
95874 2007-03-25  Bruno Haible  <bruno@clisp.org>
95876         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
95878 2007-03-25  Bruno Haible  <bruno@clisp.org>
95880         * lib/regexec.c (merge_state_with_log): Make static.
95882 2007-03-25  Bruno Haible  <bruno@clisp.org>
95884         * lib/trigl.c (kernel_rem_pio2): Make static.
95886 2007-03-25  Bruno Haible  <bruno@clisp.org>
95888         * lib/sincosl.c (sincosl_table): Make static.
95890 2007-03-25  Bruno Haible  <bruno@clisp.org>
95892         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
95893         if the compiler does not support C99.
95895 2007-03-25  Bruno Haible  <bruno@clisp.org>
95897         * modules/time (Makefile.am): Ensure all rule action lines start with a
95898         tab.
95900 2007-03-24  Bruno Haible  <bruno@clisp.org>
95902         * modules/tsearch-tests: New file.
95903         * tests/test-tsearch.sh: New file.
95904         * tests/test-tsearch.c: New file, mostly copied from glibc.
95906         * modules/search-tests: New file.
95907         * tests/test-search.c: New file.
95909         * modules/search: New file.
95910         * lib/search_.h: New file, incorporating lib/tsearch.h.
95911         * m4/search_h.m4: New file.
95912         * lib/tsearch.h: Remove file.
95913         * lib/tsearch.c: Include search.h instead of tsearch.h.
95914         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
95915         HAVE_TSEARCH.
95916         * modules/tsearch (Files): Remove lib/tsearch.h.
95917         (Depends-on): Add search.
95918         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
95919         (Include): Change tsearch.h into search.h.
95921 2007-03-24  Bruno Haible  <bruno@clisp.org>
95923         * modules/fpucw: New file.
95924         * lib/fpucw.h: New file.
95925         * lib/frexp.c: Include fpucw.h.
95926         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
95927         (FUNC): Use them.
95928         * lib/printf-frexp.c: Include fpucw.h.
95929         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
95930         (FUNC): Use them.
95931         * lib/vasnprintf.c: Include fpucw.h.
95932         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
95933         'long double' calculations.
95934         * tests/test-frexpl.c: Include fpucw.h.
95935         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
95936         * tests/test-printf-frexpl.c: Include fpucw.h.
95937         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
95938         * modules/frexpl (Depends-on): Add fpucw.
95939         * modules/printf-frexpl (Depends-on): Likewise.
95940         * modules/fprintf-posix (Depends-on): Likewise.
95941         * modules/snprintf-posix (Depends-on): Likewise.
95942         * modules/sprintf-posix (Depends-on): Likewise.
95943         * modules/vasnprintf-posix (Depends-on): Likewise.
95944         * modules/vasprintf-posix (Depends-on): Likewise.
95945         * modules/vfprintf-posix (Depends-on): Likewise.
95946         * modules/vsnprintf-posix (Depends-on): Likewise.
95947         * modules/vsprintf-posix (Depends-on): Likewise.
95948         * modules/frexpl-tests (Depends-on): Likewise.
95949         * modules/printf-frexpl-tests (Depends-on): Likewise.
95951 2007-03-24  Bruno Haible  <bruno@clisp.org>
95953         * lib/float+.h: New file.
95954         * lib/isnan.c: Include float+.h.
95955         (SIZE): New macro.
95956         (FUNC): Compare only SIZE bytes of the value.
95957         * lib/vasnprintf.c: Include float+.h.
95958         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
95959         SIZEOF_LDBL or SIZEOF_DBL bytes.
95960         * modules/isnan-nolibm (Files): Add lib/float+.h.
95961         * modules/isnanl-nolibm (Files): Add lib/float+.h.
95962         * modules/isnanl (Files): Add lib/float+.h.
95963         * modules/vasnprintf (Files): Add lib/float+.h.
95965 2007-03-24  Bruno Haible  <bruno@clisp.org>
95967         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
95968         include isnanl-nolibm.h.
95970 2007-03-24  Bruno Haible  <bruno@clisp.org>
95972         * tests/test-read-file.c (main): Don't produce spurious output for
95973         expected situations. Make the test fail if it encountered unexpected
95974         results.
95976 2007-03-24  Bruno Haible  <bruno@clisp.org>
95978         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
95979         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
95981 2007-03-24  Bruno Haible  <bruno@clisp.org>
95983         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
95985 2007-03-24  Bruno Haible  <bruno@clisp.org>
95987         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
95988         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
95990         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
95991         * modules/utf8-ucs4: Turn into a symbolic link to module
95992         unistr/u8-mbtouc.
95994         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
95995         utf8-ucs4-unsafe.
95996         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
95997         unistr/u8-mbtouc-unsafe.
95999         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
96000         * modules/utf16-ucs4: Turn into a symbolic link to module
96001         unistr/u16-mbtouc.
96003         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
96004         utf16-ucs4-unsafe.
96005         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
96006         unistr/u16-mbtouc-unsafe.
96008         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
96009         * modules/ucs4-utf8: Turn into a symbolic link to module
96010         unistr/u8-ubtomb.
96012         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
96013         * modules/ucs4-utf16: Turn into a symbolic link to module
96014         unistr/u16-ubtomb.
96016 2007-03-24  Bruno Haible  <bruno@clisp.org>
96018         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
96019         Enable the function only if HAVE_INLINE.
96020         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
96021         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
96022         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
96023         Enable the function only if HAVE_INLINE.
96024         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
96025         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
96026         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
96027         Enable the function only if HAVE_INLINE.
96028         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
96029         Enable the function only if HAVE_INLINE.
96030         * modules/utf8-ucs4: Update.
96031         * modules/utf8-ucs4-unsafe: Update.
96032         * modules/utf16-ucs4: Update.
96033         * modules/utf16-ucs4-unsafe: Update.
96034         * modules/ucs4-utf8: Update.
96035         * modules/ucs4-utf16: Update.
96037 2007-03-24  Bruno Haible  <bruno@clisp.org>
96039         * lib/utf8-ucs4.h: Remove file.
96040         * lib/utf8-ucs4-unsafe.h: Remove file.
96041         * lib/utf16-ucs4.h: Remove file.
96042         * lib/utf16-ucs4-unsafe.h: Remove file.
96043         * lib/ucs4-utf8.h: Remove file.
96044         * lib/ucs4-utf16.h: Remove file.
96045         * lib/unistr.h: Include their previous contents.
96046         * m4/utf-ucs4.m4: Remove file.
96047         * m4/ucs4-utf.m4: Remove file.
96048         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
96049         (Depends-on): Add unistr/base.
96050         (configure.ac): Remove gl_UTF_UCS4.
96051         (Makefile.am): Update.
96052         (Include): Change to unistr.h.
96053         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
96054         (Depends-on): Add unistr/base.
96055         (configure.ac): Remove gl_UTF_UCS4.
96056         (Makefile.am): Update.
96057         (Include): Change to unistr.h.
96058         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
96059         (Depends-on): Add unistr/base.
96060         (configure.ac): Remove gl_UTF_UCS4.
96061         (Makefile.am): Update.
96062         (Include): Change to unistr.h.
96063         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
96064         (Depends-on): Add unistr/base.
96065         (configure.ac): Remove gl_UTF_UCS4.
96066         (Makefile.am): Update.
96067         (Include): Change to unistr.h.
96068         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
96069         (Depends-on): Add unistr/base.
96070         (configure.ac): Remove gl_UCS4_UTF.
96071         (Makefile.am): Update.
96072         (Include): Change to unistr.h.
96073         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
96074         (Depends-on): Add unistr/base.
96075         (configure.ac): Remove gl_UCS4_UTF.
96076         (Makefile.am): Update.
96077         (Include): Change to unistr.h.
96078         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
96079         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
96080         utf8-ucs4-unsafe.h.
96081         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
96082         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
96083         utf16-ucs4-unsafe.h.
96084         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
96085         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
96086         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
96087         * lib/unistr/u8-strchr.c: Likewise.
96088         * lib/unistr/u8-strrchr.c: Likewise.
96089         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
96090         * lib/unistr/u16-strchr.c: Likewise.
96091         * lib/unistr/u16-strrchr.c: Likewise.
96092         * lib/striconveh.c: Update.
96093         * lib/linebreak.c: Update.
96095 2007-03-24  Bruno Haible  <bruno@clisp.org>
96097         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
96098         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
96100 2007-03-22  Bruno Haible  <bruno@clisp.org>
96102         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
96104 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
96106         * MODULES.html.sh (File system functions): New module write-any-file.
96107         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
96108         * m4/write-any-file.m4: New files.
96110 2007-03-23  Eric Blake  <ebb9@byu.net>
96112         * gnulib-tool: Rearrange space-tab sequences, since some editors
96113         like to eat them.
96115 2007-03-23  Eric Blake  <ebb9@byu.net>
96117         * lib/version-etc.c (version_etc_va): Update license wording to
96118         be more concise.  Recommended by Richard Stallman.
96120 2007-03-22  Bruno Haible  <bruno@clisp.org>
96122         * lib/poll.c (MSG_PEEK): New fallback definition.
96124 2007-03-22  Bruno Haible  <bruno@clisp.org>
96126         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
96127         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
96128         (main): Update.
96129         Fixes a compilation error on BeOS.
96131 2007-03-22  Bruno Haible  <bruno@clisp.org>
96133         * modules/frexpl-tests: New file.
96134         * tests/test-frexpl.c: New file.
96136         * modules/frexpl: New file.
96137         * m4/frexpl.m4: New file.
96138         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
96139         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
96140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
96141         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
96142         (Depends-on): Add frexpl. Remove isnanl-nolibm.
96143         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
96145 2007-03-22  Bruno Haible  <bruno@clisp.org>
96147         * lib/frexpl.c: Share code with lib/frexp.c.
96148         * modules/mathl (Files): Add lib/frexp.c.
96149         (Depends-on): Add isnanl-nolibm.
96151 2007-03-22  Bruno Haible  <bruno@clisp.org>
96153         * modules/printf-frexp (Files): Add m4/frexp.m4.
96154         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
96155         only if the found frexp function actually works.
96157 2007-03-22  Bruno Haible  <bruno@clisp.org>
96159         * lib/frexp.c: Remove older implementation that uses divisions.
96161 2007-03-21  Bruno Haible  <bruno@clisp.org>
96163         * modules/frexp-tests: New file.
96164         * tests/test-frexp.c: New file.
96166         * modules/frexp: New file.
96167         * lib/frexp.c: New file.
96168         * m4/frexp.m4: New file.
96169         * lib/math_.h (frexp): New declaration.
96170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
96171         REPLACE_FREXP.
96172         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
96174 2007-03-21  Bruno Haible  <bruno@clisp.org>
96176         * modules/isnanl-tests: New file.
96177         * tests/test-isnanl.c: New file.
96179         * modules/isnanl: New file.
96180         * lib/isnanl.h: New file.
96181         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
96182         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
96183         gl_FUNC_ISNANL_WORKS.
96184         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
96185         New macros.
96187 2007-03-21  Bruno Haible  <bruno@clisp.org>
96189         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
96190         lib/isnanl.h.
96191         (Include): Update.
96192         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
96193         * lib/vasnprintf.c: Update.
96194         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
96195         tests/test-isnanl.h, remove tests/test-isnanl.c.
96196         (Makefile.am): Update.
96197         * tests/test-isnanl-nolibm.c: New file.
96198         * tests/test-isnanl.h: New file.
96199         * tests/test-isnanl.c: Remove file.
96201 2007-03-21  Jim Meyering  <jim@meyering.net>
96203         When trying to open ".", treat ESTALE like EACCES.
96204         * lib/savewd.c (savewd_save): Resort to forking not just upon
96205         failure with EACCES, but also when errno is ESTALE.
96207 2007-03-20  Bruno Haible  <bruno@clisp.org>
96209         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
96210         Needed on AIX 5.1. Reported by Matthew Woehlke.
96212 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
96214         Suggestions by Bruno Haible:
96215         * lib/acl-internal.h: Include "gettext.h" rather than rolling
96216         our own.
96217         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
96218         * modules/acl (Depends-on): Add gettext.
96220 2007-03-19  Bruno Haible  <bruno@clisp.org>
96222         * modules/iconvme: Remove file.
96223         * lib/iconvme.h: Remove file.
96224         * lib/iconvme.c: Remove file.
96225         * m4/iconvme.m4: Remove file.
96227 2007-03-19  Bruno Haible  <bruno@clisp.org>
96229         * doc/relocatable-maint.texi: Break long shell script line.
96230         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
96232 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
96234         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
96235         handle file_has_acl.
96236         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
96237         * lib/acl.c: Move header inclusions and related macro defns into
96238         lib/acl-internal.h.
96239         (S_ISLNK): Remove defn, since that's now done for us.
96240         (file_has_acl): Move to lib/file-has-acl.c.
96241         Call acl_trivial if available.  This is the crucial part of the fix.
96242         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
96243         shared within the library.  Rewrite a bit, partly to make it compatible
96244         with the GNU coding style.
96245         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
96246         Remove unnecessary double-quotes.
96247         Don't test for acl_to_text; the build will catch that.
96248         Replace acl_entries if it doesn't exist and it is needed.
96249         Check for -lsec and acl_trivial (as used on Solaris 10).
96250         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
96251         lib/file-has-acl.c.
96252         (Depends-on): Add sys_stat, for S_ISLNK.
96254 2007-03-19  Ben Pfaff  <blp@gnu.org>
96256         * doc/gnulib.texi: Fix typos.
96257         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
96259 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
96261         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
96262         If size is zero here, buf must be zero.
96264 2007-03-19  Simon Josefsson  <simon@josefsson.org>
96266         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
96267         <bruno@clisp.org>.
96269 2007-03-18  Bruno Haible  <bruno@clisp.org>
96271         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
96272         Suggested by Eric Blake.
96274 2007-03-18  Ben Pfaff  <blp@gnu.org>
96276         * doc/relocatable.texi: Recommend using as prefix a directory
96277         that does not exist and will never be created.  Based on
96278         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
96279         and others.
96281 2007-03-17  Bruno Haible  <bruno@clisp.org>
96283         * lib/fchownat.c: Include lchown.h.
96285 2007-03-17  Bruno Haible  <bruno@clisp.org>
96287         Fix endless loop when the given allocated size was > INT_MAX.
96288         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
96289         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
96290         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
96291         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
96292         * lib/sprintf.c (sprintf): Likewise.
96294 2007-03-17  Bruno Haible  <bruno@clisp.org>
96296         * tests/test-argp-2.sh (func_compare): Output a context diff.
96298 2007-03-17  Bruno Haible  <bruno@clisp.org>
96300         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
96301         locale's decimal-point character.
96303 2007-03-17  Bruno Haible  <bruno@clisp.org>
96305         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
96306         before comparing it. Needed because on some platforms (e.g. x86) a
96307         'long double' occupies less bytes than sizeof (long double).
96309 2007-03-17  Bruno Haible  <bruno@clisp.org>
96311         * tests/test-crc.c (main): Make printf statements 64-bit clean.
96312         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
96313         * tests/test-getaddrinfo.c (simple): Likewise.
96314         * tests/test-read-file.c (main): Likewise.
96316 2007-03-17  Bruno Haible  <bruno@clisp.org>
96318         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
96320 2007-03-17  Bruno Haible  <bruno@clisp.org>
96322         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
96323         unused variable.
96325 2007-03-17  Bruno Haible  <bruno@clisp.org>
96327         * tests/test-c-strcasecmp.c: Include c-strcase.h.
96328         * tests/test-c-strncasecmp.c: Likewise.
96330 2007-03-17  Bruno Haible  <bruno@clisp.org>
96332         * modules/stdlib (Depends-on): Add unistd.
96333         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
96334         Needed for MacOS X 10.3.
96336 2007-03-17  Bruno Haible  <bruno@clisp.org>
96338         * lib/unistr/u-strdup.h: Include <stdlib.h>.
96340 2007-03-17  Bruno Haible  <bruno@clisp.org>
96342         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
96344 2007-03-17  Bruno Haible  <bruno@clisp.org>
96346         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
96347         to reflect files copied from gnulib (with or without modifications).
96348         Suggested by Jim Meyering.
96350 2007-03-17  Eric Blake  <ebb9@byu.net>
96352         * NEWS: Document stdlib change from 2007-02-18.
96354 2007-03-17  Jim Meyering  <jim@meyering.net>
96356         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
96357         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
96358         someone uses a name containing shell meta-characters.
96359         Reported by Alfred M. Szmidt.
96361         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
96363 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
96365         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
96366         and copy gettext configuration files only if configure.ac contains
96367         a use of AM_GNU_GETTEXT_VERSION.
96369 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
96371         * build-aux/bootstrap (gnulib_name): New variable.
96372         (gnulib_tool_options): Use it.
96374 2007-03-13  Simon Josefsson  <simon@josefsson.org>
96376         * tests/test-des.c: Use new namespace.
96378 2007-03-15  Bruno Haible  <bruno@clisp.org>
96380         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
96381         Reported by James Youngman <jay@gnu.org>.
96383 2007-03-15  Bruno Haible  <bruno@clisp.org>
96385         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
96386         declared prototype. Needed with cc on OSF/1 5.1.
96388 2007-03-15  Bruno Haible  <bruno@clisp.org>
96390         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
96391         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
96392         (struct gl_list_implementation): Add dispose_fn argument to the
96393         'create_empty', 'create' methods.
96394         (struct gl_list_impl_base): Add field 'dispose_fn'.
96395         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
96396         argument.
96397         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
96398         dispose_fn argument.
96399         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
96400         dispose_fn on the dropped values.
96401         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
96402         dispose_fn argument.
96403         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
96404         dropped values.
96405         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
96406         (gl_tree_remove_node): Call dispose_fn on the dropped value.
96407         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
96408         (gl_tree_remove_node): Call dispose_fn on the dropped value.
96409         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
96410         argument.
96411         (gl_tree_list_free): Call dispose_fn on the dropped values.
96412         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
96413         the dropped values.
96414         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
96415         Add dispose_fn argument.
96416         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
96417         Call dispose_fn on the dropped values.
96418         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
96419         Add dispose_fn argument.
96420         (gl_sublist_create): Initialize the 'dispose_fn' field.
96421         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
96422         * tests/test-array_list.c (main): Update.
96423         * tests/test-carray_list.c (main): Update.
96424         * tests/test-avltree_list.c (main): Update.
96425         * tests/test-rbtree_list.c (main): Update.
96426         * tests/test-avltreehash_list.c (main): Update.
96427         * tests/test-rbtreehash_list.c (main): Update.
96428         * tests/test-linked_list.c (main): Update.
96429         * tests/test-linkedhash_list.c (main): Update.
96430         * tests/test-array_oset.c (main): Update.
96432 2007-03-15  Bruno Haible  <bruno@clisp.org>
96434         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
96435         (gl_oset_create_empty): Add dispose_fn argument.
96436         (struct gl_oset_implementation): Add dispose_fn argument to
96437         'create_empty' method.
96438         (struct gl_oset_impl_base): Add dispose_fn field.
96439         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
96440         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
96441         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
96442         values.
96443         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
96444         (gl_tree_oset_free): Call dispose_fn on the dropped values.
96445         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
96446         dropped value.
96447         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
96448         dropped value.
96449         * tests/test-array_oset.c (main): Update.
96450         * tests/test-avltree_oset.c (main): Update.
96451         * tests/test-rbtree_oset.c (main): Update.
96452         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
96454 2007-03-13  Bruno Haible  <bruno@clisp.org>
96456         * tests/test-stdbool.c (i): Update after last patch.
96458 2007-03-12  Bruno Haible  <bruno@clisp.org>
96460         * lib/quotearg.c: Include <wctype.h> early, before the definition of
96461         the iswprint macro. Needed on Solaris 2.5.1.
96463 2007-03-12  Bruno Haible  <bruno@clisp.org>
96465         * tests/test-printf-frexp.c (main): Declare x as volatile.
96467 2007-03-12  Simon Josefsson  <simon@josefsson.org>
96469         * doc/gnulib.texi (Build robot for gnulib): New section.
96471 2007-03-12  Jim Meyering  <jim@meyering.net>
96473         * build-aux/bootstrap: New file.
96474         * build-aux/bootstrap.conf: New file, from coreutils.
96476 2007-03-11  Bruno Haible  <bruno@clisp.org>
96478         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
96480 2007-03-12  Simon Josefsson  <simon@josefsson.org>
96482         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
96483         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
96484         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
96486 2007-03-11  Bruno Haible  <bruno@clisp.org>
96488         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
96489         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
96491 2007-03-11  Bruno Haible  <bruno@clisp.org>
96493         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
96494         formula. Needed for SunPRO C 5.0.
96496 2007-03-11  Bruno Haible  <bruno@clisp.org>
96498         * modules/long-options (Depends-on): Add getopt.
96500 2007-03-11  Bruno Haible  <bruno@clisp.org>
96502         * modules/modechange (Depends-on): Add stdbool.
96504 2007-03-11  Bruno Haible  <bruno@clisp.org>
96506         * modules/i-ring (Depends-on): Add stdbool.
96508 2007-03-11  Bruno Haible  <bruno@clisp.org>
96510         * modules/gc-des (Depends-on): Add stdbool.
96512 2007-03-11  Bruno Haible  <bruno@clisp.org>
96514         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
96516 2007-03-11  Bruno Haible  <bruno@clisp.org>
96518         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
96520 2007-03-11  Bruno Haible  <bruno@clisp.org>
96522         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
96524 2007-03-11  Bruno Haible  <bruno@clisp.org>
96526         * lib/vasnprintf.c (sprintf): Undefine.
96528 2007-03-11  Bruno Haible  <bruno@clisp.org>
96530         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
96531         initializers in SunPRO C and Compaq C compilers.
96533 2007-03-11  Bruno Haible  <bruno@clisp.org>
96535         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
96536         decrementing code ANSI C compliant.
96538 2007-03-11  Bruno Haible  <bruno@clisp.org>
96540         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
96541         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
96543 2007-03-11  Bruno Haible  <bruno@clisp.org>
96545         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
96546         <stdbool.h> substitute doesn't pass.
96548 2007-03-11  Bruno Haible  <bruno@clisp.org>
96550         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
96552 2007-03-11  Bruno Haible  <bruno@clisp.org>
96554         * gnulib-tool (func_create_megatestdir): Create also an autobuild
96555         script, for submission to autobuild.josefsson.org.
96557 2007-03-10  Bruno Haible  <bruno@clisp.org>
96559         * modules/canonicalize-lgpl-tests: New file.
96560         * tests/test-canonicalize-lgpl.sh: New file.
96561         * tests/test-canonicalize-lgpl.c: New file.
96563         * modules/c-strcase-tests: New file.
96564         * tests/test-c-strcase.sh: New file.
96565         * tests/test-c-strcasecmp.c: New file.
96566         * tests/test-c-strncasecmp.c: New file.
96568         * modules/atexit-tests: New file.
96569         * tests/test-atexit.sh: New file.
96570         * tests/test-atexit.c: New file.
96572 2007-03-10  Bruno Haible  <bruno@clisp.org>
96574         * tests/test-binary-io.sh: Use temporary filenames that are not so
96575         likely to clash with those of other tests (in a parallel make).
96576         * tests/test-binary-io.c: Likewise.
96578 2007-03-10  Bruno Haible  <bruno@clisp.org>
96580         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
96581         fallback; use #error instead.
96582         Suggested by Simon Josefsson.
96584 2007-03-10  Bruno Haible  <bruno@clisp.org>
96586         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
96587         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
96588         first and the last.
96590 2007-03-10  Bruno Haible  <bruno@clisp.org>
96592         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
96594 2007-03-10  Bruno Haible  <bruno@clisp.org>
96596         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
96597         "make distcheck".
96598         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
96599         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
96600         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
96602 2007-03-10  Bruno Haible  <bruno@clisp.org>
96604         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
96605         variable.
96606         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
96607         variable.
96609 2007-03-09  Eric Blake  <ebb9@byu.net>
96610         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
96612         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
96613         types are not being provided by gnulib.
96614         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
96615         types are supported.
96617 2007-03-10  Bruno Haible  <bruno@clisp.org>
96619         * lib/stdio_.h (__attribute__): New macro.
96620         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
96621         vsprintf): Specify __attribute__ __format__ for GCC.
96622         Suggested by Eric Blake.
96624 2007-03-09  Bruno Haible  <bruno@clisp.org>
96626         * modules/printf-posix-tests: New file.
96627         * tests/test-printf-posix.sh: New file.
96628         * tests/test-printf-posix.c: New file.
96630         * modules/printf-posix: New file.
96631         * lib/printf.c: New file.
96632         * m4/printf-posix-rpl.m4: New file.
96633         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
96634         REPLACE_PRINTF.
96635         * lib/stdio_.h (printf): New declaration.
96636         (format, __format__, ____printf____, ____scanf____, ____strftime____,
96637         ____strfmon____): New macros.
96638         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
96639         REPLACE_PRINTF.
96641 2007-03-09  Bruno Haible  <bruno@clisp.org>
96643         * tests/test-vasnprintf-posix2.sh: New file.
96644         * tests/test-vasnprintf-posix2.c: New file.
96645         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
96646         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
96647         (Makefile.am): Activate test-vasnprintf-posix2.sh.
96649         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
96650         a locale dependent decimal point, rather than always '.'.
96652 2007-03-09  Eric Blake  <ebb9@byu.net>
96654         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
96655         spite of platforms like Tandem/NSK that define it to -1.
96657 2007-03-08  Bruno Haible  <bruno@clisp.org>
96659         * modules/vprintf-posix-tests: New file.
96660         * tests/test-vprintf-posix.sh: New file.
96661         * tests/test-vprintf-posix.c: New file.
96662         * tests/test-printf-posix.h: New file.
96664         * modules/vprintf-posix: New file.
96665         * lib/vprintf.c: New file.
96666         * m4/vprintf-posix.m4: New file.
96667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
96668         REPLACE_VPRINTF.
96669         * lib/stdio_.h (vprintf): New declaration.
96670         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
96671         REPLACE_VPRINTF.
96673 2007-03-08  Bruno Haible  <bruno@clisp.org>
96675         * modules/fprintf-posix-tests: New file.
96676         * tests/test-fprintf-posix.sh: New file.
96677         * tests/test-fprintf-posix.c: New file.
96679         * modules/fprintf-posix: New file.
96680         * lib/fprintf.c: New file.
96681         * m4/fprintf-posix.m4: New file.
96682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
96683         REPLACE_FPRINTF.
96684         * lib/stdio_.h (fprintf): New declaration.
96685         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
96686         REPLACE_FPRINTF.
96688 2007-03-08  Bruno Haible  <bruno@clisp.org>
96690         * modules/vfprintf-posix-tests: New file.
96691         * tests/test-vfprintf-posix.sh: New file.
96692         * tests/test-vfprintf-posix.c: New file.
96693         * tests/test-fprintf-posix.h: New file.
96694         * tests/test-fprintf-posix.out: New file.
96696         * modules/vfprintf-posix: New file.
96697         * lib/vfprintf.c: New file.
96698         * m4/vfprintf-posix.m4: New file.
96699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
96700         REPLACE_VFPRINTF.
96701         * lib/stdio_.h (vfprintf): New declaration.
96702         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
96703         REPLACE_VFPRINTF.
96705 2007-03-08  Bruno Haible  <bruno@clisp.org>
96707         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
96709 2007-03-08  Bruno Haible  <bruno@clisp.org>
96711         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
96712         instead of 'expr' invocations.
96713         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96714         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96715         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96717         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96718         Suggested by Paul Eggert.
96720 2007-03-08  Bruno Haible  <bruno@clisp.org>
96722         * modules/fseterr-tests: New file.
96723         * tests/test-fseterr.c: New file.
96725         * modules/fseterr: New file.
96726         * lib/fseterr.h: New file.
96727         * lib/fseterr.c: New file.
96729 2007-03-08  Bruno Haible  <bruno@clisp.org>
96731         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
96732         * lib/getopt_.h: Likewise.
96733         * lib/mbswidth.h: Likewise.
96734         * lib/setenv.h: Likewise.
96735         * lib/vasnprintf.h: Likewise.
96736         * lib/vasprintf.h: Likewise.
96737         * lib/verror.h: Likewise.
96738         * lib/xsetenv.h: Likewise.
96739         * lib/xvasprintf.h: Likewise.
96741 2007-03-08  Jim Meyering  <jim@meyering.net>
96743         * users.txt: Add parted.
96745         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
96747 2007-03-07  Bruno Haible  <bruno@clisp.org>
96749         * m4/printf.m4: Make the shell script snippets copy&pastable.
96751 2007-03-02  Bruno Haible  <bruno@clisp.org>
96753         * lib/netinet_in_.h: New file.
96754         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
96755         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
96756         * modules/netinet_in (Files): Add lib/netinet_in_.h.
96757         (Depends-on): Add absolute-header.
96758         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
96759         into netinet/in.h.
96761 2007-03-03  Bruno Haible  <bruno@clisp.org>
96763         * lib/sys_select_.h: New file.
96764         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
96765         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
96766         * modules/sys_select (Files): Add lib/sys_select_.h.
96767         (Depends-on): Add absolute-header.
96768         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
96769         into sys/select.h.
96771 2007-03-02  Bruno Haible  <bruno@clisp.org>
96773         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
96774         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
96775         values.
96776         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
96777         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
96778         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
96779         * modules/sys_socket (Depends-on): Add absolute-header.
96780         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
96781         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
96782         (Include): Remove requirement of inclusion of <sys/types.h>.
96784 2007-03-02  Bruno Haible  <bruno@clisp.org>
96786         * lib/byteswap_.h (bswap_32): Fix formula.
96788 2007-03-06  Bruno Haible  <bruno@clisp.org>
96790         * modules/sprintf-posix-tests: New file.
96791         * tests/test-sprintf-posix.c: New file.
96793         * modules/sprintf-posix: New file.
96794         * lib/sprintf.c: New file.
96795         * m4/sprintf-posix.m4: New file.
96796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
96797         REPLACE_SPRINTF.
96798         * lib/stdio_.h (sprintf): New declaration.
96799         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
96800         REPLACE_SPRINTF.
96802 2007-03-06  Bruno Haible  <bruno@clisp.org>
96804         * modules/vsprintf-posix-tests: New file.
96805         * tests/test-vsprintf-posix.c: New file.
96806         * tests/test-sprintf-posix.h: New file.
96808         * modules/vsprintf-posix: New file.
96809         * lib/vsprintf.c: New file.
96810         * m4/vsprintf-posix.m4: New file.
96811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
96812         REPLACE_VSPRINTF.
96813         * lib/stdio_.h (vsprintf): New declaration.
96814         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
96815         REPLACE_VSPRINTF.
96817 2007-03-06  Bruno Haible  <bruno@clisp.org>
96819         * modules/vsnprintf (Depend-on): Remove minmax.
96821 2007-03-06  Bruno Haible  <bruno@clisp.org>
96823         * modules/snprintf-posix-tests: New file.
96824         * tests/test-snprintf-posix.c: New file.
96826         * modules/snprintf-posix: New file.
96827         * m4/snprintf-posix.m4: New file.
96828         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
96829         gl_FUNC_SNPRINTF.
96830         (gl_FUNC_SNPRINTF): Invoke it.
96831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
96832         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
96833         is set.
96834         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
96836 2007-03-06  Bruno Haible  <bruno@clisp.org>
96838         * modules/vsnprintf-posix-tests: New file.
96839         * tests/test-vsnprintf-posix.c: New file.
96840         * tests/test-snprintf-posix.h: New file.
96842         * modules/vsnprintf-posix: New file.
96843         * m4/vsnprintf-posix.m4: New file.
96844         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
96845         gl_FUNC_VSNPRINTF.
96846         (gl_FUNC_VSNPRINTF): Invoke it.
96847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
96848         * lib/stdio_.h (vsnprintf): Define as a replacement if
96849         REPLACE_VSNPRINTF is set.
96850         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
96852 2007-03-06  Bruno Haible  <bruno@clisp.org>
96854         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
96855         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
96857 2007-03-06  Bruno Haible  <bruno@clisp.org>
96859         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
96860         (asinl): Declare also if HAVE_DECL_ASINL is set.
96861         (atanl): Declare also if HAVE_DECL_ATANL is set.
96862         (ceill): Declare also if HAVE_DECL_CEILL is set.
96863         (cosl): Declare also if HAVE_DECL_COSL is set.
96864         (expl): Declare also if HAVE_DECL_EXPL is set.
96865         (floorl): Declare also if HAVE_DECL_FLOORL is set.
96866         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
96867         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
96868         (logl): Declare also if HAVE_DECL_LOGL is set.
96869         (sinl): Declare also if HAVE_DECL_SINL is set.
96870         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
96871         (tanl): Declare also if HAVE_DECL_TANL is set.
96872         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
96873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
96874         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
96875         declaration of frexpl, ldexpl.
96876         * modules/printf-frexpl (Depends-on): Add math.
96877         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
96879 2007-03-05  Bruno Haible  <bruno@clisp.org>
96881         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
96882         frexpl and ldexpl are declared.
96883         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
96885 2007-03-05  Bruno Haible  <bruno@clisp.org>
96887         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
96888         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
96890 2007-03-05  Bruno Haible  <bruno@clisp.org>
96892         * lib/stdio_.h: Include <stddef.h>.
96894 2007-03-05  Bruno Haible  <bruno@clisp.org>
96896         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
96898 2007-03-05  Bruno Haible  <bruno@clisp.org>
96900         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
96901         NetBSD 4, from Ralf Wildenhues.
96903 2007-03-04  Bruno Haible  <bruno@clisp.org>
96905         * lib/vasprintf.h: Update #if logic for the case when the functions
96906         exist but are overridden.
96908 2007-03-04  Bruno Haible  <bruno@clisp.org>
96910         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
96911         implementations: glibc-2.4 and MacOS X 10.3.
96912         * tests/test-vasnprintf-posix.c (test_function): Test also the case
96913         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
96914         * tests/test-vasprintf-posix.c (test_function): Likewise.
96916 2007-03-04  Bruno Haible  <bruno@clisp.org>
96918         * modules/vasprintf-posix-tests: New file.
96919         * tests/test-vasprintf-posix.c: New file.
96921         * modules/vasprintf-posix: New file.
96922         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
96923         defined.
96924         * m4/vasprintf-posix.m4: New file.
96925         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
96926         gl_FUNC_VASPRINTF.
96927         (gl_FUNC_VASPRINTF): Invoke it.
96928         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
96929         here.
96930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
96932 2007-03-04  Bruno Haible  <bruno@clisp.org>
96934         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
96935         REPLACE_GETTIMEOFDAY.
96936         * modules/sys_time (Makefile.am): Likewise.
96937         * m4/sys_time_h.m4: Likewise.
96938         * m4/gettimeofday.m4: Likewise.
96940 2007-03-04  Bruno Haible  <bruno@clisp.org>
96942         * modules/vasnprintf-posix-tests: New file.
96943         * tests/test-vasnprintf-posix.c: New file.
96945         * modules/vasnprintf-posix: New file.
96946         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
96947         printf-frexpl.h.
96948         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
96949         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
96950         REPLACE_VASNPRINTF is defined.
96951         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
96952         gl_FUNC_VASNPRINTF.
96953         (gl_FUNC_VASNPRINTF): Invoke it.
96954         * m4/vasnprintf-posix.m4: New file.
96955         * m4/printf.m4: New file.
96957 2007-03-04  Bruno Haible  <bruno@clisp.org>
96959         Compile progreloc.c only if --enable-relocatable is specified.
96960         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
96961         if --enable-relocatable was specified.
96962         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
96963         lib_SOURCES.
96965 2007-03-04  Jim Meyering  <jim@meyering.net>
96967         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
96968         Use it consistently, rather than enumerating errno constants.
96970 2007-03-04  Bruno Haible  <bruno@clisp.org>
96972         * modules/xvasprintf-tests: New file.
96973         * tests/test-xvasprintf.c: New file.
96975         * modules/vasprintf-tests: New file.
96976         * tests/test-vasprintf.c: New file.
96978         * modules/vasnprintf-tests: New file.
96979         * tests/test-vasnprintf.c: New file.
96981         * modules/vsnprintf-tests: New file.
96982         * tests/test-vsnprintf.c: New file.
96984         * modules/snprintf-tests: New file.
96985         * tests/test-snprintf.c: New file.
96987 2007-03-04  Bruno Haible  <bruno@clisp.org>
96989         Compile relocatable.c only if --enable-relocatable is specified.
96990         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
96991         gl_RELOCATABLE_LIBRARY.
96992         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
96993         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
96994         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
96995         gl_RELOCATABLE_LIBRARY.
96996         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
96997         (Makefile.am): Remove lib_SOURCES.
96998         * modules/relocatable-lib-lgpl (configure.ac): Invoke
96999         gl_RELOCATABLE_LIBRARY.
97000         (Makefile.am): Remove lib_SOURCES.
97001         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
97002         always.
97003         * modules/relocatable-prog-wrapper (configure.ac): Invoke
97004         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
97006 2007-03-04  Bruno Haible  <bruno@clisp.org>
97008         * modules/argmatch-tests: New file.
97009         * tests/test-argmatch.c: New file.
97011         * tests/test-allocsa.c (main): Halve the number of loop runs.
97013         * modules/alloca-opt-tests: New file.
97014         * tests/test-alloca-opt.c: New file.
97016 2007-03-04  Jim Meyering  <jim@meyering.net>
97018         Work around difference between Linux ACLs and Solaris 10 ZFS.
97019         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
97020         for EINVAL.
97022 2007-03-03  Bruno Haible  <bruno@clisp.org>
97024         * modules/relocatable-prog (Depends-on): Add back progreloc's
97025         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
97027 2007-03-03  Bruno Haible  <bruno@clisp.org>
97029         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
97030         * modules/relocatable-lib: New file.
97032 2007-03-03  Bruno Haible  <bruno@clisp.org>
97034         * modules/relocatable-prog: Renamed from modules/relocatable.
97035         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
97037 2007-03-03  Bruno Haible  <bruno@clisp.org>
97039         * modules/relocatable-script (Files): Add doc/relocatable.texi,
97040         m4/relocatable-lib.m4.
97041         (Depends-on): Remove 'relocatable'.
97042         (configure.ac): Add gl_RELOCATABLE_NOP.
97044 2007-03-03  Bruno Haible  <bruno@clisp.org>
97046         * modules/relocatable-prog-wrapper: New file.
97047         * modules/relocatable (Depends-on): Add it. Remove all other
97048         dependencies except progname.
97049         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
97051         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
97052         (gl_FUNC_STRERROR): Nop.
97053         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
97055         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
97056         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
97058         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
97059         (gl_FUNC_READLINK): Update.
97061         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
97063 2007-03-03  Bruno Haible  <bruno@clisp.org>
97065         * lib/xreadlink.c: Include <unistd.h> unconditionally.
97066         * modules/xreadlink (Depends-on): Add unistd.
97067         * modules/xreadlink-with-size (Depends-on): Likewise.
97069 2007-03-03  Bruno Haible  <bruno@clisp.org>
97071         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
97072         extracted from gt_FUNC_SETENV.
97073         (gt_FUNC_SETENV): Remove macro.
97074         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
97075         remove gt_FUNC_SETENV.
97077 2007-03-03  Bruno Haible  <bruno@clisp.org>
97079         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
97080         ENABLE_RELOCATABLE here.
97081         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
97083 2007-03-03  Bruno Haible  <bruno@clisp.org>
97085         * modules/rbtreehash-list-tests (Depends-on): Add progname.
97086         * tests/test-rbtreehash_list.c: Include progname.h.
97087         (main): Call set_program_name.
97089         * modules/rbtree-oset-tests (Depends-on): Add progname.
97090         * tests/test-rbtree_oset.c: Include progname.h.
97091         (main): Call set_program_name.
97093         * modules/rbtree-list-tests (Depends-on): Add progname.
97094         * tests/test-rbtree_list.c: Include progname.h.
97095         (main): Call set_program_name.
97097         * modules/linked-list-tests (Depends-on): Add progname.
97098         * tests/test-linked_list.c: Include progname.h.
97099         (main): Call set_program_name.
97101 2007-03-03  Bruno Haible  <bruno@clisp.org>
97103         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
97104         All uses of __restrict changed to _Restrict_.
97105         * lib/glob_.h (__restrict): Remove macro.
97107 2007-03-02  Bruno Haible  <bruno@clisp.org>
97109         * modules/gettext (configure.ac): Require gettext infrastructure
97110         from version 0.16.1.
97112 2007-03-02  Bruno Haible  <bruno@clisp.org>
97114         * modules/linkedhash-list-tests (Depends-on): Add progname.
97115         * tests/test-linkedhash_list.c: Include progname.h.
97116         (main): Call set_program_name.
97118         * modules/carray-list-tests (Depends-on): Add progname.
97119         * tests/test-carray_list.c: Include progname.h.
97120         (main): Call set_program_name.
97122         * modules/avltreehash-list-tests (Depends-on): Add progname.
97123         * tests/test-avltreehash_list.c: Include progname.h.
97124         (main): Call set_program_name.
97126         * modules/avltree-oset-tests (Depends-on): Add progname.
97127         * tests/test-avltree_oset.c: Include progname.h.
97128         (main): Call set_program_name.
97130         * modules/avltree-list-tests (Depends-on): Add progname.
97131         * tests/test-avltree_list.c: Include progname.h.
97132         (main): Call set_program_name.
97134         * modules/array-oset-tests (Depends-on): Add progname.
97135         * tests/test-array_oset.c: Include progname.h.
97136         (main): Call set_program_name.
97138         * modules/array-list-tests (Depends-on): Add progname.
97139         * tests/test-array_list.c: Include progname.h.
97140         (main): Call set_program_name.
97142         * modules/argp-tests (Depends-on): Add progname.
97143         * tests/test-argp.c: Include argp.h first. Include progname.h.
97144         (main): Call set_program_name.
97146 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
97148         * doc/gnulib-tool.texi (Initial import): Reword description of
97149         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
97150         limited effect even if defined after the first system include.
97152 2007-03-01  Bruno Haible  <bruno@clisp.org>
97154         * build-aux/config.libpath: Update to libtool-1.5.22.
97155         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
97157 2007-03-01  Bruno Haible  <bruno@clisp.org>
97159         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
97160         foo_CFLAGS.
97161         Reported by Ralf Wildenhues.
97163 2007-03-01  Bruno Haible  <bruno@clisp.org>
97165         * build-aux/install-reloc: Remove object files left over by some
97166         compilers.
97167         Reported by Ralf Wildenhues.
97169 2007-03-01  Bruno Haible  <bruno@clisp.org>
97171         * build-aux/install-reloc: Break long lines.
97173 2007-03-01  Bruno Haible  <bruno@clisp.org>
97175         * doc/relocatable.texi: Document that it may not work on OpenBSD.
97176         Reported by Ralf Wildenhues.
97178 2007-03-01  Bruno Haible  <bruno@clisp.org>
97180         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
97181         include ordering constraints.
97183 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
97185         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
97186         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
97187         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
97188         as another example.
97189         * lib/time_.h: Fix misspelling.
97190         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
97191         Require gl_HEADER_TIME_H_DEFAULTS.
97192         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
97193         * m4/time_r.m4 (gl_TIME_R): Likewise.
97194         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
97196 2007-03-01  Bruno Haible  <bruno@clisp.org>
97198         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
97199         * m4/utimens.m4 (gl_UTIMENS): Likewise.
97201 2007-03-01  Jim Meyering  <jim@meyering.net>
97203         * modules/xreadlink (Maintainer): Add my name.
97204         * modules/xreadlink-with-size (Depends-on): Alphabetize.
97206 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
97207             Bruno Haible  <bruno@clisp.org>
97209         * build-aux/install-reloc: Compile also c-ctype.c.
97210         * build-aux/relocatable.sh.in: New file.
97211         * doc/relocatable.texi: New file.
97212         * doc/relocatable-maint.texi: New file.
97213         * doc/gnulib.texi: Include relocatable-maint.texi.
97214         * lib/progreloc.c: Include unistd.h unconditionally.
97215         * lib/relocwrapper.c: Include unistd.h unconditionally.
97216         Include c-ctype.h.
97217         (add_dotbin): Use c_tolower.
97218         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
97219         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
97220         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
97221         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
97222         to m4/relocatable-lib.m4.
97223         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
97224         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
97225         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
97226         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
97227         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
97228         * modules/relocatable: New file.
97229         * modules/relocatable-lib: New file.
97230         * modules/relocatable-script: New file.
97232 2007-02-28  Bruno Haible  <bruno@clisp.org>
97234         Import --enable-relocatable infrastructure.
97235         * build-aux/config.libpath: New file, from GNU gettext.
97236         * build-aux/install-reloc: New file, from GNU gettext.
97237         * build-aux/reloc-ldflags: New file, from GNU gettext.
97238         * lib/relocatable.h: New file, from GNU gettext.
97239         * lib/relocatable.c: New file, from GNU gettext.
97240         * lib/relocwrapper.c: New file, from GNU gettext.
97241         * m4/relocatable.m4: New file, from GNU gettext.
97243 2007-02-28  Bruno Haible  <bruno@clisp.org>
97245         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
97247         * modules/xreadlink: New file, from GNU gettext with modifications.
97248         * lib/xreadlink.c: New file, from GNU gettext.
97249         * lib/xreadlink.h: Add comments.
97250         (xreadlink): New declaration.
97252         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
97253         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
97254         lib/xreadlink-with-size.c.
97255         (configure.ac): Remove gl_XREADLINK invocation.
97256         (Makefile.am): Augment lib_SOURCES.
97257         * m4/xreadlink.m4: Remove file.
97258         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
97259         (xreadlink_with_size): Renamed from xreadink.
97260         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
97261         * modules/canonicalize (Depends-on): Replace xreadlink with
97262         xreadlink-with-size.
97263         * lib/canonicalize.c (canonicalize_filename_mode): Update.
97265 2007-02-25  Jim Meyering  <jim@meyering.net>
97267         * build-aux/announce-gen: When complaining about excess arguments,
97268         list them.
97270 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
97272         * README: Document signed integer overflow situation more
97273         accurately.
97275 2007-02-25  Bruno Haible  <bruno@clisp.org>
97277         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
97278         'a' or 'A' conversion.
97280 2007-02-25  Bruno Haible  <bruno@clisp.org>
97282         * modules/filename: Renamed from modules/pathname.
97283         (Files): Replace lib/pathname.h with lib/filename.h. Replace
97284         lib/concatpath.c with lib/concat-filename.c.
97285         (Makefile.am): Update.
97286         (Include): Replace pathname.h with filename.h.
97287         * lib/filename.h: Renamed from lib/pathname.h.
97288         (concatenated_filename): Renamed from concatenated_pathname.
97289         * lib/concat-filename.c: Renamed from lib/concatpath.c.
97290         (concatenated_filename): Renamed from concatenated_pathname.
97291         * lib/findprog.c: Include filename.h instead of pathname.h.
97292         (find_in_path): Update.
97293         * lib/javacomp.c: Include filename.h instead of pathname.h.
97294         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
97295         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
97296         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
97297         is_oldgcj_14_13_usable, is_javac_usable): Update.
97298         * lib/javaexec.c: Include filename.h instead of pathname.h.
97299         (execute_java_class): Update.
97300         * modules/findprog: Update.
97301         * modules/javacomp: Update.
97302         * modules/javaexec: Update.
97303         * MODULES.html.sh (File system functions): Add 'filename', remove
97304         'pathname'.
97306 2007-02-25  Bruno Haible  <bruno@clisp.org>
97308         * modules/printf-frexpl-tests: New file.
97309         * tests/test-printf-frexpl.c: New file.
97311         * modules/printf-frexpl: New file.
97312         * lib/printf-frexpl.h: New file.
97313         * lib/printf-frexpl.c: New file.
97314         * m4/printf-frexpl.m4: New file.
97316 2007-02-25  Bruno Haible  <bruno@clisp.org>
97318         * modules/printf-frexp-tests: New file.
97319         * tests/test-printf-frexp.c: New file.
97321         * modules/printf-frexp: New file.
97322         * lib/printf-frexp.h: New file.
97323         * lib/printf-frexp.c: New file.
97324         * m4/printf-frexp.m4: New file.
97326 2007-02-25  Bruno Haible  <bruno@clisp.org>
97328         Assume automake >= 1.10 for the tests.
97329         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
97330         * modules/arctwo-tests: Likewise.
97331         * modules/argp-tests: Likewise.
97332         * modules/avltree-list-tests: Likewise.
97333         * modules/avltree-oset-tests: Likewise.
97334         * modules/avltreehash-list-tests: Likewise.
97335         * modules/carray-list-tests: Likewise.
97336         * modules/crc-tests: Likewise.
97337         * modules/des-tests: Likewise.
97338         * modules/gc-arcfour-tests: Likewise.
97339         * modules/gc-arctwo-tests: Likewise.
97340         * modules/gc-des-tests: Likewise.
97341         * modules/gc-hmac-md5-tests: Likewise.
97342         * modules/gc-hmac-sha1-tests: Likewise.
97343         * modules/gc-md2-tests: Likewise.
97344         * modules/gc-md4-tests: Likewise.
97345         * modules/gc-md5-tests: Likewise.
97346         * modules/gc-pbkdf2-sha1-tests: Likewise.
97347         * modules/gc-rijndael-tests: Likewise.
97348         * modules/gc-sha1-tests: Likewise.
97349         * modules/gc-tests: Likewise.
97350         * modules/getaddrinfo-tests: Likewise.
97351         * modules/hmac-md5-tests: Likewise.
97352         * modules/hmac-sha1-tests: Likewise.
97353         * modules/linked-list-tests: Likewise.
97354         * modules/linkedhash-list-tests: Likewise.
97355         * modules/lock-tests: Likewise.
97356         * modules/md2-tests: Likewise.
97357         * modules/md4-tests: Likewise.
97358         * modules/md5-tests: Likewise.
97359         * modules/rbtree-list-tests: Likewise.
97360         * modules/rbtree-oset-tests: Likewise.
97361         * modules/rbtreehash-list-tests: Likewise.
97362         * modules/read-file-tests: Likewise.
97363         * modules/rijndael-tests: Likewise.
97364         * modules/stdint-tests: Likewise.
97365         * modules/tls-tests: Likewise.
97367 2007-02-24  Bruno Haible  <bruno@clisp.org>
97369         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
97370         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
97371         function; instead check whether isnan with a double argument links.
97372         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
97373         function; instead check whether isnan with a 'long double' argument
97374         links.
97375         Reported by Eric Blake <ebb9@byu.net>.
97377 2007-02-24  Bruno Haible  <bruno@clisp.org>
97379         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
97380         defined.
97381         * lib/isnanl.c: Remove all code. Just include isnan.c.
97382         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
97384 2007-02-25  Jim Meyering  <jim@meyering.net>
97386         Avoid conflicting types for 'unsetenv' on FreeBSD.
97387         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
97388         conflicting with FreeBSD's (5.0 and 6.1) function declaration
97389         in stdlib.h.
97391 2007-02-24  Bruno Haible  <bruno@clisp.org>
97393         * modules/isnanl-nolibm-tests: New file.
97394         * tests/test-isnanl.c: New file.
97396         * modules/isnanl-nolibm: New file.
97397         * lib/isnanl.h: New file.
97398         * lib/isnanl.c: New file.
97399         * m4/isnanl.m4: New file.
97401 2007-02-24  Bruno Haible  <bruno@clisp.org>
97403         * modules/isnan-nolibm-tests: New file.
97404         * tests/test-isnan.c: New file.
97406         * modules/isnan-nolibm: New file.
97407         * lib/isnan.h: New file.
97408         * lib/isnan.c: New file.
97409         * m4/isnan.m4: New file.
97411 2007-02-24  Bruno Haible  <bruno@clisp.org>
97413         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
97414         assume that an exponent fits in 20 bits.
97416 2007-02-24  Jim Meyering  <jim@meyering.net>
97418         * m4/regex.m4: Update the description of the configure-time option,
97419         --without-included-regex, to state accurately what the defaults are,
97420         and perhaps to give people an idea why using this option is risky.
97422 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
97424         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
97425         loops on small arguments.  This attempts to avoid the problem
97426         Bruno Haible reported for AIX 4.3.2 in
97427         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
97429 2007-02-23  Bruno Haible  <bruno@clisp.org>
97431         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
97432         Needed for help2man.
97434 2007-02-23  Karl Berry  <karl@gnu.org>
97436         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
97437         exists, foo.h should be cvs-ignored, not committed.
97439 2007-02-23  Eric Blake  <ebb9@byu.net>
97441         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
97442         * lib/stat-time.h (includes): Likewise.
97443         * lib/utimecmp.c (includes): Likewise.
97444         * lib/utimens.h (includes): Likewise.
97445         * lib/getdate.y (includes): Also include "timespec.h" for use
97446         internal to the module.
97447         * modules/utimens (Depends-on): Revert yesterday's patch.
97448         * modules/nanosleep (Depends-on): Add missing dependency.
97450 2007-02-22  Bruno Haible  <bruno@clisp.org>
97452         * lib/glob.c: Don't include getlogin_r.h.
97454 2007-02-22  Jim Meyering  <jim@meyering.net>
97456         * modules/utimens (Depends-on): Add timespec, required for
97457         utimens.h's inclusion of timespec.h.
97459 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
97461         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
97462         long unreadable paths in GNU/Linux.  Problem reported by Andreas
97463         Schwab in
97464         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
97465         I'll try to think of a better way to fix the Solaris problem.
97467         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
97468         like glibc; on Solaris 10, it fails with errno == EINVAL.
97469         POSIX says the behavior is unspecified if the first argument is NULL,
97470         so play it safe and never pass NULL to the system getcwd.
97472 2007-02-21  Jim Meyering  <jim@meyering.net>
97474         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
97475         of gettimeofday.  It would conflict with the one now always
97476         provided via sys_time_.h.  Reported by Matthew Woehlke, as
97477         an IRIX 6.5 build failure.
97479 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
97481         Minor fixups to port to Solaris 10 with Sun C 5.8.
97482         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
97483         * modules/getcwd (Depends-on): Add dirfd.
97484         * lib/putenv.c (putenv): #undef it.
97485         (rpl_putenv): New decl.
97486         (malloc, free): Include <stdlib.h> rather than prototyping separately.
97488 2007-02-20  Bruno Haible  <bruno@clisp.org>
97490         * modules/stdio-tests: New file.
97491         * tests/test-stdio.c: New file.
97493         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
97494         (Depends-on): Add stdio.
97495         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
97496         (Include): Use <stdio.h> instead of vsnprintf.h.
97497         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
97498         HAVE_DECL_VSNPRINTF.
97499         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
97501         * modules/snprintf (Files): Remove lib/snprintf.h.
97502         (Depends-on): Add stdio.
97503         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
97504         (Include): Use <stdio.h> instead of snprintf.h.
97505         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
97506         HAVE_DECL_SNPRINTF.
97507         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
97508         * lib/getaddrinfo.c: Likewise.
97510         * modules/stdio: New file.
97511         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
97512         * lib/snprintf.h: Remove file.
97513         * lib/vsnprintf.h: Remove file.
97514         * lib/.cppi-disable: Remove snprintf.h.
97515         * m4/stdio_h.m4: New file.
97516         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
97518 2007-02-20  Jim Meyering  <jim@meyering.net>
97520         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
97521         used by e.g., mingw.  From Bruno Haible.
97523 2007-02-19  Bruno Haible  <bruno@clisp.org>
97525         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
97526         warnings.
97527         Reported by Ben Pfaff <blp@cs.stanford.edu>.
97529 2007-02-19  Bruno Haible  <bruno@clisp.org>
97531         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
97532         from mingw users.
97534 2007-02-19  Bruno Haible  <bruno@clisp.org>
97536         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
97537         warnings.
97538         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
97540 2007-02-19  Jim Meyering  <jim@meyering.net>
97542         Don't use FD after a successful "fdopendir (fd)".
97543         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
97544         Reset it by calling dirfd on the just-obtained DIR*.
97546         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
97547         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
97549 2007-02-18  Bruno Haible  <bruno@clisp.org>
97551         * lib/readlink.c: Include <unistd.h>.
97552         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
97553         HAVE_READLINK.
97554         * modules/readlink (Depends-on): Add unistd.
97555         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97556         (Include): Add <unistd.h>.
97558         * lib/getlogin_r.h: Remove file.
97559         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
97560         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
97561         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
97562         HAVE_DECL_GETLOGIN_R.
97563         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
97564         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97565         (Include): Use <unistd.h> instead of getlogin_r.h.
97567         * lib/getcwd.h: Remove file.
97568         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
97569         * lib/xgetcwd.c: Likewise.
97570         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
97571         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
97572         * modules/getcwd (Files): Remove lib/getcwd.h.
97573         (Depends-on): Add unistd.
97574         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97575         (Include): Use <unistd.h> instad of getcwd.h.
97577         * lib/ftruncate.c: Include <unistd.h> first.
97578         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
97579         Set HAVE_FTRUNCATE.
97580         * modules/ftruncate (Depends-on): Add unistd.
97581         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97583         * lib/fchdir.c: Include <unistd.h> first.
97584         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
97585         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
97586         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
97587         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97588         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
97590         * lib/dup2.c: Include <unistd.h> first.
97591         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
97592         HAVE_DUP2.
97593         * modules/dup2 (Depends-on): Add unistd.
97594         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97596         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
97597         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
97598         REPLACE_CHOWN. Don't define chown as a macro here.
97599         * modules/chown (Depends-on): Add unistd.
97600         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97602         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
97603         Add definition for GL_LINK_WARNING.
97604         (chown, dup2): New declarations.
97605         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
97606         link warning.
97607         (ftruncate): New declaration.
97608         (getcwd): New declaration, taken from old getcwd.h.
97609         (getlogin_r): New declaration, taken from old getlogin_r.h.
97610         (readlink): New declaration.
97611         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
97612         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
97613         (gl_PREREQ_UNISTD): Remove macro.
97614         (gl_UNISTD_MODULE_INDICATOR): New macro.
97615         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
97616         many new variables. Don't set UNISTD_H.
97617         * modules/unistd (Description): Change.
97618         (Depends-on): Add link-warning.
97619         (configure.ac): Update.
97620         (Makefile.am): Create unistd.h always. Substitute many new variables
97621         into it.
97623 2007-02-18  Bruno Haible  <bruno@clisp.org>
97625         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
97626         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
97627         HAVE_GETSUBOPT.
97628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
97629         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
97630         * lib/getsubopt.h: Remove file.
97631         * modules/getsubopt (Files): Remove lib/getsubopt.h.
97632         (Depends-on): Add stdlib.
97633         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
97634         (Includes): Use <stdlib.h> instead of getsubopt.h.
97635         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
97636         Set HAVE_GETSUBOPT.
97637         * lib/getsubopt.c: Don't include getsubopt.h.
97639 2007-02-18  Bruno Haible  <bruno@clisp.org>
97641         * modules/fchdir (Depends-on): Add dup2.
97643 2007-02-18  Bruno Haible  <bruno@clisp.org>
97645         * lib/stdlib_.h: Handle glibc's special invocation convention
97646         specially.
97648 2007-02-18  Bruno Haible  <bruno@clisp.org>
97650         * modules/stdlib-tests: New file.
97651         * tests/test-stdlib.c: New file.
97653         * modules/mkstemp (Files): Remove lib/mkstemp.h.
97654         (Depends-on): Add stdlib.
97655         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
97656         (Includes): Use <stdlib.h> instead of mkstemp.h.
97657         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
97658         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
97659         * lib/mkstemp.c: Don't include mkstemp.h.
97660         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
97661         * lib/stdlib--.h: Don't include mkstemp.h.
97663         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
97664         (Depends-on): Add stdlib.
97665         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
97666         (Includes): Use <stdlib.h> instead of mkdtemp.h.
97667         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
97668         HAVE_MKDTEMP.
97669         * lib/mkdtemp.c: Don't include mkdtemp.h.
97670         * lib/clean-temp.c: Don't include mkdtemp.h.
97672         * modules/exit (Files): Remove lib/exit.h.
97673         (Depends-on): Add stdlib.
97674         (Makefile.am): Remove lib_SOURCES.
97675         (Include): Use <stdlib.h> instead of exit.h.
97676         * lib/argmatch.c: Don't include exit.h.
97677         * lib/execute.c: Likewise.
97678         * lib/pagealign_alloc.c: Likewise.
97679         * lib/pipe.c: Likewise.
97680         * lib/wait-process.c: Likewise.
97681         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
97682         * lib/exitfail.c: Likewise.
97683         * lib/savewd.c: Likewise.
97684         * lib/xsetenv.c: Likewise.
97686         * modules/stdlib: New file.
97687         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
97688         and extra comments about mkstemp().
97689         * lib/exit.h: Remove file.
97690         * lib/mkdtemp.h: Remove file.
97691         * lib/mkstemp.h: Remove file.
97692         * m4/stdlib_h.m4: New file.
97693         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
97695 2007-02-18  Bruno Haible  <bruno@clisp.org>
97697         * modules/math-tests: New file.
97698         * tests/test-math.c: New file.
97700         * modules/math: New file.
97701         * modules/mathl (Files): Remove lib/mathl.h.
97702         (Depends-on): Add math.
97703         (Makefile.am): Don't mention mathl.h.
97704         (Include): Use <math.h> instead of mathl.h.
97705         * lib/math_.h: New file.
97706         * lib/mathl.h: Remove file.
97707         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
97708         mathl.h.
97709         * lib/asinl.c: Likewise.
97710         * lib/atanl.c: Likewise.
97711         * lib/ceill.c: Likewise.
97712         * lib/cosl.c: Likewise.
97713         * lib/expl.c: Likewise.
97714         * lib/floorl.c: Likewise.
97715         * lib/frexpl.c: Likewise.
97716         * lib/ldexpl.c: Likewise.
97717         * lib/logl.c: Likewise.
97718         * lib/sincosl.c: Likewise.
97719         * lib/sinl.c: Likewise.
97720         * lib/sqrtl.c: Likewise.
97721         * lib/tanl.c: Likewise.
97722         * lib/trigl.c: Likewise.
97723         * m4/math_h.m4: New file.
97724         * MODULES.html.sh (Mathematics): Add math.
97726 2007-02-17  Bruno Haible  <bruno@clisp.org>
97728         * modules/wctype-tests: New file.
97729         * tests/test-wctype.c: New file.
97731         * modules/wchar-tests: New file.
97732         * tests/test-wchar.c: New file.
97734         * modules/unistd-tests: New file.
97735         * tests/test-unistd.c: New file.
97737         * modules/time-tests: New file.
97738         * tests/test-time.c: New file.
97740         * modules/sysexits-tests: New file.
97741         * tests/test-sysexits.c: New file.
97743         * modules/sys_time-tests: New file.
97744         * tests/test-sys_time.c: New file.
97746         * modules/sys_stat-tests: New file.
97747         * tests/test-sys_stat.c: New file.
97749         * modules/sys_socket-tests: New file.
97750         * tests/test-sys_socket.c: New file.
97752         * modules/sys_select-tests: New file.
97753         * tests/test-sys_select.c: New file.
97755         * modules/string-tests: New file.
97756         * tests/test-string.c: New file.
97758         * modules/stdbool-tests: New file.
97759         * tests/test-stdbool.c: New file.
97761         * modules/netinet_in-tests: New file.
97762         * tests/test-netinet_in.c: New file.
97764         * modules/inttypes-tests: New file.
97765         * tests/test-inttypes.c: New file.
97767         * modules/fcntl-tests: New file.
97768         * tests/test-fcntl.c: New file.
97770         * modules/byteswap-tests: New file.
97771         * tests/test-byteswap.c: New file.
97773         * modules/arpa_inet-tests: New file.
97774         * tests/test-arpa_inet.c: New file.
97776 2007-02-17  Bruno Haible  <bruno@clisp.org>
97778         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
97779         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
97780         if the corresponding module is not enabled. Emit link warnings if
97781         the function is used nevertheless.
97782         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
97783         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
97784         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
97785         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
97786         * modules/inttypes (Depends-on): Add link-warning.
97787         (Makefile.am): Copy the contents of build-aux/link-warning.h into
97788         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
97789         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
97790         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
97791         * modules/imaxdiv (configure.ac): Likewise.
97792         * modules/strtoimax (configure.ac): Likewise.
97793         * modules/strtoumax (configure.ac): Likewise.
97795 2007-02-17  Bruno Haible  <bruno@clisp.org>
97797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
97798         gl_STRING_MODULE_INDICATOR_DEFAULTS.
97799         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
97800         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
97802 2007-02-17  Bruno Haible  <bruno@clisp.org>
97804         * modules/link-warning: New file.
97805         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
97806         * lib/string_.h (GL_LINK_WARNING): Remove definition.
97807         * modules/string (Depends-on): Add link-warning.
97808         (Makefile.am): Copy the contents of build-aux/link-warning.h into
97809         string.h.
97810         * MODULES.html.sh (Support for building libraries and executables): Add
97811         link-warning.
97813 2007-02-17  Bruno Haible  <bruno@clisp.org>
97815         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
97816         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
97817         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
97818         long lines.
97820 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
97821             Bruno Haible  <bruno@clisp.org>
97823         * modules/tmpfile: New file.
97824         * lib/tmpfile.c: New file.
97825         * m4/tmpfile.m4: New file.
97826         * MODULES.html.sh (func_all_modules): New section "Input/output".
97828 2007-02-15  Bruno Haible  <bruno@clisp.org>
97830         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
97831         (supports_delete_on_close): New function.
97832         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
97834 2007-02-14  Bruno Haible  <bruno@clisp.org>
97836         * modules/mbspcasecmp-tests: New file.
97837         * tests/test-mbspcasecmp.sh: New file.
97838         * tests/test-mbspcasecmp.c: New file.
97840         New module mbspcasecmp.
97841         * modules/mbspcasecmp: New file.
97842         * lib/mbspcasecmp.c: New file.
97843         * lib/string_.h (strncasecmp): Change warning message.
97844         (mbspcasecmp): New declaration.
97845         * m4/mbspcasecmp.m4: New file.
97846         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97847         GNULIB_MBSPCASECMP.
97848         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
97849         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
97851 2007-02-14  Bruno Haible  <bruno@clisp.org>
97853         * modules/mbsncasecmp-tests: New file.
97854         * tests/test-mbsncasecmp.sh: New file.
97855         * tests/test-mbsncasecmp.c: New file.
97857         New module mbsncasecmp.
97858         * modules/mbsncasecmp: New file.
97859         * lib/mbsncasecmp.c: New file.
97860         * lib/string_.h (mbsncasecmp): New declaration.
97861         * m4/mbsncasecmp.m4: New file.
97862         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97863         GNULIB_MBSNCASECMP.
97864         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
97865         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
97867 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
97869         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
97870         Verify that it doesn't overlap with our flags.
97871         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
97872         do not have the desired effect in multibyte locales; instead, use
97873         mbscasecmp.
97874         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
97875         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
97876         we don't require GNU fnmatch ourselves (if our users require it, they
97877         should do so explicitly).
97879         Fix regex code so it doesn't rely on strcasecmp.
97880         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
97881         Otherwise, include gnulib's langinfo.h.
97882         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
97883         undesirable behavior in non-C locales.  Instead, rely on localecharset.
97884         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
97885         * modules/regex (FILES): Remove m4/codeset.m4.
97886         (Depends-on): Add localcharset.  Remove strcase.
97888 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97890         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
97891         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
97893 2007-02-13  Bruno Haible  <bruno@clisp.org>
97895         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
97896         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97898 2007-02-12  Bruno Haible  <bruno@clisp.org>
97900         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
97901         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
97902         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
97903         time warning rather than a link error.
97905 2007-02-12  Bruno Haible  <bruno@clisp.org>
97907         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
97908         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
97909         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97911 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
97913         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
97914         args, not 2.
97916 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
97918         New module 'time', so that apps can include <time.h> as per
97919         POSIX and GNU instead of separate include files like time_r.h
97920         and timegm.h.  This implementation tries out a simpler approach
97921         for replacing decls in standard include files (as compared to
97922         the string module), somewhat as an experiment.
97924         * config/srclist.txt: Comment out mktime.c for now.
97925         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
97926         since it doesn't apply any more.  Use generic wording instead.
97927         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
97928         'time'.
97929         * lib/time_.h, m4/time_h.m4, modules/time: New files.
97930         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
97931         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
97932         Don't include <sys/types.h>; no longer needed since we assume C89.
97933         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
97934         * lib/strftime.c: Likewise.
97935         * lib/time_r.c: Likewise.
97936         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
97937         * lib/nanosleep.c: Include <time.h> first, to check interface.
97938         * lib/strptime.c: Likewise.
97939         * lib/time_r.c: Likewise.
97940         * lib/timegm.c: Likewise.
97941         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
97942         needed.
97943         * lib/timegm.c: Don't include timegm.h; no longer needed.
97944         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
97945         time.h now handles any problems in that area.
97946         (struct timespec, nanosleep): Remove; time.h now arranges for these.
97947         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
97948         that time.h defines struct timespec.
97949         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
97950         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
97951         handles that.
97952         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
97953         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
97954         needed.  Set REPLACE_LOCALTIME.
97955         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
97956         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
97957         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
97958         nanosleep; time_h.m4 now does that.  Don't require
97959         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
97960         module handles this now.
97961         * modules/getdate (Depends-on): Remove timespec.  Add time.
97962         * modules/nanosleep (Depends-on): Likewise.
97963         * modules/stat-time (Depends-on): Likewise.
97964         * modules/nanosleep (Include): Include time.h, not timespec.h.
97965         * modules/strptime (Files): Remove lib/strptime.h.
97966         (Depends-on): Add extensions, time.
97967         (Include): Include time.h, not strptime.h.
97968         * modules/time_r (Files): Remove lib/time_r.h.
97969         (Depends-on): Add time.
97970         (Include): Include time.h, not time_r.h.
97971         * modules/timegm: Likewise.
97972         * modules/timespec (Description): Now does timespec-related decls
97973         of our own, instead of struct timespec itself.
97974         (Depends-on): Add time; remove extensions.
97975         (Maintainer): Add self.
97976         * modules/utimecmp (Depends-on): Add time; remove timespec.
97977         * modules/utimens (Depends-on): Likewise.
97978         * modules/xnanosleep (Depends-on): Likewise.
97980 2007-02-11  Bruno Haible  <bruno@clisp.org>
97982         * lib/c-strstr.c: Include allocsa.h.
97983         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
97984         * lib/c-strcasestr.c: Include allocsa.h.
97985         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
97986         * lib/strcasestr.c: Include allocsa.h.
97987         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
97988         * lib/mbsstr.c: Include allocsa.h.
97989         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
97990         allocsa/freesa instead of malloc/free.
97991         * lib/mbscasestr.c: Include allocsa.h.
97992         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
97993         allocsa/freesa instead of malloc/free.
97994         * modules/c-strstr (Depends-on): Add allocsa.
97995         * modules/c-strcasestr (Depends-on): Likewise.
97996         * modules/strcasestr (Depends-on): Likewise.
97997         * modules/mbsstr (Depends-on): Likewise.
97998         * modules/mbscasestr (Depends-on): Likewise.
98000 2007-02-11  Bruno Haible  <bruno@clisp.org>
98002         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
98004         * modules/mbsspn-tests: New file.
98005         * tests/test-mbsspn.sh: New file.
98006         * tests/test-mbsspn.c: New file.
98008 2007-02-11  Bruno Haible  <bruno@clisp.org>
98010         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
98012         * modules/mbspbrk-tests: New file.
98013         * tests/test-mbspbrk.sh: New file.
98014         * tests/test-mbspbrk.c: New file.
98016 2007-02-11  Bruno Haible  <bruno@clisp.org>
98018         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
98019         unneeded cast.
98021         * modules/mbscspn-tests: New file.
98022         * tests/test-mbscspn.sh: New file.
98023         * tests/test-mbscspn.c: New file.
98025 2007-02-11  Bruno Haible  <bruno@clisp.org>
98027         * modules/mbscasecmp-tests: New file.
98028         * tests/test-mbscasecmp.sh: New file.
98029         * tests/test-mbscasecmp.c: New file.
98031 2007-02-11  Bruno Haible  <bruno@clisp.org>
98033         Ensure O(n) worst-case complexity of mbscasestr.
98034         * lib/mbscasestr.c: Include stdbool.h.
98035         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
98036         functions.
98037         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
98038         the bookkeeping indicates that it's worth it.
98039         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
98041         * modules/mbscasestr-tests: New file.
98042         * tests/test-mbscasestr1.c: New file.
98043         * tests/test-mbscasestr2.sh: New file.
98044         * tests/test-mbscasestr2.c: New file.
98045         * tests/test-mbscasestr3.sh: New file.
98046         * tests/test-mbscasestr3.c: New file.
98047         * tests/test-mbscasestr4.sh: New file.
98048         * tests/test-mbscasestr4.c: New file.
98049         * m4/locale-tr.m4: New file.
98051 2007-02-11  Bruno Haible  <bruno@clisp.org>
98053         Ensure O(n) worst-case complexity of mbsstr.
98054         * lib/mbsstr.c: Include stdbool.h.
98055         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
98056         functions.
98057         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
98058         bookkeeping indicates that it's worth it.
98059         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
98061         * modules/mbsstr-tests: New file.
98062         * tests/test-mbsstr1.c: New file.
98063         * tests/test-mbsstr2.sh: New file.
98064         * tests/test-mbsstr2.c: New file.
98065         * tests/test-mbsstr3.sh: New file.
98066         * tests/test-mbsstr3.c: New file.
98067         * m4/locale-fr.m4: New file.
98069 2007-02-11  Bruno Haible  <bruno@clisp.org>
98071         * lib/mbsrchr.c (mbsrchr): Fix bug.
98073         * modules/mbsrchr-tests: New file.
98074         * tests/test-mbsrchr.sh: New file.
98075         * tests/test-mbsrchr.c: New file.
98077 2007-02-11  Bruno Haible  <bruno@clisp.org>
98079         * lib/mbschr.c (mbschr): Fix bug.
98081         * modules/mbschr-tests: New file.
98082         * tests/test-mbschr.sh: New file.
98083         * tests/test-mbschr.c: New file.
98084         * m4/locale-zh.m4: New file.
98086 2007-02-11  Bruno Haible  <bruno@clisp.org>
98088         Support for copying multibyte string iterators.
98089         * lib/mbiter.h: Include <string.h>.
98090         (mbiter_multi_copy): New function.
98091         (mbi_copy): New macro.
98092         * lib/mbuiter.h: Include <string.h>.
98093         (mbuiter_multi_copy): New function.
98094         (mbui_copy): New macro.
98096 2007-02-11  Bruno Haible  <bruno@clisp.org>
98098         New module mbslen.
98099         * modules/mbslen: New file.
98100         * lib/mbslen.c: New file.
98101         * lib/string_.h (mbslen): New declaration.
98102         * m4/mbslen.m4: New file.
98103         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98104         GNULIB_MBSLEN.
98105         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
98106         * MODULES.html.sh (Internationalization functions): Add mbslen.
98108 2007-02-11  Bruno Haible  <bruno@clisp.org>
98110         Ensure O(n) worst-case complexity of strcasestr substitute.
98111         * lib/strcasestr.c: Include stdbool.h.
98112         (knuth_morris_pratt): New function.
98113         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
98114         bookkeeping indicates that it's worth it.
98115         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
98117         * modules/strcasestr-tests: New file.
98118         * tests/test-strcasestr.c: New file.
98120 2007-02-11  Bruno Haible  <bruno@clisp.org>
98122         Ensure O(n) worst-case complexity of c_strcasestr.
98123         * lib/c-strcasestr.c: Include stdbool.h, string.h.
98124         (knuth_morris_pratt): New function.
98125         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
98126         the bookkeeping indicates that it's worth it.
98127         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
98129         * modules/c-strcasestr-tests: New file.
98130         * tests/test-c-strcasestr.c: New file.
98132 2007-02-11  Bruno Haible  <bruno@clisp.org>
98134         Ensure O(n) worst-case complexity of c_strstr.
98135         * lib/c-strstr.c: Include stdbool.h, string.h.
98136         (knuth_morris_pratt): New function.
98137         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
98138         bookkeeping indicates that it's worth it.
98139         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
98141         * lib/c-strstr.c: Complete rewrite for maintainability.
98143         * modules/c-strstr-tests: New file.
98144         * tests/test-c-strstr.c: New file.
98146 2007-02-11  Bruno Haible  <bruno@clisp.org>
98148         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
98149         5.2.1 and earlier, whereby \055 was treated just like the range
98150         delimiter '-'.
98151         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
98153 2007-02-08  Bruno Haible  <bruno@clisp.org>
98155         * modules/regex (Depends-on): Add stdbool.
98156         Reported by Dalibor Topic <robilad@kaffe.org>.
98158 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
98160         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
98161         Prefer returning from main to exiting from it.
98162         Remove unnecessary parens after sizeof.
98164 2007-02-05  Bruno Haible  <bruno@clisp.org>
98166         New module mbssep.
98167         * modules/mbssep: New file.
98168         * lib/mbssep.c: New file.
98169         * lib/string_.h (strsep): Add a conditional link warning.
98170         (mbssep): New declaration.
98171         * m4/mbssep.m4: New file.
98172         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98173         GNULIB_MBSSEP.
98174         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
98175         * MODULES.html.sh (Internationalization functions): Add mbssep.
98177 2007-02-05  Bruno Haible  <bruno@clisp.org>
98179         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
98180         Optimize search in case of 1 delimiter.
98182 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
98184         * lib/acl.h: Include sys/types.h before sys/acl.h.
98186 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
98188         Merge upstream fix for glibc bugzilla #3957:
98190         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
98192         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
98193         bit for RE_HAT_LISTS_NOT_NEWLINE.
98194         (build_charclass_op): Remove bogus comment.
98196 2007-02-05  Simon Josefsson  <simon@josefsson.org>
98198         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
98200 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
98202         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
98203         * lib/memmem.c [!defined _LIBC]: Include config.h.
98205 2007-02-04  Bruno Haible  <bruno@clisp.org>
98207         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
98208         warning message.
98210 2007-02-04  Bruno Haible  <bruno@clisp.org>
98212         New module mbstok_r.
98213         * modules/mbstok_r: New file.
98214         * lib/mbstok_r.c: New file.
98215         * lib/string_.h (strtok_r): Change argument names to match the
98216         comments. Add a conditional link warning.
98217         (mbstok_r): New declaration.
98218         * m4/mbstok_r.m4: New file.
98219         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98220         GNULIB_MBSTOK_R.
98221         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
98222         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
98224 2007-02-04  Bruno Haible  <bruno@clisp.org>
98226         New module mbsspn.
98227         * modules/mbsspn: New file.
98228         * lib/mbsspn.c: New file.
98229         * lib/string_.h (strspn): Add a conditional link warning.
98230         (mbsspn): New declaration.
98231         * m4/mbsspn.m4: New file.
98232         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98233         GNULIB_MBSSPN.
98234         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
98235         * MODULES.html.sh (Internationalization functions): Add mbsspn.
98237 2007-02-04  Bruno Haible  <bruno@clisp.org>
98239         New module mbspbrk.
98240         * modules/mbspbrk: New file.
98241         * lib/mbspbrk.c: New file.
98242         * lib/string_.h (strpbrk): Add a conditional link warning.
98243         (mbspbrk): New declaration.
98244         * m4/mbspbrk.m4: New file.
98245         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98246         GNULIB_MBSPBRK.
98247         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
98248         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
98250 2007-02-04  Bruno Haible  <bruno@clisp.org>
98252         New module mbscspn.
98253         * modules/mbscspn: New file.
98254         * lib/mbscspn.c: New file.
98255         * lib/string_.h (strcspn): Add a conditional link warning.
98256         (mbscspn): New declaration.
98257         * m4/mbscspn.m4: New file.
98258         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98259         GNULIB_MBSCSPN.
98260         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
98261         * MODULES.html.sh (Internationalization functions): Add mbscspn.
98263 2007-02-04  Bruno Haible  <bruno@clisp.org>
98265         New module mbscasestr, reduced goal of strcasestr.
98266         * modules/mbscasestr: New file.
98267         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
98268         (mbscasestr): Renamed from strcasestr.
98269         * lib/strcasestr.c: Don't include mbuiter.h.
98270         (strcasestr): Remove support for multibyte locales.
98271         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
98272         Change the conditional link warning.
98273         (mbscasestr): New declaration.
98274         * m4/mbscasestr.m4: New file.
98275         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
98276         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
98277         REPLACE_STRCASESTR.
98278         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
98279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
98280         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
98281         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
98282         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
98283         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
98284         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
98285         (Depends-on): Remove mbuiter.
98286         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
98288 2007-02-04  Bruno Haible  <bruno@clisp.org>
98290         Simplify handling of strncasecmp.
98291         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
98292         the conditional link warning.
98293         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
98294         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
98295         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
98296         * modules/strcase (configure.ac): Don't invoke
98297         gl_STRING_MODULE_INDICATOR.
98298         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
98300 2007-02-04  Bruno Haible  <bruno@clisp.org>
98302         New module mbscasecmp, reduced goal of strcasecmp.
98303         * modules/mbscasecmp: New file.
98304         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
98305         (mbscasecmp): Renamed from strcasecmp.
98306         * lib/strcasecmp.c: Don't include mbuiter.h.
98307         (strcasecmp): Remove support for multibyte locales.
98308         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
98309         Change the conditional link warning.
98310         (mbscasecmp): New declaration.
98311         * m4/mbscasecmp.m4: New file.
98312         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
98313         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
98314         REPLACE_STRCASECMP.
98315         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
98316         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98317         GNULIB_MBSCASECMP.
98318         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
98319         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
98320         * modules/strcase (Files): Remove m4/mbrtowc.m4.
98321         (Depends-on): Remove mbuiter.
98322         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
98324 2007-02-04  Bruno Haible  <bruno@clisp.org>
98326         New module mbsstr. Remove module strstr.
98327         * modules/mbsstr: New file.
98328         * modules/strstr: Remove file.
98329         * lib/mbsstr.c: Renamed from lib/strstr.c.
98330         (mbsstr): Renamed from strstr.
98331         * lib/string_.h (strstr): Remove declaration. Change the conditional
98332         link warning.
98333         (mbsstr): New declaration.
98334         * m4/mbsstr.m4: New file.
98335         * m4/strstr.m4: Remove file.
98336         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
98337         REPLACE_STRSTR.
98338         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
98339         Don't initialize GNULIB_STRSTR.
98340         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
98341         substitute GNULIB_STRSTR and REPLACE_STRSTR.
98342         * MODULES.html.sh (Internationalization functions): Add mbsstr.
98343         (Support for systems lacking ANSI C 89): Remove strstr.
98345 2007-02-04  Bruno Haible  <bruno@clisp.org>
98347         New module mbsrchr.
98348         * modules/mbsrchr: New file.
98349         * lib/mbsrchr.c: New file.
98350         * lib/string_.h (strrchr): Add a conditional link warning.
98351         (mbsrchr): New declaration.
98352         * m4/mbsrchr.m4: New file.
98353         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98354         GNULIB_MBSRCHR.
98355         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
98356         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
98358 2007-02-04  Bruno Haible  <bruno@clisp.org>
98360         New module mbschr.
98361         * modules/mbschr: New file.
98362         * lib/mbschr.c: New file.
98363         * lib/string_.h (strchr): Add a conditional link warning.
98364         (mbschr): New declaration.
98365         * m4/mbschr.m4: New file.
98366         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98367         GNULIB_MBSCHR.
98368         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
98369         * MODULES.html.sh (Internationalization functions): Add mbschr.
98371 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
98373         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
98375         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
98377 2007-02-04  Bruno Haible  <bruno@clisp.org>
98379         New module description section 'configure.ac-early'.
98380         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
98381         (func_get_autoconf_early_snippet): New function.
98382         (func_import, func_create_testdir): Use it. Remove special cases for
98383         modules 'extensions' and 'lock'.
98384         * modules/extensions (configure.ac-early): Require
98385         gl_USE_SYSTEM_EXTENSIONS.
98386         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
98388 2007-02-04  Bruno Haible  <bruno@clisp.org>
98390         Make use of gcj-4.3's -fsource and -ftarget option.
98391         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
98392         and if so try the options -fsource and -ftarget.
98393         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
98394         source_version, ftarget_option, target_version arguments.
98395         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
98396         (is_envjavac_oldgcj_14_14_usable): Renamed from
98397         is_envjavac_gcj_14_14_usable.
98398         (is_envjavac_oldgcj_14_13_usable): Renamed from
98399         is_envjavac_gcj_14_13_usable.
98400         (is_gcj_present): Update.
98401         (is_gcj_43, is_gcj43_usable): New functions.
98402         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
98403         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
98404         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
98405         try the options -fsource and -ftarget.
98407 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
98409         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
98410         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
98411         larger value.
98413 2007-02-03  Jim Meyering  <jim@meyering.net>
98415         Give tools a better chance to allocate space for very large buffers.
98416         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
98418         Make pwd and readlink work also when run with an unreadable parent dir
98419         on systems with openat support.
98420         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
98421         provided getcwd function, even when we have openat support.
98422         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
98424 2007-02-02  Bruno Haible  <bruno@clisp.org>
98426         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
98427         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
98428         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
98429         portability problems if one of these functions is only used on specific
98430         platforms.
98431         Reported by Paul Eggert.
98433 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
98435         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
98436         is causing more trouble than it's curing.
98437         * lib/regex_internal.h (__mempcpy): Remove.
98438         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
98439         (and make the code a tad smaller to boot).
98440         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
98442 2007-02-02  Jim Meyering  <jim@meyering.net>
98444         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
98445         section, not in the Makefile.am: one.
98447 2007-02-02  Eric Blake  <ebb9@byu.net>
98449         * lib/strchrnul.c: Always include config.h first.
98451         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
98452         gnulib strstr is not necessary here.
98454 2007-02-02  Simon Josefsson  <simon@josefsson.org>
98456         * m4/socklen.m4: Fix typo.
98458 2007-02-02  Eric Blake  <ebb9@byu.net>
98460         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
98461         * modules/netinet_in (Makefile.am): Likewise.
98463 2007-02-01  Bruno Haible  <bruno@clisp.org>
98465         * lib/string_.h (GL_LINK_WARNING): New macro.
98466         (strcasecmp, strstr, strcasestr): If provided by the system,
98467         conditionally define as a macro that leads to a warning instead of to
98468         an error.
98469         (strncasecmp): Conditionally define as a macro that leads to a warning.
98471 2007-02-01  Karl Berry  <karl@gnu.org>
98473         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
98475 2007-02-01  Bruno Haible  <bruno@clisp.org>
98477         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
98478         renamings.
98480 2007-02-01  Eric Blake  <ebb9@byu.net>
98482         * modules/regex (Depends-on): Revert dependence on mempcpy.
98483         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
98484         module's definition of mempcpy.
98485         Reported by Paul Eggert.
98487 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
98489         * lib/string_.h: If the gnulib module XYZ is not present, undefine
98490         the symbol XYZ before redefining it.  This fixes a problem with
98491         programs that don't use XYZ, when compiled on systems that define
98492         XYZ to something else.
98494 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
98496         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
98497         occurs when "mkdir -m foo" creates a setgid directory that is (1)
98498         writeable to group or other and (2) is intended to have a special
98499         mode bit that is set or cleared.  In such a case, the directory
98500         should be neither group- nor other-writeable until the special
98501         mode bits are right.
98503 2007-01-31  Eric Blake  <ebb9@byu.net>
98505         * modules/mountlist (Depends-on): Add strstr.
98507         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
98508         bug.
98509         * modules/string (Makefile.am): Remove redundant replacement.
98510         * modules/regex (Depends-on): Add mempcpy.
98512 2007-01-31  Bruno Haible  <bruno@clisp.org>
98514         New module description field 'Link'.
98515         * gnulib-tool (func_usage): Document --extract-link-directive.
98516         (sed_extract_prog): Recognize 'Link' directive.
98517         (func_get_link_directive): New function.
98518         (func_import): Show summary of link directives.
98519         Handle --extract-link-directive option.
98520         * modules/acl (Link): New section.
98521         * modules/clock-time (Link): New section.
98522         * modules/euidaccess (Link): New section.
98523         * modules/gettext (Link): New section.
98524         * modules/iconv (Link): New section.
98525         * modules/lock (Link): New section.
98526         * modules/nanosleep (Link): New section.
98527         * modules/readline (Link): New section.
98529 2007-01-27  Bruno Haible  <bruno@clisp.org>
98531         Enforce the use of gnulib modules for unportable <string.h> functions.
98532         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
98533         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
98534         (gl_HEADER_STRING_H_BODY): Require it.
98535         * lib/string_.h: If the gnulib module XYZ is not present, redefine
98536         the symbol XYZ to one that gives a link error.
98537         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
98538         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
98539         * modules/mempcpy (configure.ac): Likewise.
98540         * modules/memrchr (configure.ac): Likewise.
98541         * modules/stpcpy (configure.ac): Likewise.
98542         * modules/stpncpy (configure.ac): Likewise.
98543         * modules/strcase (configure.ac): Likewise.
98544         * modules/strcasestr (configure.ac): Likewise.
98545         * modules/strchrnul (configure.ac): Likewise.
98546         * modules/strdup (configure.ac): Likewise.
98547         * modules/strndup (configure.ac): Likewise.
98548         * modules/strnlen (configure.ac): Likewise.
98549         * modules/strpbrk (configure.ac): Likewise.
98550         * modules/strsep (configure.ac): Likewise.
98551         * modules/strstr (configure.ac): Likewise.
98552         * modules/strtok_r (configure.ac): Likewise.
98554 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
98556         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
98558 2007-01-30  Jim Meyering  <jim@meyering.net>
98560         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
98562 2007-01-29  Bruno Haible  <bruno@clisp.org>
98564         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
98565         * lib/execute.c: Likewise.
98566         * lib/pipe.c: Likewise.
98567         * lib/printf-args.h: Likewise.
98568         * lib/printf-args.c: Likewise.
98569         * lib/printf-parse.c: Likewise.
98570         * lib/vasnprintf.c: Likewise.
98572 2007-01-29  Eric Blake  <ebb9@byu.net>
98574         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
98575         declaration.
98577 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
98579         * lib/strptime.h (strptime): Use 'restrict' for args where
98580         POSIX requires this.
98581         * lib/strptime.c (strptime): Likewise.
98582         Change license notice from LGPL to GPL, since gnulib-tool will
98583         change this as needed.
98584         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
98585         defined.
98586         Include "strptime.h" first, to check interface.
98587         Do not #undef _LIBC and _NL_CURRENT.
98588         Do not include <stdlib.h>; no longer needed.
98589         Include "time_r.h" and declare ptime_locale_status
98590         only if _LIBC is not defined.
98591         (__P): Remove unused macro.
98592         (match_string): Bring back glibc version, but use it only if _LIBC
98593         is defined.
98594         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
98595         Remove unnecessary assertion and abort() call.
98596         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
98597         * m4/strptime.m4: Fix serial number comment.
98598         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
98599         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
98600         (Depends-on): Add time_r.
98602 2007-01-29  Bruno Haible  <bruno@clisp.org>
98604         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
98605         strptime.
98606         * modules/strptime (Depends-on): Add stdbool.
98607         * lib/strptime.h: Include <time.h> always. Add comments.
98609 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
98611         * modules/strptime: New file.
98612         * lib/strptime.h: New file.
98613         * lib/strptime.c: New file.
98614         * m4/strptime.m4: New file.
98616 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
98618         * MODULES.html.sh: New module mpsort.
98619         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
98621         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
98622         a circularity problem with HP-UX ia64 reported by Bob Proulx in
98623         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
98624         All uses changed.
98625         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
98626         All uses changed.
98627         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
98628         to _Restrict_.
98629         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
98630         the parameter matches the prototype.
98632 2007-01-28  Jim Meyering  <jim@meyering.net>
98634         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
98635         sys/time.h here, reverting that part of the previous patch:
98636         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
98638 2007-01-28  Bruno Haible  <bruno@clisp.org>
98640         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
98641         value of $(SYS_TIME_H).
98642         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
98643         remove it conditionally, too. [added by Jim Meyering]
98644         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
98645         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
98646         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
98647         GETTIMEOFDAY_REPLACEMENT to 1.
98649 2007-01-28  Bruno Haible  <bruno@clisp.org>
98651         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
98652         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
98653         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
98654         Set UNISTD_H instead of UNISTD_H2.
98655         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
98657 2007-01-28  Bruno Haible  <bruno@clisp.org>
98659         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
98660         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
98662 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98664         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
98665         (func_create_testdir): Ensure C locale for `grep' and `tr'
98666         character ranges.
98667         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
98668         ACLOCAL_AMFLAGS parsing state machine.
98670 2007-01-27  Bruno Haible  <bruno@clisp.org>
98672         * modules/unistr/base: Update.
98674 2007-01-27  Bruno Haible  <bruno@clisp.org>
98676         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
98677         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
98678         * modules/unistr/u32-mbtouc-unsafe: Renamed from
98679         modules/unistr/u32-mbtouc.
98680         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
98681         * lib/unistr.h: Update.
98682         * lib/linebreak.c: Update.
98683         * modules/unistr/u32-mbtouc: Renamed from
98684         modules/unistr/u32-mbtouc-safe.
98685         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
98686         * lib/unistr.h: Update.
98687         * lib/unistr/u32-to-u8.c: Update.
98688         * lib/unistr/u32-to-u16.c: Update.
98690 2007-01-27  Bruno Haible  <bruno@clisp.org>
98692         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
98693         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
98694         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
98695         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
98696         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
98697         * modules/unistr/u16-mbtouc-unsafe: Renamed from
98698         modules/unistr/u16-mbtouc.
98699         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
98700         * lib/unistr.h: Update.
98701         * lib/linebreak.c: Update.
98702         * modules/linebreak: Update.
98703         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
98704         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
98705         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
98706         * modules/unistr/u16-mbtouc: Renamed from
98707         modules/unistr/u16-mbtouc-safe.
98708         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
98709         * lib/unistr.h: Update.
98710         * lib/unistr/u16-to-u8.c: Update.
98711         * modules/unistr/u16-to-u8: Update.
98712         * lib/unistr/u16-to-u32.c: Update.
98713         * modules/unistr/u16-to-u32: Update.
98715 2007-01-27  Bruno Haible  <bruno@clisp.org>
98717         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
98718         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
98719         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
98720         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
98721         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
98722         * modules/unistr/u8-mbtouc-unsafe: Renamed from
98723         modules/unistr/u8-mbtouc.
98724         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
98725         * lib/unistr.h: Update.
98726         * lib/striconveh.c: Update.
98727         * modules/striconveh: Update.
98728         * lib/linebreak.c: Update.
98729         * modules/linebreak: Update.
98730         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
98731         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
98732         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
98733         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
98734         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
98735         * lib/unistr.h: Update.
98736         * lib/striconveh.c: Update.
98737         * modules/striconveh: Update.
98738         * lib/unistr/u8-to-u16.c: Update.
98739         * modules/unistr/u8-to-u16: Update.
98740         * lib/unistr/u8-to-u32.c: Update.
98741         * modules/unistr/u8-to-u32: Update.
98743 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98745         Sync from Libtool.
98746         * lib/argz.c: Do not include strings.h nor memory.h, include
98747         string.h unconditionally.  Patch by Simon Josefsson.
98749 2007-01-27  Bruno Haible  <bruno@clisp.org>
98751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
98752         from gl_HEADER_STRING_H_BODY.
98753         (gl_HEADER_STRING_H_BODY): Require it.
98754         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
98755         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
98756         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
98757         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
98758         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
98759         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
98760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
98761         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
98762         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
98763         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
98764         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
98765         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
98766         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
98767         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
98768         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
98770 2007-01-27  Bruno Haible  <bruno@clisp.org>
98772         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
98773         check_PROGRAMS into noinst_PROGRAMS.
98774         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
98775         check_PROGRAMS in this case.
98776         (func_import): Set for_test to false.
98777         (func_create_testdir): Set for_test to true.
98779 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98780             Bruno Haible  <bruno@clisp.org>
98782         * modules/strcasestr (Files): Remove lib/strcasestr.h.
98783         (Depends-on): Add string.
98784         (Includes): Use <string.h> instead of strcasestr.h.
98785         * modules/string (Makefile.am): Also substitute the value of
98786         REPLACE_STRCASESTR.
98787         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
98788         assume strcasestr is declared in <string.h> not <strings.h>. Also
98789         set REPLACE_STRCASESTR.
98790         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
98791         REPLACE_STRCASESTR.
98792         * lib/strcasestr.h: Remove file.
98793         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
98794         * lib/string_.h (strcasestr): New declaration.
98796 2007-01-27  Bruno Haible  <bruno@clisp.org>
98798         * lib/string_.h: Use 'extern'.
98800 2007-01-27  Jim Meyering  <jim@meyering.net>
98802         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
98803         of set-but-not-used local, "q".
98805         * lib/mempcpy.c: Include <config.h> before <string.h>.
98806         This fixes a compilation error on HP-UX, due to the system's
98807         "restrict"-using mempcpy prototype.
98809 2007-01-26  Bruno Haible  <bruno@clisp.org>
98811         Small optimization.
98812         * lib/javacomp.c: Include c-strstr.h.
98813          (is_envjavac_gcj): Use c_strstr instead of strstr.
98814         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
98816 2007-01-26  Bruno Haible  <bruno@clisp.org>
98818         * MODULES.html.sh (Unicode string functions): Add the new modules.
98820         * modules/uniconv/u32-strconv-to-locale: New file.
98821         * lib/uniconv/u32-strconv-to-locale.c: New file.
98823         * modules/uniconv/u16-strconv-to-locale: New file.
98824         * lib/uniconv/u16-strconv-to-locale.c: New file.
98826         * modules/uniconv/u8-strconv-to-locale: New file.
98827         * lib/uniconv/u8-strconv-to-locale.c: New file.
98829         * modules/uniconv/u32-strconv-from-locale: New file.
98830         * lib/uniconv/u32-strconv-from-locale.c: New file.
98832         * modules/uniconv/u16-strconv-from-locale: New file.
98833         * lib/uniconv/u16-strconv-from-locale.c: New file.
98835         * modules/uniconv/u8-strconv-from-locale: New file.
98836         * lib/uniconv/u8-strconv-from-locale.c: New file.
98838         * modules/uniconv/u32-strconv-to-enc: New file.
98839         * lib/uniconv/u32-strconv-to-enc.c: New file.
98840         * modules/uniconv/u32-strconv-to-enc-tests: New file.
98841         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
98843         * modules/uniconv/u16-strconv-to-enc: New file.
98844         * lib/uniconv/u16-strconv-to-enc.c: New file.
98845         * lib/uniconv/u-strconv-to-enc.h: New file.
98846         * modules/uniconv/u16-strconv-to-enc-tests: New file.
98847         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
98849         * modules/uniconv/u8-strconv-to-enc: New file.
98850         * lib/uniconv/u8-strconv-to-enc.c: New file.
98851         * modules/uniconv/u8-strconv-to-enc-tests: New file.
98852         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
98854         * modules/uniconv/u32-strconv-from-enc: New file.
98855         * lib/uniconv/u32-strconv-from-enc.c: New file.
98856         * modules/uniconv/u32-strconv-from-enc-tests: New file.
98857         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
98859         * modules/uniconv/u16-strconv-from-enc: New file.
98860         * lib/uniconv/u16-strconv-from-enc.c: New file.
98861         * modules/uniconv/u16-strconv-from-enc-tests: New file.
98862         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
98864         * modules/uniconv/u8-strconv-from-enc: New file.
98865         * lib/uniconv/u8-strconv-from-enc.c: New file.
98866         * lib/uniconv/u-strconv-from-enc.h: New file.
98867         * modules/uniconv/u8-strconv-from-enc-tests: New file.
98868         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
98870         * modules/uniconv/u32-conv-from-enc: New file.
98871         * lib/uniconv/u32-conv-from-enc.c: New file.
98872         * modules/uniconv/u32-conv-from-enc-tests: New file.
98873         * tests/uniconv/test-u32-conv-from-enc.c: New file.
98875         * modules/uniconv/u16-conv-from-enc: New file.
98876         * lib/uniconv/u16-conv-from-enc.c: New file.
98877         * lib/uniconv/u-conv-from-enc.h: New file.
98878         * modules/uniconv/u16-conv-from-enc-tests: New file.
98879         * tests/uniconv/test-u16-conv-from-enc.c: New file.
98881         * modules/uniconv/u8-conv-from-enc: New file.
98882         * lib/uniconv/u8-conv-from-enc.c: New file.
98883         * modules/uniconv/u8-conv-from-enc-tests: New file.
98884         * tests/uniconv/test-u8-conv-from-enc.c: New file.
98886         * modules/uniconv/base: New file.
98887         * lib/uniconv.h: New file.
98889 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
98891         * doc/gnulib-tool.texi (Initial import): Update to match current
98892         behavior with strdup module.
98893         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
98894         * lib/memmem.h: Remove; all uses removed.  This is now done
98895         by <string.h>.
98896         * lib/mempcpy.h: Likewise.
98897         * lib/memrchr.h: Likewise.
98898         * lib/stpcpy.h: Likewise.
98899         * lib/stpncpy.h: Likewise.
98900         * lib/strcase.h: Likewise.
98901         * lib/strchrnul.h: Likewise.
98902         * lib/strdup.h: Likewise.
98903         * lib/strndup.h: Likewise.
98904         * lib/strnlen.h: Likewise.
98905         * lib/strpbrk.h: Likewise.
98906         * lib/strsep.h: Likewise.
98907         * lib/strstr.h: Likewise.
98908         * lib/strtok_r.h: Likewise.
98909         * lib/string_.h: New file.
98910         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
98911         Rely on <string.h> instead.
98912         * lib/canon-host.c: Likewise.
98913         * lib/chdir-long.c: Likewise.
98914         * lib/concatpath.c: Likewise.
98915         * lib/exclude.c: Likewise.
98916         * lib/fchdir.c: Likewise.
98917         * lib/getaddrinfo.c: Likewise.
98918         * lib/getcwd.c: Likewise.
98919         * lib/getsubopt.c: Likewise.
98920         * lib/glob.c: Likewise.
98921         * lib/hard-locale.c: Likewise.
98922         * lib/iconvme.c: Likewise.
98923         * lib/javacomp.c: Likewise.
98924         * lib/mempcpy.c: Likewise.
98925         * lib/memrchr.c: Likewise.
98926         * lib/regex_internal.h: Likewise.
98927         * lib/stpncpy.c: Likewise.
98928         * lib/strcasecmp.c: Likewise.
98929         * lib/strchrnul.c: Likewise.
98930         * lib/strdup.c: Likewise.
98931         * lib/striconv.c: Likewise.
98932         * lib/striconveh.c: Likewise.
98933         * lib/striconveha.c: Likewise.
98934         * lib/strncasecmp.c: Likewise.
98935         * lib/strndup.c: Likewise.
98936         * lib/strnlen.c: Likewise.
98937         * lib/strsep.c: Likewise.
98938         * lib/strstr.c: Likewise.
98939         * lib/strtok_r.c: Likewise.
98940         * lib/userspec.c: Likewise.
98941         * lib/w32spawn.h: Likewise.
98942         * lib/xstrndup.c: Likewise.
98943         * lib/mountlist.c (strstr): Remove decl.
98944         * m4/string_h.m4: New file.
98945         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
98946         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
98947         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
98948         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
98949         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
98950         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
98951         Set REPLACE_STRCASECMP if necessary.
98952         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
98953         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
98954         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
98955         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
98956         HAVE_DECL_STRDUP if necessary.
98957         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
98958         since gl_FUNC_STRNDUP does that now.
98959         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
98960         Check for decl here...
98961         (gl_PREREQ_STRNLEN): ... not here.
98962         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
98963         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
98964         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
98965         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
98966         necessary.
98967         * modules/string: New file.
98968         * modules/memmem (Files): Remove special-purpose include file.
98969         (Depends-on): Add string.
98970         (Include): Include <string.h>, not the removed file.
98971         * modules/mempcpy: Likewise.
98972         * modules/memrchr: Likewise.
98973         * modules/stpcpy: Likewise.
98974         * modules/stpncpy: Likewise.
98975         * modules/strcase: Likewise.
98976         * modules/strchrnul: Likewise.
98977         * modules/strdup: Likewise.
98978         * modules/strndup: Likewise.
98979         * modules/strnlen: Likewise.
98980         * modules/strpbrk: Likewise.
98981         * modules/strsep: Likewise.
98982         * modules/strstr: Likewise.
98983         * modules/strtok_r: Likewise.
98984         * tests/test-dirname.c: Don't include "strdup.h", since
98985         <string.h> now suffices.
98986         * tests/test-memmem.c: Don't include "memmem.h", since
98987         <string.h> now suffices.
98989 2007-01-25  Bruno Haible  <bruno@clisp.org>
98991         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
98992         *resultp is 0.
98994         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
98995         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
98996         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
98997         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
98999         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
99000         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
99001         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
99002         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
99003         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
99004         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
99006 2007-01-24  Bruno Haible  <bruno@clisp.org>
99008         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
99009         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
99010         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
99011         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
99012         gl_FUNC_FTS_CORE.
99013         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
99014         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
99015         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99016         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
99017         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
99018         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
99019         gl_FUNC_FCHOWNAT.
99020         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
99021         gl_FUNC_STRFTIME.
99022         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
99023         Reported by Ralf Wildenhues.
99025 2007-01-24  Bruno Haible  <bruno@clisp.org>
99027         Drop AC_REQUIRE calls that are redundant with the module dependencies.
99028         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
99029         gl_GETADDRINFO.
99030         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
99031         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
99032         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
99034 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
99036         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
99037         Don't use 'exit'; just return from 'main'.
99038         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
99040         * lib/fnmatch_.h: Readjust white space and comments to match
99041         glibc, to avoid spurious diffs.
99043 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99045         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
99046         2004-12-01 change by Jakub Jelinek, since this code won't compile
99047         if !LIBC.  Problem reported by Bob Proulx.
99049 2007-01-23  Bruno Haible  <bruno@clisp.org>
99051         * lib/striconveh.c: Include c-strcaseeq.h.
99052         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
99053         * modules/striconveh (Depends-on): Add c-strcaseeq.
99055 2007-01-23  Bruno Haible  <bruno@clisp.org>
99057         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
99059         * modules/c-strcaseeq: New file.
99060         * lib/c-strcaseeq.h: New file.
99062         * modules/streq: New file.
99063         * lib/streq.h: New file.
99065 2007-01-23  Bruno Haible  <bruno@clisp.org>
99067         * modules/striconveha-tests: New file.
99068         * tests/test-striconveha.c: New file.
99070         * lib/striconveha.h: Include <stdbool.h>.
99071         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
99072         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
99073         (mem_iconveha_notranslit): Renamed from mem_iconveha.
99074         (mem_iconveha): New function.
99075         (str_iconveha_notranslit): Renamed from str_iconveha.
99076         (str_iconveha): New function.
99077         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
99078         c-strcase.
99080 2007-01-23  Bruno Haible  <bruno@clisp.org>
99082         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
99083         encodings without forgiving before trying any encoding with handler.
99084         (str_iconveha): Try all encodings without forgiving before trying any
99085         encoding with handler.
99087 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99089         Import the following changes from libc.
99091         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
99093         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
99095         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
99097         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
99098         normal_bracket label.
99100         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
99102         [BZ #361]
99103         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
99104         to normal_bracket after fetching the next character.
99106 2007-01-22  Bruno Haible  <bruno@clisp.org>
99108         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
99109         argument.
99110         * lib/striconveh.c (iconv_carefully_1): New function.
99111         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
99112         argument.
99113         (str_cd_iconveh): Update.
99114         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
99115         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
99116         * tests/test-striconveh.c (MAGIC): New macro.
99117         (new_offsets): New function.
99118         (main): Test call with and without offsets.
99120 2007-01-22  Bruno Haible  <bruno@clisp.org>
99122         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
99123         * modules/sys_select (Makefile.am): Likewise.
99124         * modules/sys_socket (Makefile.am): Likewise.
99125         * modules/sys_time (Makefile.am): Likewise.
99127 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
99129         * modules/gettimeofday (License): Change from GPL to LGPL, since
99130         gettimeofday is a library function.
99132 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99134         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
99136 2007-01-21  Bruno Haible  <bruno@clisp.org>
99138         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
99140 2007-01-21  Bruno Haible  <bruno@clisp.org>
99142         * modules/striconveha: New file.
99143         * lib/striconveha.h: New file.
99144         * lib/striconveha.c: New file.
99145         * MODULES.html.sh (Internationalization functions): Add striconveha.
99146         * lib/striconv.c (str_iconv): Optimize the case of an empty input
99147         string.
99148         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
99150 2007-01-21  Bruno Haible  <bruno@clisp.org>
99152         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
99153         * lib/striconveh.c (str_iconveh): Likewise.
99155 2007-01-21  Bruno Haible  <bruno@clisp.org>
99157         * lib/striconveh.h (mem_iconveh): New declaration.
99158         * lib/striconveh.c (mem_iconveh): New function.
99159         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
99161 2007-01-21  Bruno Haible  <bruno@clisp.org>
99163         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
99165         * lib/striconveh.h (mem_cd_iconveh): Change specification.
99166         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
99167         original result buffer.
99168         (str_cd_iconveh): Update.
99169         * tests/test-striconveh.c (main): Update.
99171         * lib/striconv.h (mem_cd_iconv): Change specification.
99172         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
99173         result buffer.
99174         (str_cd_iconv): Update.
99175         * tests/test-striconv.c (main): Update.
99177 2007-01-21  Bruno Haible  <bruno@clisp.org>
99179         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
99181 2007-01-20  Jim Meyering  <jim@meyering.net>
99183         * lib/userspec.c (parse_with_separator): If a user or group string
99184         starts with "+", skip the corresponding name-to-ID look-up, since
99185         such a look-up must fail: user and group names may not include "+".
99187 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
99189         * lib/poll.c: Include sys/time.h and time.h unconditionally,
99190         since we now assume the sys_time module.
99191         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
99192         check for sys/time.h; no longer needed.
99193         * modules/poll (Depends-on): Depend on sys_time.
99195 2007-01-18  Bruno Haible  <bruno@clisp.org>
99197         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
99198         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
99200         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
99201         gettimeofday.
99203         * tests/test-gettimeofday.c: Include <time.h>.
99204         (dummy): Remove variable.
99206         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
99207         gl_HEADER_SYS_TIME_H.
99208         (gl_HEADER_SYS_TIME_H): New macro.
99210         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
99211         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
99212         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
99213         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
99214         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
99215         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
99216         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
99217         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
99218         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
99219         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
99220         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
99222         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
99223         last change; it caused a compilation error when cross-compiling to
99224         Cygwin.
99226 2007-01-18  Jim Meyering  <jim@meyering.net>
99228         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
99229         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
99230         than the race-prone "test -d sys || mkdir sys".
99231         (configure.ac): Use AC_PROG_MKDIR_P.
99232         * modules/sys_select: Likewise.
99233         * modules/sys_socket: Likewise.
99234         * modules/sys_time: Likewise.
99236 2007-01-18  Eric Blake  <ebb9@byu.net>
99238         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
99239         replace gettimeofday.
99240         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
99241         name, to avoid infinite recursion.
99243 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
99245         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
99246         module sys_time.
99247         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
99248         assume timespec.h defines struct timeval.
99249         * lib/settime.c: Likewise.
99250         * lib/utimens.c: Likewise.
99251         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
99252         since we now assume the gettimeofday module.
99253         * lib/tempname.c (__gen_tempname): Likewise.
99254         * lib/gettimeofday.h: Remove.
99255         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
99256         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
99257         Include <time.h>, for 'time()'.
99258         (localtime_buffer_addr): Also use this workaround if
99259         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
99260         to simplify the uses.  All uses changed.
99261         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
99262         that #undef is inside {}, and 'const' follows type name consistently.
99263         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
99264         (gettimeofday): Do not use the maximum possible value for
99265         tv->tv_usec, since that might break usages other than ls.c.
99266         Instead, we'll leave ls.c alone.  This undoes today's patch
99267         by Bruno.  Add a compile-time warning for 1s-clock resolution;
99268         we've never observed the problem but might as well keep the
99269         canary.
99270         * lib/nanosleep.c: Include timespec.h first, for interface check.
99271         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
99272         now assume the sys_time module.
99273         * lib/tempname.c: Likewise.
99274         * lib/timespec.h: Likewise.
99275         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
99276         needed.
99277         * lib/strftime.c: Likewise.
99278         * lib/timespec.h: Likewise.
99279         * lib/posixtm.c: Include posixtm.h first, for interface check.
99280         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
99281         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
99282         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
99283         * lib/sys_time_.h: New file.
99284         * lib/timespec.h (struct timespec): Use long int, not long.
99285         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
99286         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
99287         Remove obsolescent call to AC_HEADER_TIME.
99288         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
99289         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
99290         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
99291         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
99292         Likewise.
99293         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
99294         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
99295         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
99296         into the sys_time module.  Check for gettimeofday just once.
99297         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
99298         for gettimeofday signature to just check the signature.  Merely
99299         compile it, since linking doesn't test signature.  Improve test for
99300         whether gettimeofday.o is actually needed.
99301         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
99302         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
99303         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
99304         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
99305         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
99306         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
99307         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
99308         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
99309         than worrying about sys/time.h.
99310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
99311         Don't bother worrying about TIME_WITH_SYS_TIME.
99312         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
99313         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
99314         * m4/sys_time_h.m4: New file.
99315         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
99316         Don't include sys/time.h.  Return from main rather than exiting.
99317         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
99318         all uses changed.
99319         * modules/gethrxtime (Depends-on): Add sys_time.
99320         * modules/gettime (Depends-on): Likewise.
99321         * modules/gettimeofday (Depends-on): Likewise.
99322         * modules/nanosleep (Depends-on): Likewise.
99323         * modules/settime (Depends-on): Likewise.
99324         * modules/tempname (Depends-on): Likewise.
99325         * modules/utimens (Depends-on): Likewise.
99326         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
99327         (Include): Change back to <sys/time.h>.
99328         (Maintainer): Add self.
99329         * modules/sys_time: New file.
99330         * modules/tempname (Depends-on): Add gettimeofday.
99331         * tests/test-gettimeofday.c: Include <sys/time.h>
99332         rather than gettimeofday.h.
99334 2007-01-17  Bruno Haible  <bruno@clisp.org>
99336         * gnulib-tool (func_get_license): Revert last patch. Instead, let
99337         the license default to GPL.
99338         (func_create_testdir): Don't complain if a module is LGPL and its
99339         tests module depends on GPLed modules.
99341 2007-01-17  Bruno Haible  <bruno@clisp.org>
99343         * lib/gettimeofday.c (gettimeofday): Add code for the case
99344         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
99345         maximum possible value for tv->tv_usec, rather than the minimum one.
99347 2005-10-08  Martin Lambers  <marlam@marlam.de>
99348 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
99349 2007-01-16  Bruno Haible  <bruno@clisp.org>
99351         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
99352         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
99353         gl_FUNC_GETTIMEOFDAY.
99354         (Include): Add gettimeofday.h.
99355         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
99356         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
99357         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
99358         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
99359         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
99360         * lib/gettimeofday.h: New file.
99361         * lib/gettimeofday.c: Include <sys/timeb.h>.
99362         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
99363         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
99364         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
99365         fall back on time().
99367         * tests/test-gettimeofday.c: New file.
99368         * modules/gettimeofday-tests: New file.
99370 2007-01-16  Eric Blake  <ebb9@byu.net>
99372         * modules/fnmatch (Depends-on): Depend on wchar.
99373         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
99374         * m4/fnmatch.m4: Likewise.
99375         * modules/mbchar (Makefile.am): Assume <wchar.h>.
99376         * m4/mbchar.m4: Likewise.
99377         * modules/mbswidth (Depends-on): Depend on wchar.
99378         * lib/mbswidth.c: Assume <wchar.h>.
99379         * m4/mbswidth.m4: Likewise.
99380         * modules/quotearg (Depends-on): Depend on wchar.
99381         * lib/quotearg.c: Assume <wchar.h>.
99382         * m4/quotearg.m4: Likewise.
99383         * modules/regex (Depends-on): Depend on wchar.
99384         * lib/regex_internal.h: Assume <wchar.h>.
99385         * m4/regex.m4: Likewise.
99386         * modules/stdint (Depends-on): Depend on wchar.
99387         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
99388         * m4/stdint.m4: Likewise.
99389         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
99390         * modules/strftime (Depends-on): Depend on wchar.
99391         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
99392         * modules/strtol (Depends-on): Depend on wchar.
99393         * lib/strtol.c: Assume <wchar.h>.
99394         * modules/wcwidth (Depends-on): Depend on wchar.
99395         * lib/wcwidth.h: Assume <wchar.h>.
99396         * m4/wcwidth.m4: Likewise.
99398 2007-01-16  Bruno Haible  <bruno@clisp.org>
99400         * modules/csharpexec-script: New, created from...
99401         * modules/csharpexec: ... this.
99403 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
99405         * modules/javaexec-script: New, created from...
99406         * modules/javaexec: ... this.
99408 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99410         * modules/poll (Dependencies): Add sys_select.
99412 2007-01-15  Jim Meyering  <jim@meyering.net>
99414         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
99415         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
99416         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
99417         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
99419 2007-01-15  Bruno Haible  <bruno@clisp.org>
99421         * modules/striconveh: New file.
99422         * lib/striconveh.h: New file.
99423         * lib/striconveh.c: New file.
99424         * MODULES.html.sh (Internationalization functions): Add striconveh.
99426         * modules/striconveh-tests: New file.
99427         * tests/test-striconveh.c: New file.
99429 2007-01-15  Bruno Haible  <bruno@clisp.org>
99431         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
99432         not from GNU libiconv or GNU libc.
99434 2007-01-15  Bruno Haible  <bruno@clisp.org>
99436         * doc/gnulib-intro.texi (Copyright): Explain the different license
99437         terms for module descriptions, autoconf macros, tests, documentation.
99439 2007-01-14  Bruno Haible  <bruno@clisp.org>
99441         * modules/striconv-tests: New file.
99442         * tests/test-striconv.c: New file.
99444 2007-01-14  Bruno Haible  <bruno@clisp.org>
99446         * modules/iconv-tests: New file.
99447         * tests/test-iconv.c: New file.
99449 2007-01-14  Bruno Haible  <bruno@clisp.org>
99451         * gnulib-tool (func_get_license): For test modules, use the license of
99452         the main module.
99454 2007-01-14  Bruno Haible  <bruno@clisp.org>
99456         * modules/iconv (Include): Clarify that <iconv.h> can only be included
99457         if iconv is found to exist.
99459 2007-01-14  Bruno Haible  <bruno@clisp.org>
99461         * modules/c-ctype-tests: New file.
99462         * tests/test-c-ctype.c: New file.
99464 2007-01-14  Bruno Haible  <bruno@clisp.org>
99466         * modules/binary-io-tests: New file.
99467         * tests/test-binary-io.sh: New file.
99468         * tests/test-binary-io.c: New file.
99470 2007-01-14  Bruno Haible  <bruno@clisp.org>
99472         * modules/array-oset-tests: New file.
99473         * tests/test-array_oset.c: New file.
99475 2007-01-14  Bruno Haible  <bruno@clisp.org>
99477         * modules/array-list-tests: New file.
99478         * tests/test-array_list.c: New file.
99480 2007-01-14  Bruno Haible  <bruno@clisp.org>
99482         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
99483         and make.
99484         Reported by Simon Josefsson in
99485         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
99487 2007-01-14  Bruno Haible  <bruno@clisp.org>
99489         * modules/allocsa-tests: New file.
99490         * tests/test-allocsa.c: New file.
99492 2007-01-14  Bruno Haible  <bruno@clisp.org>
99494         * modules/fchdir (Depends-on): Add absolute-header.
99495         * modules/unistd (Depends-on): Likewise.
99497 2006-12-30  Bruno Haible  <bruno@clisp.org>
99499         * modules/fchdir: New file.
99500         * modules/unistd (Files): Add lib/unistd_.h.
99501         (Makefile.am): Generate unistd.h from unistd_.h.
99502         * lib/fchdir.c: New file.
99503         * lib/dirent_.h: New file.
99504         * lib/unistd_.h: New file.
99505         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
99506         * m4/fchdir.m4: New file.
99507         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
99508         (gl_HEADER_UNISTD): Invoke it.
99509         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
99510         function.
99511         * lib/backupfile.c (opendir, closedir): Undefine.
99512         * lib/chown.c (open, close): Undefine.
99513         * lib/clean-temp.c (open, close): Undefine.
99514         * lib/copy-file.c (open, close): Undefine.
99515         * lib/execute.c (open, close): Undefine.
99516         * lib/fsusage.c (open, close): Undefine.
99517         * lib/gc-gnulib.c (open, close): Undefine.
99518         * lib/getcwd.c (opendir, closedir): Undefine.
99519         * lib/glob.c (opendir, closedir): Undefine.
99520         * lib/javacomp.c (open, close): Undefine.
99521         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
99522         * lib/openat-proc.c (open, close): Undefine.
99523         * lib/pagealign_alloc.c (open, close): Undefine.
99524         * lib/pipe.c (open, close): Undefine.
99525         * lib/progreloc.c (open, close): Undefine.
99526         * lib/savedir.c (opendir, closedir): Undefine.
99527         * lib/utime.c (open, close): Undefine.
99528         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
99530 2007-01-10  Bruno Haible  <bruno@clisp.org>
99532         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
99534 2007-01-12  Eric Blake  <ebb9@byu.net>
99536         Provide a robust <wchar.h>.  Further simplifications are now
99537         possible in other modules, but not included here.
99538         * modules/wchar: New module.
99539         * m4/wchar.m4: New file.
99540         * lib/wchar_.h: Likewise.
99541         * modules/mbchar (Depends-on): Depend on wchar, as the first use
99542         of the new module.
99543         * MODULES.html.sh (Extended multibyte and wide character utilities):
99544         New section.
99546 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
99548         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
99549         to a reasonable default for memory allocation.
99550         (xreadlink): Don't allocate a huge buffer, to work around a buggy
99551         file system that reports garbage st_size values for symlinks.
99552         Problem reported by Liyang Hu.
99554 2007-01-11  Simon Josefsson  <simon@josefsson.org>
99556         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
99557         Emacs .#* auto-save files).
99559 2007-01-11  Bruno Haible  <bruno@clisp.org>
99561         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
99562         directory.
99564 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99566         Use @...@ consistently in lib/wctype_.h.
99567         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
99568         on it being set to 1 or 0.
99569         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
99570         go back to AC_SUBSTing it.
99571         * modules/wctype (Makefile.am): Undo previous change.
99573 2007-01-10  Eric Blake  <ebb9@byu.net>
99575         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
99576         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
99577         * modules/wctype (Makefile.am): Likewise.
99578         Reported by Chris McGuire.
99580 2007-01-10  Jim Meyering  <jim@meyering.net>
99582         fts.c: a small readability/maintainability improvement
99583         * lib/fts.c (fts_read): Make this code slightly more readable and
99584         maintainable by hoisting the "sp->fts_cur = p" assignments to
99585         immediately follow the statements that set P.  Derived from
99586         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
99588 2007-01-10  Eric Blake  <ebb9@byu.net>
99590         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
99591         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
99592         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
99593         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
99594         Reported by Chris McGuire.
99596 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99598         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
99599         in sed script.
99601 2007-01-09  Bruno Haible  <bruno@clisp.org>
99603         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
99604         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
99605         variables.
99606         (func_module): Use them.
99608 2007-01-09  Bruno Haible  <bruno@clisp.org>
99610         * modules/unistr/base: New file.
99611         * lib/unistr.h: New file.
99613         * modules/unistr/u8-to-u16: New file.
99614         * lib/unistr/u8-to-u16.c: New file.
99616         * modules/unistr/u8-to-u32: New file.
99617         * lib/unistr/u8-to-u32.c: New file.
99619         * modules/unistr/u16-to-u8: New file.
99620         * lib/unistr/u16-to-u8.c: New file.
99622         * modules/unistr/u16-to-u32: New file.
99623         * lib/unistr/u16-to-u32.c: New file.
99625         * modules/unistr/u32-to-u8: New file.
99626         * lib/unistr/u32-to-u8.c: New file.
99628         * modules/unistr/u32-to-u16: New file.
99629         * lib/unistr/u32-to-u16.c: New file.
99631         * modules/unistr/u8-check: New file.
99632         * modules/unistr/u16-check: New file.
99633         * modules/unistr/u32-check: New file.
99634         * lib/unistr/u8-check.c: New file.
99635         * lib/unistr/u16-check.c: New file.
99636         * lib/unistr/u32-check.c: New file.
99638         * modules/unistr/u8-chr: New file.
99639         * modules/unistr/u16-chr: New file.
99640         * modules/unistr/u32-chr: New file.
99641         * lib/unistr/u8-chr.c: New file.
99642         * lib/unistr/u16-chr.c: New file.
99643         * lib/unistr/u32-chr.c: New file.
99645         * modules/unistr/u8-cmp: New file.
99646         * modules/unistr/u16-cmp: New file.
99647         * modules/unistr/u32-cmp: New file.
99648         * lib/unistr/u8-cmp.c: New file.
99649         * lib/unistr/u16-cmp.c: New file.
99650         * lib/unistr/u32-cmp.c: New file.
99652         * modules/unistr/u8-cpy: New file.
99653         * modules/unistr/u16-cpy: New file.
99654         * modules/unistr/u32-cpy: New file.
99655         * lib/unistr/u8-cpy.c: New file.
99656         * lib/unistr/u16-cpy.c: New file.
99657         * lib/unistr/u32-cpy.c: New file.
99658         * lib/unistr/u-cpy.h: New file.
99660         * modules/unistr/u8-cpy-alloc: New file.
99661         * modules/unistr/u16-cpy-alloc: New file.
99662         * modules/unistr/u32-cpy-alloc: New file.
99663         * lib/unistr/u8-cpy-alloc.c: New file.
99664         * lib/unistr/u16-cpy-alloc.c: New file.
99665         * lib/unistr/u32-cpy-alloc.c: New file.
99666         * lib/unistr/u-cpy-alloc.h: New file.
99668         * modules/unistr/u8-endswith: New file.
99669         * modules/unistr/u16-endswith: New file.
99670         * modules/unistr/u32-endswith: New file.
99671         * lib/unistr/u8-endswith.c: New file.
99672         * lib/unistr/u16-endswith.c: New file.
99673         * lib/unistr/u32-endswith.c: New file.
99674         * lib/unistr/u-endswith.h: New file.
99676         * modules/unistr/u8-mblen: New file.
99677         * modules/unistr/u16-mblen: New file.
99678         * modules/unistr/u32-mblen: New file.
99679         * lib/unistr/u8-mblen.c: New file.
99680         * lib/unistr/u16-mblen.c: New file.
99681         * lib/unistr/u32-mblen.c: New file.
99683         * modules/unistr/u8-mbtouc: New file.
99684         * modules/unistr/u16-mbtouc: New file.
99685         * modules/unistr/u32-mbtouc: New file.
99686         * lib/unistr/u8-mbtouc.c: New file.
99687         * lib/unistr/u16-mbtouc.c: New file.
99688         * lib/unistr/u32-mbtouc.c: New file.
99690         * modules/unistr/u8-mbtouc-safe: New file.
99691         * modules/unistr/u16-mbtouc-safe: New file.
99692         * modules/unistr/u32-mbtouc-safe: New file.
99693         * lib/unistr/u8-mbtouc-safe.c: New file.
99694         * lib/unistr/u16-mbtouc-safe.c: New file.
99695         * lib/unistr/u32-mbtouc-safe.c: New file.
99697         * modules/unistr/u8-move: New file.
99698         * modules/unistr/u16-move: New file.
99699         * modules/unistr/u32-move: New file.
99700         * lib/unistr/u8-move.c: New file.
99701         * lib/unistr/u16-move.c: New file.
99702         * lib/unistr/u32-move.c: New file.
99703         * lib/unistr/u-move.h: New file.
99705         * modules/unistr/u8-next: New file.
99706         * modules/unistr/u16-next: New file.
99707         * modules/unistr/u32-next: New file.
99708         * lib/unistr/u8-next.c: New file.
99709         * lib/unistr/u16-next.c: New file.
99710         * lib/unistr/u32-next.c: New file.
99712         * modules/unistr/u8-prev: New file.
99713         * modules/unistr/u16-prev: New file.
99714         * modules/unistr/u32-prev: New file.
99715         * lib/unistr/u8-prev.c: New file.
99716         * lib/unistr/u16-prev.c: New file.
99717         * lib/unistr/u32-prev.c: New file.
99719         * modules/unistr/u8-set: New file.
99720         * modules/unistr/u16-set: New file.
99721         * modules/unistr/u32-set: New file.
99722         * lib/unistr/u8-set.c: New file.
99723         * lib/unistr/u16-set.c: New file.
99724         * lib/unistr/u32-set.c: New file.
99725         * lib/unistr/u-set.h: New file.
99727         * modules/unistr/u8-startswith: New file.
99728         * modules/unistr/u16-startswith: New file.
99729         * modules/unistr/u32-startswith: New file.
99730         * lib/unistr/u8-startswith.c: New file.
99731         * lib/unistr/u16-startswith.c: New file.
99732         * lib/unistr/u32-startswith.c: New file.
99733         * lib/unistr/u-startswith.h: New file.
99735         * modules/unistr/u8-stpcpy: New file.
99736         * modules/unistr/u16-stpcpy: New file.
99737         * modules/unistr/u32-stpcpy: New file.
99738         * lib/unistr/u8-stpcpy.c: New file.
99739         * lib/unistr/u16-stpcpy.c: New file.
99740         * lib/unistr/u32-stpcpy.c: New file.
99741         * lib/unistr/u-stpcpy.h: New file.
99743         * modules/unistr/u8-stpncpy: New file.
99744         * modules/unistr/u16-stpncpy: New file.
99745         * modules/unistr/u32-stpncpy: New file.
99746         * lib/unistr/u8-stpncpy.c: New file.
99747         * lib/unistr/u16-stpncpy.c: New file.
99748         * lib/unistr/u32-stpncpy.c: New file.
99749         * lib/unistr/u-stpncpy.h: New file.
99751         * modules/unistr/u8-strcat: New file.
99752         * modules/unistr/u16-strcat: New file.
99753         * modules/unistr/u32-strcat: New file.
99754         * lib/unistr/u8-strcat.c: New file.
99755         * lib/unistr/u16-strcat.c: New file.
99756         * lib/unistr/u32-strcat.c: New file.
99757         * lib/unistr/u-strcat.h: New file.
99759         * modules/unistr/u8-strchr: New file.
99760         * modules/unistr/u16-strchr: New file.
99761         * modules/unistr/u32-strchr: New file.
99762         * lib/unistr/u8-strchr.c: New file.
99763         * lib/unistr/u16-strchr.c: New file.
99764         * lib/unistr/u32-strchr.c: New file.
99766         * modules/unistr/u8-strcmp: New file.
99767         * modules/unistr/u16-strcmp: New file.
99768         * modules/unistr/u32-strcmp: New file.
99769         * lib/unistr/u8-strcmp.c: New file.
99770         * lib/unistr/u16-strcmp.c: New file.
99771         * lib/unistr/u32-strcmp.c: New file.
99773         * modules/unistr/u8-strcpy: New file.
99774         * modules/unistr/u16-strcpy: New file.
99775         * modules/unistr/u32-strcpy: New file.
99776         * lib/unistr/u8-strcpy.c: New file.
99777         * lib/unistr/u16-strcpy.c: New file.
99778         * lib/unistr/u32-strcpy.c: New file.
99779         * lib/unistr/u-strcpy.h: New file.
99781         * modules/unistr/u8-strcspn: New file.
99782         * modules/unistr/u16-strcspn: New file.
99783         * modules/unistr/u32-strcspn: New file.
99784         * lib/unistr/u8-strcspn.c: New file.
99785         * lib/unistr/u16-strcspn.c: New file.
99786         * lib/unistr/u32-strcspn.c: New file.
99787         * lib/unistr/u-strcspn.h: New file.
99789         * modules/unistr/u8-strdup: New file.
99790         * modules/unistr/u16-strdup: New file.
99791         * modules/unistr/u32-strdup: New file.
99792         * lib/unistr/u8-strdup.c: New file.
99793         * lib/unistr/u16-strdup.c: New file.
99794         * lib/unistr/u32-strdup.c: New file.
99795         * lib/unistr/u-strdup.h: New file.
99797         * modules/unistr/u8-strlen: New file.
99798         * modules/unistr/u16-strlen: New file.
99799         * modules/unistr/u32-strlen: New file.
99800         * lib/unistr/u8-strlen.c: New file.
99801         * lib/unistr/u16-strlen.c: New file.
99802         * lib/unistr/u32-strlen.c: New file.
99803         * lib/unistr/u-strlen.h: New file.
99805         * modules/unistr/u8-strmblen: New file.
99806         * modules/unistr/u16-strmblen: New file.
99807         * modules/unistr/u32-strmblen: New file.
99808         * lib/unistr/u8-strmblen.c: New file.
99809         * lib/unistr/u16-strmblen.c: New file.
99810         * lib/unistr/u32-strmblen.c: New file.
99812         * modules/unistr/u8-strmbtouc: New file.
99813         * modules/unistr/u16-strmbtouc: New file.
99814         * modules/unistr/u32-strmbtouc: New file.
99815         * lib/unistr/u8-strmbtouc.c: New file.
99816         * lib/unistr/u16-strmbtouc.c: New file.
99817         * lib/unistr/u32-strmbtouc.c: New file.
99819         * modules/unistr/u8-strncat: New file.
99820         * modules/unistr/u16-strncat: New file.
99821         * modules/unistr/u32-strncat: New file.
99822         * lib/unistr/u8-strncat.c: New file.
99823         * lib/unistr/u16-strncat.c: New file.
99824         * lib/unistr/u32-strncat.c: New file.
99825         * lib/unistr/u-strncat.h: New file.
99827         * modules/unistr/u8-strncmp: New file.
99828         * modules/unistr/u16-strncmp: New file.
99829         * modules/unistr/u32-strncmp: New file.
99830         * lib/unistr/u8-strncmp.c: New file.
99831         * lib/unistr/u16-strncmp.c: New file.
99832         * lib/unistr/u32-strncmp.c: New file.
99834         * modules/unistr/u8-strncpy: New file.
99835         * modules/unistr/u16-strncpy: New file.
99836         * modules/unistr/u32-strncpy: New file.
99837         * lib/unistr/u8-strncpy.c: New file.
99838         * lib/unistr/u16-strncpy.c: New file.
99839         * lib/unistr/u32-strncpy.c: New file.
99840         * lib/unistr/u-strncpy.h: New file.
99842         * modules/unistr/u8-strnlen: New file.
99843         * modules/unistr/u16-strnlen: New file.
99844         * modules/unistr/u32-strnlen: New file.
99845         * lib/unistr/u8-strnlen.c: New file.
99846         * lib/unistr/u16-strnlen.c: New file.
99847         * lib/unistr/u32-strnlen.c: New file.
99848         * lib/unistr/u-strnlen.h: New file.
99850         * modules/unistr/u8-strpbrk: New file.
99851         * modules/unistr/u16-strpbrk: New file.
99852         * modules/unistr/u32-strpbrk: New file.
99853         * lib/unistr/u8-strpbrk.c: New file.
99854         * lib/unistr/u16-strpbrk.c: New file.
99855         * lib/unistr/u32-strpbrk.c: New file.
99856         * lib/unistr/u-strpbrk.h: New file.
99858         * modules/unistr/u8-strrchr: New file.
99859         * modules/unistr/u16-strrchr: New file.
99860         * modules/unistr/u32-strrchr: New file.
99861         * lib/unistr/u8-strrchr.c: New file.
99862         * lib/unistr/u16-strrchr.c: New file.
99863         * lib/unistr/u32-strrchr.c: New file.
99865         * modules/unistr/u8-strspn: New file.
99866         * modules/unistr/u16-strspn: New file.
99867         * modules/unistr/u32-strspn: New file.
99868         * lib/unistr/u8-strspn.c: New file.
99869         * lib/unistr/u16-strspn.c: New file.
99870         * lib/unistr/u32-strspn.c: New file.
99871         * lib/unistr/u-strspn.h: New file.
99873         * modules/unistr/u8-strstr: New file.
99874         * modules/unistr/u16-strstr: New file.
99875         * modules/unistr/u32-strstr: New file.
99876         * lib/unistr/u8-strstr.c: New file.
99877         * lib/unistr/u16-strstr.c: New file.
99878         * lib/unistr/u32-strstr.c: New file.
99879         * lib/unistr/u-strstr.h: New file.
99881         * modules/unistr/u8-strtok: New file.
99882         * modules/unistr/u16-strtok: New file.
99883         * modules/unistr/u32-strtok: New file.
99884         * lib/unistr/u8-strtok.c: New file.
99885         * lib/unistr/u16-strtok.c: New file.
99886         * lib/unistr/u32-strtok.c: New file.
99887         * lib/unistr/u-strtok.h: New file.
99889         * modules/unistr/u8-uctomb: New file.
99890         * modules/unistr/u16-uctomb: New file.
99891         * modules/unistr/u32-uctomb: New file.
99892         * lib/unistr/u8-uctomb.c: New file.
99893         * lib/unistr/u16-uctomb.c: New file.
99894         * lib/unistr/u32-uctomb.c: New file.
99896         * MODULES.html.sh (Unicode string functions): Add the new modules.
99898 2007-01-08  Bruno Haible  <bruno@clisp.org>
99900         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
99901         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
99902         subdirectories.
99904 2007-01-08  Karl Berry  <karl@gnu.org>
99906         * doc/error.texi: mention that main() fns must set program_name
99907         when progname is used.
99909 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
99911         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
99912         WCTYPE_H is empty, for the benefit of builds from non-distclean
99913         directories.  Problem reported by Eric Blake in
99914         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
99916 2007-01-08  Bruno Haible  <bruno@clisp.org>
99918         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
99919         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
99920         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
99921         PROVIDE_CANONICALIZE_FILENAME_MODE.
99922         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
99924 2007-01-08  Bruno Haible  <bruno@clisp.org>
99926         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
99927         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
99928         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
99929         * lib/fts.c: Likewise.
99930         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
99932 2006-12-25  Bruno Haible  <bruno@clisp.org>
99934         * modules/utf8-ucs4-safe: New file.
99935         * lib/utf8-ucs4-safe.h: New file.
99936         * lib/unistr/utf8-ucs4-safe.c: New file.
99938         * modules/utf16-ucs4-safe: New file.
99939         * lib/utf16-ucs4-safe.h: New file.
99940         * lib/unistr/utf16-ucs4-safe.c: New file.
99942         * MODULES.html.sh (Unicode string functions): Add the new modules.
99944 2007-01-08  Bruno Haible  <bruno@clisp.org>
99946         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
99947         (Depends-on): Add unitypes.
99948         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
99949         (u8_mbtouc_aux): Move out to separate file.
99950         (u8_mbtouc): Use ucs4_t, uint8_t types.
99951         * lib/unistr/utf8-ucs4.c: New file.
99953         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
99954         (Depends-on): Add unitypes.
99955         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
99956         (u16_mbtouc_aux): Move out to separate file.
99957         (u16_mbtouc): Use ucs4_t, uint16_t types.
99958         * lib/unistr/utf16-ucs4.c: New file.
99960         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
99961         (Depends-on): Add unitypes.
99962         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
99963         (u8_uctomb_aux): Move out to separate file.
99964         (u8_uctomb): Use ucs4_t, uint8_t types.
99965         * lib/unistr/ucs4-utf8.c: New file.
99967         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
99968         (Depends-on): Add unitypes.
99969         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
99970         (u16_uctomb_aux): Move out to separate file.
99971         (u16_uctomb): Use ucs4_t, uint16_t types.
99972         * lib/unistr/ucs4-utf16.c: New file.
99974 2006-12-25  Bruno Haible  <bruno@clisp.org>
99976         * modules/unitypes: New file.
99977         * lib/unitypes.h: New file.
99978         * MODULES.html.sh (func_all_modules): New section "Unicode string
99979         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
99980         this section. Add unitypes.
99982 2007-01-08  Bruno Haible  <bruno@clisp.org>
99984         Avoid variable names that conflict with those from libtool.
99985         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
99986         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
99987         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
99988         library_names_spec to acl_library_names_spec, hardcode_* to
99989         acl_hardcode_*.
99990         Reported by Ralf Wildenhues.
99992 2007-01-08  Bruno Haible  <bruno@clisp.org>
99994         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
99995         definition.
99996         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
99997         definition.
99998         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
99999         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
100000         definition.
100001         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
100002         definition.
100003         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
100004         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
100005         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
100006         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
100007         definition.
100008         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
100009         definition.
100010         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
100011         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
100012         GC_USE_<algorithm>.
100013         * lib/gc-libgcrypt.c: Likewise.
100014         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
100015         * modules/gc-arctwo (configure.ac): Likewise.
100016         * modules/gc-des (configure.ac): Likewise.
100017         * modules/gc-hmac-md5 (configure.ac): Likewise.
100018         * modules/gc-hmac-sha1 (configure.ac): Likewise.
100019         * modules/gc-md2 (configure.ac): Likewise.
100020         * modules/gc-md4 (configure.ac): Likewise.
100021         * modules/gc-md5 (configure.ac): Likewise.
100022         * modules/gc-random (configure.ac): Likewise.
100023         * modules/gc-rijndael (configure.ac): Likewise.
100024         * modules/gc-sha1 (configure.ac): Likewise.
100026 2007-01-08  Bruno Haible  <bruno@clisp.org>
100028         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
100029         macro definition.
100030         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
100031         definition.
100032         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
100033         definition.
100034         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
100035         * modules/fcntl-safer (configure.ac): Likewise.
100036         * modules/fopen-safer (configure.ac): Likewise.
100037         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
100038         GNULIB_FWRITEERROR macro definition.
100040 2007-01-08  Bruno Haible  <bruno@clisp.org>
100042         * m4/gnulib-common.m4: New file.
100043         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
100044         (func_get_filelist): Add m4/gnulib-common.m4.
100046 2007-01-08  Bruno Haible  <bruno@clisp.org>
100048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
100049         command.
100051 2007-01-08  Jim Meyering  <jim@meyering.net>
100053         Use a more robust test for a "can't happen" condition.
100054         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
100055         narrowed the st_size value.  Presuming the "can't happen" condition
100056         is true, that narrowing could conceivably convert an invalid st_size
100057         value into a valid one.  Instead, use a change based on Matthew
100058         Woehlke's original patch.
100060         Slight readability improvement: use an assert-like macro
100061         in place of literal "abort ()" uses.
100062         * lib/fts.c (fts_assert): Define.
100063         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
100064         Use this macro instead of a bare 'abort'.
100066 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
100068         Don't worry about using IRIX 5.3's wctype.h broken definitions;
100069         simply work around them.
100070         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
100071         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
100072         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
100073         declaring.
100074         Don't bother to define as macros, since the standard doesn't require it.
100075         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
100076         longer worry about IRIX 5.3.
100077         (HAVE_WCTYPE_CTMP_BUG): Remove.
100079 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
100081         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
100082         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
100083         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
100084         Problems reported by Georg Schwarz for IRIX 5.3.
100086         * gnulib-tool (autoconf_minversion): Take the maximum version number
100087         found, not the minimum.  Problem reported by James Youngman.
100089 2007-01-03  Karl Berry  <karl@gnu.org>
100091         * doc/error.texi: new file, explaining interaction with progname.
100092         * doc/gnulib.texi: include it.  Update copyright.
100094 2007-01-03  Simon Josefsson  <simon@josefsson.org>
100096         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
100097         AC_CANONICAL_HOST, to improve autobuild outputs.
100099 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
100100             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
100102         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
100103         sockets, server sockets, and other file descriptors.  Count errors
100104         to compute the return value.  Reorder the code a bit to be easier
100105         to follow.  Don't set event bits that were not requested (except
100106         POLLERR and POLLHUP).
100108 2007-01-01  Bruno Haible  <bruno@clisp.org>
100110         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
100112 2007-01-03  Jim Meyering  <jim@meyering.net>
100114         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
100116 2007-01-02  Bruno Haible  <bruno@clisp.org>
100118         * modules/settime (Include): Require timespec.h.
100119         * modules/nanosleep (Include): Likewise.
100121 2007-01-01  Bruno Haible  <bruno@clisp.org>
100123         * gnulib-tool (func_emit_copyright_notice): Bump year.
100124         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
100126 2007-01-01  Bruno Haible  <bruno@clisp.org>
100128         Improve support for OpenBSD.
100129         * build-aux/config.rpath (libname_spec): Export.
100130         (library_names_spec): New variable. Export.
100131         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
100132         library_names_spec from the config.rpath output. Locate shared library
100133         through the name pattern in library_names_spec.
100135 2007-01-01  Eric Blake  <ebb9@byu.net>
100137         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
100139 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
100141         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
100142         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
100143         assume the C locale, and avoid an "eval" that could cause trouble.
100144         Problem with SORT reported by Bob Proulx.
100146         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
100147         Define.  Trivial patch from Henning Nielsen Lund, originally
100148         sent to bug-grep@gnu.org today.
100150 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
100152         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
100153         struct stat.  Problem reported by Henning Nielsen Lund.
100154         * lib/acl.c: Include acl.h first, to check interface.  Don't
100155         bother to include sys/types.h and sys/stat.h again.
100157 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
100159         Import the following change from libc; problem reported by
100160         Sven Verdoolaege.
100162         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
100164         [BZ #1373]
100165         * lib/argp.h: Remove __NTH for __argp_usage inline function.
100167 2006-12-28  Jim Meyering  <jim@meyering.net>
100169         * build-aux/announce-gen: Do not assume that the package
100170         builds any of tar.gz, tar.bz2, and .xdelta files.
100171         Suggestion from Simon Josefsson.
100173 2006-12-28  Simon Josefsson  <simon@josefsson.org>
100175         * modules/announce-gen: New file.
100177 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
100179         * lib/mbchar.h: Just include <wctype.h>; the wctype module
100180         handles its gotchas now.
100181         * lib/mbswidth.c: Likewise.
100182         * lib/wcwidth.h: Likewise.
100183         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
100184         and iswcntrl; the wctype module does this stuff now.
100185         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
100186         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
100187         * modules/mbchar (Depends-on): Add wctype.
100188         * modules/mbswidth (Depends-on): Likewise.
100189         * modules/wcwidth (Depends-on): Likewise.
100191 2006-12-27  Eric Blake  <ebb9@byu.net>
100193         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
100194         module uses more than what <wctype.h> is required to provide.
100196 2006-12-26  Eric Blake  <ebb9@byu.net>
100198         * gnulib-tool (sed_extract_prog): Avoid space-tab.
100200 2006-12-26  Eric Blake  <ebb9@byu.net>
100202         * modules/absolute-header: New module.
100203         * modules/fcntl (Depends-on): Depend on it.
100204         * modules/inttypes (Depends-on): Likewise.
100205         * modules/stdint (Depends-on): Likewise.
100206         * modules/sys_stat (Depends-on): Likewise.
100207         * modules/wctype (Depends-on): Likewise.
100208         * MODULES.html.sh (Support for building libraries and
100209         executables): Document it.
100211 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
100213         * gnulib-tool (SED): Remove, undoing previous change.
100214         The problem was that it broke coreutils on Solaris, because
100215         "sed --posix" leaked into a makefile.
100216         (sed): New alias, if 'alias' and GNU sed.
100218 2006-12-24  Jim Meyering  <jim@meyering.net>
100220         Work around an fchownat bug in glibc-2.4:
100221         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
100222         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
100223         in spite of the -P option.
100224         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
100225         New macros.
100226         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
100227         * modules/openat (Files): Add lib/fchownat.c.
100228         * lib/openat.c (fchownat): Don't define here.  Move to...
100229         * lib/fchownat.c: ...this new file.
100231 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
100233         Fix bug reported by Bruno Haible in
100234         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
100235         where quotearg.c didn't compile on Mac OS X 10.2 because it
100236         lacks <wchar.h> and wint_t.
100237         * lib/wctype_.h (__wctype_wint_t): New type.
100238         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
100239         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
100240         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
100241         Arg is now of type __wctype_wint_t, not wint_t.
100242         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
100243         substitute HAVE_WINT_T.
100244         * modules/wctype (Files): Add m4/wint_t.m4.
100245         (wctype.h): Substitute HAVE_WINT_T.
100247 2006-12-23  Bruno Haible  <bruno@clisp.org>
100249         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
100251 2006-12-23  Bruno Haible  <bruno@clisp.org>
100253         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
100254         S_ISLNK.
100255         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
100256         mingw.
100258 2006-12-22  Bruno Haible  <bruno@clisp.org>
100260         * lib/copy-file.c: Include acl.h.
100261         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
100262         Close the file descriptors only after being done with copy_acl.
100263         * modules/copy-file (Depends-on): Add acl.
100265 2006-12-22  Bruno Haible  <bruno@clisp.org>
100267         * gnulib-tool (SED): New variable.
100268         Use $SED instead of sed everywhere.
100270 2006-12-22  Bruno Haible  <bruno@clisp.org>
100272         * modules/no-c++: New file.
100273         * m4/no-c++.m4: New file.
100274         * MODULES.html.sh (Support for building libraries and executables):
100275         Add no-c++.
100277 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
100279         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
100280         Include <limits.h>, and use its INT_MAX to rewrite the
100281         j loop so that it does not overflow 'int'.  Problem reported by
100282         Ralf Wildenhues in
100283         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
100284         Play it safe by shifting left by 1 rather than multiplying by 2,
100285         as GCC is less likely to optimize this away when the value
100286         is signed (when it assumes overflow leads to undefined behavior).
100287         Also, don't assume time_t uses two's complement.
100289 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
100291         * MODULES.html.sh: New module wctype.
100292         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
100293         * lib/fnmatch.c: Don't bother to include <wchar.h> before
100294         <wctype.h>, since the new wctype module should fix this.
100295         * lib/quotearg.c: Include <wctype.h> unconditionally, since
100296         the wctype module should arrange for it.
100297         * lib/regex_internal.h: Likewise.
100298         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
100299         since the wctype module should handle this now.
100300         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
100301         * modules/fnmatch (Depends-on): Add wctype.
100302         * modules/quotearg (Depends-on): Likewise.
100303         * modules/regex (Depends-on): Likewise.
100305 2006-12-19  Bruno Haible  <bruno@clisp.org>
100307         * lib/strdup.h [C++]: Wrap definitions in extern "C".
100308         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
100310 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100312         * modules/savewd (Depends-on): Fix dependency on fcntl.
100314 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
100316         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
100317         conforms to C99, rather than relying on the user's environment
100318         setting of STDINT_H.
100320 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
100321         and Eric Blake  <ebb9@byu.net>
100323         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
100324         This is more consistent with the other defines here.
100325         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
100326         Port to z/OS.  Problem reported by Paul Gilmartin.
100327         Change local vars to use gl_ prefix rather than ac_.
100328         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
100329         with other defines.
100330         * modules/double-slash-root: New module.
100331         * modules/dirname (Files): Remove m4/double-slash-root.m4.
100332         (Depends-on): Add double-slash-root.
100333         * MODULES.html.sh (File system functions): Mention new module.
100335 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
100337         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
100338         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
100339         This is for the benefit of gzip, which doesn't do i18n.
100341 2006-12-12  Jim Meyering  <jim@meyering.net>
100343         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
100344         Reported by Andreas Schwab <schwab@suse.de>.
100346 2006-12-12  Bruno Haible  <bruno@clisp.org>
100348         Merge these changes.
100349         2006-09-05  Bruno Haible  <bruno@clisp.org>
100350         * lib/iconvme.c (iconv_string): No need to save and restore errno when
100351         iconv_alloc succeeded.
100352         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
100353         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
100354         test for " && dest " at the end - dest is always != NULL there. Call
100355         iconv with 4xNULL arguments initially, to reset the state. Call iconv
100356         with 2xNULL arguments, also to flush the state storage. Handle the
100357         IRIX iconv behaviour. Realloc the final result, to throw away unused
100358         memory.
100360 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
100362         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
100363         and fchmodat unconditionally, since glibc 2.4 has them.
100364         Problem reported by Arkadiusz Miskiewicz.
100366 2006-12-10  Bruno Haible  <bruno@clisp.org>
100368         * gnulib-tool (func_import): Show the include files only for those
100369         modules that are copied and specified.
100370         Reported by Karl Berry.
100372 2006-12-08  Jim Meyering  <jim@meyering.net>
100374         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
100375         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
100377         * build-aux/announce-gen: Add two new options, both optional:
100378         --bootstrap-tools=TOOL_LIST
100379               a comma-separated list of tools, e.g.,
100380               autoconf,automake,bison,gnulib
100381         --gnulib-snapshot-date=DATE
100382               if gnulib is in the bootstrap tool list,
100383               then report this as the snapshot date.
100384               If not specified, use the current date/time.
100385               If you specify a date here, be sure it's UTC.
100387 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100389         * tests/test-argp-2.sh: Fix test to match actual output.
100390         (func_compare): Fix sed script to be portable.
100392 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
100394         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
100395         workaround for this case.  It is not autoconfigured now; offhand
100396         it's hard to see how to autoconfigure it.
100398 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
100400         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
100401         a directory that is about to be chowned.  Such a directory's
100402         initial file permissions should permit the owner only and this
100403         should not be changed until after the chown, since the group and
100404         other bits would be incorrect if they granted permission before
100405         the chown.
100407         Fix porting problem for iswctype reported by Georg Schwarz in:
100408         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
100409         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
100410         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
100411         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
100412         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
100414 2006-12-03  Jim Meyering  <jim@meyering.net>
100416         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
100417         p->fts_statp may not yet be defined.
100418         (fts_read): Instead, set it in the caller, once p->fts_statp is
100419         sure to be defined, and corresponds to a top-level directory.
100420         This bug made du -x fail.  Here's the coreutils test case:
100421         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
100422         Reported by Mike Frysinger.
100424 2006-12-01  Jim Meyering  <jim@meyering.net>
100426         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
100427         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
100428         Reported by Simon Josefsson.
100430 2006-11-30  Jim Meyering  <jim@meyering.net>
100432         * m4/warning.m4: Use the all-permissive copyright notice
100433         recommended by RMS (rather than LGPL).
100434         * m4/vararrays.m4: Likewise.
100435         * m4/flexmember.m4: Likewise.
100437 2006-11-29  Bruno Haible  <bruno@clisp.org>
100439         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
100440         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
100441         using +=.
100442         Reported by Simon Josefsson <simon@josefsson.org>.
100444 2006-11-28  James Youngman  <jay@gnu.org>
100446         * README: Advise users that they might find the bug-gnulib@gnu.org
100447         and autotools-announce@gnu.org mailing lists useful.
100449 2006-11-28  Bruno Haible  <bruno@clisp.org>
100451         * m4/ptrdiff_max.m4: Remove file.
100453 2006-11-21  Bruno Haible  <bruno@clisp.org>
100455         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
100456         _AC_COMPUTE_INT.
100457         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
100458         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
100459         _AC_COMPUTE_INT.
100460         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
100461         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
100462         _AC_COMPUTE_INT.
100463         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
100465 2006-11-28  Jim Meyering  <jim@meyering.net>
100467         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
100468         warning from "gcc -Wshadow" about shadowing the builtin.
100470 2006-11-27  Bruno Haible  <bruno@clisp.org>
100472         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
100473         _AC_COMPUTE_INT.
100474         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
100476 2006-11-27  Bruno Haible  <bruno@clisp.org>
100477             Paul Eggert  <eggert@cs.ucla.edu>
100479         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
100481 2006-11-26  Bruno Haible  <bruno@clisp.org>
100483         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
100484         noinst_LTLIBRARIES.
100486 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
100487             Bruno Haible  <bruno@clisp.org>
100489         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
100490         if compiling with "gcc -ansi".
100492 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
100494         Fix some incompatibilities with gcc -ansi -pedantic.
100495         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
100496         if compiling pedantically with GCC, unless it's C99 or later.
100497         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
100498         it mishandles gcc -ansi -pedantic as well.
100499         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
100500         if gcc -pedantic.
100501         * lib/regexec.c (check_node_accept_bytes): Don't use auto
100502         initializers for struct if -pedantic, unless it's C99 or later.
100504 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
100506         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
100507         Don't close an fd more than once. Identical atimes indicate
100508         success, not failure.
100510 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
100512         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
100514 2006-11-23  Jim Meyering  <jim@meyering.net>
100516         * build-aux/announce-gen: New file.  From coreutils.
100518 2006-11-22  Jim Meyering  <jim@meyering.net>
100520         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
100521         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
100522         (fts_read): Use a temporary to narrow the overused st_size member
100523         before using it in a switch statement.  Reported by Matthew Woehlke.
100525         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
100526         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
100528 2006-11-20  Bruno Haible  <bruno@clisp.org>
100530         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
100531         changequote instead of pairs of brackets.
100532         Reported by Andreas Schwab <schwab@suse.de>.
100534 2006-11-21  Jim Meyering  <jim@meyering.net>
100536         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
100537         so as to remain compatible with older compilers.
100538         Patch from Michael Deutschmann.
100540 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
100542         * MODULES.html.sh (File system functions): Add openat.
100544         * lib/openat.h (rpl_fstatat): New macro, if
100545         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
100546         (fstatat): Define to rpl_fstatat under the same conditions,
100547         unless COMPILING_FSTATAT.
100548         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
100549         seems to have the bug.
100550         * lib/fstatat.c: New file.
100551         * modules/openat (Files): Add it.
100553 2006-11-20  Bruno Haible  <bruno@clisp.org>
100555         * Makefile: New file.
100557 2006-11-20  Jim Meyering  <jim@meyering.net>
100559         The beginnings of syntax-related checks for gnulib.
100560         * lib/Makefile: New file.
100561         * lib/t-idcache: New script.  Ensure that the two halves of
100562         idcache.c stay in sync.
100564         * lib/idcache.c: Adjust comments in user- and group- portions to
100565         be more accurate, and to be consistent with one another.
100567 2006-11-20  Jim Meyering  <jim@meyering.net>
100569         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
100570         continue using the flexible array member (thus, this module performs
100571         half as many malloc calls), with the addition that...
100572         (getgroup, getuser): Consistently record a non-match via an empty
100573         "name" string, and map an empty string match to a NULL return value.
100574         * modules/idcache (Depends-on): Re-add flexmember.
100576         * lib/idcache.c (getuser): Remove all uses of the register keyword.
100577         (getuidbyname, getgroup, getgidbyname): Likewise.
100579         Use cleaner syntax: NULL rather than 0.
100580         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
100582 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
100584         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
100585         It mishandled the case where the group was missing.
100586         Problem reported by Greg Schafer.
100587         * modules/idcache: Likewise.
100589 2006-11-18  Jim Meyering  <jim@meyering.net>
100591         * check-module (%exempt_header): Add exception for some
100592         conditionally-included headers.
100594         * modules/i-ring (Depends-on): Add verify.
100595         (License): Change to LGPL.
100597 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
100599         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
100600         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
100601         and inttostr.h.  Use snprintf rather than uinttostr, so that
100602         LGPLed code doesn't depend on GPLed.
100604 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
100606         * modules/inline (License): Change from GPL to LGPL.
100608 2006-11-17  Jim Meyering  <jim@meyering.net>
100610         * modules/d-type (License): Switch to LGPL.
100612 2006-11-15  Bruno Haible  <bruno@clisp.org>
100614         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
100616 2006-11-15  Eric Blake  <ebb9@byu.net>
100618         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
100619         the module dependency.
100621 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100622             Bruno Haible  <bruno@clisp.org>
100624         * gnulib-tool (func_create_testdir): Add license consistency check.
100626 2006-11-15  Eric Blake  <ebb9@byu.net>
100628         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
100629         random "(cached)" in configure output.
100631 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100633         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
100634         test for conforming inttypes.h is both announced and cached.
100636         * MODULES.html.sh (seen_modules, seen_files): New variables.
100637         (func_module): Rewrite to use a few less gnulib-tool and sed
100638         invocations.  Avoid a couple of quadratic algorithms for ...
100639         (missed_modules, missed_files): ... these, with ...
100640         (func_append, func_tmpdir): ... these new functions, from
100641         gnulib-tool.  Analogously, install traps for cleanup.
100643         * tests/test-gc.c (main): Remove unused variables.
100644         * tests/test-read-file.c: Include stdlib.h, for 'free'.
100646 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
100648         * modules/inttostr (License): Change to LGPL.
100650 2006-11-14  Eric Blake  <ebb9@byu.net>
100652         * modules/tempname (License): Change to LGPL.
100654 2006-11-14  Eric Blake  <ebb9@byu.net>
100656         * doc/functions.texi (Function Portability): *printf functions on
100657         Cygwin now understand all POSIX size specifiers.
100659 2006-11-14  Bruno Haible  <bruno@clisp.org>
100661         * modules/c-ctype (License): Change to LGPL.
100663 2006-11-12  Bruno Haible  <bruno@clisp.org>
100665         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
100666         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
100667         for GNOME libraries, for which the include files are installed in
100668         subdirectories of $prefix/include.
100670 2006-11-12  Bruno Haible  <bruno@clisp.org>
100672         * m4/lib-link.m4: Require at least autoconf-2.54.
100673         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
100674         name to underscores for the --with option.
100676 2006-11-13  Bruno Haible  <bruno@clisp.org>
100678         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
100679         the tests directory.
100680         Reported by Ralf Wildenhues.
100682 2006-11-13  Bruno Haible  <bruno@clisp.org>
100684         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
100685         (func_emit_initmacro_end): Undo the override here.
100686         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
100687         Works around the famous automake error in coreutils.
100689 2006-11-13  Eric Blake  <ebb9@byu.net>
100691         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
100692         element, not its node.
100694 2006-11-12  Bruno Haible  <bruno@clisp.org>
100696         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
100697         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
100699 2006-11-12  Bruno Haible  <bruno@clisp.org>
100701         * gnulib-tool: New option --local-symlink.
100702         (func_usage): Document it.
100703         (lsymbolic): New variable.
100704         (func_import, func_create_testdir): If --symlink was not specified,
100705         test whether --local-symlink was specified and the file comes from
100706         the local_gnulib_dir.
100708 2006-11-12  Bruno Haible  <bruno@clisp.org>
100710         * gnulib-tool (func_ln): New function.
100711         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
100713 2006-11-12  Bruno Haible  <bruno@clisp.org>
100715         Finish support for source files in subdirectories.
100716         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
100717         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
100718         AUTOMAKE_OPTIONS.
100719         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
100721 2006-11-12  Bruno Haible  <bruno@clisp.org>
100723         * gnulib-tool (func_get_automake_snippet): Synthesize also an
100724         EXTRA_lib_SOURCES augmentation.
100725         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
100727 2006-11-12  Jim Meyering  <jim@meyering.net>
100729         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
100730         file descriptors.  This also averts a failure on systems with
100731         native openat support when a traversed directory lacks "x" access.
100732         * lib/fts_.h: Include "i-ring.h"
100733         (struct FTS) [fts_fd_ring]: New member.
100734         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
100735         (FCHDIR): Add parentheses.
100736         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
100737         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
100738         When descending, rather than simply closing the previous
100739         fts_cwd_fd value, push that file descriptor onto the ring.
100740         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
100741         (fts_open): Initialize the new fd_ring member.
100742         (fts_close): Clear the ring.
100743         (fts_safe_changedir): When possible, use our new fd_ring to skip
100744         the diropen and fstat and dev/ino comparison that would normally
100745         accompany a virtual `chdir ("..")'.
100747         * modules/fts (Depends-on): Add i-ring.
100748         * modules/i-ring: New module.
100749         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
100750         * m4/i-ring.m4: New file.
100752 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100754         * gnulib-tool (func_create_testdir): Fix replacement of
100755         `build-aux' in configure.ac.  Run autotools in gltests
100756         subdirectory.
100757         (func_create_testdir, func_create_megatestdir, test): There is
100758         no need for '--force' in most autotool invocations in a new
100759         tree.  Actually fail the whole test if any of the tools, or the
100760         configure or make stages fail.
100762         Sync from Automake.
100763         * build-aux/gnupload: Revert last change.  Add pointer to upload
100764         instructions of the GNU Maintenance Instructions.
100765         Suggestion by Karl Berry.
100767 2006-11-10  Jim Meyering  <jim@meyering.net>
100769         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
100771 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
100773         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
100774         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
100775         (bind_textdomain_codeset) [! ENABLE_NLS]:
100776         Evaluate all the arguments.  That way, callers get compatible behavior
100777         if the arguments have side effects.  Also, it avoids some GCC
100778         diagnostics in some cases; Joel E. Denny reported problems when Bison
100779         was configured with --enable-gcc-warnigs.
100781 2006-11-10  Jim Meyering  <jim@meyering.net>
100783         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
100784         relevant options in CFLAGS (like -O, -fno-inline) are taken into
100785         account.
100787 2006-11-10  Jim Meyering  <jim@meyering.net>
100789         * modules/inline: New file/module.
100790         * modules/xalloc (Files): Remove m4/inline.m4.
100791         (Depends-on): Add inline, instead.
100792         * modules/oset: Likewise.
100793         * modules/list: Likewise.
100795 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
100797         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
100798         Problem reported by Matthew Woehlke.
100800 2006-11-09  Bruno Haible  <bruno@clisp.org>
100802         * lib/tempname.c (gen_tempname): Remove variant that invokes
100803         __gen_tempname.
100804         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
100805         __gen_tempname.
100807 2006-11-08  Bruno Haible  <bruno@clisp.org>
100809         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
100810         to 'yes' instead of 'cross-compiling'.
100812 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
100814         * lib/quotearg.h (quotearg_free): New decl.
100815         * lib/quotearg.c (quotearg_free): New function.
100816         (slot0, nslots, slotvec0, slotvec):
100817         Now file-scope so that quotearg_free can get at them.
100819 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100821         Sync from Automake.
100822         * build-aux/gnupload: Add missing 'gnu' to example URL.
100823         Report by Karl Berry.
100825 2006-11-08  Bruno Haible  <bruno@clisp.org>
100827         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
100828         Suggested by Paul Eggert.
100830 2006-11-08  Jim Meyering  <jim@meyering.net>
100832         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
100833         It's already included if !_LIBC.
100834         (fts_safe_changedir): Add a comment.
100836 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
100838         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
100839         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
100840         Matthew Woehlke.
100842         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
100843         definitions up, to avoid colliding with change below.
100844         (static_inline) [HAVE_INLINE]: New macro.
100845         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
100846         Provide extern decls when !HAVE_INLINE.  Do not define unless
100847         static_inline is defined, either by us or by xmalloc.c.  Use
100848         static_inline rather than static inline.
100849         (XCALLOC): Optimize sizeof(T) = 1 case.
100850         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
100852 2006-11-07  Bruno Haible  <bruno@clisp.org>
100854         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
100855         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
100856         AC_C_INLINE.
100857         * modules/xalloc (Files): Add m4/inline.m4.
100859 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100861         * README: Fix typo.
100862         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
100863         (Miscellanous Notes): ...from this.
100865 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
100867         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
100868         Mention that offsetof should be used instead of sizeof.
100869         From Bruno Haible.
100871 2006-11-07  Bruno Haible  <bruno@clisp.org>
100873         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
100875 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
100877         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
100878         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
100879         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
100880         (gl_tree_add_before, gl_tree_add_after):
100881         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
100882         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
100883         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
100884         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
100885         (gl_linked_add_after, gl_linked_add_at): Likewise.
100886         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
100887         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
100888         (gl_tree_add_before, gl_tree_add_after): Likewise.
100889         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
100890         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
100891         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
100893 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100895         * lib/gl_oset.h: Use C comment style, not C++ comment style.
100897 2006-11-06  Bruno Haible  <bruno@clisp.org>
100899         * m4/inline.m4: New file.
100900         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
100901         * modules/list (Files): Add m4/inline.m4.
100902         * modules/oset (Files): Likewise.
100904 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
100906         * lib/idcache.c: Include <stddef.h>, for offsetof.
100907         (struct userid.name): Change from char * to a flexible array member.
100908         All uses changed.
100909         * modules/idcache (Depends-on): Add flexmember.
100911         * MODULES.html.sh (Core language properties): New module flexmember.
100912         * modules/flexmember, m4/flexmember.m4: New files.
100914         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
100915         inline functions that are identical with the old xnmalloc_inline,
100916         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
100917         that we can avoid some unnecessary integer multiplications and
100918         divisions in the common case where the element size is known at
100919         compile time.
100920         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
100921         needed.
100922         (xnboundedmalloc): Remove.
100923         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
100924         arguments, for consistency with rest of this header.
100925         (xcharalloc): Rewrite using XNMALLOC.
100926         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
100927         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
100928         versions have been moved to lib/xalloc.h and renamed to be the
100929         non-*_inline versions.
100930         (xmalloc, xrealloc): Implement without reference to the xnmalloc
100931         and xnrealloc functions, since those functions are now inline and
100932         now call us.
100933         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
100934         renaming described above.
100935         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
100936         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
100937         captures the dependency in AC_C_INLINE.
100939         New module canonicalize-lgpl, proposed by Charles Wilson in
100940         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
100941         with a few small changes afterwards.
100942         * MODULES.html.sh (File system functions): New module
100943         canonicalize-lgpl.
100944         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
100945         and canonicalize_file_name.
100946         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
100947         * modules/canonicalize-lgpl: New files.
100949 2006-11-05  Bruno Haible  <bruno@clisp.org>
100951         * gnulib-tool (func_import, func_create_testdir): Create directories
100952         also for files in subdirectories of lib/.
100954 2006-11-05  Bruno Haible  <bruno@clisp.org>
100956         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
100957         ANSI C compliant.
100959 2006-11-03  Bruno Haible  <bruno@clisp.org>
100961         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
100962         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
100963         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
100964         (xnboundedmalloc): New inline function.
100965         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
100966         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
100967         xmalloc.
100968         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
100969         xmalloc.
100970         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
100971         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
100972         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
100973         xmalloc.
100974         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
100975         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
100976         xmalloc.
100977         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
100978         gl_tree_add_after): Use XMALLOC instead of xmalloc.
100979         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
100980         xmalloc.
100981         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
100982         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
100983         gl_tree_add_after): Use XMALLOC instead of xmalloc.
100984         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
100985         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
100986         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
100987         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
100989 2006-11-03  Bruno Haible  <bruno@clisp.org>
100991         * lib/c-ctype.h [C++]: Define functions without name mangling.
100992         * lib/fwriteerror.h [C++]: Likewise.
100993         * lib/gcd.h [C++]: Likewise.
100994         * lib/linebreak.h [C++]: Likewise.
100996 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
100998         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
100999         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
101000         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
101001         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
101002         Check for functions and headers just once.
101003         Check for declaration of canonicalize_file_name.
101004         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
101006 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
101008         * gnulib-tool (func_import): Fix typo in actioncmd.
101010 2006-11-02  Bruno Haible  <bruno@clisp.org>
101012         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
101013         newline sequence in the Makefile.am snippet as a space, like "make"
101014         does.
101015         Reported by Roger Persson <perrog@gmail.com>.
101017 2006-11-01  Bruno Haible  <bruno@clisp.org>
101019         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
101020         already declared in <string.h>.
101021         * lib/strcase.h (strncasecmp): Don't declare it if yes.
101023 2006-11-01  Bruno Haible  <bruno@clisp.org>
101025         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
101026         * lib/strcase.h: Include <string.h>.
101027         (strcasecmp): Define to rpl_strcasecmp here.
101029 2006-11-01  Bruno Haible  <bruno@clisp.org>
101031         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
101033 2006-11-01  Eric Blake  <ebb9@byu.net>
101035         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
101037         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
101039 2006-10-29  Bruno Haible  <bruno@clisp.org>
101041         Make it compile in C++ mode.
101042         * lib/full-write.c (full_rw): Add a cast.
101044 2006-11-01  Bruno Haible  <bruno@clisp.org>
101046         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
101047         be POSIX compliant.
101048         Reported by Roger Persson <perrog@gmail.com>.
101050 2006-11-01  Eric Blake  <ebb9@byu.net>
101052         * lib/getopt_.h: Fix comments.
101054 2006-10-31  Eric Blake  <ebb9@byu.net>
101056         * modules/tmpdir (Depends-on): Add sys_stat.
101057         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
101058         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
101059         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
101060         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
101061         tempname.
101063 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
101065         Avoid some C++ diagnostics reported by Bruno Haible.
101066         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
101067         xmalloc.
101068         (quotearg_alloc): Use xcharalloc rather than xmalloc.
101069         (struct slotvec): Move to top level.
101070         (quotearg_n_options): Rewrite to avoid xmalloc.
101071         * lib/xalloc.h (xcharalloc): New function.
101072         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
101073         [defined __cplusplus]: Add function template that provides result
101074         type propagation.  This part of the change is from Bruno Haible.
101076 2006-10-29  Bruno Haible  <bruno@clisp.org>
101078         Make it compile in C++ mode.
101079         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
101080         * lib/strnlen1.c (strnlen1): Cast memchr result.
101081         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
101082         * lib/clean-temp.c (string_equals, string_hash): Add casts.
101083         (create_temp_dir): Rename local variable 'template'.
101084         (compile_csharp_using_sscli): Add cast.
101085         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
101086         * lib/findprog.c (find_in_path): Likewise.
101087         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
101088         * lib/wait-process.c (register_slave_subprocess): Likewise.
101090 2006-10-22  Bruno Haible  <bruno@clisp.org>
101092         * modules/tsearch: New file.
101093         * lib/tsearch.h: New file.
101094         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
101095         * m4/tsearch.m4: New file.
101096         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
101098 2006-10-29  Eric Blake  <ebb9@byu.net>
101100         * lib/arcfour.c: Assume config.h.
101101         * lib/arctwo.c: Likewise.
101102         * lib/base64.c: Likewise.
101103         * lib/check-version.c: Likewise.
101104         * lib/crc.c: Likewise.
101105         * lib/des.c: Likewise.
101106         * lib/gc-gnulib.c: Likewise.
101107         * lib/gc-libgcrypt.c: Likewise.
101108         * lib/gc-pbkdf2-sha1.c: Likewise.
101109         * lib/getaddrinfo.c: Likewise.
101110         * lib/getdelim.c: Likewise.
101111         * lib/getline.c: Likewise.
101112         * lib/hmac-md5.c: Likewise.
101113         * lib/hmac-sha1.c: Likewise.
101114         * lib/iconvme.c: Likewise.
101115         * lib/md2.c: Likewise.
101116         * lib/md4.c: Likewise.
101117         * lib/memxor.c: Likewise.
101118         * lib/read-file.c: Likewise.
101119         * lib/readline.c: Likewise.
101120         * lib/rijndael-alg-fst.c: Likewise.
101121         * lib/rijndael-api-fst.c: Likewise.
101122         * lib/xgetdomainname.c: Likewise.
101124 2006-10-28  Eric Blake  <ebb9@byu.net>
101126         * lib/xstrndup.c: Assume config.h.
101128 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
101130         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
101131         stat-macros.h is now for our own macros, whereas stat_h is for
101132         macros in the <sys/stat.h> name space.
101133         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
101134         (STAT_MACROS_H): Remove.
101135         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
101136         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
101137         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
101138         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
101139         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
101140         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
101141         Move these macros to ...
101142         * lib/stat_.h: here.  Don't include stat-macros.h.
101143         * lib/canonicalize.c: Don't include stat-macros.h.
101144         * lib/chown.c: Likewise.
101145         * lib/euidaccess.c: Likewise.
101146         * lib/file-type.c: Likewise.
101147         * lib/filemode.c: Likewise.
101148         * lib/glob.c: Likewise.
101149         * lib/isapipe.c: Likewise.
101150         * lib/lchown.c: Likewise.
101151         * lib/lstat.c: Likewise.
101152         * lib/mkdir-p.c: Likewise.
101153         * lib/rmdir.c: Likewise.
101154         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
101155         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
101156         unless mkdir isn't declared, to speed up 'configure'.
101157         Always create sys/stat.h, since it's unlikely any real sys/stat.h
101158         would define all the S_* symbols.
101159         * modules/canonicalize (Depends-on):
101160         Depend on sys_stat, not stat-macros.
101161         * modules/chown: Likewise.
101162         * modules/euidaccess: Likewise.
101163         * modules/filemode: Likewise.
101164         * modules/file-type: Likewise.
101165         * modules/glob: Likewise.
101166         * modules/isapipe: Likewise.
101167         * modules/lchown: Likewise.
101168         * modules/lstat: Likewise.
101169         * modules/mkancesdirs: Likewise.
101170         * modules/rmdir: Likewise.
101171         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
101172         * modules/modechange: Likewise.
101173         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
101174         (configure.ac): Remove gl_STAT_MACROS.
101175         * modules/sys_stat (Depends-on): Remove stat-macros.
101177 2006-10-27  Bruno Haible  <bruno@clisp.org>
101179         * m4/signed.m4: Remove file.
101180         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
101181         invocation.
101182         * modules/vasnprintf (Files): Remove m4/signed.m4.
101184 2006-10-27  Bruno Haible  <bruno@clisp.org>
101186         Update to GNU gettext 0.16.
101187         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
101188         m4/inttypes-h.m4, m4/signed.m4.
101189         * m4/gettext.m4: Update to GNU gettext 0.16.
101190         * m4/intl.m4: New file, from GNU gettext.
101191         * m4/intldir.m4: New file, from GNU gettext.
101192         * config/srclist.txt: Update
101194 2006-10-27  Eric Blake  <ebb9@byu.net>
101196         * MODULES.html.sh: Document tempname.
101197         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
101198         dependencies.
101199         (Files): Move lib/tempname.c...
101200         * modules/tempname: ...to this new module.
101201         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
101202         (gl_PREREQ_TEMPNAME): Move...
101203         * m4/tempname.m4: ...to this new file.
101204         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
101205         * modules/sys_stat (Depends-on): Add stat-macros.
101206         * lib/stat_.h (includes): Pick up stat macros.
101207         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
101208         if stat macros are broken.
101209         * lib/tempname.c (includes): No need to include "stat-macros.h".
101210         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
101211         (direxists, __path_search) [!_LIBC]: Don't compile these in
101212         gnulib; the tmpdir module covers that.
101213         * lib/tempname.h: New file.
101215 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
101217         * COPYING: Explain how gnulib-tool converts licence headers.
101218         Almost all wording by Eric Blake.
101220 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
101222         * lib/mbchar.h (is_basic_table): Make read-only.
101223         * lib/mbchar.c (is_basic_table): Likewise.
101224         Reported by John Darrington.
101226 2006-10-25  Bruno Haible  <bruno@clisp.org>
101228         * lib/progname.h (set_program_name): Undefine before defining.
101230 2006-10-25  Bruno Haible  <bruno@clisp.org>
101232         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
101233         false for non-gcc C++ compilers.
101234         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
101236 2006-10-24  Bruno Haible  <bruno@clisp.org>
101238         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
101239         iconv implementations like Irix iconv.
101241 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
101243         * modules/vararrays: New file.
101244         * m4/vararrays.m4: New file, taken from diffutils.
101245         * MODULES.html.sh: New module vararrays.
101247 2006-10-24  Karl Berry  <karl@gnu.org>
101249         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
101250         Don't call GNU Unix.
101252 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101254         * users.txt: Add Libtool.
101256         Sync from Libtool:
101258         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
101260         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
101261         to gnulib's policy of including config.h unconditionally.
101263 2006-10-24  Bruno Haible  <bruno@clisp.org>
101265         * modules/wcwidth (Files): Add m4/wint_t.m4.
101266         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
101267         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
101269 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
101271         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
101272         to pacify GCC with some -W flags enabled.  Problem reported by
101273         Bruno Haible.
101275 2006-10-24  Jim Meyering  <jim@meyering.net>
101277         * MODULES.html.sh: Remove uinttostr.  It's not a module.
101278         Reported by Karl Berry.
101280 2006-10-23  Bruno Haible  <bruno@clisp.org>
101282         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
101284 2006-10-24  Bruno Haible  <bruno@clisp.org>
101286         * lib/gl_list.h: Use C comment style, not C++ comment style.
101288 2006-10-23  Eric Blake  <ebb9@byu.net>
101290         * lib/getaddrinfo.c (includes): Add missing include.
101292 2006-10-23  Bruno Haible  <bruno@clisp.org>
101293             Paul Eggert  <eggert@cs.ucla.edu>
101295         Ability to rename obstack_free.
101296         * lib/obstack.h (__obstack_free): New macro. Declare instead of
101297         obstack_free.
101298         (obstack_free): Invoke the __obstack_free macro.
101299         * lib/obstack.c (obstack_free): Use __obstack_free macro.
101301 2006-10-23  Bruno Haible  <bruno@clisp.org>
101302             Paul Eggert  <eggert@cs.ucla.edu>
101304         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
101305         __argc, __argv from the declaration. (They are defined as macros on
101306         mingw.)
101308 2006-10-22  Bruno Haible  <bruno@clisp.org>
101310         * doc/gnulib-intro.texi: New file.
101311         * doc/gnulib.texi: Include it.
101313 2006-10-21  Bruno Haible  <bruno@clisp.org>
101315         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
101316         "Introduction", "Miscellanous Notes", "Particular Modules".
101318 2006-10-21  Bruno Haible  <bruno@clisp.org>
101320         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
101321         Change mostlyclean-local rule to avoid sh syntax error from bash
101322         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
101324 2006-10-23  Jim Meyering  <jim@meyering.net>
101326         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
101327         in place of snprintf.
101329         * modules/inttostr (Files): Add lib/uinttostr.c.
101330         * lib/uinttostr.c (inttostr): New file/function.
101331         * lib/inttostr.h (uinttostr): Declare.
101332         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
101333         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
101334         Add uinttostr.
101335         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
101337 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
101339         * lib/canonicalize.c (ELOOP): Define if not already defined.
101340         Problem reported by Bruno Haible in
101341         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
101343 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
101345         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
101346         Problem reported by Perry Smith and Ville Laurikari.
101348         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
101349         uses.
101351 2006-10-19  Bruno Haible  <bruno@clisp.org>
101353         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
101354         for mingw.
101356 2006-10-19  Bruno Haible  <bruno@clisp.org>
101358         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
101359         Needed for mingw.
101361 2006-10-19  Bruno Haible  <bruno@clisp.org>
101363         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
101365 2006-10-19  Bruno Haible  <bruno@clisp.org>
101367         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
101368         it.
101370 2006-10-19  Bruno Haible  <bruno@clisp.org>
101372         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
101373         invocation.
101375 2006-10-19  Bruno Haible  <bruno@clisp.org>
101377         * gnulib-tool (func_create_testdir): Don't include ftruncate and
101378         mountlist by default.
101380 2006-10-16  Bruno Haible  <bruno@clisp.org>
101382         * lib/c-strstr.c: Include c-strstr.h.
101384 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
101386         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
101387         in a slash.
101389 2006-10-18  Bruno Haible  <bruno@clisp.org>
101391         * lib/lock.h [C++]: Wrap definitions in extern "C".
101393 2006-10-18  Bruno Haible  <bruno@clisp.org>
101395         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
101396         gl_LIBOBJS list.
101398 2006-10-18  Bruno Haible  <bruno@clisp.org>
101400         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
101402 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
101404         * lib/xstrtol.h: Include gettext.h.
101405         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
101406         Problem reported by Eric Blake.
101407         * modules/xstrtol (Depends-on): Add gettext-h.
101409 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
101411         * lib/strftime.c (advance): New macro.
101412         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
101413         incomplete type, so you can't add 0 to it.  Problem and patch
101414         reported by Eelco Dolstra for dietlibc.
101416 2006-10-18  Jim Meyering  <jim@meyering.net>
101418         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
101419         type for a local, and rename it: s/up/user_proc/.
101421 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
101423         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
101424         READ_UTMP_USER_PROCESS.
101425         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
101427 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
101429         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
101430         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
101432 2006-10-17  Eric Blake  <ebb9@byu.net>
101434         * lib/sigprocmask.c (sigprocmask): Fix typo.
101436         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
101438         * modules/clean-temp (Makefile.am): Don't add to make output...
101439         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
101440         config.h.
101442 2006-10-17  Bruno Haible  <bruno@clisp.org>
101444         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
101445         differently if DEFAULT_TEXT_DOMAIN is set.
101447 2006-10-16  Bruno Haible  <bruno@clisp.org>
101449         * lib/clean-temp.c: Include fwriteerror.h.
101451 2006-10-16  Bruno Haible  <bruno@clisp.org>
101453         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
101455 2006-10-16  Bruno Haible  <bruno@clisp.org>
101457         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
101458         * lib/sigprocmask.h: Include <sys/types.h>.
101459         (sigset_t): Use the system's definition if present.
101461 2006-10-17  Eric Blake  <ebb9@byu.net>
101463         * lib/xvasprintf.c (includes): Assume config.h.
101464         * lib/xasprintf.c (includes): Likewise.
101466 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
101468         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
101469         at least as wide as intmax_t.
101471 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
101473         (Imported from Automake.)
101474         * build-aux/gnupload: Update to version 1.1 of directive file.
101476 2006-10-16  Eric Blake  <ebb9@byu.net>
101478         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
101479         match Automake 1.10a.
101481 2006-10-14  Bruno Haible  <bruno@clisp.org>
101483         * modules/sigprocmask: New file.
101484         * lib/sigprocmask.h: New file.
101485         * lib/sigprocmask.c: New file.
101486         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
101487         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
101488         request sigprocmask.o.
101489         (gl_PREREQ_SIGPROCMASK): New macro.
101490         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
101491         (Depends-on): Add sigprocmask.
101492         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
101493         gt_SIGNALBLOCKING. Test for 'raise' only once.
101494         * lib/fatal-signal.c: Include sigprocmask.h.
101495         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
101496         unblock_fatal_signals): Define always.
101497         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
101498         sigprocmask.
101500 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
101502         Sync from Automake.
101503         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
101504         which incorrectly sets the mode of an existing destination
101505         directory.  In some cases the unpatched install-sh could do the
101506         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
101507         system.  We hope this is rare in practice, but it's clearly worth
101508         fixing.  Problem reported by Alex Unleashed in
101509         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
101510         Also, don't bother to check for -m bugs unless we're using -m;
101511         suggested by Stepan Kasal.
101513 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101515         Sync from Automake.
101516         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
101517         `-c' flag, so they appear at the same position as in %FASTDEP%
101518         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
101519         which ignores unknown options only after the first non-option.
101520         Bug report against M4 by Nelson H. F. Beebe.
101522 2006-10-13  Jim Meyering  <jim@meyering.net>
101524         Fix a bug in yesterday's change.
101525         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
101526         p->fts_statp->st_dev would be used uninitialized.
101527         Ensures that we always call fts_stat on the very first entry.
101528         Miklos Szeredi reported that find -xdev stopped working.
101530 2006-10-12  Bruno Haible  <bruno@clisp.org>
101532         * gnulib-tool (func_get_automake_snippet): Append an automatically
101533         computed EXTRA_DIST augmentation.
101534         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
101535         * modules/alloca-opt (Makefile.am): Likewise.
101536         * modules/allocsa (Makefile.am): Likewise.
101537         * modules/arcfour (Makefile.am): Likewise.
101538         * modules/arctwo (Makefile.am): Likewise.
101539         * modules/argmatch (Makefile.am): Likewise.
101540         * modules/argz (Makefile.am): Likewise.
101541         * modules/atexit (Makefile.am): Likewise.
101542         * modules/backupfile (Makefile.am): Likewise.
101543         * modules/byteswap (Makefile.am): Likewise.
101544         * modules/c-strtod (Makefile.am): Likewise.
101545         * modules/c-strtold (Makefile.am): Likewise.
101546         * modules/calloc (Makefile.am): Likewise.
101547         * modules/canon-host (Makefile.am): Likewise.
101548         * modules/canonicalize (Makefile.am): Likewise.
101549         * modules/chdir-long (Makefile.am): Likewise.
101550         * modules/chdir-safer (Makefile.am): Likewise.
101551         * modules/check-version (Makefile.am): Likewise.
101552         * modules/chown (Makefile.am): Likewise.
101553         * modules/cloexec (Makefile.am): Likewise.
101554         * modules/close-stream (Makefile.am): Likewise.
101555         * modules/closeout (Makefile.am): Likewise.
101556         * modules/crc (Makefile.am): Likewise.
101557         * modules/csharpexec (Makefile.am): Likewise.
101558         * modules/cycle-check (Makefile.am): Likewise.
101559         * modules/des (Makefile.am): Likewise.
101560         * modules/dev-ino (Makefile.am): Likewise.
101561         * modules/dirfd (Makefile.am): Likewise.
101562         * modules/dirname (Makefile.am): Likewise.
101563         * modules/dup2 (Makefile.am): Likewise.
101564         * modules/eealloc (Makefile.am): Likewise.
101565         * modules/error (Makefile.am): Likewise.
101566         * modules/euidaccess (Makefile.am): Likewise.
101567         * modules/exclude (Makefile.am): Likewise.
101568         * modules/exitfail (Makefile.am): Likewise.
101569         * modules/fcntl-safer (Makefile.am): Likewise.
101570         * modules/fcntl (Makefile.am): Likewise.
101571         * modules/file-type (Makefile.am): Likewise.
101572         * modules/fileblocks (Makefile.am): Likewise.
101573         * modules/filemode (Makefile.am): Likewise.
101574         * modules/filenamecat (Makefile.am): Likewise.
101575         * modules/fnmatch (Makefile.am): Likewise.
101576         * modules/fopen-safer (Makefile.am): Likewise.
101577         * modules/fpending (Makefile.am): Likewise.
101578         * modules/fprintftime (Makefile.am): Likewise.
101579         * modules/free (Makefile.am): Likewise.
101580         * modules/fsusage (Makefile.am): Likewise.
101581         * modules/ftruncate (Makefile.am): Likewise.
101582         * modules/fts (Makefile.am): Likewise.
101583         * modules/gc-arcfour (Makefile.am): Likewise.
101584         * modules/gc-des (Makefile.am): Likewise.
101585         * modules/gc-hmac-md5 (Makefile.am): Likewise.
101586         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
101587         * modules/gc-md4 (Makefile.am): Likewise.
101588         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
101589         * modules/gc-sha1 (Makefile.am): Likewise.
101590         * modules/gc (Makefile.am): Likewise.
101591         * modules/getaddrinfo (Makefile.am): Likewise.
101592         * modules/getcwd (Makefile.am): Likewise.
101593         * modules/getdelim (Makefile.am): Likewise.
101594         * modules/getdomainname (Makefile.am): Likewise.
101595         * modules/getgroups (Makefile.am): Likewise.
101596         * modules/gethostname (Makefile.am): Likewise.
101597         * modules/gethrxtime (Makefile.am): Likewise.
101598         * modules/getline (Makefile.am): Likewise.
101599         * modules/getloadavg (Makefile.am): Likewise.
101600         * modules/getlogin_r (Makefile.am): Likewise.
101601         * modules/getndelim2 (Makefile.am): Likewise.
101602         * modules/getopt (Makefile.am): Likewise.
101603         * modules/getpagesize (Makefile.am): Likewise.
101604         * modules/getpass-gnu (Makefile.am): Likewise.
101605         * modules/getpass (Makefile.am): Likewise.
101606         * modules/getsubopt (Makefile.am): Likewise.
101607         * modules/gettime (Makefile.am): Likewise.
101608         * modules/gettimeofday (Makefile.am): Likewise.
101609         * modules/getugroups (Makefile.am): Likewise.
101610         * modules/getusershell (Makefile.am): Likewise.
101611         * modules/glob (Makefile.am): Likewise.
101612         * modules/group-member (Makefile.am): Likewise.
101613         * modules/hard-locale (Makefile.am): Likewise.
101614         * modules/hash (Makefile.am): Likewise.
101615         * modules/hmac-md5 (Makefile.am): Likewise.
101616         * modules/hmac-sha1 (Makefile.am): Likewise.
101617         * modules/human (Makefile.am): Likewise.
101618         * modules/idcache (Makefile.am): Likewise.
101619         * modules/imaxabs (Makefile.am): Likewise.
101620         * modules/imaxdiv (Makefile.am): Likewise.
101621         * modules/inet_ntop (Makefile.am): Likewise.
101622         * modules/inet_pton (Makefile.am): Likewise.
101623         * modules/intprops (Makefile.am): Likewise.
101624         * modules/inttostr (Makefile.am): Likewise.
101625         * modules/inttypes (Makefile.am): Likewise.
101626         * modules/isapipe (Makefile.am): Likewise.
101627         * modules/javaversion (Makefile.am): Likewise.
101628         * modules/lchmod (Makefile.am): Likewise.
101629         * modules/lchown (Makefile.am): Likewise.
101630         * modules/localcharset (Makefile.am): Likewise.
101631         * modules/long-options (Makefile.am): Likewise.
101632         * modules/lstat (Makefile.am): Likewise.
101633         * modules/malloc (Makefile.am): Likewise.
101634         * modules/mathl (Makefile.am): Likewise.
101635         * modules/mbchar (Makefile.am): Likewise.
101636         * modules/md2 (Makefile.am): Likewise.
101637         * modules/md4 (Makefile.am): Likewise.
101638         * modules/md5 (Makefile.am): Likewise.
101639         * modules/memcasecmp (Makefile.am): Likewise.
101640         * modules/memchr (Makefile.am): Likewise.
101641         * modules/memcmp (Makefile.am): Likewise.
101642         * modules/memcoll (Makefile.am): Likewise.
101643         * modules/memcpy (Makefile.am): Likewise.
101644         * modules/memmem (Makefile.am): Likewise.
101645         * modules/memmove (Makefile.am): Likewise.
101646         * modules/mempcpy (Makefile.am): Likewise.
101647         * modules/memrchr (Makefile.am): Likewise.
101648         * modules/memset (Makefile.am): Likewise.
101649         * modules/memxor (Makefile.am): Likewise.
101650         * modules/mkancesdirs (Makefile.am): Likewise.
101651         * modules/mkdir-p (Makefile.am): Likewise.
101652         * modules/mkdir (Makefile.am): Likewise.
101653         * modules/mkdtemp (Makefile.am): Likewise.
101654         * modules/mkstemp (Makefile.am): Likewise.
101655         * modules/mktime (Makefile.am): Likewise.
101656         * modules/modechange (Makefile.am): Likewise.
101657         * modules/mountlist (Makefile.am): Likewise.
101658         * modules/nanosleep (Makefile.am): Likewise.
101659         * modules/obstack (Makefile.am): Likewise.
101660         * modules/openat (Makefile.am): Likewise.
101661         * modules/pagealign_alloc (Makefile.am): Likewise.
101662         * modules/pathmax (Makefile.am): Likewise.
101663         * modules/physmem (Makefile.am): Likewise.
101664         * modules/poll (Makefile.am): Likewise.
101665         * modules/posixtm (Makefile.am): Likewise.
101666         * modules/posixver (Makefile.am): Likewise.
101667         * modules/putenv (Makefile.am): Likewise.
101668         * modules/quote (Makefile.am): Likewise.
101669         * modules/quotearg (Makefile.am): Likewise.
101670         * modules/raise (Makefile.am): Likewise.
101671         * modules/read-file (Makefile.am): Likewise.
101672         * modules/readline (Makefile.am): Likewise.
101673         * modules/readlink (Makefile.am): Likewise.
101674         * modules/readtokens (Makefile.am): Likewise.
101675         * modules/readutmp (Makefile.am): Likewise.
101676         * modules/realloc (Makefile.am): Likewise.
101677         * modules/regex (Makefile.am): Likewise.
101678         * modules/rename-dest-slash (Makefile.am): Likewise.
101679         * modules/rename (Makefile.am): Likewise.
101680         * modules/rijndael (Makefile.am): Likewise.
101681         * modules/rmdir (Makefile.am): Likewise.
101682         * modules/rpmatch (Makefile.am): Likewise.
101683         * modules/safe-read (Makefile.am): Likewise.
101684         * modules/safe-write (Makefile.am): Likewise.
101685         * modules/same-inode (Makefile.am): Likewise.
101686         * modules/same (Makefile.am): Likewise.
101687         * modules/save-cwd (Makefile.am): Likewise.
101688         * modules/savedir (Makefile.am): Likewise.
101689         * modules/setenv (Makefile.am): Likewise.
101690         * modules/settime (Makefile.am): Likewise.
101691         * modules/sha1 (Makefile.am): Likewise.
101692         * modules/sig2str (Makefile.am): Likewise.
101693         * modules/snprintf (Makefile.am): Likewise.
101694         * modules/stat-macros (Makefile.am): Likewise.
101695         * modules/stat-time (Makefile.am): Likewise.
101696         * modules/stdbool (Makefile.am): Likewise.
101697         * modules/stdint (Makefile.am): Likewise.
101698         * modules/stdlib-safer (Makefile.am): Likewise.
101699         * modules/stpcpy (Makefile.am): Likewise.
101700         * modules/stpncpy (Makefile.am): Likewise.
101701         * modules/strcase (Makefile.am): Likewise.
101702         * modules/strcasestr (Makefile.am): Likewise.
101703         * modules/strchrnul (Makefile.am): Likewise.
101704         * modules/strcspn (Makefile.am): Likewise.
101705         * modules/strdup (Makefile.am): Likewise.
101706         * modules/strerror (Makefile.am): Likewise.
101707         * modules/strftime (Makefile.am): Likewise.
101708         * modules/strndup (Makefile.am): Likewise.
101709         * modules/strnlen (Makefile.am): Likewise.
101710         * modules/strpbrk (Makefile.am): Likewise.
101711         * modules/strsep (Makefile.am): Likewise.
101712         * modules/strstr (Makefile.am): Likewise.
101713         * modules/strtod (Makefile.am): Likewise.
101714         * modules/strtoimax (Makefile.am): Likewise.
101715         * modules/strtok_r (Makefile.am): Likewise.
101716         * modules/strtol (Makefile.am): Likewise.
101717         * modules/strtoll (Makefile.am): Likewise.
101718         * modules/strtoul (Makefile.am): Likewise.
101719         * modules/strtoull (Makefile.am): Likewise.
101720         * modules/strtoumax (Makefile.am): Likewise.
101721         * modules/strverscmp (Makefile.am): Likewise.
101722         * modules/sys_socket (Makefile.am): Likewise.
101723         * modules/sys_stat (Makefile.am): Likewise.
101724         * modules/sysexits (Makefile.am): Likewise.
101725         * modules/time_r (Makefile.am): Likewise.
101726         * modules/timegm (Makefile.am): Likewise.
101727         * modules/timespec (Makefile.am): Likewise.
101728         * modules/tmpfile-safer (Makefile.am): Likewise.
101729         * modules/trim (Makefile.am): Likewise.
101730         * modules/unistd-safer (Makefile.am): Likewise.
101731         * modules/unlinkdir (Makefile.am): Likewise.
101732         * modules/unlocked-io (Makefile.am): Likewise.
101733         * modules/userspec (Makefile.am): Likewise.
101734         * modules/utime (Makefile.am): Likewise.
101735         * modules/utimecmp (Makefile.am): Likewise.
101736         * modules/utimens (Makefile.am): Likewise.
101737         * modules/vasnprintf (Makefile.am): Likewise.
101738         * modules/vasprintf (Makefile.am): Likewise.
101739         * modules/vsnprintf (Makefile.am): Likewise.
101740         * modules/xalloc (Makefile.am): Likewise.
101741         * modules/xgetcwd (Makefile.am): Likewise.
101742         * modules/xnanosleep (Makefile.am): Likewise.
101743         * modules/xreadlink (Makefile.am): Likewise.
101744         * modules/xstrtod (Makefile.am): Likewise.
101745         * modules/xstrtol (Makefile.am): Likewise.
101746         * modules/xstrtold (Makefile.am): Likewise.
101747         * modules/yesno (Makefile.am): Likewise.
101748         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
101750 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
101752         * modules/error (Makefile.am): Distribute files through
101753         EXTRA_DIST, not lib_SOURCES.
101755 2006-10-12  Eric Blake  <ebb9@byu.net>
101757         * modules/error (Makefile.am): Distribute files in /lib.
101758         * modules/obstack (Makefile.am): Likewise.
101760 2006-10-12  Bruno Haible  <bruno@clisp.org>
101762         * modules/acl (Makefile.am): Distribute all files in lib/ through
101763         EXTRA_DIST.
101764         * modules/arcfour (Makefile.am): Likewise.
101765         * modules/arctwo (Makefile.am): Likewise.
101766         * modules/argmatch (Makefile.am): Likewise.
101767         * modules/argz (Makefile.am): Likewise.
101768         * modules/atexit (Makefile.am): Likewise.
101769         * modules/backupfile (Makefile.am): Likewise.
101770         * modules/c-strtod (Makefile.am): Likewise.
101771         * modules/c-strtold (Makefile.am): Likewise.
101772         * modules/calloc (Makefile.am): Likewise.
101773         * modules/canon-host (Makefile.am): Likewise.
101774         * modules/canonicalize (Makefile.am): Likewise.
101775         * modules/chdir-long (Makefile.am): Likewise.
101776         * modules/chdir-safer (Makefile.am): Likewise.
101777         * modules/check-version (Makefile.am): Likewise.
101778         * modules/chown (Makefile.am): Likewise.
101779         * modules/cloexec (Makefile.am): Likewise.
101780         * modules/close-stream (Makefile.am): Likewise.
101781         * modules/closeout (Makefile.am): Likewise.
101782         * modules/crc (Makefile.am): Likewise.
101783         * modules/cycle-check (Makefile.am): Likewise.
101784         * modules/des (Makefile.am): Likewise.
101785         * modules/dirfd (Makefile.am): Likewise.
101786         * modules/dirname (Makefile.am): Likewise.
101787         * modules/dup2 (Makefile.am): Likewise.
101788         * modules/euidaccess (Makefile.am): Likewise.
101789         * modules/exclude (Makefile.am): Likewise.
101790         * modules/exitfail (Makefile.am): Likewise.
101791         * modules/fcntl-safer (Makefile.am): Likewise.
101792         * modules/file-type (Makefile.am): Likewise.
101793         * modules/fileblocks (Makefile.am): Likewise.
101794         * modules/filemode (Makefile.am): Likewise.
101795         * modules/filenamecat (Makefile.am): Likewise.
101796         * modules/fnmatch (Makefile.am): Likewise.
101797         * modules/fopen-safer (Makefile.am): Likewise.
101798         * modules/fpending (Makefile.am): Likewise.
101799         * modules/fprintftime (Makefile.am): Likewise.
101800         * modules/free (Makefile.am): Likewise.
101801         * modules/fsusage (Makefile.am): Likewise.
101802         * modules/ftruncate (Makefile.am): Likewise.
101803         * modules/fts (Makefile.am): Likewise.
101804         * modules/gc (Makefile.am): Likewise.
101805         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
101806         * modules/getaddrinfo (Makefile.am): Likewise.
101807         * modules/getcwd (Makefile.am): Likewise.
101808         * modules/getdelim (Makefile.am): Likewise.
101809         * modules/getdomainname (Makefile.am): Likewise.
101810         * modules/getgroups (Makefile.am): Likewise.
101811         * modules/gethostname (Makefile.am): Likewise.
101812         * modules/gethrxtime (Makefile.am): Likewise.
101813         * modules/getline (Makefile.am): Likewise.
101814         * modules/getloadavg (Makefile.am): Likewise.
101815         * modules/getlogin_r (Makefile.am): Likewise.
101816         * modules/getopt (Makefile.am): Likewise.
101817         * modules/getpass (Makefile.am): Likewise.
101818         * modules/getpass-gnu (Makefile.am): Likewise.
101819         * modules/getsubopt (Makefile.am): Likewise.
101820         * modules/gettime (Makefile.am): Likewise.
101821         * modules/gettimeofday (Makefile.am): Likewise.
101822         * modules/getugroups (Makefile.am): Likewise.
101823         * modules/getusershell (Makefile.am): Likewise.
101824         * modules/glob (Makefile.am): Likewise.
101825         * modules/group-member (Makefile.am): Likewise.
101826         * modules/hard-locale (Makefile.am): Likewise.
101827         * modules/hash (Makefile.am): Likewise.
101828         * modules/hmac-md5 (Makefile.am): Likewise.
101829         * modules/hmac-sha1 (Makefile.am): Likewise.
101830         * modules/human (Makefile.am): Likewise.
101831         * modules/idcache (Makefile.am): Likewise.
101832         * modules/imaxabs (Makefile.am): Likewise.
101833         * modules/imaxdiv (Makefile.am): Likewise.
101834         * modules/inet_ntop (Makefile.am): Likewise.
101835         * modules/inet_pton (Makefile.am): Likewise.
101836         * modules/inttostr (Makefile.am): Likewise.
101837         * modules/isapipe (Makefile.am): Likewise.
101838         * modules/lchown (Makefile.am): Likewise.
101839         * modules/long-options (Makefile.am): Likewise.
101840         * modules/lstat (Makefile.am): Likewise.
101841         * modules/malloc (Makefile.am): Likewise.
101842         * modules/mathl (Makefile.am): Likewise.
101843         * modules/mbchar (Makefile.am): Likewise.
101844         * modules/md2 (Makefile.am): Likewise.
101845         * modules/md4 (Makefile.am): Likewise.
101846         * modules/md5 (Makefile.am): Likewise.
101847         * modules/memcasecmp (Makefile.am): Likewise.
101848         * modules/memchr (Makefile.am): Likewise.
101849         * modules/memcmp (Makefile.am): Likewise.
101850         * modules/memcoll (Makefile.am): Likewise.
101851         * modules/memcpy (Makefile.am): Likewise.
101852         * modules/memmem (Makefile.am): Likewise.
101853         * modules/memmove (Makefile.am): Likewise.
101854         * modules/mempcpy (Makefile.am): Likewise.
101855         * modules/memrchr (Makefile.am): Likewise.
101856         * modules/memset (Makefile.am): Likewise.
101857         * modules/memxor (Makefile.am): Likewise.
101858         * modules/mkancesdirs (Makefile.am): Likewise.
101859         * modules/mkdir (Makefile.am): Likewise.
101860         * modules/mkdir-p (Makefile.am): Likewise.
101861         * modules/mkdtemp (Makefile.am): Likewise.
101862         * modules/mkstemp (Makefile.am): Likewise.
101863         * modules/mktime (Makefile.am): Likewise.
101864         * modules/modechange (Makefile.am): Likewise.
101865         * modules/mountlist (Makefile.am): Likewise.
101866         * modules/nanosleep (Makefile.am): Likewise.
101867         * modules/openat (Makefile.am): Likewise.
101868         * modules/pagealign_alloc (Makefile.am): Likewise.
101869         * modules/physmem (Makefile.am): Likewise.
101870         * modules/poll (Makefile.am): Likewise.
101871         * modules/posixtm (Makefile.am): Likewise.
101872         * modules/posixver (Makefile.am): Likewise.
101873         * modules/putenv (Makefile.am): Likewise.
101874         * modules/quote (Makefile.am): Likewise.
101875         * modules/quotearg (Makefile.am): Likewise.
101876         * modules/raise (Makefile.am): Likewise.
101877         * modules/read-file (Makefile.am): Likewise.
101878         * modules/readline (Makefile.am): Likewise.
101879         * modules/readlink (Makefile.am): Likewise.
101880         * modules/readtokens (Makefile.am): Likewise.
101881         * modules/readutmp (Makefile.am): Likewise.
101882         * modules/realloc (Makefile.am): Likewise.
101883         * modules/regex (Makefile.am): Likewise.
101884         * modules/rename (Makefile.am): Likewise.
101885         * modules/rename-dest-slash (Makefile.am): Likewise.
101886         * modules/rijndael (Makefile.am): Likewise.
101887         * modules/rmdir (Makefile.am): Likewise.
101888         * modules/rpmatch (Makefile.am): Likewise.
101889         * modules/safe-read (Makefile.am): Likewise.
101890         * modules/safe-write (Makefile.am): Likewise.
101891         * modules/same (Makefile.am): Likewise.
101892         * modules/save-cwd (Makefile.am): Likewise.
101893         * modules/savedir (Makefile.am): Likewise.
101894         * modules/setenv (Makefile.am): Likewise.
101895         * modules/settime (Makefile.am): Likewise.
101896         * modules/sha1 (Makefile.am): Likewise.
101897         * modules/sig2str (Makefile.am): Likewise.
101898         * modules/snprintf (Makefile.am): Likewise.
101899         * modules/stdlib-safer (Makefile.am): Likewise.
101900         * modules/stpcpy (Makefile.am): Likewise.
101901         * modules/stpncpy (Makefile.am): Likewise.
101902         * modules/strcase (Makefile.am): Likewise.
101903         * modules/strcasestr (Makefile.am): Likewise.
101904         * modules/strchrnul (Makefile.am): Likewise.
101905         * modules/strcspn (Makefile.am): Likewise.
101906         * modules/strdup (Makefile.am): Likewise.
101907         * modules/strerror (Makefile.am): Likewise.
101908         * modules/strftime (Makefile.am): Likewise.
101909         * modules/strndup (Makefile.am): Likewise.
101910         * modules/strnlen (Makefile.am): Likewise.
101911         * modules/strpbrk (Makefile.am): Likewise.
101912         * modules/strsep (Makefile.am): Likewise.
101913         * modules/strstr (Makefile.am): Likewise.
101914         * modules/strtod (Makefile.am): Likewise.
101915         * modules/strtoimax (Makefile.am): Likewise.
101916         * modules/strtok_r (Makefile.am): Likewise.
101917         * modules/strtol (Makefile.am): Likewise.
101918         * modules/strtoll (Makefile.am): Likewise.
101919         * modules/strtoul (Makefile.am): Likewise.
101920         * modules/strtoull (Makefile.am): Likewise.
101921         * modules/strtoumax (Makefile.am): Likewise.
101922         * modules/strverscmp (Makefile.am): Likewise.
101923         * modules/time_r (Makefile.am): Likewise.
101924         * modules/timegm (Makefile.am): Likewise.
101925         * modules/tmpfile-safer (Makefile.am): Likewise.
101926         * modules/unistd-safer (Makefile.am): Likewise.
101927         * modules/unlinkdir (Makefile.am): Likewise.
101928         * modules/userspec (Makefile.am): Likewise.
101929         * modules/utime (Makefile.am): Likewise.
101930         * modules/utimecmp (Makefile.am): Likewise.
101931         * modules/utimens (Makefile.am): Likewise.
101932         * modules/vasnprintf (Makefile.am): Likewise.
101933         * modules/vasprintf (Makefile.am): Likewise.
101934         * modules/vsnprintf (Makefile.am): Likewise.
101935         * modules/xalloc (Makefile.am): Likewise.
101936         * modules/xgetcwd (Makefile.am): Likewise.
101937         * modules/xnanosleep (Makefile.am): Likewise.
101938         * modules/xreadlink (Makefile.am): Likewise.
101939         * modules/xstrtod (Makefile.am): Likewise.
101940         * modules/xstrtol (Makefile.am): Likewise.
101941         * modules/xstrtold (Makefile.am): Likewise.
101942         * modules/yesno (Makefile.am): Likewise.
101944 2006-10-12  Jim Meyering  <jim@meyering.net>
101946         * m4/getloadavg.m4: Revert the change below.
101948         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
101949         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
101950         fail with a symlink, which is what coreutils' ./bootstrap now
101951         creates by default.
101953 2006-10-12  Bruno Haible  <bruno@clisp.org>
101955         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
101956         mingw.
101957         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
101958         MSVC and mingw explicitly.
101960 2006-10-11  Simon Josefsson  <jas@extundo.com>
101961             Bruno Haible  <bruno@clisp.org>
101963         Add support for multiple gnulib-tool invocations in the scope of a
101964         single configure.ac file.
101965         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
101966         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
101967         with the same contents as the _LIBADD variable.
101968         (func_emit_initmacro_start, func_emit_initmacro_end,
101969         func_emit_initmacro_done): New functions.
101970         (func_import, func_create_testdir): Invoke them. Allow the identifiers
101971         gl_LIBOBJS and gl_LTLIBOBJS.
101973 2006-10-11  Bruno Haible  <bruno@clisp.org>
101975         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
101976         (func_create_testdir): Don't create po/Makefile.am, don't invoke
101977         autoreconf. Instead, invoke autopoint explicitly but move back the
101978         *.m4 files from gnulib.
101980 2006-10-11  Bruno Haible  <bruno@clisp.org>
101982         * gnulib-tool (func_usage): Make module names after --create-testdir
101983         optional.
101984         (func_create_testdir): If no module was specified, use nearly all
101985         modules.
101987 2006-10-12  Jim Meyering  <jim@meyering.net>
101989         Big performance improvement for fts-based tools that use FTS_NOSTAT.
101990         Avoid spurious inode-mismatch problems on non-POSIX file systems.
101991         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
101992         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
101993         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
101994         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
101995         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
101996         (fts_set_stat_required): New function.
101997         (fts_open): Defer the calls to fts_stat, if possible or requested.
101998         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
101999         into fts_stat itself.
102000         (fts_read): Perform any required (deferred) fts_stat call.
102001         (fts_build): Likewise, for the directory we're about to open and read.
102002         In the readdir loop, carefully decide whether each entry will require
102003         an eventual call to fts_stat, using dirent.d_type info if available.
102004         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
102005         a command line argument into this function.  Update all callers.
102006         Map a return value of FTS_DOT to FTS_D for a command line argument.
102007         * modules/fts (Depends-on): Add d-type.  Alphabetize.
102008         Thanks to Miklos Szeredi for his tenacity and for the initial
102009         bug report about "find" failing on a FUSE-based file system.
102011         * lib/fts.c (fts_open): Use consistent indentation.
102013 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
102015         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
102016         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
102017         reported by Jim Meyering.  All uses of cache variables renamed
102018         to match Autoconf's.
102019         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
102020         the other one.
102022         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
102023         Fix misspelling in diagnostic.
102025 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
102027         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
102028         defined.  Problem reported by Matthew Woehlke.
102030         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
102031         Add support for Tandem NonStop R series.
102032         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
102033         Use new macro.
102035         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
102036         (has_trailing_slash): Omit size arg; all callers changed.
102037         Omit 'inline', since it doesn't help performance and we'd
102038         need to configure it.
102039         Don't count //, ///, etc. as having a trailing slash.
102040         As a side effect, this removes a C99ism reported by Matthew Woehlke.
102041         (rpl_rename_dest_slash): On failure, use rename's errno rather
102042         than (in some cases) an incorrect or junk errno.
102043         Simplify code by removing need to compute length; this does
102044         cause it to make two passes instead of one over the file name,
102045         but it's worth it.
102047         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
102048         change, since Autoconf's version may no longer be appropriate now
102049         that we are using CVS Autoconf's version.  Add support for Tandem.
102051 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
102052             Bruno Haible  <bruno@clisp.org>
102054         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
102055         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
102056         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
102057         gl_AC_TYPE_LONG_LONG.
102059         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
102060         instead of HAVE_LONG_LONG.
102061         * lib/printf-args.c (printf_fetchargs): Likewise.
102062         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
102063         * lib/vasnprintf.c (VASNPRINTF): Likewise.
102064         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
102065         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
102066         gl_AC_TYPE_LONG_LONG.
102068 2006-10-11  Bruno Haible  <bruno@clisp.org>
102070         * m4/longlong.m4: Add comments.
102071         * m4/ulonglong.m4: Likewise.
102073 2006-10-10  Bruno Haible  <bruno@clisp.org>
102075         Make it possible to #define stpcpy, strdup to aliases.
102076         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
102077         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
102079 2006-10-10  Bruno Haible  <bruno@clisp.org>
102081         Make it possible to #define gcd to an alias.
102082         * lib/gcd.c: Include config.h.
102084 2006-10-10  Bruno Haible  <bruno@clisp.org>
102086         Make it possible to #define c_isascii to an alias.
102087         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
102088         defined. Undefine the macros before defining them, to avoid gcc
102089         warnings.
102090         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
102091         define NO_C_CTYPE_MACROS early.
102093 2006-10-10  Bruno Haible  <bruno@clisp.org>
102095         Make it possible to #define set_program_name to an alias.
102096         * lib/progname.c: Don't undefine set_program_name; instead, undefine
102097         ENABLE_RELOCATABLE early.
102099 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
102101         Port to Tandem NSK OSS, which has 64-bit signed int but at most
102102         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
102103         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
102104         More generally, don't assume that 64-bit signed int is available
102105         if unsigned int is, and vice versa.
102106         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
102107         unsigned symbols, not on their signed counterparts.
102108         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
102109         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
102110         (UINT64_C, UINTMAX_C):
102111         Likewise.
102112         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
102113         unsigned counterparts.
102114         (Have_long_long, Unsigned): New macros.
102115         (Int): Renamed from INT.
102116         (strtoimax): Use the new macros.
102117         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
102118         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
102119         * modules/inttypes (inttypes.h): Substitute
102120         HAVE_UNSIGNED_LONG_LONG_INT.
102121         * modules/stdint (stdint.h): Likewise.
102122         (Files): Add m4/ulonglong.m4.
102124 2006-10-10  Bruno Haible  <bruno@clisp.org>
102126         Fix a gcc -Wshadow warning.
102127         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
102128         to 'bucket'.
102129         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
102130         gl_linked_indexof_from_to): Likewise.
102131         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
102132         Likewise.
102133         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
102134         Likewise.
102135         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
102136         Reported by Eric Blake.
102138 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
102140         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
102141         for NetBSD.  Problem reported by Bruno Haible.
102143 2006-10-09  Jim Meyering  <jim@meyering.net>
102145         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
102146         Patch from Bruno Haible.
102148 2006-10-09  Jim Meyering  <jim@meyering.net>
102150         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
102151         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
102152         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
102154 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
102156         Don't include <config.h> twice; this doesn't work in some cases,
102157         e.g., when config.h has "#define intmax_t long long int" and
102158         we include <config.h>, <inttypes.h>, <config.h> in that order.
102159         Problem reported by Matthew Woehlke in:
102160         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
102161         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
102162         * lib/fts-cycle.c: Don't include config.h.
102163         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
102164         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
102165         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
102166         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
102167         inttypes.h.
102168         * lib/xstrtoumax.c: Likewise.
102169         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
102170         __strtol and the like, so that this module is more like its siblings.
102171         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
102172         Remove; no longer needed now that we assume gnulib inttypes.h.
102174 2006-10-08  Bruno Haible  <bruno@clisp.org>
102176         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
102177         option.
102179 2006-10-07  Jim Meyering  <jim@meyering.net>
102181         * modules/inttypes (inttypes.h): Revert what seems to have been
102182         an inadvertent part of today's change: use "|", not "/" in the
102183         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
102185 2006-10-07  Bruno Haible  <bruno@clisp.org>
102187         * modules/sublist: New file.
102189 2006-10-07  Bruno Haible  <bruno@clisp.org>
102191         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
102192         * modules/argz (argz.h): Likewise.
102193         * modules/arpa_inet (arpa/inet.h): Likewise.
102194         * modules/byteswap (byteswap.h): Likewise.
102195         * modules/configmake (configmake.h): Likewise.
102196         * modules/fcntl (fcntl.h): Likewise.
102197         * modules/fnmatch (fnmatch.h): Likewise.
102198         * modules/getopt (getopt.h): Likewise.
102199         * modules/glob (glob.h): Likewise.
102200         * modules/inttypes (inttypes.h): Likewise.
102201         * modules/netinet_in (netinet/in.h): Likewise.
102202         * modules/poll (poll.h): Likewise.
102203         * modules/stdbool (stdbool.h): Likewise.
102204         * modules/stdint (stdint.h): Likewise.
102205         * modules/sys_select (sys/select.h): Likewise.
102206         * modules/sys_socket (sys/socket.h): Likewise.
102207         * modules/sys_stat (sys/stat.h): Likewise.
102208         * modules/sysexits (sysexits.h): Likewise.
102209         * modules/unistd (unistd.h): Likewise.
102210         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102211         Add a "DO NOT EDIT" comment to the generated file.
102212         (func_import): Likewise for gnulib-comp.m4.
102214 2006-10-07  Bruno Haible  <bruno@clisp.org>
102216         * lib/gl_sublist.h: New file.
102217         * lib/gl_sublist.c: New file.
102219 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
102221         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
102222         name (relative to the original working directory) and the file
102223         name component (relative to the temporary working directory).  All
102224         callers changed.
102225         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
102226         * lib/mkdir-p.c (make_dir_parents): Likewise.
102227         * lib/mkdir-p.h (make_dir_parents): Likewise.
102229 2006-10-06  Eric Blake  <ebb9@byu.net>
102231         Define several macros for use by the clean-temp module.
102232         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
102233         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
102234         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
102236         * lib/clean-temp.h (close_stream_temp): New declaration.
102237         * lib/clean-temp.c (includes): Pull in headers according to what
102238         other modules are in use.
102239         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
102241 2006-10-06  Bruno Haible  <bruno@clisp.org>
102243         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
102244         instead of fopen, fwriteerror.
102246 2006-10-06  Bruno Haible  <bruno@clisp.org>
102248         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
102249         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
102250         int.
102251         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
102252         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
102253         Return an error indicator.
102254         Suggested by Eric Blake.
102256 2006-10-06  Bruno Haible  <bruno@clisp.org>
102258         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
102259         Reported by Eric Blake.
102261 2006-10-06  Bruno Haible  <bruno@clisp.org>
102263         * modules/closeout (Description): Mention stderr too.
102265 2006-10-06  Bruno Haible  <bruno@clisp.org>
102266         and Paul Eggert  <eggert@cs.ucla.edu>
102268         * lib/closeout.c (close_stdout): Also close stderr.
102269         * lib/closeout.h: Update comment.
102271 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
102273         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
102274         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
102275         * lib/dirchownmod.c: Include lchown.h.
102276         * lib/lchown.c: Don't include files that lchown.h now includes.
102277         Don't declare chown, since lchown.h now does that.
102278         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
102279         (lchown): Define to rpl_chown if lchown is declared but
102280         does not exist.  Declare using a prototype if lchown is not
102281         declared.  Add a copyright notice.
102282         * lib/mkstemp.h: Include <unistd.h>.
102283         * lib/openat.c: Include lchown.h.
102285         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
102286         we now test for that separately.
102287         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
102288         rather than O_NOFOLLOW, when testing whether it's possible to
102289         avoid a race condition reliably.
102290         * lib/savewd.c (savewd_chdir): Likewise.
102292         Remove macros that are no longer needed now that stdint.h is
102293         reliable.
102294         * lib/fsusage.c (UINTMAX_MAX): Remove.
102295         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
102296         * lib/utimecmp.c (SIZE_MAX): Remove.
102298         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
102300         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
102301         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
102302         O_NOATIME works.
102304 2006-10-05  Bruno Haible  <bruno@clisp.org>
102306         * lib/gl_list.h (gl_sortedlist_search_from_to,
102307         gl_sortedlist_indexof_from_to): New declarations.
102308         (gl_list_implementation): New fields sortedlist_search_from_to,
102309         sortedlist_indexof_from_to.
102310         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
102311         inline functions.
102312         * lib/gl_list.c (gl_sortedlist_search_from_to,
102313         gl_sortedlist_indexof_from_to): New functions.
102314         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
102315         function.
102316         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
102317         (gl_array_sortedlist_search_from_to): New function.
102318         (gl_array_list_implementation): Update.
102319         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
102320         function.
102321         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
102322         (gl_carray_sortedlist_search_from_to): New function.
102323         (gl_carray_list_implementation): Update.
102324         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
102325         gl_linked_sortedlist_indexof_from_to): New functions.
102326         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
102327         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
102328         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
102329         gl_tree_sortedlist_indexof_from_to): New functions.
102330         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
102331         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
102332         Update.
102333         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
102334         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
102335         Update.
102337 2006-10-05  Bruno Haible  <bruno@clisp.org>
102339         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
102340         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
102341         (struct gl_list_implementation): Add fields search_from_to,
102342         indexof_from_to. Remove fields search, indexof.
102343         (gl_list_search): Use the search_from_to method.
102344         (gl_list_search_from, gl_list_search_from_to): New functions.
102345         (gl_list_indexof): Use the indexof_from_to method.
102346         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
102347         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
102348         (gl_list_search_from, gl_list_search_from_to): New functions.
102349         (gl_list_indexof): Use the indexof_from_to method.
102350         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
102351         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
102352         gl_array_indexof. Add start_index, end_index arguments.
102353         (gl_array_search_from_to): Renamed from gl_array_search. Add
102354         start_index, end_index arguments.
102355         (gl_array_remove, gl_array_list_implementation): Update.
102356         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
102357         gl_carray_indexof. Add start_index, end_index arguments.
102358         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
102359         start_index, end_index arguments.
102360         (gl_carray_remove, gl_carray_list_implementation): Update.
102361         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
102362         gl_linked_search. Add start_index, end_index arguments.
102363         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
102364         start_index, end_index arguments.
102365         (gl_linked_remove): Update.
102366         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
102367         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
102368         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
102369         field to 'size_t'.
102370         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
102371         gl_tree_search. Add start_index, end_index arguments.
102372         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
102373         start_index, end_index arguments.
102374         (gl_tree_remove): Update.
102375         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
102376         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
102377         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
102378         function.
102379         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
102380         gl_tree_search. Add start_index, end_index arguments.
102381         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
102382         start_index, end_index arguments.
102383         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
102384         Update.
102385         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
102387 2006-10-05  Bruno Haible  <bruno@clisp.org>
102389         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
102391         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
102392         fwriteerror_temp): New declarations.
102393         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
102394         (descriptors): New variable.
102395         (cleanup): First, close the descriptors.
102396         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
102397         fclose_temp, fwriteerror_temp): New functions.
102399 2006-10-04  Jim Meyering  <jim@meyering.net>
102401         * lib/fts.c (fts_open): Tiny comment change.
102403 2006-10-04  Bruno Haible  <bruno@clisp.org>
102405         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
102406         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
102407         gl_LOCK_BODY.
102408         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
102409         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
102410         gl_LOCK_EARLY_BODY.
102411         (gl_LOCK): Require gl_LOCK_BODY.
102413 2006-10-04  Bruno Haible  <bruno@clisp.org>
102415         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
102416         (gl_oset_search_atleast): New declaration.
102417         (struct gl_oset_implementation): Add field 'search_atleast'.
102418         (gl_oset_search_atleast): New inline function.
102419         * lib/gl_oset.c (gl_oset_search_atleast): New function.
102420         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
102421         (gl_array_oset_implementation): Update.
102422         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
102423         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
102424         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
102426 2006-10-04  Bruno Haible  <bruno@clisp.org>
102428         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
102430 2006-10-03  Bruno Haible  <bruno@clisp.org>
102432         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
102433         from gl_avltreehash_list_implementation.
102435 2006-10-03  Bruno Haible  <bruno@clisp.org>
102437         * lib/gl_oset.c (gl_oset_add): Fix return type.
102439 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
102441         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
102443 2006-10-02  Eric Blake  <ebb9@byu.net>
102445         * modules/strnlen (Depends-on): Add extensions.
102447 2006-10-02  Eric Blake  <ebb9@byu.net>
102449         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
102450         definition in 2.60+.
102452 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
102454         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
102455         checks.
102457 2006-10-02  Bruno Haible  <bruno@clisp.org>
102459         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
102460         to the AUTOMAKE_OPTIONS.
102461         Reported by Jim Meyering.
102463 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
102465         Work around bug in Solaris 10 /proc file system:
102466         /proc/self/fd/NNN/.. isn't the parent directory of
102467         the directory whose file descriptor is NNN.  This needs to
102468         be worked around at run time, not compile time, since a
102469         program might be built on Solaris 8, where things work, and
102470         run on Solaris 10.
102471         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
102472         to use the following interface instead:
102473         (OPENAT_BUFFER_SIZE): New macro.
102474         (openat_proc_name): New function.
102475         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
102476         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
102477         Likewise.
102478         * lib/openat-proc.c: New file.
102479         * modules/openat (Files): Add lib/openat-proc.c.
102480         (Depends-on): Add same-inode, stdbool.
102481         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
102483 2006-09-29  Bruno Haible  <bruno@clisp.org>
102485         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
102486         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
102487         argument. Set stdout_closed before testing for ferror, not after.
102488         (fwriteerror, fwriteerror_no_ebadf): New functions.
102490 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102492         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
102494 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
102496         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
102497         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
102499 2006-09-28  Jim Meyering  <jim@meyering.net>
102501         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
102502         Include <unistd.h>.
102504 2006-09-28  Bruno Haible  <bruno@clisp.org>
102506         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
102507         * modules/linkedhash-list (Depends-on): Likewise.
102508         * modules/rbtreehash-list (Depends-on): Likewise.
102510 2006-09-28  Bruno Haible  <bruno@clisp.org>
102512         * lib/strndup.h: Simplify the redefinition of strndup.
102513         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
102514         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
102516 2006-09-28  Bruno Haible  <bruno@clisp.org>
102518         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
102519         * lib/gl_linkedhash_list.c: Likewise.
102520         * lib/gl_rbtreehash_list.c: Likewise.
102522 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
102524         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
102525         getaddrinfo.
102527         * lib/__fpending.h: Don't include <stdio_ext.h> unless
102528         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
102529         it causes <stdio_ext.h> to cause a compile-time error.
102530         Problem reported by Nelson H. F. Beebe.
102531         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
102532         of HAVE_DECL___PENDING.
102534         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
102535         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
102536         declaration.
102538 2006-09-27  Jim Meyering  <jim@meyering.net>
102540         This file could end up with a definition for a function
102541         named __strndup, rather than rpl_strndup on a system with
102542         incomplete weak_alias support.
102543         * lib/strndup.c (strndup): Rename from __strndup.
102544         Remove #defines that used to map __strndup to strndup.
102545         Don't use K&R prototypes.
102546         Remove LIBC-related code, since this file is not sync'd with glibc.
102547         * lib/strndup.h: Revamp, accordingly.
102548         * m4/strndup.m4: Modernize.
102550 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
102552         * modules/savewd (Depends-on): Add 'raise'.
102553         * lib/savewd.c: Include <signal.h>, for 'raise'.
102555 2006-09-26  Jim Meyering  <jim@meyering.net>
102557         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
102558         when we detect Darwin 8.7.0's acl_get_file bug.
102559         Rearrange to perform the new (below) run-test while $LIBS
102560         contains any acl-related library.  Set USE_ACL at the end.
102561         (gl_ACL_GET_FILE): New function.
102563 2006-09-26  Eric Blake  <ebb9@byu.net>
102565         * lib/verror.c: Include <config.h> unconditionally.
102567 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
102569         * modules/clock-time (Maintainer): Add self.
102570         * modules/getlogin_r (Depends-on): Add extensions.
102572 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102574         * modules/clock-time: New module.
102575         * modules/nanosleep (Depends-on): Add clock-time.
102576         * modules/gethrxtime (Depends-on): Likewise.
102577         * modules/gettime (Depends-on): Likewise.
102578         * modules/settime (Depends-on): Likewise.
102580         * modules/fts-lgpl: Depend on openat.
102581         * modules/mkancesdirs: Depend on savewd.
102582         * modules/mkdir-p: Likewise.
102584 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102586         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
102588         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
102589         `gl_have_arbitrary_file_name_length_limit' to
102590         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
102591         actually works between configure runs.
102593 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102594             Bruno Haible  <bruno@clisp.org>
102596         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
102598 2006-09-25  Jim Meyering  <jim@meyering.net>
102600         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
102601         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
102603 2006-09-25  Eric Blake  <ebb9@byu.net>
102605         * gnulib-tool (func_import, func_create_testdir): Fix typos in
102606         exec's in 2006-09-18 patch when shuffling fds.
102608 2006-09-25  Bruno Haible  <bruno@clisp.org>
102610         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
102611         Reported by Jim Meyering.
102613 2006-09-24  Jim Meyering  <jim@meyering.net>
102615         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
102616         compare a pointer against a literal "0".  That caused failures with
102617         at least HP-UX's hpcc.
102619 2006-09-22  Simon Josefsson  <jas@extundo.com>
102621         * modules/gc-sha1:
102622         * modules/gc-md4:
102623         * modules/gc-hmac-sha1:
102624         * modules/gc-hmac-md5:
102625         * modules/gc-des:
102626         * modules/gc-arcfour: Distribute more files.
102628 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102630         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
102631         (gl_linked_iterator_from_to): Initialize struct completely.
102632         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
102633         (gl_tree_iterator_from_to): Likewise
102634         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
102635         * lib/gl_array_list.c [lint] (gl_array_iterator)
102636         (gl_array_iterator_from_to): Likewise.
102637         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
102638         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
102639         (gl_carray_iterator_from_to): Likewise.
102641         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
102642         * lib/md4.c (md4_process_block): Remove unused variable.
102643         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
102644         parentheses for clarity.
102646 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102648         * modules/bison-i18n (Depends-on): Add gettext.
102650 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102652         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
102653         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
102654         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
102655         also add missing comma that caused broken test.
102656         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
102657         stdlib.h, for `abort'.
102658         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
102659         variables.
102660         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
102661         include unistd.h if present, for `rmdir'.
102662         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
102663         variables.
102664         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
102665         in the process include standard headers for prototypes.
102666         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
102667         gets declared on GNU/Linux.
102668         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
102669         unistd.h, for `rmdir'.
102670         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
102672         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
102673         always true.
102674         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
102676         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
102678 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102680         * gnulib-tool (func_version): Create output all at once.  This
102681         may help avoid triggering unnecessary SIGPIPEs, and at any
102682         rate it doesn't hurt.
102684 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102685             Bruno Haible  <bruno@clisp.org>
102687         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
102688         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
102689         * m4/signed.m4 (bh_C_SIGNED): Likewise.
102691         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
102692         (gl_FUNC_VASPRINTF): Invoke it.
102694 2006-09-22  Bruno Haible  <bruno@clisp.org>
102696         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
102697         getloadavg.c as first argument.
102699 2006-09-22  Bruno Haible  <bruno@clisp.org>
102701         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
102702         at the beginning of the gl_INIT macro.
102703         * modules/getloadavg (configure.ac): Pass $gl_source_base to
102704         gl_GETLOADAVG.
102706 2006-09-22  Bruno Haible  <bruno@clisp.org>
102708         * gnulib-tool (func_create_megatestdir): Don't include the config-h
102709         module.
102710         Suggested by Ralf Wildenhues.
102712 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
102714         Import this patch from libc:
102716         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
102718         * lib/regex_internal.c (re_string_reconstruct): Handle
102719         offset < pstr->valid_raw_len && pstr->offsets_needed case.
102720         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
102721         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
102722         re_string_context_at.
102724         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
102725         now requires it.
102726         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
102727         gl_REGEX now does it for us.
102728         (gl_REGEX): Add test taken from
102729         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
102731         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
102732         Check that large offsets work.  Modernize Autoconf usages.
102733         Prefer "yes" to mean a good thing rather than a bad.
102734         Don't put "#define mkstemp" in config.h, as this might interfere
102735         with standard system headers that "#define mkstemp mkstemp64".
102737         * modules/mkstemp (Depends-on): Add extensions, so that
102738         mkstemp is visible on some platforms.
102739         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
102740         (Include): Change to "mkstemp.h" from <stdlib.h>.
102741         (Files): Add mkstemp.h.
102743         * lib/mkstemp.h: New file, since some standard headers
102744         #define mkstemp.
102745         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
102746         Include "mkstemp.h".
102747         Make the _LIBC code resemble glibc original more,
102748         e.g., use K&R style.
102749         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
102750         (mkstemp): Remove, since mkstemp.h does this for us.
102751         * lib/stdlib--.h: Include mkstemp.h.
102753         Import this patch from libc:
102755         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
102757         * lib/tempname.c (__gen_tempname): Change attempts_min
102758         into a macro.  Use preprocessor to decide how to initialize
102759         attempts [Coverity CID 67].
102761 2006-09-20  Bruno Haible  <bruno@clisp.org>
102763         * lib/mkdtemp.c: Import from libc.
102764         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
102765                 * sysdeps/posix/tempname.c (__gen_tempname): Change
102766                 attempts_min into a macro.  Use preprocessor to decide how to
102767                 initialize attempts [Coverity CID 67].
102768         2001-11-27  Paul Eggert  <eggert@twinsun.com>
102769                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
102770                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
102772 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102774         * gnulib-tool (func_exit): New function, to allow to pass the
102775         exit status portably through the trap.  Use everywhere.
102776         (--help, --version): Signal a write error.
102777         (trap): catch SIGPIPE, for write errors.
102778         Exit at the end of the trap, with the correct exit status.
102780 2006-09-19  Karl Berry  <karl@gnu.org>
102782         * doc/gnulib.texi: note about the license texinfo files.
102784 2006-09-19  Eric Blake  <ebb9@byu.net>
102786         * gnulib-tool: Avoid space-tab.
102788 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
102790         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
102791         that prevented coreutils 6.1 from building.  Problem reported
102792         by Petter Reinholdtsen.
102794 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
102796         * gnulib-tool (avoidlist): Fix typo that broke options like
102797         --avoid=lock that are used by coreutils bootstrap.
102799 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
102801         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
102802         more systematically.
102804 2006-09-18  Jim Meyering  <jim@meyering.net>
102806         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
102808 2006-09-18  Bruno Haible  <bruno@clisp.org>
102810         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
102812 2006-09-18  Bruno Haible  <bruno@clisp.org>
102814         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
102815         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
102816         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
102817         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
102818         * m4/gettext.m4: Require autoconf >= 2.52.
102819         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
102820         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
102821         of gl_cv_header_inttypes_h.
102823 2006-09-18  Bruno Haible  <bruno@clisp.org>
102825         * lib/javaversion.c: Include configmake.h.
102827 2006-09-18  Bruno Haible  <bruno@clisp.org>
102829         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
102830         avoid that the while loops be executed in a subshell.
102832 2006-09-18  Bruno Haible  <bruno@clisp.org>
102834         * MODULES.html.sh (func_module): Break long lines.
102835         Suggested by Bruce Korb <bkorb@gnu.org>.
102837 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102839         Speed up by a factor of 1.12.
102840         * gnulib-tool (nl): New variable.
102841         (func_import): Rewrite include directive extraction to only read each
102842         directive once.
102844 2006-09-17  Bruno Haible  <bruno@clisp.org>
102846         * modules/javaversion (Makefile.am): Remove DEFS setting.
102847         (Depends-on): Add configmake, for PKGDATADIR definition.
102849 2006-09-17  Bruno Haible  <bruno@clisp.org>
102851         * gnulib-tool (func_create_testdir): Rewrite all files at once.
102853 2006-09-17  Bruno Haible  <bruno@clisp.org>
102855         * gnulib-tool (func_append): New function, stolen from libtool.m4.
102856         (func_modules_transitive_closure, func_modules_add_dummy,
102857         func_modules_to_filelist, func_import, func_create_testdir,
102858         func_create_megatestdir, ...): Use it wherever possible.
102859         Suggested by Ralf Wildenhues.
102861 2006-09-16  Karl Berry  <karl@gnu.org>
102863         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
102864         to avoid sectioning errors.
102865         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
102866         [ifinfo]: blank line after @center-ed titles.
102867         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
102868         Spell FSF address consistently with others.
102869         (These changes approved by rms.)
102871 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102873         Speed up by a factor of 1.61.
102874         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
102875         already checked module names again.
102877 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102879         Speed up by a factor of 1.13.
102880         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
102881         for new_files, and the input to func_add_or_update.
102883 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102885         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
102886         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
102888 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
102890         * modules/mkancesdirs (Depends-on): Add fcntl.
102891         * modules/savewd: New file.
102892         * MODULES.html.sh (File system functions): Add savewd.
102894         * modules/configmake (Makefile.am): Add support for the
102895         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
102897 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
102899         * m4/savewd.m4: New file.
102901 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
102903         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
102904         (dirchownmod): New arg FD.  All callers changed.
102905         Use FD rather than opening the directory ourself, as opening is
102906         now the caller's responsibility.
102907         * lib/dirchownmod.h: Likewise.
102908         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
102909         hosts that require <sys/types.h> before <sys/stat.h>.  Include
102910         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
102911         (test_dir): Remove.
102912         (mkancesdirs): Return length of prefix of FILE that has already
102913         been made, or -2 if there is a child doing the work.  Redo
102914         algorithm so that it is O(N) rather than O(N**2).  Optimize away
102915         ".", and treat ".." specially since it might stray back into
102916         already-created areas.  Use a subprocess if necessary.  New arg
102917         WD; all users changed.  MAKE_DIR function should now return 1
102918         if it creates a directory that is not readable.  Return -2 if
102919         a child process is spun off.
102920         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
102921         Adjust signature to match code.
102922         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
102923         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
102924         all users changed.
102925         * lib/savewd.c, lib/savewd.h: New files.
102927 2006-09-15  Jim Meyering  <jim@meyering.net>
102929         * modules/rename-dest-slash: New module.
102930         * MODULES.html.sh (posix_compat): Add it here.
102932         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
102934 2006-09-15  Jim Meyering  <jim@meyering.net>
102936         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
102937         file.
102939         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
102941 2006-09-15  Jim Meyering  <jim@meyering.net>
102943         * lib/rename-dest-slash.c (has_trailing_slash): Use
102944         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
102945         (rpl_rename_dest_slash): Perform the cheaper trailing slash
102946         test before testing whether SRC is a directory.
102947         Suggestions from Bruno Haible.
102949         Avoid a warning about an unused variable.
102950         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
102951         into the #ifdef block where it's used.
102953         * lib/rename-dest-slash.c: New file.
102955 2006-09-14  Bruno Haible  <bruno@clisp.org>
102957         * lib/allocsa.c: Include <config.h> unconditionally.
102958         * lib/asnprintf.c: Likewise.
102959         * lib/asprintf.c: Likewise.
102960         * lib/c-strcasecmp.c: Likewise.
102961         * lib/c-strcasestr.c: Likewise.
102962         * lib/c-strncasecmp.c: Likewise.
102963         * lib/c-strstr.c: Likewise.
102964         * lib/classpath.c: Likewise.
102965         * lib/clean-temp.c: Likewise.
102966         * lib/concatpath.c: Likewise.
102967         * lib/copy-file.c: Likewise.
102968         * lib/csharpcomp.c: Likewise.
102969         * lib/csharpexec.c: Likewise.
102970         * lib/execute.c: Likewise.
102971         * lib/fatal-signal.c: Likewise.
102972         * lib/findprog.c: Likewise.
102973         * lib/fwriteerror.c: Likewise.
102974         * lib/gl_array_list.c: Likewise.
102975         * lib/gl_array_oset.c: Likewise.
102976         * lib/gl_avltree_list.c: Likewise.
102977         * lib/gl_avltree_oset.c: Likewise.
102978         * lib/gl_avltreehash_list.c: Likewise.
102979         * lib/gl_carray_list.c: Likewise.
102980         * lib/gl_linked_list.c: Likewise.
102981         * lib/gl_linkedhash_list.c: Likewise.
102982         * lib/gl_list.c: Likewise.
102983         * lib/gl_oset.c: Likewise.
102984         * lib/gl_rbtree_list.c: Likewise.
102985         * lib/gl_rbtree_oset.c: Likewise.
102986         * lib/gl_rbtreehash_list.c: Likewise.
102987         * lib/imaxabs.c: Likewise.
102988         * lib/imaxdiv.c: Likewise.
102989         * lib/javacomp.c: Likewise.
102990         * lib/javaexec.c: Likewise.
102991         * lib/javaversion.c: Likewise.
102992         * lib/linebreak.c: Likewise.
102993         * lib/localcharset.c: Likewise.
102994         * lib/lock.c: Likewise.
102995         * lib/mbchar.c: Likewise.
102996         * lib/mbswidth.c: Likewise.
102997         * lib/mkdtemp.c: Likewise.
102998         * lib/pipe.c: Likewise.
102999         * lib/printf-args.c: Likewise.
103000         * lib/printf-parse.c: Likewise.
103001         * lib/progname.c: Likewise.
103002         * lib/progreloc.c: Likewise.
103003         * lib/readlink.c: Likewise.
103004         * lib/sh-quote.c: Likewise.
103005         * lib/stpcpy.c: Likewise.
103006         * lib/stpncpy.c: Likewise.
103007         * lib/strcasecmp.c: Likewise.
103008         * lib/strcasestr.c: Likewise.
103009         * lib/strcspn.c: Likewise.
103010         * lib/striconv.c: Likewise.
103011         * lib/strncasecmp.c: Likewise.
103012         * lib/strnlen1.c: Likewise.
103013         * lib/strstr.c: Likewise.
103014         * lib/strtok_r.c: Likewise.
103015         * lib/tls.c: Likewise.
103016         * lib/tmpdir.c: Likewise.
103017         * lib/unicodeio.c: Likewise.
103018         * lib/unsetenv.c: Likewise.
103019         * lib/vasnprintf.c: Likewise.
103020         * lib/vasprintf.c: Likewise.
103021         * lib/wait-process.c: Likewise.
103022         * lib/xallocsa.c: Likewise.
103023         * lib/xsetenv.c: Likewise.
103024         * lib/xstriconv.c: Likewise.
103026 2006-09-13  Simon Josefsson  <jas@extundo.com>
103028         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
103029         that internally, suggested by Ralf Wildenhues
103030         <Ralf.Wildenhues@gmx.de>.
103032 2006-09-13  Simon Josefsson  <jas@extundo.com>
103034         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
103035         @LIBOBJS@.
103036         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
103038 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
103040         * lib/_fpending.c: Include <config.h> unconditionally, since we no
103041         longer worry about uses that don't define HAVE_CONFIG_H.
103042         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
103043         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
103044         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
103045         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
103046         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
103047         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
103048         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
103049         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
103050         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
103051         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
103052         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
103053         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
103054         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
103055         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
103056         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
103057         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
103058         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
103059         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
103060         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
103061         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
103062         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
103063         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
103064         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
103065         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
103066         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
103067         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
103068         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
103069         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
103070         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
103071         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
103072         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
103073         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
103074         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
103075         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
103076         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
103077         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
103078         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
103079         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
103080         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
103081         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
103082         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
103083         Likewise.
103085 2006-09-13  Eric Blake  <ebb9@byu.net>
103087         * lib/getopt.c: Fix typo in last commit.
103089 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
103091         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
103092         dgettext.
103094 2006-09-12  Jim Meyering  <jim@meyering.net>
103096         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
103097         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
103098         Reported by Nelson H. F. Beebe.
103100 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
103102         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
103103         program_invocation_name and program_invocation_short_name are
103104         initialized.
103105         * lib/argp-namefrob.h: Move declarations of program_invocation_name
103106         and program_invocation_short_name to argp.h, so they are visible
103107         to user programs.
103108         * lib/argp.h: Likewise
103110 2006-09-10  Bruno Haible  <bruno@clisp.org>
103112         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
103113         m4/inttypes_h.m4, m4/uintmax_t.m4.
103115 2006-09-10  Bruno Haible  <bruno@clisp.org>
103117         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
103118         gl_AC_TYPE_UINTMAX_T.
103120 2006-09-10  Bruno Haible  <bruno@clisp.org>
103122         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
103124 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
103126         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
103127         convention.  Text proposed by Bruno Haible.
103128         (struct argp_option): Document the use of N_() wrappers.
103130         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
103131         '\v', and translate the two parts separately, instead of feeding
103132         the whole string to gettext.  This allows to exclude
103133         '\v' from the strings visible to the translator by writing doc
103134         strings as N_("..") "\v" N_("..").
103136 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
103138         * config/srclist.txt: Undo latest change; the bug was fixed.
103140 2006-09-09  Bruno Haible  <bruno@clisp.org>
103142         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
103143         assignments if building a library without libtool.
103144         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
103145         in func_emit_lib_Makefile_am.
103146         (func_import): When building a static library libfoo.a, arrange to
103147         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
103148         (func_create_testdir): Likewise.
103149         * modules/gc (configure.ac, Makefile.am): If building statically,
103150         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
103151         * modules/iconvme (configure.ac, Makefile.am): Likewise.
103152         * modules/striconv (configure.ac, Makefile.am): Likewise.
103153         Based on a suggestion by Ralf Wildenhues.
103155 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103157         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
103158         Check for unistd.h too, since Autoconf doesn't assume POSIX.
103159         Also:
103161         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103162         Add year_2050_test to catch glibc bug 2821
103163         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
103165         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
103166         Prefer #ifdef to #if.
103168         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
103169         Return from 'main' instead of calling 'exit'.
103171 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103173         * lib/mktime.c (guess_time_tm): Fix bug where mktime
103174         returned the maximum time_t value rather than (time_t) -1.
103175         Problem originally reported by William Bardwell
103176         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
103178         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
103179         Moved to here ...
103180         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
103181         ... from here.
103183 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103185         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
103186         2821 is fixed.
103188 2006-09-08  Jim Meyering  <jim@meyering.net>
103190         Don't make generated files read-only.  That would bother too many
103191         people.  However, do retain the ability to work when targets are
103192         read-only: remove the destination and temporary files before writing
103193         them (when generated via sed or echo), or by using the -f option for
103194         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
103195         * modules/alloca-opt, modules/argz, modules/arpa_inet:
103196         * modules/byteswap, modules/configmake, modules/fcntl:
103197         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
103198         * modules/localcharset, modules/netinet_in, modules/poll:
103199         * modules/stdbool, modules/stdint, modules/sys_select:
103200         * modules/sys_socket, modules/sys_stat, modules/sysexits:
103202 2006-09-08  Jim Meyering  <jim@meyering.net>
103204         Avoid new build failure on FreeBSD 6.0.
103205         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
103206         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
103207         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
103209 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103211         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
103213 2006-09-07  Jim Meyering  <jim@meyering.net>
103215         Fix global typo in last change: use chmod u-w, not chmod u-x.
103216         Spotted by Paul Eggert and Bruce Korb.
103217         * modules/alloca-opt, modules/argz, modules/arpa_inet:
103218         * modules/byteswap, modules/configmake, modules/fcntl:
103219         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
103220         * modules/localcharset, modules/netinet_in, modules/poll:
103221         * modules/stdbool, modules/stdint, modules/sys_select:
103222         * modules/sys_socket, modules/sys_stat, modules/sysexits:
103224 2006-09-06  Jim Meyering  <jim@meyering.net>
103226         Make generated files be read-only.
103227         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
103228         Ensure that each generated file is now read-only.
103229         * modules/argz: Likewise.
103230         * modules/arpa_inet: Likewise.
103231         * modules/byteswap: Likewise.
103232         * modules/configmake: Likewise.
103233         * modules/fcntl: Likewise.
103234         * modules/fnmatch: Likewise.
103235         * modules/getopt: Likewise.
103236         * modules/glob: Likewise.
103237         * modules/inttypes: Likewise.
103238         * modules/netinet_in: Likewise.
103239         * modules/poll: Likewise.
103240         * modules/stdbool: Likewise.
103241         * modules/stdint: Likewise.
103242         * modules/sys_select: Likewise.
103243         * modules/sys_socket: Likewise.
103244         * modules/sys_stat: Likewise.
103245         * modules/sysexits: Likewise.
103246         * modules/localcharset: Same as above, but continue using temporary
103247         file named "t-$@" (why different?) rather than the "$@-t" used
103248         everywhere else.
103250         * modules/sysexits (Makefile.am): Replace literal occurrences
103251         of "sysexit.h" more readable, and more consistent, "$@".
103253 2006-09-06  Bruno Haible  <bruno@clisp.org>
103255         * modules/striconv: New file.
103256         * modules/xstriconv: New file.
103257         * MODULES.html.sh (Internationalization functions): Add striconv,
103258         xstriconv.
103260 2006-09-06  Bruno Haible  <bruno@clisp.org>
103262         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
103263         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
103264         not using libtool correctly.
103266 2006-09-06  Bruno Haible  <bruno@clisp.org>
103268         * lib/striconv.h: New file.
103269         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
103270         iconvstring.c.
103271         * lib/xstriconv.h: New file.
103272         * lib/xstriconv.c: New file.
103274 2006-09-06  Bruno Haible  <bruno@clisp.org>
103276         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
103277         lib_..._LDFLAGS.
103279 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103281         * lib/argz_.h: Sync from Libtool.
103283         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
103284                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
103286         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
103288 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
103290         * modules/trim: New file.
103292 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
103294         * lib/trim.h: New file.
103295         * lib/trim.c: New file.
103297 2006-09-05  Bruno Haible  <bruno@clisp.org>
103299         * MODULES.html.sh (String handling): Add trim.
103301 2006-09-04  Karl Berry  <karl@gnu.org>
103303         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
103304         until next release.
103306 2006-09-03  Bruno Haible  <bruno@clisp.org>
103308         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
103309         correctly.
103311 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
103313         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
103314         not gl_GETLOADAVG.  Omit unneeded semicolons.
103315         Problems reported by Ralf Wildenhues in
103316         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
103317         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
103318         at the end, which is the usual gnulib style.
103320         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
103321         of doing all the work ourselves.
103322         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
103323         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
103325 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
103327         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
103328         Problem reported by Ralf Wildenhues in
103329         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
103331         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
103332         HAVE_STRUCT_STATFS_F_FSTYPENAME.
103334 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
103336         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
103337         yesterday's patch by changing test -n to test -z.
103339 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103341         * modules/getloadavg (Files): Add m4/getloadavg.m4.
103342         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
103343         the former is now obsolescent.
103345         * modules/chdir-long (Depends-on): Add fcntl.
103347 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103349         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
103350         obsolescent, and programs should use gnulib instead.
103351         * m4/getloadavg.m4: New file, with contents taken from Autoconf
103352         but with prefixes changed.
103354 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103356         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
103357         or stdbool.h, because they might not exist while configuring.
103359         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
103360         Don't include unistd.h or limits.h; not needed, since chdir-long.h
103361         does that for us.
103362         (O_DIRECTORY): Remove.
103364 2006-08-31  Eric Blake  <ebb9@byu.net>
103366         * gnulib-tool: Don't let emacs change spaces to TAB.
103368 2006-08-31  Bruno Haible  <bruno@clisp.org>
103370         * gnulib-tool: When calling func_import more than once, do it in a
103371         subshell.
103372         Reported by Eric Blake <ebb9@byu.net>.
103374 2006-08-31  Bruno Haible  <bruno@clisp.org>
103376         * gnulib-tool (nl): Remove variable.
103377         (sed_transform_lib_file): Use more robust test for config-h module.
103378         (func_import): Fix typo in 2006-08-25 patch.
103380 2006-08-31  Bruno Haible  <bruno@clisp.org>
103382         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
103383         specified, augment Makefile.am variables instead of assigning them.
103385 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
103387         Work around a bug in both the Linux and SunOS 64-bit kernels:
103388         nanosleep mishandles sleeps for longer than 2**31 seconds.
103389         Problem reported by Frank v Waveren in
103390         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
103391         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
103392         Check for nanosleep bug.
103393         (LIB_NANOSLEEP): Append clock_gettime library if needed.
103395 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
103397         Work around a bug in both the Linux and SunOS 64-bit kernels:
103398         nanosleep mishandles sleeps for longer than 2**31 seconds.
103399         Problem reported by Frank v Waveren in
103400         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
103401         * lib/nanosleep.c (BILLION): New constant.
103402         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
103403         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
103404         implementation.
103406 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
103408         * modules/nanosleep (Depends-on): Add gettime.
103410 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
103411         and Simon Josefsson  <jas@extundo.com>
103412         and Oskar Liljeblad  <oskar@osk.mine.nu>
103414         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
103415         * gnulib-tool (func_import): New license type 'unmodifiable license
103416         text'.
103417         * modules/fdl: Use it.  Longer description.
103418         * module/gpl, module/lgpl: New files.
103420 2006-08-30  Jim Meyering  <jim@meyering.net>
103422         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
103423         shadowing the parameter.
103425 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103427         Sync from Libtool:
103429         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103431         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
103432         sharing with gnulib.  Report by Eric Blake.
103434 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
103436         * modules/isapipe: New file.
103437         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
103439 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
103441         * modules/configmake (Makefile.am): Add a comment, and omit
103442         the CONFIGMAKE_ prefix from generated macro names.  Suggested
103443         by Bruno Haible.
103445 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
103447         * m4/isapipe.m4: New file.
103449 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
103451         * lib/isapipe.c, lib/isapipe.h: New files.
103453 2006-08-29  Jim Meyering  <jim@meyering.net>
103455         * modules/configmake (Makefile.am): Make configmake.h depend on
103456         Makefile.  Otherwise, a stale configmake.h could hang around.
103458 2006-08-29  Eric Blake  <ebb9@byu.net>
103460         * lib/error.c (error_at_line, print_errno_message): Match libc, after
103461         resolution of upstream bug 3044.
103463 2006-08-29  Bruno Haible  <bruno@clisp.org>
103465         * modules/localcharset (Depends-on): Add configmake.
103466         (Makefile.am): Remove setting of LIBDIR through DEFS.
103468 2006-08-29  Bruno Haible  <bruno@clisp.org>
103470         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
103471         defined.
103473 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
103475         * modules/fcntl: New file.
103476         * modules/chdir-safer (Depends-on): Add fcntl.
103477         * modules/fts: Likewise.
103478         * modules/mkdir-p: Likewise.
103480         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
103481         This undoes the most recent change, since we're now addressing the
103482         problem in a different way.
103484         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
103485         into output, since the output might be called Makefile.am even
103486         if $makefile_name is something different.
103487         (func_import): Use $makefile_am rather than
103488         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
103489         empty.
103491         * modules/inttypes (Files): Add m4/inttypes-h.m4.
103493 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
103495         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
103496         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
103497         recent change to stdint.m4, since we're now addressing the problem in a
103498         different way.
103500 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
103502         * m4/fcntl_h.m4: New file.
103504 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
103506         * lib/fcntl_.h: New file.
103507         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
103508         the fcntl module.
103509         * lib/dirchownmod.c: Likewise.
103510         * lib/fts.c: Likewise.
103512         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
103513         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
103514         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
103515         just before including <inttypes.h>, to avoid circular inclusion.
103517 2006-08-28  Jim Meyering  <jim@meyering.net>
103519         * doc/visibility.texi: Actually read and correct the grammar of the
103520         sentence affected by yesterday's change.
103522 2006-08-28  Eric Blake  <ebb9@byu.net>
103524         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
103525         needs wrapper.
103527 2006-08-28  Eric Blake  <ebb9@byu.net>
103529         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
103531 2006-08-28  Eric Blake  <ebb9@byu.net>
103533         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
103535 2006-08-28  Bruno Haible  <bruno@clisp.org>
103537         * modules/c-strstr: New file, from GNU gettext.
103538         * MODULES.html.sh (String handling): Add c-strstr.
103540 2006-08-28  Bruno Haible  <bruno@clisp.org>
103542         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
103543         macros.
103544         Reported by Eric Blake.
103546 2006-08-28  Bruno Haible  <bruno@clisp.org>
103548         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
103549         (VASNPRINTF): Return a string of length > INT_MAX without failing.
103550         * lib/vasprintf.c: Include errno.h, limits.h.
103551         (EOVERFLOW): New fallback definition.
103552         (vasprintf): Test here whether the string length is > INT_MAX.
103553         * lib/vsnprintf.c: Include errno.h, limits.h.
103554         (EOVERFLOW): New fallback definition.
103555         (vsnprintf): Fix bug when generated string was too long for the buffer.
103556         Test here whether the string length is > INT_MAX.
103558 2006-08-28  Bruno Haible  <bruno@clisp.org>
103560         * lib/inttypes_.h (SCNX*): Remove definitions.
103561         Reported by Eric Blake.
103563 2006-08-28  Bruno Haible  <bruno@clisp.org>
103565         * lib/c-strstr.h: New file, from GNU gettext.
103566         * lib/c-strstr.c: New file, from GNU gettext.
103568 2006-08-28  Bruno Haible  <bruno@clisp.org>
103570         * gnulib-tool: Reorder some statements.
103572 2006-08-28  Bruno Haible  <bruno@clisp.org>
103574         * gnulib-tool: New option --makefile-name.
103575         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
103576         $makefile_name.
103577         (func_import): Write $makefile_name to the cache file, and read it from
103578         there unless explicitly specified. Use $makefile_name as file name
103579         instead of Makefile.am. Adjust the recommendations accordingly.
103581 2006-08-28  Bruno Haible  <bruno@clisp.org>
103583         * gnulib-tool (func_verify_module): Check against misapplying patch.
103585 2006-08-28  Bruno Haible  <bruno@clisp.org>
103587         * gnulib-tool (func_relativize, func_relconcat): New functions.
103588         Give an error if --local-dir is given with --update.
103589         Remove trailing slashes from $local_gnulib_dir.
103590         (func_import): Store the relativized $local_gnulib_dir in
103591         gnulib-cache.m4, and read it from there if not specified explicitly.
103593 2006-08-28  Bruno Haible  <bruno@clisp.org>
103595         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
103596         is the current directory. Respect also $local_gnulib_dir.
103598 2006-08-28  Bruno Haible  <bruno@clisp.org>
103599             Simon Josefsson  <jas@extundo.com>
103601         BeOS portability.
103602         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
103604 2006-08-27  Jim Meyering  <jim@meyering.net>
103606         * doc/visibility.texi: Remove duplicate word: "pointer".
103608 2006-08-26  Bruno Haible  <bruno@clisp.org>
103610         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
103611         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
103612         (Makefile.am): Create inttypes.h from inttypes_.h.
103613         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
103615         * modules/imaxabs: New file.
103617         * modules/imaxdiv: New file.
103619 2006-08-26  Bruno Haible  <bruno@clisp.org>
103621         * m4/inttypes.m4: New file.
103622         * m4/_inttypes_h.m4: Remove file.
103623         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
103624         PRI_MACROS_BROKEN.
103625         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
103627         * m4/imaxabs.m4: New file.
103629         * m4/imaxdiv.m4: New file.
103631 2006-08-26  Bruno Haible  <bruno@clisp.org>
103633         * lib/inttypes_.h: New file.
103634         * lib/inttypes.h: Remove file.
103635         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
103637         * lib/imaxabs.c: New file.
103639         * lib/imaxdiv.c: New file.
103641 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
103643         New config-h module, so that "make" output needn't be cluttered
103644         by -DHAVE_CONFIG_H.
103645         * MODULES.html.sh (Support for building libraries and executables):
103646         Add config-h.
103647         * modules/config-h: New file.
103648         * gnulib-tool (nl, sed_transform_lib_file): New vars.
103649         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
103650         the config-h module is used.
103652         New configmake module, so that "make" output needn't be cluttered
103653         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
103654         * MODULES.html.sh (Support for building libraries and executables):
103655         Add configmake.
103656         * modules/configmake: New file.
103658 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
103660         * m4/config-h.m4: New file.
103662 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
103664         * config/srclist.txt: Add elisp-comp.
103666 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
103668         * MODULES.html.sh (Support for building libraries and executables):
103669         Add elisp-comp.
103670         * build-aux/elisp-comp: New file.
103671         * modules/elisp-comp: New file.
103673 2006-08-24  Bruno Haible  <bruno@clisp.org>
103675         * gnulib-tool (func_create_testdir): Use non-default values of
103676         sourcebase and m4base.
103678 2006-08-24  Bruno Haible  <bruno@clisp.org>
103680         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
103681         HTML structure.
103683 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
103685         * modules/openat (Depends-on): Add lchown.
103687 2006-08-23  Bruno Haible  <bruno@clisp.org>
103689         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
103690         of gl_LOCK_EARLY instead of gl_LOCK.
103692 2006-08-23  Bruno Haible  <bruno@clisp.org>
103694         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
103695         on OSF/1 to no.
103696         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
103698 2006-08-23  Bruno Haible  <bruno@clisp.org>
103700         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
103701         as unusable.
103703         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
103704         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
103705         (gl_LOCK): New macro.
103707 2006-08-22  Simon Josefsson  <jas@extundo.com>
103709         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
103710         to md5 module.
103712 2006-08-22  Simon Josefsson  <jas@extundo.com>
103714         * MODULES.html.sh: Add "Support for maintaining and release
103715         projects".
103717         * build-aux/gnupload: New file, from coreutils.
103719 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
103721         Avoid the need for AC_LIBSOURCES in m4 macros.
103722         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
103723         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
103724         * modules/check-version (EXTRA_DIST): Add check-version.h.
103725         * modules/crc (EXTRA_DIST): Add crc.h.
103726         * modules/des (EXTRA_DIST): Add des.h.
103727         * modules/gc (EXTRA_DIST): Add gc.h.
103728         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
103729         * modules/getline (EXTRA_DIST): Add getline.h.
103730         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
103731         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
103732         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
103733         * modules/md2 (EXTRA_DIST): Add md2.h.
103734         * modules/md4 (EXTRA_DIST): Add md4.h.
103735         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
103736         * modules/read-file (EXTRA_DIST): Add read-file.h.
103737         * modules/readline (EXTRA_DIST): Add readline.h.
103738         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
103739         rijndael-api-fst.h.
103741 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
103743         * m4/rijndael.m4 (gl_ARCFOUR):
103744         * m4/arctwo.m4 (gl_ARCTWO):
103745         * m4/check-version.m4 (gl_CHECK_VERSION):
103746         * m4/crc.m4 (gl_CRC):
103747         * m4/des.m4 (gl_DES):
103748         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
103749         * m4/gc.m4 (gl_GC):
103750         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
103751         * m4/getline.m4 (gl_FUNC_GETLINE):
103752         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
103753         * m4/hmac-md5.m4 (gl_HMAC_MD5):
103754         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
103755         * m4/md2.m4 (gl_MD2):
103756         * m4/md4.m4 (gl_MD4):
103757         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
103758         * m4/read-file.m4 (gl_FUNC_READ_FILE):
103759         * m4/readline.m4 (gl_FUNC_READLINE):
103760         * m4/rijndael.m4 (gl_RIJNDAEL):
103761         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
103762         to get the necessary .h files and whatnot.
103764 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
103766         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
103767         gnulib rather than the other way around.
103768         * config/srclistvars.sh (COREUTILS): Remove.
103770 2006-08-22  Jim Meyering  <jim@meyering.net>
103772         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
103774         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
103776 2006-08-22  Eric Blake  <ebb9@byu.net>
103778         * modules/regexprops-generic: New file.
103779         * MODULES.html.sh (Support for building documentation): List it.
103781 2006-08-22  Eric Blake  <ebb9@byu.net>
103783         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
103784         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
103785         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
103786         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
103788 2006-08-22  Bruno Haible  <bruno@clisp.org>
103790         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
103791         and lib_LTLIBRARIES like the other lib_* variables.
103793 2006-08-22  Bruno Haible  <bruno@clisp.org>
103795         * build-aux/x-to-1.in: New file, from GNU gettext.
103797 2006-08-22  Bruno Haible  <bruno@clisp.org>
103799         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
103800         <utmpx.h> exists.
103802 2006-08-22  Bruno Haible  <bruno@clisp.org>
103804         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
103805         <utmpx.h> exists.
103807 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
103809         BeOS portability.
103810         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
103811         exist.
103812         Problem reported by Bruno Haible.
103814 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
103816         Avoid the need for AC_LIBSOURCES in m4 macros.
103817         * modules/acl (EXTRA_DIST): Add acl.h.
103818         * modules/argmatch (Files): Add m4/argmatch.m4.
103819         (configure.ac): Add gl_ARGMATCH.
103820         (EXTRA_DIST): Renamed from lib_SOURCES, for
103821         consistency with the other modules.  Remove argmatch.c.
103822         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
103823         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
103824         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
103825         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
103826         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
103827         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
103828         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
103829         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
103830         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
103831         * modules/closeout (EXTRA_DIST): Add closeout.h.
103832         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
103833         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
103834         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
103835         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
103836         dirname.h; remove basename.c and stripslash.c.
103837         * modules/exclude (EXTRA_DIST): Add exclude.h.
103838         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
103839         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
103840         * modules/file-type (EXTRA_DIST): Add file-type.h.
103841         * modules/filemode (EXTRA_DIST): Add filemode.h.
103842         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
103843         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
103844         * modules/fpending (EXTRA_DIST): Add __fpending.h.
103845         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
103846         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
103847         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
103848         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
103849         * modules/getdate (EXTRA_DIST): Add getdate.c.
103850         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
103851         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
103852         * modules/getpass (EXTRA_DIST): Add getpass.h.
103853         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
103854         * modules/group-member (EXTRA_DIST): Add group-member.h.
103855         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
103856         * modules/hash (EXTRA_DIST): Add hash.h.
103857         * modules/human (EXTRA_DIST): Add human.h.
103858         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
103859         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
103860         * modules/lchown (EXTRA_DIST): Add lchown.h.
103861         * modules/long-options (EXTRA_DIST): Add long-options.h.
103862         * modules/lstat (EXTRA_DIST): Add lstat.h.
103863         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
103864         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
103865         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
103866         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
103867         * modules/memxor (EXTRA_DIST): Add memxor.h.
103868         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
103869         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
103870         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
103871         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
103872         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
103873         * modules/physmem (EXTRA_DIST): Add physmem.h.
103874         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
103875         * modules/posixver (EXTRA_DIST): Add posixver.h.
103876         * modules/quote (EXTRA_DIST): Add quote.h.
103877         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
103878         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
103879         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
103880         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
103881         regex_internal.h regexec.c.
103882         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
103883         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
103884         * modules/same (EXTRA_DIST): Add same.h.
103885         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
103886         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
103887         * modules/savedir (EXTRA_DIST): Add savedir.h.
103888         * modules/sha1 (EXTRA_DIST): Add sha1.h.
103889         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
103890         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
103891         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
103892         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
103893         * modules/strdup (EXTRA_DIST): Add strdup.h.
103894         * modules/strftime (EXTRA_DIST): Add strftime.h.
103895         * modules/strndup (EXTRA_DIST): Add strndup.h.
103896         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
103897         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
103898         * modules/time_r (EXTRA_DIST): Add time_r.h.
103899         * modules/timespec (EXTRA_DIST): Add timespec.h.
103900         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
103901         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
103902         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
103903         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
103904         * modules/userspec (EXTRA_DIST): Add userspec.h.
103905         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
103906         * modules/utimens (EXTRA_DIST): Add utimens.h.
103907         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
103908         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
103909         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
103910         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
103911         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
103912         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
103913         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
103914         * modules/yesno (EXTRA_DIST): Add yesno.h.
103916 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
103918         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
103920         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
103921         * m4/dev-ino.m4, same-inode.m4: Remove.
103923         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
103924         * m4/acl.m4 (AC_FUNC_ACL):
103925         * m4/backupfile.m4 (gl_BACKUPFILE):
103926         * m4/c-strtod.m4 (gl_C99_STRTOLD):
103927         * m4/canon-host.m4 (gl_CANON_HOST):
103928         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
103929         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
103930         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
103931         * m4/cloexec.m4 (gl_CLOEXEC):
103932         * m4/close-stream.m4 (gl_CLOSE_STREAM):
103933         * m4/closeout.m4 (gl_CLOSEOUT):
103934         * m4/dirfd.m4 (gl_FUNC_DIRFD):
103935         * m4/dirname.m4 (gl_DIRNAME):
103936         * m4/exclude.m4 (gl_EXCLUDE):
103937         * m4/exitfail.m4 (gl_EXITFAIL):
103938         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
103939         * m4/file-type.m4 (gl_FILE_TYPE):
103940         * m4/filemode.m4 (gl_FILEMODE):
103941         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
103942         * m4/fpending.m4 (gl_FUNC_FPENDING):
103943         * m4/fprintftime.m4 (gl_FPRINTFTIME):
103944         * m4/fts.m4 (gl_FUNC_FTS):
103945         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
103946         * m4/getdate.m4 (gl_GETDATE):
103947         * m4/gethrxtime.m4 (gl_GETHRXTIME):
103948         * m4/getpagesize.m4 (gl_GETPAGESIZE):
103949         * m4/getpass.m4 (gl_FUNC_GETPASS):
103950         * m4/gettime.m4 (gl_GETTIME):
103951         * m4/getugroups.m4 (gl_GETUGROUPS):
103952         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
103953         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
103954         * m4/hard-locale.m4 (gl_HARD_LOCALE):
103955         * m4/hash.m4 (gl_HASH):
103956         * m4/idcache.m4 (gl_IDCACHE):
103957         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
103958         * m4/lchown.m4 (gl_FUNC_LCHOWN):
103959         * m4/long-options.m4 (gl_LONG_OPTIONS):
103960         * m4/lstat.m4 (gl_FUNC_LSTAT):
103961         * m4/md5.m4 (gl_MD5):
103962         * m4/memcasecmp.m4 (gl_MEMCASECMP):
103963         * m4/memcoll.m4 (gl_MEMCOLL):
103964         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
103965         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
103966         * m4/memxor.m4 (gl_MEMXOR):
103967         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
103968         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
103969         * m4/modechange.m4 (gl_MODECHANGE):
103970         * m4/mountlist.m4 (gl_MOUNTLIST):
103971         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
103972         * m4/openat.m4 (gl_FUNC_OPENAT):
103973         * m4/pathmax.m4 (gl_PATHMAX):
103974         * m4/physmem.m4 (gl_PHYSMEM):
103975         * m4/posixtm.m4 (gl_POSIXTM):
103976         * m4/posixver.m4 (gl_POSIXVER):
103977         * m4/quote.m4 (gl_QUOTE):
103978         * m4/quotearg.m4 (gl_QUOTEARG):
103979         * m4/readtokens.m4 (gl_READTOKENS):
103980         * m4/readutmp.m4 (gl_READUTMP):
103981         * m4/regex.m4 (gl_REGEX):
103982         * m4/safe-read.m4 (gl_SAFE_READ):
103983         * m4/safe-write.m4 (gl_SAFE_WRITE):
103984         * m4/same.m4 (gl_SAME):
103985         * m4/save-cwd.m4 (gl_SAVE_CWD):
103986         * m4/savedir.m4 (gl_SAVEDIR):
103987         * m4/settime.m4 (gl_SETTIME):
103988         * m4/sha1.m4 (gl_SHA1):
103989         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
103990         * m4/stat-macros.m4 (gl_STAT_MACROS):
103991         * m4/stat-time.m4 (gl_STAT_TIME):
103992         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
103993         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
103994         * m4/strdup.m4 (gl_FUNC_STRDUP):
103995         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
103996         * m4/strndup.m4 (gl_FUNC_STRNDUP):
103997         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
103998         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
103999         * m4/time_r.m4 (gl_TIME_R):
104000         * m4/timespec.m4 (gl_TIMESPEC):
104001         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
104002         * m4/unlinkdir.m4 (gl_UNLINKDIR):
104003         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
104004         * m4/userspec.m4 (gl_USERSPEC):
104005         * m4/utimecmp.m4 (gl_UTIMECMP):
104006         * m4/utimens.m4 (gl_UTIMENS):
104007         * m4/xalloc.m4 (gl_XALLOC):
104008         * m4/xgetcwd.m4 (gl_XGETCWD):
104009         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
104010         * m4/xreadlink.m4 (gl_XREADLINK):
104011         * m4/xstrtod.m4 (gl_XSTRTOD):
104012         * m4/yesno.m4 (gl_YESNO):
104013         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
104014         to get the necessary .h files and whatnot.
104016 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
104017             Bruno Haible  <bruno@clisp.org>
104019         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
104020         /bin/sh understanding of '!' conditional negation.
104022 2006-08-21  Jim Meyering  <jim@meyering.net>
104024         * modules/openat (Depends-on): Really alphabetize.
104026         * modules/acl (Depends-on): Add error and quote.
104028         * check-module (find_included_lib_files): Add at-func.c to the
104029         ok-to-include-more-than-once white list.
104031         * modules/openat (Depends-on): Add lstat.  Alphabetize.
104033 2006-08-21  Bruno Haible  <bruno@clisp.org>
104035         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
104036         Emit a pkgdata_DATA variable only if some snippets add contents to it.
104037         Reported by Martin Lambers <marlam@marlam.de>.
104039 2006-08-21  Bruno Haible  <bruno@clisp.org>
104041         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
104042         specify an installation location, don't emit a noinst_LIBRARIES or
104043         noinst_LTLIBRARIES assignment.
104045 2006-08-21  Bruno Haible  <bruno@clisp.org>
104047         BeOS portability.
104048         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
104049         BeOS has mbrtowc() but no <wctype.h>.
104051 2006-08-21  Bruno Haible  <bruno@clisp.org>
104053         BeOS portability.
104054         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
104055         exist.
104057 2006-08-21  Bruno Haible  <bruno@clisp.org>
104059         BeOS portability.
104060         * lib/mbchar.h: Include <wctype.h> only if it exists.
104062 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104064         Remove files that are no longer needed by their respective modules.
104065         * m4/obstack.m4: Remove.
104066         * m4/strerror_r.m4: Remove.
104067         * m4/uint32_t.m4: Remove.
104068         * m4/uintptr_t.m4: Remove.
104069         * m4/ullong_max.m4: Remove.
104070         * m4/xstrtoimax.m4: Remove.
104071         * m4/xstrtoumax.m4: Remove.
104073         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
104074         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
104075         dependencies now capture this.
104077         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
104078         Do not use AC_LIBSOURCES, since gnulib modules now do this.
104079         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
104080         * m4/human.m4 (gl_HUMAN): Likewise.
104081         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
104082         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
104084         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
104086         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
104087         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
104088         stdint.
104089         * m4/human.m4 (gl_HUMAN): Likewise.
104090         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
104091         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
104092         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
104093         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
104094         * m4/xstrtol (gl_XSTRTOL): Likewise.
104096         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
104097         AC_TYPE_LONG_LONG_INT.
104098         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
104099         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
104100         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
104101         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
104103         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
104104         on stdbool.
104106         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
104107         (gl_PREREQ_XSTRTOUL): Remove.
104109         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
104111         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
104112         mode.
104114 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104116         Add and change modules to make it easier for coreutils to use
104117         gnulib-tool.
104118         * modules/backupfile (Files): Remove m4/d-ino.m4.
104119         (Depends-on): Add d-ino.
104120         * modules/cycle-check (Depends-on): Add stdint.
104121         (lib_SOURCES): Add cycle-check.h.
104122         * modules/d-ino: New module.
104123         * modules/d-type: New module.
104124         * modules/error (Files): Remove m4/strerror_r.m4.
104125         * modules/filemode (Files): Add m4/st_dm_mode.m4.
104126         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
104127         m4/inttypes_h.m4, m4/uintmax_t.m4.
104128         (Depends-on): Add stdint.
104129         (lib_SOURCES): Add fsusage.h.
104130         * modules/getcwd (Files): Remove d-ino.m4.
104131         (Depends-on): Add d-ino.
104132         * modules/getndelim2 (Depends-on): Add stdint.
104133         * modules/glob (Files): Remove m4/d-type.m4.
104134         (Depends-on): Add d-type.
104135         * modules/host-os: New module.
104136         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
104137         m4/inttypes_h.m4, m4/uintmax_t.m4.
104138         * Depends-on: Add stdint.
104139         (lib_SOURCES): Add human.h.
104140         * modules/inttostr (Files): Remove m4/intmax_t.m4,
104141         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
104142         m4/uintmax_t.m4, m4/ulonglong.m4.
104143         (Depends-on): Add stdint.
104144         (EXTRA_DIST): Add inttostr.h.
104145         * modules/lchmod: New module.
104146         * modules/link-follow: New module.
104147         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
104148         (Depends-on): Add lchmod.
104149         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
104150         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
104151         (Depends-on): Add stdint.
104152         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
104153         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
104154         (Depends-on): Add stdint.
104155         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
104156         * modules/perl: New module.
104157         * modules/regex (Depends-on): Add stdint.
104158         * modules/rmdir-errno: New module.
104159         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
104160         m4/intmax_t.m4.
104161         (Depends-on): Add stdint.
104162         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
104163         m4/uintmax_t.m4.
104164         (Depends-on): Add stdint.
104165         * modules/unlink-busy: New module.
104166         * modules/utimecmp (Depends-on): Add stdint.
104167         * modules/uptime: New module.
104168         * modules/winsz-ioctl: New module.
104169         * modules/winsz-termios: New module.
104170         * modules/xnanosleep (Depends-on): Add nanosleep.
104171         * modules/ullong_max: Remove.
104172         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
104173         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
104174         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
104175         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
104176         (Depends-on): Add inttypes.
104177         (lib_SOURCES): Add xstrtol.h.
104178         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
104179         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
104180         * MODULES.html.sh: Move 'assert' into the assert section.
104181         Move 'dummy' into the linking section.
104182         Remove ullong_max.
104183         Add section for compatibility checks for POSIX:2001 functions,
104184         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
104185         winsz-ioctl, and winsz-termios into it.
104186         Add lchmod.
104187         Add top-level Misc section and put host-os, perl, and uptime
104188         into it.
104190 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104192         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
104193         now assume the stdint module.  Do not include inttypes.h.
104194         * lib/fsusage.h: Likewise.
104195         * lib/getndelim2.c: Likewise.
104196         * lib/human.h: Likewise.
104197         * lib/inttostr.h: Likewise.
104198         * lib/obstack.c: Likewise.
104199         * lib/regex_internal.h: Likewise.
104200         * lib/tempname.c: Likewise.
104201         * lib/utimecmp.c: Likewise.
104202         * lib/xstrtol.h: Likewise.
104204         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
104206         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
104207         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
104208         * lib/xtime.h: Likewise.
104210 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104212         * modules/openat (Files): Add lib/fchmodat.c.
104213         Fixes problem reported by Jay Youngman.
104215 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104217         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
104218         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
104220 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
104221             Bruno Haible  <bruno@clisp.org>
104223         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
104224         and is a script that invokes bison. Tighten the code. Add comments.
104226 2006-08-18  Jim Meyering  <jim@meyering.net>
104228         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
104229         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
104230         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
104231         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
104233 2006-08-18  Bruno Haible  <bruno@clisp.org>
104235         * modules/bison-i18n: New file.
104236         * MODULES.html.sh (Internationalization functions): Add it.
104238 2006-08-18  Bruno Haible  <bruno@clisp.org>
104240         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
104241         sys/statvfs.h. When getmntinfo was found, check its declaration and
104242         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
104244 2006-08-18  Bruno Haible  <bruno@clisp.org>
104246         * m4/bison-i18n.m4: New file, from bison.
104248 2006-08-18  Bruno Haible  <bruno@clisp.org>
104250         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
104251         (ME_DUMMY): Treat "kernfs" as a dummy.
104252         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
104254 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
104256         Update from coreutils.
104258         2006-08-15  Jim Meyering  <jim@meyering.net>
104260         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
104262         2006-01-17  Jim Meyering  <jim@meyering.net>
104264         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
104266         2006-01-11  Jim Meyering  <jim@meyering.net>
104268         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
104269         Check for the lchmod function.
104271 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
104273         Update from coreutils.
104275         * lib/__fpending.h: Add copyright notice.
104276         * lib/fprintftime.h: Likewise.
104277         * lib/savedir.c: Use (C) in copyright notice.
104278         * lib/savedir.h: Likewise.
104280         2006-08-15  Jim Meyering  <jim@meyering.net>
104282         * lib/at-func.c: New file, with the logic of all emulated at-functions.
104283         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
104284         in support of the EXPECTED_ERRNO macro.
104285         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
104286         definitions.  Instead, define the appropriate symbols and include
104287         "at-func.c".
104288         * lib/mkdirat.c (mkdirat): Likewise.
104289         * lib/fchmodat.c (fchmodat): Likewise.
104290         (ENOSYS): Remove definition.
104291         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
104292         it.  Don't include "unistd--.h" -- it wasn't ever used.
104294         2006-01-17  Jim Meyering  <jim@meyering.net>
104296         Rewrite fts.c not to change the current working directory,
104297         by using openat, fstatat, fdopendir, etc..
104299         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
104300         (HAVE_OPENAT_SUPPORT): Define.
104301         [_LIBC] (fchdir): Don't undef or define; no longer used.
104302         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
104303         Now, this `function' always succeeds, and consumes its file descriptor
104304         parameter -- so callers must not close such FDs.  Update callers.
104305         (diropen_fd, opendirat, cwd_advance_fd): New functions.
104306         (diropen): Add parameter, SP.  Adjust all callers.
104307         Implement using diropen_fd, rather than open.
104308         (fts_open): Initialize new member, fts_cwd_fd.
104309         Remove fts_rft-setting code.
104310         (fts_close): Close fts_cwd_fd, if necessary.
104311         (__opendir2): Define in terms of opendir or opendirat,
104312         depending on whether the FST_NOCHDIR flag is set.
104313         (fts_build): Since fts_safe_changedir consumes its FD, and since
104314         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
104315         and close the dup'd file descriptor upon failure.
104316         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
104317         (fts_safe_changedir): Tweak semantics to reflect that this function
104318         now calls cwd_advance_fd and hence consumes its FD argument.
104319         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
104320         [struct FTS] (fts_rft): Remove now-unused member.
104321         [struct FTS] (fts_cycle.state): Improve comment.
104323         * lib/openat.c (openat_needs_fchdir): New function.
104324         * lib/openat.h (openat_needs_fchdir): Declare it.
104326 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
104328         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
104329         Problem and fix reported by Pádraig Brady in
104330         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
104332 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
104334         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
104336 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
104338         * lib/memcoll.c (memcoll): Optimize for the common case where the
104339         arguments are bytewise equal.
104341 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
104343         * doc/regexprops-generic.texi: Add a copyright notice.
104345 2006-08-15  Bruno Haible  <bruno@clisp.org>
104347         * modules/tmpdir (License): Change to LGPL.
104349 2006-08-15  Bruno Haible  <bruno@clisp.org>
104351         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
104352         module.
104354 2006-08-14  Simon Josefsson  <jas@extundo.com>
104356         * config/srclist.txt: Add gnupload.
104358 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
104360         Change copyright notice from LGPL 2 to GPL 2, since that's the
104361         standard form used in the gnulib repository.
104362         * tests/test-lock.c: Likewise.
104363         * tests/test-stdint.c: Likewise.
104364         * tests/test-tls.c: Likewise.
104366         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
104367         prelude-manager.  User shorter URLs for GNU projects, without '?'.
104368         Add copyright notice.
104370         * check-module: Add copyright notice.  Output a copyright
104371         notice if "--version" is specified.
104372         * modules/COPYING: New file.
104373         * tests/test-getaddrinfo.c: Add copyright notice.
104374         * tests/test-verify.c: Likewise.
104376 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
104378         Change copyright notice from LGPL 2 to GPL 2, since that's the
104379         standard form used in the gnulib repository.
104380         * lib/lock.c: LGPL -> GPL.
104381         * lib/lock.h: Likewise.
104382         * lib/strnlen1.c: Likewise.
104383         * lib/strnlen1.h: Likewise.
104384         * lib/tls.c: Likewise.
104385         * lib/tls.h: Likewise.
104386         * lib/tmpdir.c: Likewise.
104388         * lib/TODO: Remove; this belongs only in coreutils.
104390 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
104392         Add copyright notices to long-enough files that lack them, since
104393         otherwise the files aren't clearly free.  Use the same notice that
104394         getdate.texi already uses.
104395         * doc/alloca-opt.texi: Add copyright notice.
104396         * doc/alloca.texi: Likewise.
104397         * doc/ctime.texi: Likewise.
104398         * doc/functions.texi: Likewise.
104399         * doc/gcd.texi: Likewise.
104400         * doc/gnulib-tool.texi: Likewise.
104401         * doc/inet_ntoa.texi: Likewise.
104402         * doc/visibility.texi: Likewise.
104404         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
104405         * doc/quote.texi: Add copyright notice.
104407         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
104408         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
104409         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
104410         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
104411         is now obsolete, and give a pointer to the Sun list.
104412         Add copyright notice.
104414 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
104416         * config/srclistvars.sh: Add copyright notice.
104418 2006-08-14  Eric Blake  <ebb9@byu.net>
104420         Import the following change from libc:
104422         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
104424         Upstream bug 2997.
104425         * lib/misc/error.c: Add space between program name and message if file
104426         name is missing.
104428 2006-08-12  Karl Berry  <karl@gnu.org>
104430         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
104431         remove, these originate in gnulib now.
104433 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104435         * doc/Makefile (standards.info standards.html standards.dvi):
104436         Also depend on make-stds.texi.
104438 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
104440         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
104441         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
104443         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
104444         in wchar_t.  Problem reported by Eric Blake.
104446         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
104447         LEN is smaller than SIZE.  Suggested by Bruno Haible.
104448         Also, help the compiler to keep LEN in a register.
104450 2006-08-11  Eric Blake  <ebb9@byu.net>
104452         * users.txt: Sort.  Add tar.
104454 2006-08-11  Bruno Haible  <bruno@clisp.org>
104456         * users.txt: New file.
104458 2006-08-11  Bruno Haible  <bruno@clisp.org>
104460         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
104461         before <wchar.h>. Needed for OSF/1 and BSD/OS.
104463 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
104465         * modules/snprintf (Depends-on): Remove minmax.
104466         (Maintainer): Add self and Bruno.
104468 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
104470         * lib/.cppi-disable: Add snprintf.h, socket_.h.
104471         * lib/snprintf.c: Include <errno.h> and <limits.h>.
104472         (EOVERFLOW): Define if the system does not.
104473         Do not include "minmax.h"; it wasn't used.
104474         (snprintf): Don't assume size_t promotes to an unsigned type.
104475         Fix bug when generated string was too long for the buffer: the
104476         buffer's contents are supposed to be the initial prefix of the
104477         output.  Don't assume vasnprintf returns EOVERFLOW if the size
104478         exceeds INT_MAX; do the check ourselves.
104480         Import the following changes from libc:
104482         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
104484         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
104485         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
104486         set wc to the byte which couldn't be converted.
104487         (re_string_reconstruct): Don't clear valid_raw_len before calling
104488         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
104489         tip_context using re_string_context_at.
104491         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
104493         * lib/posix/regex.h: g++ still cannot handled [restrict].
104495         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
104497         * lib/posix/regex.h: Remove special handling for VMS.
104499 2006-08-10  Jim Meyering  <jim@meyering.net>
104501         * modules/same-inode: New module.
104502         * modules/dev-ino: New module.
104503         * modules/cycle-check: Depend on these modules, rather than simply
104504         including their .h files.
104505         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
104506         required via m4/cycle-check.m4.
104507         * modules/same: Depend on new same-inode module, rather than
104508         including same-inode.h.
104509         * modules/chdir-safer: New file.
104511         * modules/chown (Depends-on): Add stat-macros.
104513 2006-08-10  Jim Meyering  <jim@meyering.net>
104515         * m4/cycle-check.m4: New file.
104516         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
104517         * m4/dev-ino.m4, m4/same-inode.m4: New files.
104519 2006-08-10  Eric Blake  <ebb9@byu.net>
104521         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
104522         in from original proposal.
104524 2006-08-10  Eric Blake  <ebb9@byu.net>
104525         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
104527         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
104528         namespace.
104530 2006-08-10  Bruno Haible  <bruno@clisp.org>
104532         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
104533         as well.
104535 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104537         Sync from coreutils.
104539         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
104541         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
104542         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
104544 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104546         * modules/restrict: Remove; no longer needed now that we assume
104547         Autoconf 2.59 or later.
104548         * MODULES.html.sh: Remove 'restrict'.
104549         * modules/argp (Depends-on): Remove 'restrict'.
104550         * modules/base64 (Depends-on): Likewise.
104551         * modules/gc (Depends-on): Likewise.
104552         * modules/getaddrinfo (Depends-on): Likewise.
104553         * modules/glob (Depends-on): Likewise.
104554         * modules/inet_ntop (Depends-on): Likewise.
104555         * modules/inet_pton (Depends-on): Likewise.
104556         * modules/memxor (Depends-on): Likewise.
104557         * modules/regex (Depends-on): Likewise.
104558         * modules/strtok_r (Depends-on): Likewise.
104559         * modules/time_r (Depends-on): Likewise.
104561 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104563         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
104564         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
104565         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
104566         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
104567         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
104568         * m4/memxor.m4 (gl_MEMXOR): Likewise.
104569         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
104570         gl_C_RESTRICT replaced by AC_C_RESTRICT.
104572         Merge from coreutils.
104573         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
104574         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
104575         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
104576         * m4/time_r.m4 (gl_TIME_R): Likewise.
104578 2006-08-09  Karl Berry  <karl@gnu.org>
104580         * config/srclist.txt: no more gettext-tools, per Bruno.
104582 2006-08-08  Eric Blake  <ebb9@byu.net>
104584         * modules/verror: New module.
104585         * MODULES.html.sh: Document it.
104587 2006-08-08  Eric Blake  <ebb9@byu.net>
104589         * lib/verror.h, lib/verror.c: New files.
104591 2006-08-08  Eric Blake  <ebb9@byu.net>
104593         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
104594         verror_at_line output complies with GNU Coding Standards even when
104595         file is NULL.
104597 2006-08-07  Bruno Haible  <bruno@clisp.org>
104599         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
104600         versions of AIX.
104601         Reported by Ralf Wildenhues.
104603 2006-08-07  Bruno Haible  <bruno@clisp.org>
104605         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
104606         in an AC_DEFUN. Needed so that the autoconf snippets can use
104607         AC_REQUIRE.
104609 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104611         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
104612         Initialize pkgdata_DATA.
104613         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
104614         overriding it.
104616 2006-08-06  Eric Blake  <ebb9@byu.net>
104618         * lib/error.h: Fold in some upstream changes from glibc.
104619         * lib/error.c: Likewise.
104621 2006-08-04  Bruno Haible  <bruno@clisp.org>
104623         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
104624         Make the mostlyclean-local rule depend on mostlyclean-generic.
104625         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
104627 2006-07-31  Bruno Haible  <bruno@clisp.org>
104629         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
104630         <stdlib.h>, <string.h>.
104632 2006-07-30  Bruno Haible  <bruno@clisp.org>
104634         * modules/readlink (License): Change to LGPL.
104636 2006-07-30  Bruno Haible  <bruno@clisp.org>
104638         * modules/javaversion (Makefile.am): Distribute javaversion.java and
104639         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
104640         set PKGDATADIR to point to it.
104642 2006-07-30  Bruno Haible  <bruno@clisp.org>
104644         * modules/csharpexec (configure.ac): Comment out macro invocation.
104645         * modules/javaexec (configure.ac): Likewise.
104646         * modules/javacomp-script (configure.ac): Likewise.
104648         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
104650 2006-07-30  Bruno Haible  <bruno@clisp.org>
104652         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
104653         linked-list.
104655 2006-07-30  Bruno Haible  <bruno@clisp.org>
104657         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
104659 2006-07-30  Bruno Haible  <bruno@clisp.org>
104661         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
104662         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
104663         get removed.
104665 2006-07-29  Bruno Haible  <bruno@clisp.org>
104667         Make it possible for gnulib-tool to work with locally modified or
104668         augmented gnulib repositories.
104669         * gnulib-tool (func_usage): Document --local-dir option.
104670         (local_gnulib_dir): New variable.
104671         Handle --local-dir option.
104672         (func_lookup_file): New function.
104673         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
104674         (func_get_description, func_get_filelist, func_get_description,
104675         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
104676         func_get_automake_snippet, func_get_include_directive,
104677         func_get_license, func_get_maintainer): Use func_lookup_file.
104678         (func_import, func_create_testdir): Use func_lookup_file.
104680 2006-07-29  Bruno Haible  <bruno@clisp.org>
104682         * modules/setenv (Depends-on): Add unistd.
104684 2006-07-29  Bruno Haible  <bruno@clisp.org>
104686         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
104688 2006-07-29  Bruno Haible  <bruno@clisp.org>
104690         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
104692 2006-07-29  Bruno Haible  <bruno@clisp.org>
104694         * gnulib-tool (import, update): If there is no Makefile.am, look at
104695         aclocal.m4, instead of bailing out.
104697 2006-07-29  Bruno Haible  <bruno@clisp.org>
104699         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
104700         Categorize the options by when they are useful.
104702 2006-07-29  Bruno Haible  <bruno@clisp.org>
104704         * gnulib-tool (func_usage): Document option --no-libtool.
104705         Handle option --no-libtool.
104706         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
104707         for changed semantics of $libtool variable.
104708         (func_import): Likewise. If libtool is not used, show this through
104709         an option --no-libtool.
104710         (func_create_testdir): Update.
104712 2006-07-29  Bruno Haible  <bruno@clisp.org>
104714         * gnulib-tool (func_import): Extend error message about missing
104715         --doc-base.
104717 2006-07-29  Bruno Haible  <bruno@clisp.org>
104719         * gnulib-tool (func_import): Don't create the $docbase directory if
104720         there is no file to store there.
104722 2006-07-29  Bruno Haible  <bruno@clisp.org>
104724         * gnulib-tool (autoconf_minversion): If a --dir option is given and
104725         relevant, look for configure.ac there, not in the current directory.
104726         Also use a simple search for AC_PREREQ, not "autoconf --trace".
104728 2006-07-29  Bruno Haible  <bruno@clisp.org>
104730         * gnulib-tool (SORT): New variable.
104731         (func_usage): Undocument --assume-autoconf option.
104732         Remove --assume-autoconf option handling.
104733         (autoconf_minversion): Determine from the contents of configure.ac.
104734         (func_import): Remove autoconf_minversion handling.
104735         Suggested by Eric Blake.
104737 2006-07-29  Bruno Haible  <bruno@clisp.org>
104739         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
104741 2006-07-29  Bruno Haible  <bruno@clisp.org>
104743         * config/srclist.txt (*setenv.[ch]): Remove rules.
104745 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104747         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
104749 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104751         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
104752         arpa/inet.h.
104754 2006-07-28  Simon Josefsson  <jas@extundo.com>
104756         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
104757         * modules/inet_pton (Depends-on): Likewise.
104759 2006-07-28  Simon Josefsson  <jas@extundo.com>
104761         * m4/netinet_in_h.m4: New file.
104763 2006-07-28  Simon Josefsson  <jas@extundo.com>
104765         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
104766         #include's.
104768 2006-07-28  Simon Josefsson  <jas@extundo.com>
104770         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
104771         #include's.
104773 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
104775         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
104776         setgid on directories only if they set these bits.
104777         * lib/modechange.h: Remove obsolete comment about masks.
104779 2006-07-28  Eric Blake  <ebb9@byu.net>
104781         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
104782         macro expansion.
104784 2006-07-28  Bruno Haible  <bruno@clisp.org>
104786         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
104788 2006-07-28  Bruno Haible  <bruno@clisp.org>
104790         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
104792 2006-07-28  Bruno Haible  <bruno@clisp.org>
104794         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
104795         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
104796         Define fallbacks.
104797         Avoids link error on FreeBSD 4.x.
104798         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104800         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
104801         encoding.
104802         * lib/mbswidth.c (iswcntrl): Likewise.
104804 2006-07-27  Bruno Haible  <bruno@clisp.org>
104806         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
104807         test.
104809 2006-07-27  Bruno Haible  <bruno@clisp.org>
104811         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
104812         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
104813         defined.
104815 2006-07-26  Eric Blake  <ebb9@byu.net>
104817         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
104819 2006-07-26  Eric Blake  <ebb9@byu.net>
104821         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
104822         like mingw that lack mkstemp.
104823         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
104824         avoid compilation warning on mingw.
104826 2006-07-26  Bruno Haible  <bruno@clisp.org>
104828         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
104829         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
104830         INT_FAST*_MIN, INTPTR_MIN.
104832 2006-07-25  Bruno Haible  <bruno@clisp.org>
104834         * modules/version-etc (Depends-on): Add stdarg.
104836 2006-07-25  Bruno Haible  <bruno@clisp.org>
104838         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
104839         complex commands.
104841 2006-07-25  Bruno Haible  <bruno@clisp.org>
104843         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
104844         defined in <stdarg.h> or config.h.
104846 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
104848         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
104849         (gl_STDIO_SAFER): Remove.
104851 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
104853         * MODULES.html.sh (File stream based Input/Output):
104854         Add fopen-safer, tmpfile-safer; remove stdio-safer.
104855         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
104856         * modules/fopen-safer, modules/tmpfile-safer: New files.
104857         * modules/stdio-safer: Remove.
104859 2006-07-24  Bruno Haible  <bruno@clisp.org>
104861         * modules/tmpdir: New file.
104862         * MODULES.html.sh (File system functions): Add it.
104864 2006-07-24  Bruno Haible  <bruno@clisp.org>
104866         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
104867         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
104869 2006-07-24  Bruno Haible  <bruno@clisp.org>
104871         * modules/clean-temp: New file.
104873 2006-07-24  Bruno Haible  <bruno@clisp.org>
104875         * m4/tmpdir.m4: New file, from GNU gettext.
104877 2006-07-24  Bruno Haible  <bruno@clisp.org>
104879         * lib/tmpdir.h: New file, from GNU gettext.
104880         * lib/tmpdir.c: New file, from GNU gettext.
104882 2006-07-24  Bruno Haible  <bruno@clisp.org>
104884         * lib/clean-temp.h: New file, from GNU gettext.
104885         * lib/clean-temp.c: New file, from GNU gettext.
104887 2006-07-23  Eric Blake  <ebb9@byu.net>
104889         * modules/stdio-safer (Files): Add tmpfile-safer.c.
104890         (Depends-on): Add binary-io.
104892 2006-07-23  Eric Blake  <ebb9@byu.net>
104894         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
104896 2006-07-23  Eric Blake  <ebb9@byu.net>
104898         * lib/tmpfile-safer.c: New file.
104899         * lib/stdio-safer.h (fopen_safer): Add prototype.
104900         * lib/stdio--.h (tmpfile): Make safer.
104902 2006-07-23  Bruno Haible  <bruno@clisp.org>
104904         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
104905         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
104906         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
104907         gl_linked_remove_at): Use it.
104909 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104910         and Simon Josefsson <jas@extundo.com>
104912         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
104914         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
104916 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
104918         * modules/close-stream: New file.
104919         * modules/closeout (Description): Make it clear that it exits
104920         with a diagnostic on error.
104921         (Depends-on): Add close-stream.  Remove fpending, stdbool.
104922         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
104924 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
104926         * m4/close-stream.m4: New file.
104928 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
104930         * lib/close-stream.c, lib/close-stream.h: New files.
104932 2006-07-22  Bruno Haible  <bruno@clisp.org>
104934         Merge from GNU gettext 0.15.
104936         2006-05-01  Bruno Haible  <bruno@clisp.org>
104938                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
104940         2006-07-22  Bruno Haible  <bruno@clisp.org>
104942                 * modules/javaversion: New file.
104943                 * MODULES.html.sh (Java): Add javaversion.
104945         2006-03-12  Bruno Haible  <bruno@clisp.org>
104947                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
104949         2005-12-04  Bruno Haible  <bruno@clisp.org>
104951                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
104952                 (untested).
104954         2006-06-21  Bruno Haible  <bruno@clisp.org>
104956                 Avoid warnings from recent versions of mcs.
104957                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
104958                 -o, -L, -r any more. Use options documented since mcs-1.0
104959                 instead. Similarly for -g.
104961         2005-12-04  Bruno Haible  <bruno@clisp.org>
104963                 * build-aux/csharpcomp.sh.in: Suffix for resources is
104964                 .resources, not .resource.
104966         2005-07-09  Bruno Haible  <bruno@clisp.org>
104968                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
104969                 add a .dll suffix.
104970                 Reported by Mark Junker <mjscod@gmx.de>.
104972         2006-07-22  Bruno Haible  <bruno@clisp.org>
104974                 * modules/gettext: Upgrade to gettext-0.15.
104975                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
104976                 m4/visibility.m4.
104977                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
104979 2006-07-22  Bruno Haible  <bruno@clisp.org>
104981         Merge from GNU gettext 0.15.
104983         2006-03-25  Bruno Haible  <bruno@clisp.org>
104985                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
104987         2006-07-21  Bruno Haible  <bruno@clisp.org>
104989                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
104990                 "1.1".
104992         2006-05-09  Bruno Haible  <bruno@clisp.org>
104994                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
104995                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
104996                 for the conftestver execution.
104998         2006-05-01  Bruno Haible  <bruno@clisp.org>
105000                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
105001                 optional target-version argument. Verify that the compiler
105002                 groks source of the specified source-version, or add -source
105003                 option as necessary. Verify that the compiler produces
105004                 bytecode in the specified target-version, or add -target and
105005                 -source options as necessary. Make the result of the test
105006                 available as variable CONF_JAVAC. Also log error output in
105007                 config.log.
105009         2006-03-11  Bruno Haible  <bruno@clisp.org>
105011                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
105013         2006-05-09  Bruno Haible  <bruno@clisp.org>
105015                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
105016                 CLASSPATH_SEPARATOR to a semicolon.
105018         2006-03-12  Bruno Haible  <bruno@clisp.org>
105020                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
105021                 available as variable CONF_JAVA, for subsequent autoconf
105022                 tests. Also log error output in config.log.
105024         2006-07-19  Bruno Haible  <bruno@clisp.org>
105026                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
105027                 that getline works on glibc2 systems. Needed to avoid trouble
105028                 in relocatable.c.
105029                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
105031         2005-12-04  Bruno Haible  <bruno@clisp.org>
105033                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
105034                 launcher (untested).
105036         2005-12-04  Bruno Haible  <bruno@clisp.org>
105038                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
105040         2006-07-22  Bruno Haible  <bruno@clisp.org>
105042                 * gettext.m4: Update from GNU gettext-0.15.
105043                 * nls.m4: Likewise.
105044                 * po.m4: Likewise.
105045                 * inttypes-pri.m4: Likewise.
105046                 * inttypes-h.m4: Renamed from inttypes.m4.
105047                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
105049 2006-07-22  Bruno Haible  <bruno@clisp.org>
105051         Merge from GNU gettext 0.15.
105053         2005-07-05  Bruno Haible  <bruno@clisp.org>
105055                 * printf-args.c (printf_fetchargs): Work around broken
105056                 definition of wint_t on mingw.
105058         2005-02-12  Bruno Haible  <bruno@clisp.org>
105060                 * xallocsa.h: Add extern "C" for C++.
105062         2006-05-17  Bruno Haible  <bruno@clisp.org>
105064                 Cygwin portability.
105065                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
105067         2006-04-30  Bruno Haible  <bruno@clisp.org>
105069                 * progreloc.c: Include <mach-o/dyld.h> if available.
105070                 (find_executable): Use _NSGetExecutablePath when possible.
105072         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
105074                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
105075                 function.
105077         2005-12-29  Bruno Haible  <bruno@clisp.org>
105079                 * progreloc.c (set_program_name_and_installdir): Fix
105080                 compilation error.
105082         2005-12-04  Bruno Haible  <bruno@clisp.org>
105084                 Cygwin portability.
105085                 * progreloc.c: Include <windows.h> also on Cygwin.
105086                 (find_executable): Add support for Cygwin.
105087                 (set_program_name_and_installdir): Handle also platforms with
105088                 nonempty EXEEXT.
105090         2006-07-11  Bruno Haible  <bruno@clisp.org>
105092                 * javacomp.c: Fix a comment.
105093                 Reported by Jim Meyering.
105095         2006-04-30  Bruno Haible  <bruno@clisp.org>
105097                 * javacomp.h (compile_java_class): Add source_version,
105098                 target_version arguments.
105099                 * javacomp.c: Rewritten to choose only a compiler that
105100                 respects the specified source_version and target_version.
105102         2006-06-27  Bruno Haible  <bruno@clisp.org>
105104                 Assume correct S_ISDIR macro.
105105                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
105107         2006-07-22  Bruno Haible  <bruno@clisp.org>
105109                 * javaversion.h: New file, from GNU gettext.
105110                 * javaversion.c: New file, from GNU gettext.
105111                 * javaversion.java: New file, from GNU gettext.
105112                 * javaversion.class: New file, from GNU gettext.
105114         2006-05-17  Bruno Haible  <bruno@clisp.org>
105116                 Cygwin portability.
105117                 * javaexec.c (execute_java_class): Test for jview program
105118                 also on Cygwin.
105120         2006-04-09  Bruno Haible  <bruno@clisp.org>
105122                 * fatal-signal.c: Don't include string.h.
105123                 (at_fatal_signal): Use a copying loop instead of memcpy.
105125         2005-12-04  Bruno Haible  <bruno@clisp.org>
105127                 * csharpexec.c: Add support for 'clix' launcher (untested).
105128                 (execute_csharp_using_sscli): New function.
105129                 (execute_csharp_program): Call it.
105131         2006-06-21  Bruno Haible  <bruno@clisp.org>
105133                 Avoid warnings from recent versions of mcs.
105134                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
105135                 -o, -L, -r any more. Use options documented since mcs-1.0
105136                 instead. Similarly for -g.
105138         2005-07-09  Bruno Haible  <bruno@clisp.org>
105140                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
105141                 add a .dll suffix.
105142                 Reported by Mark Junker <mjscod@gmx.de>.
105144         2006-06-17  Bruno Haible  <bruno@clisp.org>
105146                 * config.charset: Update for NetBSD 3.0.
105148         2006-05-17  Bruno Haible  <bruno@clisp.org>
105150                 Cygwin portability.
105151                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
105153         2006-05-16  Bruno Haible  <bruno@clisp.org>
105155                 * localcharset.c [CYGWIN]: Include <windows.h>.
105156                 (get_charset_aliases): For Cygwin, return the same CPxxx
105157                 aliases list as under WIN32.
105158                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
105159                 the environment variables. Fall back to GetACP().
105161         2006-04-05  Bruno Haible  <bruno@clisp.org>
105163                 * config.charset: Update Juan Manuel Guerrero's address.
105165         2005-02-12  Bruno Haible  <bruno@clisp.org>
105167                 * allocsa.h: Add extern "C" for C++.
105169         2005-02-10  Bruno Haible  <bruno@clisp.org>
105171                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
105172                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
105174         2006-07-22  Bruno Haible  <bruno@clisp.org>
105176                 * gettext.h: Update to GNU gettext-0.15.
105178 2006-07-22  Bruno Haible  <bruno@clisp.org>
105180         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
105181         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
105182         lib-prefix.m4, longdouble.m4, ssize_t.m4.
105184 2006-07-21  Eric Blake  <ebb9@byu.net>
105186         * modules/stdlib-safer: New file.
105187         * MODULES.html.sh (File stream based Input/Output): Add
105188         stdlib-safer.
105190 2006-07-21  Eric Blake  <ebb9@byu.net>
105192         * lib/stdlib-safer.h: New file from coreutils, required by
105193         stdlib--.h.
105195 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
105197         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
105199 2006-07-20  Bruno Haible  <bruno@clisp.org>
105201         * gnulib-tool: Recognize new option --assume-autoconf.
105202         (autoconf_minversion): New variable.
105203         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
105205 2006-07-20  Bruno Haible  <bruno@clisp.org>
105207         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
105209 2006-07-19  Derek R. Price  <derek@ximbiot.com>
105211         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
105212         Reindent and repaginate.
105214 2006-07-19  Derek Price  <derek@ximbiot.com>
105216         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
105217         Correct grammar.
105219 2006-07-17  Bruno Haible  <bruno@clisp.org>
105221         * modules/list: New file.
105222         * modules/array-list: New file.
105223         * modules/carray-list, modules/carray-list-tests: New files.
105224         * modules/linked-list, modules/linked-list-tests: New files.
105225         * modules/avltree-list, modules/avltree-list-tests: New files.
105226         * modules/rbtree-list, modules/rbtree-list-tests: New files.
105227         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
105228         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
105229         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
105230         * modules/oset: New file.
105231         * modules/array-oset: New file.
105232         * modules/avltree-oset, modules/avltree-oset-tests: New files.
105233         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
105234         * tests/test-carray_list.c: New file.
105235         * tests/test-linked_list.c: New file.
105236         * tests/test-avltree_list.c: New file.
105237         * tests/test-rbtree_list.c: New file.
105238         * tests/test-linkedhash_list.c: New file.
105239         * tests/test-avltreehash_list.c: New file.
105240         * tests/test-rbtreehash_list.c: New file.
105241         * tests/test-avltree_oset.c: New file.
105242         * tests/test-rbtree_oset.c: New file.
105243         * MODULES.html.sh (Container data structures): New section.
105245 2006-07-17  Bruno Haible  <bruno@clisp.org>
105247         * m4/gl_list.m4: New file.
105249 2006-07-17  Bruno Haible  <bruno@clisp.org>
105251         * lib/gl_list.h: New file.
105252         * lib/gl_list.c: New file.
105253         * lib/gl_array_list.h: New file.
105254         * lib/gl_array_list.c: New file.
105255         * lib/gl_carray_list.h: New file.
105256         * lib/gl_carray_list.c: New file.
105257         * lib/gl_linked_list.h: New file.
105258         * lib/gl_linked_list.c: New file.
105259         * lib/gl_anylinked_list1.h: New file.
105260         * lib/gl_anylinked_list2.h: New file.
105261         * lib/gl_avltree_list.h: New file.
105262         * lib/gl_avltree_list.c: New file.
105263         * lib/gl_anyavltree_list1.h: New file.
105264         * lib/gl_anyavltree_list2.h: New file.
105265         * lib/gl_rbtree_list.h: New file.
105266         * lib/gl_rbtree_list.c: New file.
105267         * lib/gl_anyrbtree_list1.h: New file.
105268         * lib/gl_anyrbtree_list2.h: New file.
105269         * lib/gl_anytree_list1.h: New file.
105270         * lib/gl_anytree_list2.h: New file.
105271         * lib/gl_linkedhash_list.h: New file.
105272         * lib/gl_linkedhash_list.c: New file.
105273         * lib/gl_anyhash_list1.h: New file.
105274         * lib/gl_anyhash_list2.h: New file.
105275         * lib/gl_avltreehash_list.h: New file.
105276         * lib/gl_avltreehash_list.c: New file.
105277         * lib/gl_rbtreehash_list.h: New file.
105278         * lib/gl_rbtreehash_list.c: New file.
105279         * lib/gl_anytreehash_list1.h: New file.
105280         * lib/gl_anytreehash_list2.h: New file.
105282         * lib/gl_oset.h: New file.
105283         * lib/gl_oset.c: New file.
105284         * lib/gl_array_oset.h: New file.
105285         * lib/gl_array_oset.c: New file.
105286         * lib/gl_avltree_oset.h: New file.
105287         * lib/gl_avltree_oset.c: New file.
105288         * lib/gl_rbtree_oset.h: New file.
105289         * lib/gl_rbtree_oset.c: New file.
105290         * lib/gl_anytree_oset.h: New file.
105292 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
105294         * m4/mkancesdirs.m4: New file.
105295         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
105296         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
105297         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
105298         it.
105300 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
105302         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
105303         * lib/mkancesdirs.h: New files.
105304         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
105305         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
105306         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
105307         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
105308         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
105309         callers changed.  Revamp internals significantly, by not
105310         attempting to create directories that are temporarily more
105311         permissive than the final results.  Do not attempt to use
105312         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
105313         This removes some race conditions, fixes some bugs, and simplifies
105314         things.  Use new dirchownmod function to do owner and mode changes.
105315         * lib/mkdir-p.h: Likewise.
105316         * lib/modechange.c (octal_to_mode): New function.
105317         (struct mode_change): New member mentioned.
105318         (make_node_op_equals): New arg mentioned.  All callers changed.
105319         (mode_compile): Keep track of which mode bits the user has explicitly
105320         mentioned.
105321         (mode_adjust): New arg DIR, so that we implement the X op correctly.
105322         New arg PMODE_BITS, to keep track of which mode bits the user
105323         mentioned; it treats S_ISUID and S_ISGID speciall.
105324         All callers changed.
105325         * lib/modechange.h: Likewise.
105327 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
105329         * MODULES.html.sh: Add mkancestors.
105330         * modules/mkancesdirs: New module.
105331         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
105332         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
105333         The chdir-safer and afs files are now orphans; I'll remove them
105334         unless someone speaks up.
105335         Add lib/dirchownmod.c, lib/dirchownmod.h.
105336         (Depends-on): Remove alloca, chown, save-cwd, dirname.
105337         Add lchown, mkancesdirs.
105338         (Maintainer): Add self.
105340 2006-07-15  Karl Berry  <karl@gnu.org>
105342         * gnulib-tool: help message wording/arrangement.
105344 2006-07-14  Simon Josefsson  <jas@extundo.com>
105346         * doc/gnulib.texi (Libtool and Windows): New section.
105348 2006-07-12  Simon Josefsson  <jas@extundo.com>
105350         * modules/gendocs (License): Fix license, approved by Karl.
105352 2006-07-12  Eric Blake  <ebb9@byu.net>
105354         * MODULES.html.sh: Add gendocs.
105356 2006-07-11  Eric Blake  <ebb9@byu.net>
105358         * modules/fdl: New module, to install doc/fdl.texi.
105359         * MODULES.html.sh: Add new section for documentation modules.
105360         * gnulib-tool: Avoid space-tab.
105361         (--doc-base): New option, to manage files from doc.
105363 2006-07-11  Eric Blake  <ebb9@byu.net>
105365         * m4/absolute-header.m4: Fix comments to match recent change.
105367 2006-07-11  Eric Blake  <ebb9@byu.net>
105369         * gnulib-tool: List --doc-base before --tests-base.
105371 2006-07-11  Derek R. Price  <derek@ximbiot.com>
105373         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
105375 2006-07-11  Bruno Haible  <bruno@clisp.org>
105377         * README: Mention where to put documentation.
105379 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105381         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
105383 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
105385         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
105386         to stdint.m4.
105388 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
105390         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
105391         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
105392         "no/such/file/stdint.h" when there is no such file, so that
105393         the resulting C code can be parsed by dodgy compilers.
105394         Problems reported by Bob Proulx.
105396 2006-07-10  Derek R. Price  <derek@ximbiot.com>
105398         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
105399         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
105400         macros into the GNU _D_EXACT_NAMLEN.
105401         * lib/savedir.c:  Likewise.
105402         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
105404 2006-07-10  Derek R. Price  <derek@ximbiot.com>
105405         and Paul Eggert  <eggert@cs.ucla.edu>
105407         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
105408         * m4/savedir.m4:
105409         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
105410         macros into the GNU _D_EXACT_NAMLEN.
105412 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
105414         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
105415         around the absolute name, to work around a problem with the HP-UX
105416         11.23 native C compiler, reported by Bob Proulx.
105418 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
105420         * doc/maintain.texi, make-stds.texi: Sync from
105421         <http://savannah.gnu.org/projects/gnustandards>.
105423 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
105425         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
105427 2006-07-09  Jim Meyering  <jim@meyering.net>
105429         * m4/glob.m4: Remove a doubled word in a comment.
105431 2006-07-09  Jim Meyering  <jim@meyering.net>
105433         * lib/argp-pv.c: Remove a doubled word in a comment.
105434         * lib/check-version.c (check_version): Likewise.
105435         * lib/javacomp.c (compile_java_class): Likewise.
105437 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
105439         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
105440         for the benefit of people using Autoconf 2.60.  If you want to
105441         support older Autoconf versions you can copy m4/onceonly_2_57.m4
105442         (or m4/onceonly.m4, if pre-2.57) manually.
105444 2006-07-08  Jim Meyering  <jim@meyering.net>
105446         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
105447         comment.
105448         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
105449         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
105450         comment.
105452 2006-07-08  Jim Meyering  <jim@meyering.net>
105454         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
105456 2006-07-07  Simon Josefsson  <jas@extundo.com>
105458         * tests/test-crc.c: Change expected crc value, the test vector
105459         were probably computed using the old broken crc.c?
105461 2006-07-06  Simon Josefsson  <jas@extundo.com>
105463         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
105464         now the canonical place for the M4 file).
105466         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
105467         from the sys_socket dependency now.
105469         * modules/inet_pton (Files): Ditto.
105471         * modules/inet_ntop (Files): Ditto.
105473 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
105475         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
105476         not gl_PREREQ_GETUSERSHELL.
105478 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105480         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
105481         with only one argument, for Autoconf 2.60.
105482         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
105483         expand to nothing, so add a shell command to avoid syntax error.
105484         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
105486 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105488         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
105490 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105492         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
105493         no longer needed.  Check for isblank decl.
105494         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
105495         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
105496         of existence.
105498 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105500         * lib/getloadavg.c: Use __VMS, not VMS.
105501         * lib/getopt.c: Likewise.
105502         * lib/getpagesize.h: Likewise.
105503         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
105504         and probably does not work.
105506 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105508         * lib/.cppi-disable: Add wcwidth.
105509         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
105510         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
105511         (ISGRAPH): Remove.  All uses changed to isgraph.
105512         (FOLD) [!defined _LIBC]: Remove special case.
105513         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
105514         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
105515         HAVE_ISBLANK.
105516         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
105517         case.
105519 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
105521         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
105522         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
105523         brackets.  Other minor changes to suppress some compiler
105524         warnings.
105526 2006-07-06  Derek R. Price  <derek@ximbiot.com>
105527         and Paul Eggert  <eggert@cs.ucla.edu>
105529         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
105530         of invoking obsolescent AC_HEADER_DIRENT macro.
105531         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
105532         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
105533         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
105534         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
105535         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
105536         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
105537         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
105538         * m4/readdir.m4: Remove; no longer needed.
105540 2006-07-06  Derek R. Price  <derek@ximbiot.com>
105541         and Paul Eggert  <eggert@cs.ucla.edu>
105543         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
105544         Don't worry about this obsolete case any more.
105545         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
105546         directories.
105547         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
105548         worry about this obsolete case any more.
105549         * lib/fts.c: Likewise.
105550         * lib/getcwd.c: Likewise.
105551         * lib/glob.h: Likewise.
105552         * lib/savedir.c: Likewise.
105554 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
105556         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
105557         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
105558         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
105559         needed.
105560         All uses removed.
105561         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
105562         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
105563         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
105564         needed.
105565         * m4/getdate.m4 (gl_GETDATE): Likewise.
105566         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
105567         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
105568         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
105569         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
105570         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
105571         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
105572         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
105573         needed.
105575 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
105577         * lib/memcasecmp.c: Include <limits.h>.
105578         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
105579         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
105580         Don't assume isdigit succeeds only on '0' through '9'.
105582 2006-07-05  Eric Blake  <ebb9@byu.net>
105584         * modules/getaddrinfo (Depends-on): Add snprintf.
105586 2006-07-05  Eric Blake  <ebb9@byu.net>
105588         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
105589         to avoid 'header present but could not be compiled' on cygwin.
105591 2006-07-05  Eric Blake  <ebb9@byu.net>
105593         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
105594         missing from netdb.h.
105595         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
105597 2006-07-05  Derek R. Price  <derek@ximbiot.com>
105599         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
105600         no longer needed.
105601         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
105602         * m4/getdate.m4 (gl_GETDATE): Likewise.
105603         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
105604         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
105605         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
105606         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
105607         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
105609 2006-07-05  Derek R. Price  <derek@ximbiot.com>
105611         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
105612         All uses of is_space replaced by isspace.
105613         * lib/exit.h: Don't talk about STDC_HEADERS.
105614         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
105615         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
105616         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
105617         replaced by isprint etc.
105618         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
105619         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
105620         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
105621         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
105622         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
105623         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
105625 2006-07-05  Bruno Haible  <bruno@clisp.org>
105627         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
105628         the function exists, before testing against AIX.
105629         Reported by Martin Lambers <marlam@marlam.de>.
105631 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
105633         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
105634         From Mark D. Baushke.
105636 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
105638         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
105639         to the absolute name, not just one, to bypass Sun C 5.8's
105640         "warning: #include of /usr/include/... may be non-portable".
105642 2006-07-04  Eric Blake  <ebb9@byu.net>
105644         * modules/dirname-tests: New test module.
105645         * tests/test-dirname.c: New file, replacing dirname.c
105646         TEST_DIRNAME section that was recently deleted.
105648 2006-07-04  Bruno Haible  <bruno@clisp.org>
105650         Assume ANSI C header files and <ctype.h> functions.
105651         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
105652         (mbsnwidth): Use isprint, iscntrl instead.
105654 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105656         Merge from coreutils.
105657         * MODULES.html.sh: Add xstrtold.
105658         * modules/xstrtold: New file.
105659         * modules/cycle-check (Files): Add lib/same-inode.h.
105660         * modules/dirname (Files): Add m4/double-slash-root.m4.
105661         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
105662         * modules/mkdir-p (Files): Add lib/same-inode.h.
105663         * modules/same (Files): Add lib/same-inode.h.
105665 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105667         * m4/absolute-header.m4: Renamed from full-header-path.m4.
105668         This is to keep the terminology clean; POSIX talks about
105669         "absolute pathnames", not "full pathnames", but the GNU
105670         Coding Standards say to use "path" for something else;
105671         so use "absolute" to keep both sides happy.
105672         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
105673         Set gl_absolute_header, not gl_full_header_path.
105674         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
105675         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
105676         All uses changed.
105678         Merge from coreutils.
105680         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
105682         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
105683         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
105684         want to require the building of c-strtod.o.
105685         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
105686         needs -lm directly.
105687         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
105689         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
105691         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
105692         --as-needed option if available.  Problem reported by Albert Chin in
105693         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
105694         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
105695         cc merely issues a bunch of annoying warnings for --as-needed
105696         (this problem was reported by Bob Proulx).  Also, try linking with
105697         -lm to detect a bug in binutils 2.16 (this problem was reported
105698         by Ralf Wildenhues).
105700         2006-06-18  Jim Meyering  <jim@meyering.net>
105702         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
105703         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
105704         macro.
105705         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
105706         also check for glibc-2.4's abort-inducing bug.
105708         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
105709         Low-probability clean-up should be to use rmdir to get rid of
105710         the just-created directory, not unlink.
105712         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
105713         configure fail, and request a bug report to inform us about it.
105714         Add a comment that, barring reports to the contrary, in 2007 we'll
105715         assume ftruncate is universally available.
105717         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
105719         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
105721         2006-03-12  Jim Meyering  <jim@meyering.net>
105723         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
105724         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
105725         * m4/same.m4 (gl_SAME): Likewise.
105726         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
105728         2006-03-11  Eric Blake  <ebb9@byu.net>
105730         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
105731         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
105732         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
105733         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
105735 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105737         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
105738         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
105739         reported by Mark D. Baushke, one in
105740         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
105742         Merge from coreutils.
105744         * lib/.cppi-disable: Add stdint_.h.
105745         * lib/.cvsignore: Add stdint.h.
105747         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
105749         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
105750         both double and long double versions.
105751         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
105752         * lib/xstrtold.c: New file.
105753         * lib/xstrtod.h (xstrtold): New decl.
105755         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
105757         * lib/filemode.c (setst): Remove.
105758         (strmode): Rewrite to avoid setst.  This makes the code shorter,
105759         (arguably) clearer, and the generated code is a bit smaller on my
105760         Debian GNU/Linux stable x86 host.
105762         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
105764         * lib/filemode.c: Include "filemode.h" first, to test the interface.
105765         Assume that filemode.h includes sys/types.h and sys/stat.h.
105766         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
105767         (ftypelet): Reorder to put common cases first, for efficiency.
105768         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
105769         to do 'M'.
105770         (strmode): Renamed from mode_string, and now stores 12 bytes instead
105771         of 10, for compatibility with FreeBSD.  All callers changed.
105772         (filemodestring): Now stores 12 bytes instead of 10, and sets file
105773         types that can't be deduced solely from st_mode.  First arg is now a
105774         const pointer.
105775         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
105776         (strmode): Renamed from mode_string.
105777         (filemodestring): New decl.
105778         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
105779         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
105780         needed.
105781         (S_ISPORT, S_ISWHT): New macros, if not already defined.
105783         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
105785         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
105786         fsusage.h now does that.  Include fsusage.h first, to test interface.
105787         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
105788         at most one method (the old code could have generated decls that
105789         didn't conform to C89, not that this was ever exercised).
105790         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
105792         2006-03-19  Jim Meyering  <jim@meyering.net>
105794         Work even in a chroot where d_ino values for entries in "/"
105795         don't match the stat.st_ino values for the same names.
105796         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
105797         number, iterate through all entries again, using lstat instead.
105798         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
105799         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
105801         * lib/getcwd.c (__getcwd): Clarify a comment.
105802         Use memcpy in place of a call to strcpy.
105804         2006-03-12  Jim Meyering  <jim@meyering.net>
105806         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
105807         matches that of the current directory (which we're about to chdir ".."
105808         out of), then save the dev-ino of the parent, instead.
105810         * lib/same-inode.h (SAME_INODE): New file/macro.
105811         * lib/chdir-safer.c (SAME_INODE): Remove definition.
105812         Include "same-inode.h", instead.
105813         * lib/same.c: Likewise.
105814         * lib/cycle-check.h: Include "same-inode.h".
105815         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
105816         * lib/cycle-check.c (SAME_INODE): Remove definition.
105817         * lib/root-dev-ino.h: Include "same-inode.h".
105819         2006-03-11  Eric Blake  <ebb9@byu.net>
105821         * lib/same.c (same_name): s/base_name/last_component/
105822         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
105823         * lib/filenamecat.c (file_name_concat): Likewise.
105825         2006-03-11  Eric Blake  <ebb9@byu.net>,
105826                     Paul Eggert  <eggert@cs.ucla.edu>
105828         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
105829         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
105830         drive prefix.
105831         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
105832         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
105833         (last_component): New method.
105834         * lib/dirname.c (dir_len): Determine when drive letters need a
105835         subsequent slash.  Preserve // when it is special.
105836         (dir_name): Don't append dot when drive letter is absolute.
105837         [TEST_DIRNAME]: Move into a full-blown gnulib test.
105838         * lib/basename.c (base_name): New semantics - malloc the result.
105839         Preserve // when it is special.  Preserve relative files that look
105840         like drive letters.
105841         (base_len): Preserve // when it is special.
105842         (last_component): New method, similar to old base_name semantics.
105843         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
105844         base_name.  Strip redundant slashes from ///.
105846 2006-07-03  Jim Meyering  <jim@meyering.net>
105848         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
105849         macro is used before the first cycle_check call.
105851 2006-07-03  Eric Blake  <ebb9@byu.net>
105853         * modules/dirname (Depends-on): Add xstrndup.
105855 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
105857         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
105858         test cases, so that config.log is a bit easier to follow.
105860 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
105862         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
105863         both are 64 bits, since this seems to be the tradition, and this
105864         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
105865         we ever run into a host that prefers long long to long in this
105866         case, we'll need another configure-time test.  Problem reported by
105867         Jim Meyering.
105869 2006-07-02  Eric Blake  <ebb9@byu.net>
105871         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
105873 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105875         * modules/inttypes (Depends-on): No longer depends on stdint.
105876         * modules/stdint (Description): Say more about assumptions.
105877         Say that the fast types might differ.  Say macros are used.
105878         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
105879         (Makefile.am): Revise list of substituted symbols to match
105880         new stdint.m4.
105881         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
105882         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
105883         * tests/test-stdint.c (verify_same_types)
105884         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
105885         the code conforms to C99/C89.
105886         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
105887         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
105889 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105891         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
105892         but fix a bug, by requiring at least 64 bits.
105893         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
105894         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
105895         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
105896         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
105898         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
105899         changes.  Make 2.59 a prerequisite.  Check and substitute for
105900         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
105901         inttypes.h.  Do not use special include files; just use the
105902         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
105903         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
105904         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
105905         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
105906         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
105907         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
105908         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
105909         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
105910         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
105911         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
105912         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
105913         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
105914         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
105915         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
105916         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
105917         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
105918         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
105919         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
105920         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
105921         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
105922         WINT_MAX.  Check for C99 conformance more strictly, by detecting
105923         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
105924         not check for things that C99 does not require, e.g., int8_t.  If
105925         a test isn't needed unless <stdint.h> isn't working, and is
105926         unlikely to be needed for any other reason, then don't do it
105927         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
105928         size_t, since we assume C89 freestanding at least.  Do not check
105929         for sig_atomic_t, wchar_t, or wint_t, since the code now does
105930         the right thing even if the types are not defined.  Instead use:
105931         (gl_STDINT_TYPE_PROPERTIES): New macro.
105932         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
105933         testing whether <sys/types.h> clashes, as Autoconf does this for
105934         us now.  All uses removed.
105935         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
105936         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
105937         (gl_CHECK_TYPE_SAME):
105938         Remove; no longer needed.
105939         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
105940         exists, since we'll return 0 anyway in that case.
105941         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
105943 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105945         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
105946         possible collision with system files.
105947         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
105948         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
105949         WCHAR_MIN and WCHAR_MAX in this case.
105950         (<stddef.h>): Do not include; no longer needed.
105951         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
105952         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
105953         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
105954         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
105955         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
105956         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
105957         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
105958         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
105959         !defined(__c99))]: Include in this case too, since it's harmless
105960         now.
105961         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
105962         dangerous to do so.
105963         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
105964         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
105965         (_STDINT_MIN, _STDINT_MAX): New macros.
105966         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
105967         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
105968         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
105969         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
105970         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
105971         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
105972         macros, not typedefs; this simplifies things quite a bit.
105973         Use long int for all types narrower than int64_t.
105974         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
105975         Define in terms of long long int or int64_t or long int,
105976         not int64_t or int32_t.  This saves some compile-time testing.
105977         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
105978         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
105979         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
105980         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
105981         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
105982         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
105983         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
105984         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
105985         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
105986         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
105987         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
105988         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
105989         undef any previous version and define our own version, for
105990         simplicity and consistency with the new macros for types.
105991         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
105992         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
105993         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
105994         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
105995         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
105996         @WINT_T_SUFFIX@ to keep things simple here.
105997         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
105998         Simplify by assuming typical 8/16/32/64 host, since we're
105999         already doing that elsewhere anyway.
106000         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
106001         and assume long long int is 64 bits if available.  This
106002         speeds up 'configure'.
106004 2006-07-01  Eric Blake  <ebb9@byu.net>
106006         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
106007         Reported by Andreas Buening.
106009 2006-07-01  Eric Blake  <ebb9@byu.net>
106011         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
106013 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
106015         * lib/getaddrinfo.c: fixed typo
106017 2006-06-29  Jim Meyering  <jim@meyering.net>
106019         * modules/strftime (Maintainer): Add my name, since with the
106020         FPRINTFTIME changes strftime.c has forked from glibc.
106022 2006-06-29  Eric Blake  <ebb9@byu.net>
106024         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
106026 2006-06-29  Eric Blake  <ebb9@byu.net>
106028         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
106030 2006-06-29  Eric Blake  <ebb9@byu.net>
106032         * lib/stat_.h: New file.
106034 2006-06-29  Eric Blake  <ebb9@byu.net>
106036         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
106037         unused static function.
106039 2006-06-29  Eric Blake  <ebb9@byu.net>
106041         * doc/functions.texi (Function Portability): Document missing lstat
106042         on mingw.
106044 2006-06-29  Eric Blake  <ebb9@byu.net>
106046         * MODULES.html.sh: Add sys_stat.
106047         * modules/sys_stat: New module.
106048         * modules/mkstemp (Depends-on): Add sys_stat.
106050 2006-06-29  Derek R. Price  <derek@ximbiot.com>
106052         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
106054 2006-06-29  Derek R. Price  <derek@ximbiot.com>
106056         * m4/c-bs-a.m4: Removed.
106058 2006-06-29  Derek R. Price  <derek@ximbiot.com>
106060         * lib/strftime.c: Assume strftime() exists.
106062 2006-06-29  Derek Price  <derek@ximbiot.com>
106064         * modules/c-bs-a: Removed - \a is C89.
106065         * MODULES.html.sh: Remove c-bs-a.
106067 2006-06-29  Bruno Haible  <bruno@clisp.org>
106069         * modules/wcwidth (License): Change to LGPL.
106071 2006-06-28  Simon Josefsson  <jas@extundo.com>
106073         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
106074         on _WIN32.
106076         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
106077         getnameinfo.
106079 2006-06-28  Simon Josefsson  <jas@extundo.com>
106081         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
106083 2006-06-28  Simon Josefsson  <jas@extundo.com>
106085         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
106086         functions there.  It will succeed on Windows XP, but on Windows
106087         2000 and (presumably) earlier, it will fail, and use the internal
106088         re-implementation.
106089         (use_win32_p): New function.
106090         (getaddrinfo): Use strtoul on servname, to support numeric ports.
106091         Support AI_NUMERICSERV to disable getservbyname.
106092         (getnameinfo): New function, only supports
106093         NI_NUMERICHOST|NI_NUMERICSERV for now.
106095         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
106096         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
106097         getnameinfo.
106099 2006-06-28  Eric Blake  <ebb9@byu.net>
106101         * modules/wcwidth: New file.
106102         * modules/mbchar (Depends-on): Add wcwidth.
106103         * modules/mbswidth (Depends-on): Add wcwidth.
106104         * MODULES.html.sh: Add wcwidth.
106106 2006-06-28  Eric Blake  <ebb9@byu.net>
106108         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
106109         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
106111 2006-06-28  Eric Blake  <ebb9@byu.net>
106113         * lib/xvasprintf.h: Fix comments.
106115 2006-06-28  Eric Blake  <ebb9@byu.net>
106117         * lib/mbchar.h (wcwidth): Include wcwidth.h.
106118         * lib/mbswidth.c (wcwidth): Move from here...
106119         * lib/wcwidth.h: ...to this new file.
106121 2006-06-28  Derek R. Price  <derek@ximbiot.com>
106123         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
106125         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
106126         it's obsolete.
106127         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
106129 2006-06-28  Derek R. Price  <derek@ximbiot.com>
106131         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
106132         Autoconf 2.60 says this stuff was obsolete.
106134 2006-06-28  Bruno Haible  <bruno@clisp.org>
106136         * modules/wcwidth (Files): Add m4/wchar_t.m4.
106138 2006-06-28  Bruno Haible  <bruno@clisp.org>
106140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
106141         gt_TYPE_WCHAR_T.
106143 2006-06-28  Bruno Haible  <bruno@clisp.org>
106145         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
106146         declaration for wcwidth.
106147         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
106149 2006-06-28  Bruno Haible  <bruno@clisp.org>
106151         * lib/mkdtemp.c [MINGW]: Include <io.h>.
106152         (mkdir): Define using _mkdir.
106154 2006-06-28  Bruno Haible  <bruno@clisp.org>
106156         * lib/getaddrinfo.h: Fix POSIX URL.
106157         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
106158         _WIN32.
106159         (use_win32_p): Make static.
106160         (getaddrinfo): Reject service name if it is empty or does not consist
106161         solely of decimal digits, or if its value is > 65535.
106162         (getnameinfo): Remove useless casts.
106164 2006-06-27  Simon Josefsson  <jas@extundo.com>
106166         * modules/sys_select: New file, suggested by Bruno Haible, Paul
106167         Eggert and Martin Lambers.
106169 2006-06-27  Simon Josefsson  <jas@extundo.com>
106171         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
106172         Eggert and Martin Lambers.
106174 2006-06-27  Bruno Haible  <bruno@clisp.org>
106176         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
106177         result to 0, not to empty.
106178         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
106180 2006-06-27  Bruno Haible  <bruno@clisp.org>
106182         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
106184 2006-06-26  Simon Josefsson  <jas@extundo.com>
106186         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
106187         present.
106189 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
106191         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
106192         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
106193         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
106195 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
106197         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
106199 2006-06-26  Bruno Haible  <bruno@clisp.org>
106201         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
106203 2006-06-26  Bruno Haible  <bruno@clisp.org>
106205         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
106207 2006-06-26  Bruno Haible  <bruno@clisp.org>
106209         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
106210         SGI C compiler in pre-C99 mode.
106211         Suggested by Mark D. Baushke and Larry Jones.
106213 2006-06-26  Bruno Haible  <bruno@clisp.org>
106215         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
106216         WCHAR_MAX.
106217         Reported by Mark D. Baushke and Larry Jones.
106219 2006-06-26  Bruno Haible  <bruno@clisp.org>
106221         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
106222         in pre-C99 mode.
106223         Suggested by Mark D. Baushke and Larry Jones.
106225 2006-06-23  Simon Josefsson  <jas@extundo.com>
106226             Bruno Haible  <bruno@clisp.org>
106228         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
106229         Emit mostlyclean-local rule.
106230         (func_emit_tests_Makefile_am): Likewise.
106231         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
106233 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
106235         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
106237 2006-06-23  Bruno Haible  <bruno@clisp.org>
106239         * tests/test-stdint.c: Update to match ISO C 99 Technical
106240         Corrigendum 1.
106242 2006-06-23  Bruno Haible  <bruno@clisp.org>
106244         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
106246 2006-06-23  Bruno Haible  <bruno@clisp.org>
106248         * lib/stdint_.h: Treat IRIX like OpenBSD.
106250 2006-06-23  Bruno Haible  <bruno@clisp.org>
106252         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
106253         ISO C 99 Technical Corrigendum 1.
106255 2006-06-22  Simon Josefsson  <jas@extundo.com>
106257         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
106258         MinGW.
106260 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106262         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
106263         needed.  Some compiler complained about some of them.  Problem reported
106264         by Larry Jones in
106265         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
106267 2006-06-21  Simon Josefsson  <jas@extundo.com>
106269         * tests/test-getaddrinfo.c: New file.
106271         * modules/getaddrinfo-tests: New file.
106273         * MODULES.html.sh: Add inet_pton.
106275         * modules/inet_pton: New file.
106277 2006-06-21  Simon Josefsson  <jas@extundo.com>
106279         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
106280         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
106281         of using the (limited) gnulib implementation on Windows XP.
106283         * m4/inet_pton.m4: New file.
106285 2006-06-21  Simon Josefsson  <jas@extundo.com>
106287         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
106288         variable.
106290         * lib/socket_.h: Don't define WINVER.
106292         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
106293         slightly modified to work in gnulib.
106295 2006-06-21  Simon Josefsson  <jas@extundo.com>
106297         * doc/gnulib.texi (Windows sockets): Add.
106299 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
106301         * lib/read-file.c (fread_file): Start with buffer allocation of
106302         0 bytes rather than 1 byte; this simplifies the code.
106303         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
106304         code to free buffer and save/restore errno.
106305         (internal_read_file): Remove unused local.
106307 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
106309         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
106310         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
106311         Problem reported by Denis Excoffier in
106312         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
106314 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106316         * modules/sys_socket, modules/socklen: Include sys/types since
106317         FreeBSD 4.x's sys/socket.h needs it.
106319 2006-06-19  Simon Josefsson  <jas@extundo.com>
106321         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
106323 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
106325         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
106327 2006-06-19  Bruno Haible  <bruno@clisp.org>
106329         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
106330         and FULL_PATH_INTTYPES_H in angle brackets.
106331         Reported by Mark D. Baushke <mdb@gnu.org>.
106333 2006-06-17  Eric Blake  <ebb9@byu.net>
106335         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
106336         errno.
106338 2006-06-17  Bruno Haible  <bruno@clisp.org>
106340         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
106341         <sys/inttypes.h>.
106343 2006-06-17  Bruno Haible  <bruno@clisp.org>
106345         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
106346         whether errno is declared. Assume <errno.h> declares errno.
106348 2006-06-17  Bruno Haible  <bruno@clisp.org>
106350         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
106352 2006-06-17  Bruno Haible  <bruno@clisp.org>
106354         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
106355         problem on Solaris 2.5.1.
106357 2006-06-16  Eric Blake  <ebb9@byu.net>
106359         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
106360         * lib/unicodeio.c [!defined errno]: Likewise.
106361         * lib/strtol.c [!defined errno]: Likewise.
106362         * lib/strtod.c [!defined errno]: Likewise.
106364 2006-06-15  Eric Blake  <ebb9@byu.net>
106366         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
106368 2006-06-15  Eric Blake  <ebb9@byu.net>
106370         * config/srclist.txt (ssize_t.m4): Lose sync.
106372 2006-06-15  Bruno Haible  <bruno@clisp.org>
106374         * modules/stdint (Files): Include m4/full-header-path.m4,
106375         m4/size_max.m4, m4/wchar_t.m4.
106376         (Makefile.am): Many more substitutions.
106377         * modules/stdint-tests: New file.
106378         * tests/test-stdint.c: New file.
106380 2006-06-15  Bruno Haible  <bruno@clisp.org>
106382         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
106383         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
106384         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
106385         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
106386         gl_CHECK_TYPE_SAME): New macros.
106388 2006-06-15  Bruno Haible  <bruno@clisp.org>
106390         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
106392 2006-06-15  Bruno Haible  <bruno@clisp.org>
106394         * lib/stdint_.h: Rewritten to be fully auto-configured.
106395         Fixes bug on HP-UX/IA64.
106397 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
106399         * lib/getdate.y (__attribute__): Don't define if already defined.
106400         Problem reported by Larry Jones.
106401         * lib/utimens.c (__attribute__): Likewise.
106403 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
106405         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
106406         reported by Andreas Schwab.
106408 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106409             Bruno Haible  <bruno@clisp.org>
106411         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
106412         check for the declaration of strnlen and a run test that exposes the
106413         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
106414         rpl_strndup.
106416 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106417             Bruno Haible  <bruno@clisp.org>
106419         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
106421 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106423         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
106424         compile test, for Tru64 4.0D.
106426 2006-05-28  Karl Berry  <karl@gnu.org>
106428         * config/srclist.txt (printf-args.c): lose sync.
106430 2006-05-26  Martin Lambers  <marlam@marlam.de>
106432         * lib/getpass.c: Updates the test for the native W32 API, and adds
106433         missing includes, thus fixing compilation warnings.
106435 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
106437         * lib/exclude.c (exclude_fnmatch): New function.
106438         (excluded_file_name): Call exclude_fnmatch.
106439         * lib/exclude.h (excluded_file_name): New prototype
106441 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
106443         * lib/tempname.c (small_open, large_open): New macros.
106444         (__open, __open64) [!_LIBC]: Remove.
106445         (__gen_tempname): Use small_open and large_open instead of __open
106446         and __open64.  This fixes a portability bug on HP-UX 11.11i
106447         reported by Simon Wing-Tang in
106448         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
106450 2006-05-24  Bruno Haible  <bruno@clisp.org>
106452         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
106453         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
106454         Reported by Thorsten Maerz <torte@netztorte.de> via
106455         Aaron Stone <aaron@serendipity.cx>.
106457 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
106459         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
106460         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
106461         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
106462         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
106463         not really conditional on the cache.
106464         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
106466 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
106468         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
106469         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
106470         (my_usleep): Don't mishandle maximum value.
106472 2006-05-19  Jim Meyering  <jim@meyering.net>
106474         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
106476 2006-05-17  Bruno Haible  <bruno@clisp.org>
106478         Cygwin portability.
106479         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
106481 2006-05-17  Bruno Haible  <bruno@clisp.org>
106483         * lib/stdint_.h: Fix recognition of Cygwin.
106485 2006-05-15  Bruno Haible  <bruno@clisp.org>
106487         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
106488         on libtool patch by Ralf Wildenhues.
106490 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106492         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
106493         test for C99 conformance; (bool) 0.5 is an integer constant
106494         expression, but (bool) -0.5 is not.  Problem reported by Fedor
106495         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
106497 2006-05-11  Simon Josefsson  <jas@extundo.com>
106499         * m4/xvasprintf.m4: Fix obvious typo.
106501 2006-05-11  Jim Meyering  <jim@meyering.net>
106503         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
106504         James Lemley.
106506 2006-05-10  Simon Josefsson  <jas@extundo.com>
106508         * lib/md4.c: Typo fix, update copyright years.
106509         (K1, K2): Don't use L because it turn computations into 64-bit on
106510         64-bit platforms.
106512 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
106514         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
106515         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
106516         unwanted sign propagation, e.g., on hosts with 64-bit int.
106517         There still are some problems with reeelly weird theoretical hosts
106518         (e.g., 33-bit int) but it's not worth worrying about now.
106519         * lib/sha1.c (rol): Likewise.
106520         (K1, K2, K3, K4): Remove unnecessary L suffix.
106522 2006-05-10  Bruno Haible  <bruno@clisp.org>
106524         * lib/des.c: Cast to avoid warnings.
106526 2006-05-09  Bruno Haible  <bruno@clisp.org>
106528         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
106529         (Depends-on): Depend also on xsize, stdarg.
106530         (configure.ac): Add gl_XVASPRINTF.
106532 2006-05-09  Bruno Haible  <bruno@clisp.org>
106534         * m4/xvasprintf.m4: New file.
106536 2006-05-09  Bruno Haible  <bruno@clisp.org>
106538         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
106539         (EOVERFLOW): Define fallback value.
106540         (xstrcat): New function.
106541         (xvasprintf): Recognize the special case of a string concatenation.
106543 2006-05-08  Eric Blake  <ebb9@byu.net>
106545         * gnulib-tool (func_version): Base copyright year on CVS date.
106546         (func_emit_copyright_notice): New function.
106547         (func_emit_lib_Makefile_am): Use it.
106548         (func_emit_tests_Makefile_am): Likewise.
106549         (func_import): Likewise.
106551 2006-05-08  Bruno Haible  <bruno@clisp.org>
106553         * modules/stdarg: New file.
106554         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
106556 2006-05-08  Bruno Haible  <bruno@clisp.org>
106558         * m4/stdarg.m4: New file, from GNU gettext.
106560 2006-05-08  Bruno Haible  <bruno@clisp.org>
106562         * config/srclist.txt (build-aux/config.rpath): different from latest
106563         release.
106565 2006-05-08  Bruno Haible  <bruno@clisp.org>
106567         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
106569 2006-05-05  Jim Meyering  <jim@meyering.net>
106571         * m4/warning.m4: New file, derived from bison's file by the same name.
106573 2006-05-03  Bruno Haible  <bruno@clisp.org>
106575         * lib/stdint_.h: Shorter URL.
106576         * lib/inttypes.h: Likewise.
106578 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
106580         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
106582 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
106584         * lib/verify.h: Document the internals better.  Most of this change
106585         was written by Bruno Haible.
106587 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
106589         * doc/verify.texi: New file, partly based on a proposal by
106590         Bruno Haible.
106592 2006-05-02  Bruno Haible  <bruno@clisp.org>
106594         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
106595         test from here...
106596         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
106598 2006-04-29  Bruno Haible  <bruno@clisp.org>
106600         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
106601         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
106603 2006-04-29  Bruno Haible  <bruno@clisp.org>
106605         * gnulib-tool: Make --update option actually work.
106607 2006-04-29  Bruno Haible  <bruno@clisp.org>
106609         * doc/gcd.texi: New file.
106610         * doc/gnulib.texi: Include it.
106612 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
106614         * lib/getdate.y (get_date): When adding relative date, start with the
106615         initial time, not with the result of the first mktime call.
106617 2006-04-25  Bruno Haible  <bruno@clisp.org>
106619         * gnulib-tool (func_import): Output the include directives in three
106620         blocks, sorted separately.
106621         Reported by Ben Pfaff <blp@cs.stanford.edu>.
106623 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
106625         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
106626         to define main with arguments, for C++.  Reported by Eric Blake.
106627         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
106628         Prefer 'int main ()' to 'int main (void)', for C++.
106629         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
106630         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
106631         for 'main', for C99 and C++.
106633 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
106635         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
106636         Don't assume that exit status -1 is valid.
106637         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
106638         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
106639         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
106640         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
106641         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
106642         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
106643         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
106644         functions can be used without declaring them, or that you can
106645         exit with status -1.
106646         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
106648 2006-04-24  Karl Berry  <karl@gnu.org>
106650         * config/srclist.txt (longdouble.m4): sync lost.
106652 2006-04-24  Eric Blake  <ebb9@byu.net>
106654         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
106656 2006-04-24  Bruno Haible  <bruno@clisp.org>
106658         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
106659         poll() implementation in AIX.
106660         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106662 2006-04-24  Bruno Haible  <bruno@clisp.org>
106664         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
106665         assigned exactly once.
106667 2006-04-23  Claudio Fontana  <claudio@gnu.org>
106668             Bruno Haible  <bruno@clisp.org>
106670         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
106671         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
106672         for AM_CPPFLAGS.
106674 2006-04-23  Bruno Haible  <bruno@clisp.org>
106676         * modules/copy-file: Depend on unistd.
106677         * modules/execute: Likewise.
106678         * modules/fatal-signal: Likewise.
106679         * modules/findprog: Likewise.
106680         * modules/mkdtemp : Likewise.
106681         * modules/pipe: Likewise.
106682         * modules/wait-process: Likewise.
106684 2006-04-23  Bruno Haible  <bruno@clisp.org>
106686         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
106687         condition was already detected.
106688         Reported by Ben Pfaff <blp@cs.stanford.edu>.
106690 2006-04-23  Bruno Haible  <bruno@clisp.org>
106692         * lib/copy-file.c: Include <unistd.h> unconditionally.
106693         * lib/execute.c: Likewise.
106694         * lib/fatal-signal.c: Likewise.
106695         * lib/findprog.c: Likewise.
106696         * lib/mkdtemp.c: Likewise.
106697         * lib/pipe.h: Likewise.
106698         * lib/pipe.c: Likewise.
106699         * lib/wait-process.h: Likewise.
106701 2006-04-23  Bruno Haible  <bruno@clisp.org>
106703         * gnulib-tool (func_usage): Fix --import description. Document
106704         --update.
106705         (func_import): Create temporary file in a temporary directory, if
106706         --dry-run is specified. Silence errors from 'grep' when there are no
106707         m4 files in $m4dir.
106708         (func_create_testdir): Silence errors from 'grep' when there are no
106709         m4 files in $m4dir.
106710         Reported by Karl Berry <karl@freefriends.org>.
106712 2006-04-20  Bruno Haible  <bruno@clisp.org>
106714         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
106715         one argument, so that the code will be portable to Autoconf 2.60.
106716         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
106717         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
106718         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
106720 2006-04-19  Derek Price  <derek@ximbiot.com>
106721             Eric Blake  <ebb9@byu.net>
106723         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
106724         rather than "/full/path.h".  Update comment to match.  Shorten &
106725         generalize m4_translit call via AS_TR_CPP.
106727 2006-04-19  Derek Price  <derek@ximbiot.com>
106728             Eric Blake  <ebb9@byu.net>
106730         * lib/inttypes.h: Correct grammar in comment.
106732 2006-04-18  Derek Price  <derek@ximbiot.com>
106733             Paul Eggert  <eggert@cs.ucla.edu>
106735         * modules/inttypes: New file.
106736         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
106738 2006-04-18  Derek Price  <derek@ximbiot.com>
106739             Paul Eggert  <eggert@cs.ucla.edu>
106741         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
106742         New files.
106744 2006-04-18  Derek Price  <derek@ximbiot.com>
106745             Paul Eggert  <eggert@cs.ucla.edu>
106747         * lib/inttypes.h: New file.
106748         * lib/strtoimax.c: Assume <inttypes.h>.
106750 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
106752         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
106753         isn't mounted.  Problem reported by Kir Kolyshkin.
106755 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
106757         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
106758         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
106759         Derek R. Price.
106760         * lib/regex.h (RE_DUP_MAX): Update comment to match current
106761         implementation.
106763 2006-04-12  Eric Blake  <ebb9@byu.net>
106765         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
106766         is now done automatically by the corresponding Autoconf macro.
106768 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
106770         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
106771         time_r.h.
106773 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
106775         Merge regex changes from libc, removing some of our
106776         POSIX-conformance changes that were rejected and redoing them in a
106777         less-intrusive way.
106779         * lib/regcomp.c (re_compile_internal, init_dfa):
106780         Length arg is now size_t, not Idx.  All uses changed.
106781         (peek_token): Forward decl now says internal_function.
106782         (__re_error_msgid, __re_error_msgid_idx):
106783         Now static rather than extern with attribute_hidden.
106784         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
106785         For some reason libc prefers K&R style defns for external functions.
106786         (regerror) [!defined _LIBC]: Likewise.
106787         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
106788         (seek_collating_symbol_entry, lookup_collation_sequence_value):
106789         (build_range_exp, build_collating_symbol):
106790         Use K&R-style defn.
106791         (re_compile_fastmap): Use '\0' to memset, not 0.
106792         (utf8_sb_map): Make the calculations more obvious.
106793         (init_dfa, parse_bracket_exp, build_charclass_op):
106794         Call calloc and cast result, as glibc does.
106795         (init_word_char, fetch_token, peek_token, peek_token_bracket):
106796         (build_range_exp, build_collating_symbol):
106797         Now internal functions.
106799         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
106801         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
106802         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
106803         Don't depend on VMS; depend on __VMS instead, for POSIX
106804         namespace cleanness.
106805         (regoff_t): Define to ssize_t, not long int.
106807         Remove the REG_ macros named below.  Instead, make the old names
106808         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
106809         __USE_GNU_REGEX.
106810         (REG_BACKSLASH_ESCAPE_IN_LISTS):
106811         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
106812         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
106813         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
106814         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
106815         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
106816         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
106817         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
106818         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
106819         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
106820         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
106821         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
106822         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
106823         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
106824         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
106825         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
106826         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
106827         (REG_NREGS):
106828         Remove.  All uses replaced by the old RE_* names.
106829         (RE_BACKSLASH_ESCAPE_IN_LISTS):
106830         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
106831         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
106832         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
106833         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
106834         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
106835         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
106836         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
106837         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
106838         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
106839         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
106840         Don't bother having these macros be independent of each others'
106841         values, since they no longer exist in the POSIX name space.
106843         Rename the following member names back to their old names,
106844         unless !__USE_GNU_REGEX.  All uses changed back.
106845         (buffer): Renamed from re_buffer.
106846         (allocated): Renamed from re_allocated.
106847         (used): Renamed from re_used.
106848         (syntax): Renamed from re_syntax.
106849         (fastmap): Renamed from re_fastmap.
106850         (translate): Renamed from re_translate.
106851         (can_be_null): Renamed from re_can_be_null.
106852         (regs_allocated): Renamed from re_regs_allocated.
106853         (fastmap_accurate): Renamed from re_fastmap_accurate.
106854         (no_sub): Renamed from re_no_sub.
106855         (not_bol): Renamed from re_not_bol.
106856         (not_eol): Renamed from re_not_eol.
106857         (newline_anchor): Renamed from re_newline_anchor.
106858         (num_regs): Renamed from rm_num_regs.
106859         (start): Renamed from rm_start.
106860         (end): Renamed from rm_end.
106862         (free_state): Move up a bit.
106864         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
106865         #define to be empty.
106866         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
106867         when that is what is intended.
106868         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
106869         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
106870         (MAX): New macro.
106871         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
106872         All uses changed back to re_malloc, etc.  It's now the caller's
106873         responsibility to check for overflow; all callers changed.
106874         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
106875         (re_x2nrealloc): Remove.
106876         (free_state): Remove decl.
106878         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
106879         (re_set_registers, re_exec):
106880         Use K&R-style defn.
106882         2006-01-31  Roland McGrath  <roland@redhat.com>
106884         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
106885         Reported by Mike Frysinger <vapier@gentoo.org>.
106887         2006-01-15  Andreas Jaeger  <aj@suse.de>
106889         [BZ #1950]
106890         * lib/regex_internal.c (re_string_reconstruct): Adjust for
106891         build_wcs_upper_buffer change.
106892         (build_wcs_upper_buffer): Change return type.
106894         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
106896         * lib/regex_internal.h: Include <stdint.h> if available.
106898         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
106900         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
106902         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
106904         * lib/regcomp.c: Adjust for changed secondary hash function.
106906         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
106908         * lib/regex.h: Pretty printing.
106909         Clean up namespace a bit.
106911         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
106913         * lib/regexec.c (update_cur_sifted_state, check_arrival,
106914         check_arrival_add_next_nodes): Avoid using uninitialized variable.
106916         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
106917                     Ulrich Drepper  <drepper@redhat.com>
106919         [BZ #1302]
106920         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
106921         changed.
106922         (bitset_word_t): Renamed from bitset_word.  All uses changed.
106924         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
106926         [BZ #281]
106927         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
106928         * lib/regcomp.c: Remove unnecessary uses of
106929         unsigned RE_TRANSLATE_TYPE.
106930         * lib/regex_internal.h: Likewise.
106931         * lib/regex_internal.c: Likewise.
106932         * lib/regexec.c: Likewise.
106933         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
106935         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
106937         * lib/regexec.c (find_recover_state): Remove unnecessary
106938         initialization.
106939         (transit_state_bkref): Make DFA a const pointer.
106940         (get_subexp): Likewise.
106941         (check_arrival): Likewise.
106942         (update_cur_sifted_state): Likewise.
106943         (re_search_internal): Likewise.
106944         (prune_impossible_nodes): Likewise.
106945         (acquire_init_state_context): Likewise.
106946         (proceed_next_node): Likewise.
106947         (set_regs): Likewise.
106948         (free_fail_stack_return): Likewise.
106949         (check_arrival_expand_ecl): Mark DFA parameter as const.
106950         (check_arrival_expand_ecl_sub): Likewise.
106951         (check_subexp_limits): Likewise.
106952         (sub_epsilon_src_nodes):  Likewise.
106953         (add_epsilon_src_nodes):  Likewise.
106954         (merge_state_array): Likewise.
106955         (update_regs): Likewise.
106956         (build_trtable): Likewise.
106957         (sift_states_backward): Mark MCTX parameter as const.
106958         (build_sifted_states): Likewise.
106959         (update_cur_sifted_state): Likewise.
106960         (sift_states_mkref): Likewise.
106961         (check_arrival_expand_ecl): Mark eclosure as const.
106962         (check_dst_limits_calc_pos_1): Likewise.
106963         * lib/regex_internal.h (re_match_context_t): Make dfa a const
106964         pointer.
106966         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
106968         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
106969         (transit_state_sb): Likewise.
106970         (transit_state_mb): Likewise.
106971         (sift_states_iter_mb): Likewise.
106972         (check_arrival_add_next_nodes): Likewise.
106973         (check_node_accept_bytes): Change first parameter to pointer-to-const.
106974         [_LIBC] (re_search_2_stub): Use mempcpy.
106976         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
106977         mbrtowc for very simple UTF-8 case.
106979         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
106980         a pointer-to-const.
106981         (re_acquire_state_context): Likewise.
106982         * lib/regex_internal.h: Adjust prototypes.
106984         * lib/regex.c: Prevent using C++ compilers.
106986         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
106987         (re_acquire_state_context): Likewise.
106989 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
106991         * modules/regex (Depends-on): Add ssize_t.
106993 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
106995         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
106996         translation table.
106998 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
107000         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
107002 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
107003             Bruno Haible  <bruno@clisp.org>
107005         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
107006         <sys/types.h> and <inttypes.h>.
107008 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107010         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
107011         `__error_t_defined', so argp.h will not typedef the former.
107013 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
107015         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
107016         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
107017         glibc names.  Even if glibc is changed to conform to POSIX, the
107018         traditional names will be available anyway, since regex depends on
107019         the extensions module.  Also, fix a longstanding typo in the
107020         implementation of Spencer ERE test #75 from grep 2.3.  Problems
107021         reported by Emanuele Giaquinta.  Also, change sense of cached
107022         variable, so that the message makes sense.
107024 2006-03-24  Simon Josefsson  <jas@extundo.com>
107026         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
107027         including some doc fixes.
107028         (base64_encode_alloc): Fix +1 bug on allocation failures.
107030 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107032         * lib/base64.c (base64_encode): Do not read past end of array with
107033         unsanitized input on systems with CHAR_BIT > 8.
107035 2006-03-24  Eric Blake  <ebb9@byu.net>
107037         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
107039 2006-03-22  Karl Berry  <karl@gnu.org>
107041         * config/srclist.txt (*setenv.[ch]): get from coreutils.
107042         * config/srclistvars.sh (COREUTILS): new var.
107044 2006-03-17  Jim Meyering  <jim@meyering.net>
107046         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
107047         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
107049 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
107051         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
107052         no longer needs it.  Instead, check that regoff_t is as least
107053         as wide as ptrdiff_t.
107055         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
107056         so that our regex.h stays compatible with the installed regex.
107057         This is helpful for installers who configure --without-included-regex.
107058         Problem reported by Emanuele Giaquinta.
107060 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
107062         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
107063         Typedef to long int, not to off_, as POSIX will likely change
107064         in that direction.
107066 2006-03-15  Eric Blake  <ebb9@byu.net>
107068         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
107070 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
107072         * lib/argp-help.c (validate_uparams): Fix typo
107073         * lib/argp-parse.c (argp_default_options): Consistently begin help
107074         messages with a lowercase letter.
107076 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
107078         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
107079         overrun buffers and shouldn't be used (much as gets shouldn't be
107080         used).
107081         * lib/time_r.c (asctime_r, ctime_r): Likewise.
107083 2006-03-08  Simon Josefsson  <jas@extundo.com>
107085         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
107086         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107088 2006-03-08  Simon Josefsson  <jas@extundo.com>
107090         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
107091         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107093 2006-03-08  Simon Josefsson  <jas@extundo.com>
107095         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
107096         signal that configure disabled the device.
107098 2006-03-08  Simon Josefsson  <jas@extundo.com>
107100         * build-aux/maint.mk: Fix refresh-po, to handle no translated
107101         languages.
107103 2006-03-07  Simon Josefsson  <jas@extundo.com>
107105         * modules/getopt (Depends-on): Add unistd.
107107         * modules/unistd: New file.
107109 2006-03-07  Simon Josefsson  <jas@extundo.com>
107111         * modules/gc-random: New file.
107113 2006-03-07  Simon Josefsson  <jas@extundo.com>
107115         * m4/unistd_h.m4: New file.
107117 2006-03-07  Simon Josefsson  <jas@extundo.com>
107119         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
107120         test to be side-effect free by storing the result in the cache
107121         variable gl_cv_lib_readline, and moving the assignment of
107122         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
107123         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107125 2006-03-07  Simon Josefsson  <jas@extundo.com>
107127         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
107128         error on missing devices (the functions will return an error).
107130         * m4/gc.m4: Move random stuff to gc-random.m4
107132 2006-03-07  Simon Josefsson  <jas@extundo.com>
107134         * lib/unistd_.h: New file.
107136 2006-03-07  Simon Josefsson  <jas@extundo.com>
107138         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
107140 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
107142         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
107143         Problem reported by Juan Manuel Guerrero.
107145 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
107147         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
107148         the unistd module.
107149         * lib/getlogin_r.c: Likewise.
107150         * lib/getlogin_r.h: Likewise.
107151         * lib/glob.c: Likewise.
107152         * lib/pagealign_alloc.c: Likewise.
107153         * lib/unistd_.h: Remove; no longer needed.
107155 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
107157         * MODULES.html.sh (Support for systems lacking POSIX:2001):
107158         Add unistd.
107159         * modules/c-stack (Depends-on): Add unistd.
107160         * modules/getlogin_r: Likewise.
107161         * modules/glob: Likewise.
107162         * modules/pagealign_alloc: Likewise.
107163         * modules/unistd (Files): Remove lib/unistd_.h.
107164         (EXTRA_DIST): Remove.
107165         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
107166         need unistd_.h.
107167         (MOSTLYCLEANFILES): Remove unistd.h-t.
107169 2006-03-03  Simon Josefsson  <jas@extundo.com>
107171         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
107173 2006-03-03  Simon Josefsson  <jas@extundo.com>
107175         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
107176         libidn and bison.
107178 2006-03-03  Simon Josefsson  <jas@extundo.com>
107180         * build-aux/maint.mk: Add indent target.
107182 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
107184         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
107185         our replacement poll.h in any case, to avoid a differing
107186         declaration from a system header.  Seen on AIX.
107188 2006-03-01  Simon Josefsson  <jas@extundo.com>
107190         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
107191         <kasal@ucw.cz>.
107193 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107195         * modules/gettime (Depends-on): Add extensions module.
107196         * modules/nanosleep (Depends-on): Likewise.
107197         * modules/settime (Depends-on): Likewise.
107199 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107201         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
107202         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
107203         pedantically.
107204         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
107205         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
107207         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
107208         not "==".  Reported by Ralf Wildenhues.
107210 2006-03-01  Karl Berry  <karl@gnu.org>
107212         * doc/Copyright/request-*: new files, synced from gnuorg.
107214 2006-03-01  Karl Berry  <karl@gnu.org>
107216         * config/srclist.txt (Copyright/*): new entries.
107218 2006-02-28  Simon Josefsson  <jas@extundo.com>
107220         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
107222 2006-02-27  Simon Josefsson  <jas@extundo.com>
107224         * lib/base64.h: Indent #define's.  From Jim Meyering
107225         <jim@meyering.net>.
107227 2006-02-27  Jim Meyering  <jim@meyering.net>
107229         Revert the change of 2006-02-24, so these files can continue
107230         to be sync'd from gettext.
107231         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
107232         of `config.h'.
107234 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
107236         * modules/intprops: New file.
107237         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
107238         Add intprops.
107239         * modules/getloadavg (Files): Remove lib/intprops.h.
107240         (Depends-on): Add intprops.
107241         * modules/human: Likewise.
107242         * modules/inttostr: Likewise.
107243         * modules/openat: Likewise.
107244         * modules/sig2str: Likewise.
107245         * modules/userspec: Likewise.
107246         * modules/utimecmp: Likewise.
107247         * modules/xnanosleep: Likewise.
107248         * modules/xstrtol: Likewise.
107250 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
107252         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
107253         * modules/lock-tests (TESTS): Use $(EXEEXT).
107254         * modules/tls-tests: Likewise.
107255         * modules/argp-tests: Likewise.
107256         (check_PROGRAMS): New var, replacing...
107257         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
107259 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107261         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
107262         `config.h'.
107264 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
107266         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
107268 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107270         Sync from coreutils.
107271         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
107272         gl_CHDIR_SAFER.
107274 2006-02-22  Jim Meyering  <jim@meyering.net>
107276         Sync from coreutils.
107277         * m4/chdir-safer.m4: New file.
107279 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
107281         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
107282         AT_FDCWD exceeds INT_MAX.
107283         * lib/openat.h (AT_FDCWD): Likewise.
107285 2006-02-17  Eric Blake  <address@hidden>
107287         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
107289 2006-02-16  Simon Josefsson  <jas@extundo.com>
107291         * modules/getaddrinfo (Depends-on): Add sys_socket.
107293 2006-02-15  Simon Josefsson  <jas@extundo.com>
107295         * build-aux/maint.mk: Add dsyntax-check rule.
107297 2006-02-15  Eric Blake  <ebb9@byu.net>
107299         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
107300         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
107301         'present but cannot compile' warnings on cygwin.
107302         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
107303         use ws2tcpip.h if sys/socket.h works.
107304         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
107305         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
107307 2006-02-14  Simon Josefsson  <jas@extundo.com>
107309         * modules/maintainer-makefile (Files): Rename.
107311         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
107312         and (the local) Makefile.cfg to maint-cfg.mk.
107314         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
107315         to the latter.
107317         * modules/maintainer-makefile: New module.
107319         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
107320         severaly stripped to make it possible to build it up from scratch
107321         with reliable tests.
107323         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
107324         fixes to permit overriding the default actions when configure and
107325         makefile are not available.
107327 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
107329         Sync from coreutils.
107330         * modules/lstat (Depends-on): Don't depend on xalloc.
107331         (License): Change from GPL to LGPL, since this is now simply a
107332         replacement for a libc function.
107334 2006-02-14  Jim Meyering  <jim@meyering.net>
107336         Sync from coreutils.
107338         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
107339         failure on deficient systems, and simplify gnulib lgpl dependencies.
107340         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
107341         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
107343         * lib/xalloc-die.c: Remove unused definition of N_.
107345 2006-02-14  Jim Meyering  <jim@meyering.net>
107347         Sync from coreutils.
107348         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
107349         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
107350         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
107351         double-quote uses of that variable, to accommodate the rare case in
107352         which getmntent is available in none of the libraries checked.  This
107353         happens at least on FreeBSD 5.0.
107355 2006-02-13  Simon Josefsson  <jas@extundo.com>
107357         * gnulib-tool (Usage): Fix --import, from
107358         karl@freefriends.org (Karl Berry).
107360 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
107362         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
107364 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
107366         * lib/argp-namefrob.h: Restore changes accidentally lost during the
107367         "autoupdate" on 2005-12-12.
107369 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
107371         * modules/closeout (Depends-on): Remove atexit.
107373 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
107375         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
107376         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
107378 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
107380         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
107381         __EXTENSIONS__ if this causes compilation to fail.  Problem
107382         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
107383         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
107385 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
107387         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
107388         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
107389         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
107390         All uses changed.
107392 2006-01-26  Simon Josefsson  <jas@extundo.com>
107394         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
107395         prototype is visible on mingw32.
107397         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
107398         for mingw32.
107400         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
107401         mingw32).
107403 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
107405         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
107406         attempt to open for write; this always fails, at least on POSIX
107407         hosts.  This reinstates the 2006-01-09 change, which was
107408         inadvertently removed.
107410 2006-01-26  Bruno Haible  <bruno@clisp.org>
107412         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
107413         Reported by Paul Eggert.
107415 2006-01-26  Bruno Haible  <bruno@clisp.org>
107416             Paul Eggert  <eggert@cs.ucla.edu>
107418         * lib/stdbool_.h (_Bool)
107419         [(! (defined __cplusplus || defined __BEOS__)
107420           && !defined __GNUC__
107421           && !(defined __HP_cc || defined __xlc__
107422                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
107423                || defined __sgi))]:
107424         #define to signed char in these cases too; this simplifies
107425         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
107426         etc., separately) and makes it more conservative.
107428 2006-01-25  Simon Josefsson  <jas@extundo.com>
107430         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
107431         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
107432         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
107434 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
107436         * lib/argp-namefrob.h: Bugfix. Remove stray #
107438 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
107440         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
107441         so that we test the test.
107442         Check for yet another HP-UX cc bug involving *bool |= bool.
107444 2006-01-25  Karl Berry  <karl@gnu.org>
107446         * config/srclist.txt (vasnprintf.c): sync lost.
107448 2006-01-25  Jim Meyering  <jim@meyering.net>
107450         Sync from the stable (b5) branch of coreutils:
107452         * lib/fts.c (fts_children): Don't let close() clobber errno from
107453         failed fchdir().
107455         * lib/fts.c (fts_stat): When following a symlink-to-directory,
107456         don't necessarily interpret stat-fails+lstat-succeeds as indicating
107457         a dangling symlink.  That can also happen at least for ELOOP.
107458         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
107459         FYI, this bug predates the inclusion of fts.c in coreutils.
107461         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
107462         in their own block, so pre-c99 compilers don't object.
107464         Avoid the double-free (first in fts_read, second in fts_close) that
107465         would occur when an `active' directory is made inaccessible (e.g.,
107466         via chmod a-x) during a traversal.
107467         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
107468         before returning.  Reproduce this failure by
107469         mkdir -p a/b; cd a; chmod a-x . b
107470         Reported by Stavros Passas.
107472 2006-01-25  Jim Meyering  <jim@meyering.net>
107474         * lib/fileblocks.c: Remove more useless parentheses.
107475         * lib/readutmp.h: Likewise.
107477 2006-01-25  Bruno Haible  <bruno@clisp.org>
107479         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
107480         warnings.
107481         Reported by Paul Eggert.
107483 2006-01-25  Bruno Haible  <bruno@clisp.org>
107485         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
107486         rid of a trap command. For Solaris sh.
107487         Reported by Mark D. Baushke <mdb@gnu.org>.
107489 2006-01-24  Simon Josefsson  <jas@extundo.com>
107491         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
107492         Bruno.
107494 2006-01-24  Karl Berry  <karl@gnu.org>
107496         * config/srclist.txt (argp-namefrob.h): sync lost.
107498 2006-01-24  Jim Meyering  <jim@meyering.net>
107500         * modules/openat (Files): Add lib/intprops.h.
107501         From Mark D. Baushke.
107503 2006-01-24  Jim Meyering  <jim@meyering.net>
107505         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
107506         Reported by Mark D. Baushke.
107508 2006-01-24  Jim Meyering  <jim@meyering.net>
107510         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
107512 2006-01-24  Bruno Haible  <bruno@clisp.org>
107514         * modules/strnlen (Maintainer): Change from glibc to all.
107516 2006-01-24  Bruno Haible  <bruno@clisp.org>
107518         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
107519         Patch by Paul Eggert.
107521 2006-01-24  Bruno Haible  <bruno@clisp.org>
107523         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
107524         already has it.
107525         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
107526         2005-11-26.
107528         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
107529         'signed char' to avoid problems with the built-in _Bool type.
107530         Reported by Paul Eggert on 2005-11-26.
107532 2006-01-24  Bruno Haible  <bruno@clisp.org>
107534         * gnulib-tool (func_import): Avoid constructing complicated sed
107535         expressions inside backquote.
107536         Report and solution by Mark D. Baushke <mdb@gnu.org>.
107538 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
107540         These changes imported from libc.
107541         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
107542         test and two separate function calls.
107543         * lib/strndup.c (__strndup): Add libc_hidden_def.
107545 2006-01-23  Simon Josefsson  <jas@extundo.com>
107547         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
107548         Remove the test_*_SOURCES variable: automake infers it by default.
107549         * modules/tls-tests: Likewise.
107551 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107553         Work around porting bugs reported by Dieter in
107554         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
107555         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
107556         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
107557         Include "getopt.h" first, to check interface.
107558         (getenv): Declare only if defined HAVE_DECL_GETENV &&
107559         !HAVE_DECL_GETENV.
107560         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
107561         (__strndup): Revert to K&R-style function dfns, the glibc style.
107562         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
107563         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
107564         Include strnlen.h first, to get prototype properly.
107565         (strnlen): Renamed from __strnlen.
107566         Remove weak alias.
107568 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107570         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
107572 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107574         * config/srclist.txt: Adjust to reflect glibc reorganization.
107575         This affects only comments.
107577 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
107579          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
107580          Reported by Bruce Korb <bkorb@gnu.org>.
107582 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
107584         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
107585         to pacify gcc -Wswitch-default.
107587 2006-01-22  Bruno Haible  <bruno@clisp.org>
107589         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
107590         temporary buffer for sprintf, take into account the precision also
107591         for 'd', 'i', 'u', 'o', 'x', 'X'.
107593 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
107595         * modules/argp-tests: New module
107596         * tests/test-argp.c: New file
107597         * tests/test-argp-2.sh: New file
107599 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
107601         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
107602         (__argp_base_name): Removed
107603         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
107604         typo.
107605         (__argp_base_name): Provide macro definition or extern declaration
107606         depending on the configuration
107608 2006-01-20  Simon Josefsson  <jas@extundo.com>
107610         * modules/inet_ntop (Depends-on): Depend on sys_socket.
107612 2006-01-20  Simon Josefsson  <jas@extundo.com>
107614         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
107616 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107618         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
107619         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
107620         Suggested by Bruno Haible.
107622 2006-01-20  Karl Berry  <karl@gnu.org>
107624         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
107625         until changes propagate, I guess.
107627 2006-01-19  Simon Josefsson  <jas@extundo.com>
107629         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
107631 2006-01-19  Simon Josefsson  <jas@extundo.com>
107633         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
107635 2006-01-19  Simon Josefsson  <jas@extundo.com>
107637         * gnulib-tool: Set check_PROGRAMS.
107639         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
107640         modules/des-tests, modules/gc-arcfour-tests,
107641         modules/gc-arctwo-tests, modules/gc-des-tests,
107642         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
107643         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
107644         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
107645         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
107646         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
107647         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
107648         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
107649         test_*_SOURCES.
107651 2006-01-18  Simon Josefsson  <jas@extundo.com>
107653         * modules/socklen (Depends-on): Depend on sys_socket.
107655 2006-01-18  Simon Josefsson  <jas@extundo.com>
107657         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
107658         modules/des-tests, modules/gc-arcfour-tests,
107659         modules/gc-arctwo-tests, modules/gc-des-tests,
107660         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
107661         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
107662         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
107663         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
107664         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
107665         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
107666         $(EXEEXT) to automake TESTS variable, for mingw32.
107668 2006-01-17  Simon Josefsson  <jas@extundo.com>
107670         * modules/socklen (Include): Need sys/socket.h.
107672 2006-01-17  Bruno Haible  <bruno@clisp.org>
107674         * modules/ssize_t (Include): Add <sys/types.h>.
107676 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
107678         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
107679         it's not portable and it doesn't work with cross-compiles.
107680         Problem reported by Bruno Haible.  Fix missing-$ typo in
107681         'test "gl_cv_ignore_unused_libraries" ...' that prevented
107682         -zignore from being used with Sun's C compiler.
107684 2006-01-12  Simon Josefsson  <jas@extundo.com>
107686         * lib/base64.c: Fix warning, reported by Bruno Haible
107687         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
107689 2006-01-12  Bruno Haible  <bruno@clisp.org>
107691         * modules/ldd: New file.
107692         * build-aux/ldd.sh.in: New file.
107693         * MODULES.html.sh (Support for building libraries and executables): Add
107694         ldd.
107696 2006-01-12  Bruno Haible  <bruno@clisp.org>
107698         * m4/ldd.m4: New file.
107700 2006-01-12  Bruno Haible  <bruno@clisp.org>
107702         * gnulib-tool (func_import, func_create_testdir): Don't go into an
107703         endless loop while replacing $auxdir with build-aux.
107705 2006-01-11  Simon Josefsson  <jas@extundo.com>
107707         * lib/stdint_.h (SIZE_MAX): Add missing (.
107709 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
107711         Sync from coreutils.
107712         * lib/md5.c: Fix commentary typos.
107713         (alignof, UNALIGNED_P): No need for a GCC-specific version.
107714         * lib/md5.h (__attribute__): Remove; unused.
107715         * lib/sha1.c: Fix commentary to match md5 better.
107716         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
107717         so that we don't need to worry about alignment.  All uses changed.
107718         This merges the 2005-10-28 md5 change into sha1.
107720 2006-01-11  Jim Meyering  <jim@meyering.net>
107722         Sync from coreutils.
107723         * lib/md5.c (OP): Fix spacing.
107725 2006-01-11  Bruno Haible  <bruno@clisp.org>
107727         Ensure automatic ordering between gl_LOCK and gl_ARGP.
107728         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
107729         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
107731 2006-01-11  Bruno Haible  <bruno@clisp.org>
107733         Ensure automatic ordering between gl_LOCK and gl_ARGP.
107734         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
107735         the "early" section as well.
107737 2006-01-11  Bruno Haible  <bruno@clisp.org>
107739         Avoid "ar: no archive members specified" error on MacOS X.
107740         * gnulib-tool (func_modules_add_dummy): New function.
107741         (func_import, func_create_testdir): Invoke it.
107743 2006-01-11  Bruno Haible  <bruno@clisp.org>
107745         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
107746         with $auxdir in AC_CONFIG_FILES statements.
107748 2006-01-11  Bruno Haible  <bruno@clisp.org>
107750         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
107751         Initialize also noinst_HEADERS to empty.
107753 2006-01-11  Bruno Haible  <bruno@clisp.org>
107755         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
107756         variables.
107757         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
107758         autoreconf.
107760 2006-01-11  Bruno Haible  <bruno@clisp.org>
107762         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
107763         overridable by the user.
107764         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107766 2006-01-10  Simon Josefsson  <jas@extundo.com>
107768         * modules/sys_socket: New file.
107770 2006-01-10  Simon Josefsson  <jas@extundo.com>
107772         * m4/sys_socket_h.m4: New file.
107774 2006-01-10  Simon Josefsson  <jas@extundo.com>
107776         * lib/socket_.h: New file.
107778 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
107780         * modules/readutmp (Maintainer): Add myself.
107782 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
107784         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
107785         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
107786         People who are still concerned with buggy memcmp implementations
107787         can invoke gl_FUNC_MEMCMP themselves.
107789 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
107791         * lib/regex_internal.h (BITSET_WORD_BITS):
107792         Work around a bug in 64-bit PGC (before version 6.1-2), where the
107793         preprocessor mishandles large unsigned values as if they were signed.
107794         Problem reported by Claudio Fontana in
107795         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
107797 2006-01-10  Jim Meyering  <jim@meyering.net>
107799         Avoid the double-free (first in fts_read, second in fts_close) that
107800         would occur when an `active' directory is made inaccessible (e.g.,
107801         via chmod a-x) during a traversal.
107802         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
107803         before returning.  Reproduce this failure by
107804         mkdir -p a/b; cd a; chmod a-x . b
107805         Reported by Stavros Passas.
107807         Sync from coreutils.
107808         * lib/sha1.c: Tweak grammar in a comment.
107810 2006-01-10  Jim Meyering  <jim@meyering.net>
107812         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
107813         Patch by Joerg Sonnenberger.
107815 2006-01-10  Bruno Haible  <bruno@clisp.org>
107817         * modules/readutmp: Depend on module free.
107818         * modules/strtok_r: Depend on module restrict.
107820 2006-01-10  Bruno Haible  <bruno@clisp.org>
107822         * modules/gettext (configure.ac): Add an invocation of
107823         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
107825 2006-01-10  Bruno Haible  <bruno@clisp.org>
107827         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
107828         Reported by Werner Lemberg <wl@gnu.org>.
107830 2006-01-10  Bruno Haible  <bruno@clisp.org>
107832         * lib/localcharset.c: Update from GNU gettext.
107834 2006-01-10  Bruno Haible  <bruno@clisp.org>
107836         * lib/argp.h (__const): Remove macro. Use const instead.
107837         * lib/argp-fmtstream.h (__const): Likewise.
107838         * lib/glob_.h (__const): Remove macro.
107839         * lib/glob-libc.h: Use const instead of __const.
107841 2006-01-10  Bruno Haible  <bruno@clisp.org>
107843         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
107844         variable.
107845         Needed to avoid an automake error regarding the 'gettext' module.
107847 2006-01-09  Simon Josefsson  <jas@extundo.com>
107849         * modules/inet_ntop (Depends-on): Add restrict.
107851 2006-01-09  Simon Josefsson  <jas@extundo.com>
107853         * modules/gc-rijndael-tests (License): Put under LGPL.
107855         * modules/gc-des-tests (License): Likewise.
107857         * modules/gc-arcfour-tests (License): Likewise.
107859         * modules/gc-arctwo-tests (License): Likewise.
107861         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
107863         * modules/gc-hmac-sha1-tests (Files): Likewise.
107865         * modules/gc-hmac-md5-tests (License): Likewise.
107867         * modules/gc-sha1-tests (License): Likewise.
107869         * modules/gc-md5-tests (License): Likewise.
107871         * modules/gc-md4-tests (License): Likewise.
107873         * modules/gc-md2-tests (License): Likewise.
107875         * modules/gc-tests (License): Likewise.
107877         * modules/des-tests (License): Likewise.
107879         * modules/md4-tests (License): Likewise.
107881         * modules/md2-tests (License): Likewise.
107883 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
107885         Sync from coreutils:
107887         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
107888         * modules/lib-ignore: New file.
107889         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
107890         chdir-safer.m4, lchmod.m4.
107891         * modules/openat: Add mkdirat.c, openat-priv.h.
107893 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
107895         Sync from coreutils.
107896         * m4/lib-ignore.m4: New file.
107897         * m4/lchmod.m4: New file.
107899 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
107901         Sync from coreutils.
107902         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
107903         for write access: POSIX says that must fail.
107904         * lib/fts.c (diropen): Likewise.
107905         * lib/save-cwd.c (save_cwd): Likewise.
107906         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
107907         well, for minor improvements on hosts that lack O_DIRECTORY.
107908         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
107909         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
107910         Fall back on chown if open failed with EACCES.
107912         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
107913         Report an error at compile-time if only a 1-second nominal clock
107914         resolution is found.
107916         * lib/lchmod.h: New file.
107917         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
107918         (make_dir_parents): Use lchown rather than chown, and
107919         lchmod rather than chmod.
107921         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
107922         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
107923         "proc" reported by n0dalus.
107925         * lib/mountlist.c: Include <limits.h>.
107926         (dev_from_mount_options)
107927         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
107928         New function.  It no longer assumes "dev=" has the System V meaning
107929         on Linux (since it doesn't).  It also parses "dev=" more carefully.
107930         (read_file_system_list)
107931         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
107932         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
107933         dev= in that case.
107935         * lib/posixtm.h (PDS_PRE_2000): New macro.
107936         * lib/posixtm.c (year): Arg is now syntax_bits rather than
107937         allow_century.  All usages changed.  Reject dates outside the range
107938         1969-1999 if PDS_PRE_2000 is used.
107940 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
107942         Sync from coreutils.
107943         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
107944         (Time of day items): Mention the possibility of leap seconds.
107945         Problem reported by Dr. David Alan Gilbert.
107947 2006-01-09  Jim Meyering  <jim@meyering.net>
107949         Sync from coreutils.
107951         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
107953         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
107955         * lib/modechange.c (mode_compile): Reject an invalid mode string
107956         that starts with an octal digit.  From Andreas Gruenbacher.
107958         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
107959         and dup to open_safer and dup_safer, respectively.
107960         (openat_permissive): Fix typo in comment.
107962         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
107963         "gettext.h"; either no longer needed or are guaranteed by openat.h.
107964         (_): Remove; no longer needed.
107965         (openat): Renamed from rpl_openat; no need for rpl_openat
107966         since openat.h renames openat for us.
107967         Replace most of the body with a call to openat_permissive,
107968         to avoid duplicate code.
107969         Port to (probably hypothetical) environments were mode_t is
107970         wider than int.
107971         (openat_permissive): Require mode arg, so that we can check
107972         types better.  Put it just after flags.  Change cwd failure
107973         indicator from pointer-to-bool to pointer-to-errno-value.
107974         All callers changed.
107975         Invoke openat_save_fail and/or openat_restore_fail if
107976         cwd_errno is null, so that openat can call us.
107977         (openat_permissive, fdopendir, fstatat, unlinkat):
107978         Simplify errno handling to avoid some duplicate code,
107979         as it's OK to set errno on success.
107980         * lib/openat.h: Revamp code so that function macros depend on
107981         __OPENAT_PREFIX only, not also on AT_FDCWD.
107982         (openat_ro): Remove.  Caller changed to use openat_permissive.
107983         (openat_permissive): Now a macro, if not a function.
107984         (openat_restore_fail, openat_save_fail): Now always functions,
107985         since mkdirat needs them even if __OPENAT_PREFIX is defined.
107987         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
107988         and openat.c.
107989         * lib/mkdirat.c: Include openat-priv.h.
107990         Remove definitions of macros defined therein.
107991         * lib/openat.c: Likewise.
107993         * lib/mkdirat.c (mkdirat): New file and function.
107994         * lib/openat.h (mkdirat): Declare.
107996         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
107998         * lib/openat.h (openat_permissive): Declare.
107999         (openat_ro): Define.
108001         * lib/openat.c (EXPECTED_ERRNO): New macro.
108002         (openat_permissive): New function -- used in remove.c rewrite.
108003         (all functions): Set errno just before returning, only if there
108004         was an actual failure.
108005         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
108007         Emulate openat-family functions using Linux's procfs, if possible.
108008         Idea and some code based on Ulrich Drepper's glibc changes.
108010         * lib/openat.c: (BUILD_PROC_NAME): New macro.
108011         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
108012         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
108013         before falling back on save_cwd and restore_cwd.
108014         (fdopendir, fstatat, unlinkat): Likewise.
108016         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
108017         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
108019         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
108020         as second argument to va_arg.  Otherwise, some versions of gcc
108021         warn that `if this code is reached, the program will abort'.
108023 2006-01-09  Jim Meyering  <jim@meyering.net>
108025         Sync from coreutils.
108026         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
108027         Require openat-priv.h.
108029 2006-01-09  Bruno Haible  <bruno@clisp.org>
108031         * modules/strnlen (Include): Use strnlen.h.
108033 2006-01-09  Bruno Haible  <bruno@clisp.org>
108035         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
108037 2006-01-09  Bruno Haible  <bruno@clisp.org>
108039         * lib/sysexit_.h (EX_OK): New macro.
108040         Suggested by Martin Lambers <marlam@marlam.de>.
108042 2006-01-09  Bruno Haible  <bruno@clisp.org>
108044         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
108045         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
108047 2006-01-09  Bruno Haible  <bruno@clisp.org>
108049         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
108050         numbers.
108052 2006-01-09  Bruno Haible  <bruno@clisp.org>
108054         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
108055         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
108056         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
108057         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
108059 2006-01-09  Bruno Haible  <bruno@clisp.org>
108061         * build-aux/javacomp.sh.in: New file, moved from lib/.
108062         * modules/javacomp-script (Files): Update.
108063         (configure.ac): Add AC_CONFIG_FILES invocation.
108064         (EXTRA_DIST): Remove variable.
108066         * build-aux/javaexec.sh.in: New file, moved from lib/.
108067         * modules/javaexec (Files): Update.
108068         (configure.ac): Add AC_CONFIG_FILES invocation.
108069         (EXTRA_DIST): Remove javaexec.sh.in.
108071         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
108072         * modules/csharpcomp-script (Files): Update.
108073         (configure.ac): Add AC_CONFIG_FILES invocation.
108074         (EXTRA_DIST): Remove variable.
108076         * build-aux/csharpexec.sh.in: New file, moved from lib/.
108077         * modules/csharpexec (Files): Update.
108078         (configure.ac): Add AC_CONFIG_FILES invocation.
108079         (EXTRA_DIST): Remove csharpexec.sh.in.
108081 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
108083         Sync from coreutils.
108085         Add POSIX ACL support
108086         * lib/acl.h (copy_acl, set_acl): Add declarations.
108087         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
108088         systems other than Linux.
108089         (chmod_or_fchmod): New function: use fchmod when possible,
108090         and chmod otherwise.
108091         (file_has_acl): Add a POSIX ACL implementation, with a
108092         Linux-specific subcase.
108093         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
108094         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
108095         acls are unsupported.
108096         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
108097         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
108098         are unsupported.
108100 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
108102         Sync from coreutils.
108103         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
108105 2006-01-07  Bruno Haible  <bruno@clisp.org>
108107         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
108108         gl_EARLY.
108110 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
108112         * lib/strftime.c (tzname): Don't declare if it is already #defined.
108113         Problem reported for Mingw by Mark Junker.
108115 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
108117         * README: Gnulib normally doesn't generate a tarball.
108119 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
108121         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
108122         long int, not int, for nanosecond counts, so that people who are
108123         used to POSIX struct timespec won't be surprised.  Reported by Jim
108124         Meyering.
108126 2005-12-28  Bruno Haible  <bruno@clisp.org>
108128         * build-aux/config.rpath: Update from GNU gettext.
108130 2005-12-16  Jim Meyering  <jim@meyering.net>
108132         * modules/fprintftime: New module.
108133         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
108135 2005-12-16  Jim Meyering  <jim@meyering.net>
108137         * m4/fprintftime.m4: New file.
108139 2005-12-16  Jim Meyering  <jim@meyering.net>
108141         * lib/fprintftime.c, lib/fprintftime.h: New files.
108143 2005-12-15  Simon Josefsson  <jas@extundo.com>
108145         * modules/socklen (configure.ac): Fix M4 macro name, to align with
108146         new m4/socklen.m4.
108148 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
108150         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
108151         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
108153 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
108155         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
108156         * lib/argp-help.c (fill_in_uparams): Check if the constructed
108157         struct uparams is valid. Fall back to the default values if it is
108158         not.
108160 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
108162         * modules/argp (Files): Add argp-pin.c
108163         (Depends-on): dirname
108164         (lib_SOURCES): Add argp-pin.c
108166 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
108168         * m4/argp.m4:  Check if program_invocation_name and
108169         program_invocation_short_name are declared and define appropriate
108170         macros if they are not.
108172 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
108174         * lib/argp-help.c (__argp_base_name): New function
108175         (__argp_short_program_name): Rewrite using __argp_base_name
108176         * lib/argp-namefrob.h: Define program_invocation_name and
108177         program_invocation_short_name if requested
108178         (__argp_base_name): Add prototype
108179         * lib/argp-parse.c (argp_def): Use gettext wrappers
108180         (argp_default_parser): Use __argp_base_name
108181         * lib/argp-pin.c: New file. Defines program_invocation_name and
108182         program_invocation_short_name on systems that lack them.
108184 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
108186         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
108187         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
108188         porting problem reported by Georg Schwarz in
108189         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
108191 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
108193         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
108194         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
108195         porting problem reported by Georg Schwarz in
108196         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
108198 2005-12-05  Bruno Haible  <bruno@clisp.org>
108200         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
108201         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
108202         Reported by Mark Junker <mjscod@gmx.de>.
108204 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
108206         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
108207         Use implementation from Albert Chin, with some
108208         comments/corrections by Stepan Kasal and myself.
108210 2005-12-02  Bruno Haible  <bruno@clisp.org>
108212         * gnulib-tool (func_import): Accept GPLed build tool modules when
108213         --lgpl is given.
108214         * modules/csharpcomp-script: New file.
108215         * modules/csharpcomp: Depend on it.
108216         * modules/javacomp-script: New file.
108217         * modules/javacomp: Depend on it.
108218         Suggested by Simon Josefsson.
108220 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
108222         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
108223         statement, to work around an HP-UX 10.20 compiler bug reported by
108224         Peter O'Gorman.
108226 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
108228         * modules/savedir (Depends-on): Add openat.
108230 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
108232         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
108233         (uintmax_t) [defined uintmax_t]: Do not declare.
108234         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
108235         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
108236         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
108237         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
108238         sake of portability to weird hosts that C allows (though we don't
108239         know of any practical examples).
108241         * lib/savedir.h (fdsavedir): New decl.
108242         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
108243         contains most of the former guts of savedir.
108244         (savedir): Use savedirstream.
108245         Include "openat.h".
108247 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
108249         * modules/obstack (Files): Add m4/ulonglong.m4.
108250         Problem reported by Davide Angelocola.
108252 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
108254         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
108255         coreutils no longer futzes with rounding modes.
108257 2005-11-14  Jim Meyering  <jim@meyering.net>
108259         * lib/mkstemp-safer.c: Include <config.h>, required for possible
108260         replacement of mkstemp.
108262 2005-11-10  Simon Josefsson  <jas@extundo.com>
108264         * lib/readline.c: Remove EOL.
108266 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108268         * modules/gethrxtime (Depends-on): Add gettime.
108270 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108272         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
108273         or gettimeofday; no longer needed.
108275 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108277         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
108278         time business.
108279         (gethrxtime) [! (HAVE_NANOUPTIME
108280         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
108281         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
108282         our own approximation.
108284 2005-11-08  Eric Blake  <ebb9@byu.net>
108286         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
108288 2005-11-08  Eric Blake  <ebb9@byu.net>
108290         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
108292 2005-11-04  Bruno Haible  <bruno@clisp.org>
108294         * gnulib-tool: Implement --update mode.
108296 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
108298         Fix porting problem reported by Theodoros V. Kalamatianos.
108299         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
108300         Don't assume that futimes failing means we must fail.
108302 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
108304         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
108305         variables to suggest the intended function of the PATH_MAX check.
108307 2005-10-30  Kean Johnston  <jkj@sco.com>
108309         Trivial changes to support SCO systems.
108310         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
108311         as PATH_MAX.
108312         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
108313         where __ptr is null when no I/O is pending.
108315 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108317         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
108318         leave errno alone.  Problem reported by Dmitry V. Levin.
108320 2005-10-28  Simon Josefsson  <jas@extundo.com>
108322         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
108323         Test more.
108325         * tests/test-gc-md2.c, tests/test-md2.c: New files.
108327         * modules/md2, modules/md2-tests: New files.
108329 2005-10-28  Simon Josefsson  <jas@extundo.com>
108331         * m4/inet_ntop.m4: More tests.
108333         * m4/gc-md2.m4, md2.m4: New file.
108335 2005-10-28  Simon Josefsson  <jas@extundo.com>
108337         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
108338         "restrict" keywords, as per POSIX.  Protect the function
108339         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
108340         Don't use K&R prototypes.  Check the sprintf return values.
108341         Re-define EAFNOSUPPORT if not present.  Indent.
108343         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
108344         suggested by Bruno Haible <bruno@clisp.org>.
108346         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
108348         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
108350         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
108351         libgcrypt).
108353         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
108355         * lib/md2.h, lib/md2.c: New files.
108357 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
108359         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
108360         errno alone.  Problem reported by Frederic Jolliton.
108362 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
108364         * modules/verify (License): Change from GPL to LGPL.  This is a
108365         tiny module and there are apparently near-equivalents that are
108366         under the BSD license.
108368 2005-10-24  Simon Josefsson  <jas@extundo.com>
108370         * modules/sha1: Relicense to LGPL.
108372 2005-10-24  Simon Josefsson  <jas@extundo.com>
108374         * lib/md4.h: Shrink buffer size, now that we changed the type.
108376 2005-10-23  Simon Josefsson  <jas@extundo.com>
108378         * gnulib-tool (func_import): Fix --tests-base.
108380 2005-10-22  Simon Josefsson  <jas@extundo.com>
108382         * modules/arcfour (Depends-on): Need stdint.
108384 2005-10-22  Simon Josefsson  <jas@extundo.com>
108386         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
108387         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
108389 2005-10-22  Simon Josefsson  <jas@extundo.com>
108391         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
108392         suggested by Bruno Haible <bruno@clisp.org>.
108394 2005-10-22  Simon Josefsson  <jas@extundo.com>
108396         * lib/crc.h: Include stddef.h, for size_t.
108398 2005-10-22  Simon Josefsson  <jas@extundo.com>
108400         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
108401         arcfour_context struct (simplify test vector testing in GNU
108402         Shishi).
108404 2005-10-21  Simon Josefsson  <jas@extundo.com>
108406         * modules/des, modules/des-tests: New files.
108408         * modules/gc-des, modules/gc-des-tests: New files.
108410         * tests/test-des.c, tests/test-gc-des.c: New file.
108412 2005-10-21  Simon Josefsson  <jas@extundo.com>
108414         * modules/arctwo, modules/arctwo-tests: New files.
108416         * tests/test-arctwo.c: New file.
108418         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
108420         * tests/test-gc-arctwo.c: New file.
108422 2005-10-21  Simon Josefsson  <jas@extundo.com>
108424         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
108425         Bruno Haible <bruno@clisp.org>.
108427         * m4/gc-des.m4: New file.
108429 2005-10-21  Simon Josefsson  <jas@extundo.com>
108431         * m4/arctwo.m4: New file.
108433         * m4/gc-arctwo.m4: New file.
108435 2005-10-21  Simon Josefsson  <jas@extundo.com>
108437         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
108438         block.
108440 2005-10-21  Simon Josefsson  <jas@extundo.com>
108442         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
108443         <bruno@clisp.org>.
108445         * lib/hmac-sha1.c (hmac_sha1): Likewise.
108447         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
108448         Bruno Haible <bruno@clisp.org>.
108450         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
108451         <bruno@clisp.org>.
108453 2005-10-21  Simon Josefsson  <jas@extundo.com>
108455         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
108457 2005-10-21  Simon Josefsson  <jas@extundo.com>
108459         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
108461 2005-10-21  Simon Josefsson  <jas@extundo.com>
108463         * lib/des.h, lib/des.c: New files.
108465         * lib/gc-gnulib.c: Support DES.c
108467 2005-10-21  Simon Josefsson  <jas@extundo.com>
108469         * lib/arctwo.h, lib/arctwo.c: New files.
108471         * lib/gc-gnulib.c: Support ARCTWO.
108473 2005-10-21  Simon Josefsson  <jas@extundo.com>
108475         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
108476         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108478 2005-10-21  Simon Josefsson  <jas@extundo.com>
108480         * gnulib-tool (func_import, func_create_testdir): Define automake
108481         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
108482         Makefile.am snippet),
108483         suggested by Bruno Haible <bruno@clisp.org>.
108485         * modules/gc (Makefile.am): Use it.
108487 2005-10-21  Bruno Haible  <bruno@clisp.org>
108489         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
108490         patch.
108492 2005-10-19  Simon Josefsson  <jas@extundo.com>
108494         * tests/test-gc-rijndael.c: New file.
108496         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
108498 2005-10-19  Simon Josefsson  <jas@extundo.com>
108500         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
108501         interface too.
108503 2005-10-19  Simon Josefsson  <jas@extundo.com>
108505         * tests/test-gc-arcfour.c: New file.
108507         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
108509 2005-10-19  Simon Josefsson  <jas@extundo.com>
108511         * modules/gc-md4, modules/gc-md4-tests: New file.
108513         * tests/test-gc-md4.c: New file.
108515 2005-10-19  Simon Josefsson  <jas@extundo.com>
108517         * m4/gc-md4.m4: New file.
108519 2005-10-19  Simon Josefsson  <jas@extundo.com>
108521         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
108522         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
108523         <kasal@ucw.cz>.
108525 2005-10-19  Simon Josefsson  <jas@extundo.com>
108527         * m4/gc-arcfour.m4: New file.
108529         * m4/gc-rijndael.m4: New file.
108531 2005-10-19  Simon Josefsson  <jas@extundo.com>
108533         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
108535 2005-10-19  Simon Josefsson  <jas@extundo.com>
108537         * lib/gc-gnulib.c: Support ARCFOUR.
108539 2005-10-19  Simon Josefsson  <jas@extundo.com>
108541         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
108542         support.
108544         * lib/gc.h: Add ECB enum type.
108546         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
108548 2005-10-18  Simon Josefsson  <jas@extundo.com>
108550         * tests/test-md5.c: New file.
108552         * modules/md5-tests: New file.
108554 2005-10-18  Simon Josefsson  <jas@extundo.com>
108556         * tests/test-md4.c: New file.
108558         * modules/md4, modules/md4-tests: New files.
108560 2005-10-18  Simon Josefsson  <jas@extundo.com>
108562         * m4/md4.m4: New file.
108564 2005-10-18  Simon Josefsson  <jas@extundo.com>
108566         * lib/md4.h, lib/md4.c: New files, based on md5.?.
108568 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
108570         * gnulib-tool (func_create_testdir): Omit the second check whether
108571         BUILT_SOURCES in nonempty.
108573 2005-10-17  Simon Josefsson  <jas@extundo.com>
108575         * tests/test-rijndael.c: New file.
108577 2005-10-17  Simon Josefsson  <jas@extundo.com>
108579         * modules/sha1: Depend on stdint instead of md5.
108581         * modules/md5: Depend on stdint, remove uint32_t.
108583 2005-10-17  Simon Josefsson  <jas@extundo.com>
108585         * modules/gc-sha1-tests: New file.
108587         * tests/test-gc-sha1.c: New file.
108589 2005-10-17  Simon Josefsson  <jas@extundo.com>
108591         * m4/md5.m4: Remove call to uint32_t.m4.
108593 2005-10-17  Simon Josefsson  <jas@extundo.com>
108595         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
108597         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
108598         md5.h.
108600         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
108602         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
108604 2005-10-17  Simon Josefsson  <jas@extundo.com>
108606         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
108608 2005-10-17  Simon Josefsson  <jas@extundo.com>
108610         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
108612 2005-10-17  Simon Josefsson  <jas@extundo.com>
108614         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
108616         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
108618 2005-10-17  Bruno Haible  <bruno@clisp.org>
108620         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
108621         that it can also be used in a test.
108623 2005-10-16  Bruno Haible  <bruno@clisp.org>
108625         * gnulib-tool (func_emit_tests_Makefile_am): Also define
108626         TESTS_ENVIRONMENT, so that individual tests can augment it.
108628         * gnulib-tool (func_create_testdir): Use an intermediate target for
108629         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
108630         macros, like $(ALLOCA_H), which cannot be passed through the command
108631         line.
108633 2005-10-15  Simon Josefsson  <jas@extundo.com>
108635         * modules/rijndael-tests: New file.
108637         * modules/rijndael: New file.
108639 2005-10-15  Simon Josefsson  <jas@extundo.com>
108641         * m4/rijndael.m4: New file.
108643 2005-10-15  Simon Josefsson  <jas@extundo.com>
108645         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
108647         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
108649 2005-10-14  Simon Josefsson  <jas@extundo.com>
108651         * tests/test-arcfour.c: New file.
108653         * modules/arcfour, modules/arcfour-tests: New files.
108655 2005-10-14  Simon Josefsson  <jas@extundo.com>
108657         * m4/arcfour.m4: New file.
108659 2005-10-14  Simon Josefsson  <jas@extundo.com>
108661         * lib/arcfour.h, lib/arcfour.c: New files.
108663 2005-10-14  Roland McGrath  <roland@redhat.com>
108665         Import from libc.  [BZ #1331]
108666         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
108667         macro argument.
108668         Reported by Matej Vela <vela@debian.org>.
108670 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
108672         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
108673         include <wchar.h>; no longer needed.
108675 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
108677         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
108679 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
108680         and  Ulrich Drepper  <drepper@redhat.com>
108682         Import from libc.
108683         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
108684         instead of inline stream orientation test and two separate
108685         function calls.  Pay no attention to USE_IN_LIBIO.
108687 2005-10-13  Simon Josefsson  <jas@extundo.com>
108689         * modules/gc-hmac-md5-tests: New file.
108691         * tests/test-gc-hmac-sha1.c: New file.
108693         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
108695         * modules/gc-hmac-md5-tests: New file.
108697         * tests/test-gc-md5.c: New file.
108699         * modules/gc-md5-tests: New file.
108701 2005-10-13  Simon Josefsson  <jas@extundo.com>
108703         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
108704         Move memory allocation outside of loop.
108706 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
108708         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
108709         intermediate directory is in a read-only file system.  Problem
108710         reported by Eric Blake.
108712 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
108714         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
108716 2005-10-12  Simon Josefsson  <jas@extundo.com>
108718         * tests/test-hmac-sha1.c: New file.
108720         * modules/hmac-sha1-tests: New file.
108722         * modules/hmac-sha1: New file.
108724 2005-10-12  Simon Josefsson  <jas@extundo.com>
108726         * modules/gc-sha1: New file.
108728 2005-10-12  Simon Josefsson  <jas@extundo.com>
108730         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
108732         * tests/test-gc-pbkdf2-sha1.c: New file.
108734 2005-10-12  Simon Josefsson  <jas@extundo.com>
108736         * modules/gc-md5, modules/gc-hmac-md5: New files.
108738         * modules/gc (Files): Remove md5, memxor and hmac files.
108740 2005-10-12  Simon Josefsson  <jas@extundo.com>
108742         * m4/gc-pbkdf2-sha1.m4: New file.
108744         * m4/gc-hmac-sha1.m4: New file.
108746         * m4/gc-sha1: New file.
108748         * m4/hmac-sha1.m4: New file.
108750 2005-10-12  Simon Josefsson  <jas@extundo.com>
108752         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
108754         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
108756 2005-10-12  Simon Josefsson  <jas@extundo.com>
108758         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
108759         suggested by Bruno Haible <bruno@clisp.org>.
108761 2005-10-12  Simon Josefsson  <jas@extundo.com>
108763         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
108765 2005-10-12  Simon Josefsson  <jas@extundo.com>
108767         * lib/gc-pbkdf2-sha1.c: New file.
108769         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
108771 2005-10-12  Simon Josefsson  <jas@extundo.com>
108773         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
108775         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
108777 2005-10-12  Simon Josefsson  <jas@extundo.com>
108779         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
108780         GC_USE_HMAC_MD5, respectively.
108782         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
108783         (gc_md5): Fix typo.
108785         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
108787         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
108789         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
108791 2005-10-12  Bruno Haible  <bruno@clisp.org>
108793         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
108794         Reported by Stepan Kasal <kasal@ucw.cz>.
108796 2005-10-11  Simon Josefsson  <jas@extundo.com>
108798         * tests/test-crc.c: New file.
108800         * modules/crc, modules/crc-tests: New files.
108802 2005-10-11  Simon Josefsson  <jas@extundo.com>
108804         * m4/crc.m4: New file.
108806 2005-10-11  Simon Josefsson  <jas@extundo.com>
108808         * lib/gc.h: Add gc_hash and gc_hash_buffer.
108810         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
108812         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
108814 2005-10-11  Simon Josefsson  <jas@extundo.com>
108816         * lib/crc.h, lib/crc.c: New files.
108818         * lib/gc.h (gc_hash_buffer): Add doc.
108820 2005-10-11  Bruno Haible  <bruno@clisp.org>
108822         * modules/c-strcasestr: New file.
108823         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
108825 2005-10-11  Bruno Haible  <bruno@clisp.org>
108827         * modules/c-strcase: New file.
108828         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
108830 2005-10-11  Bruno Haible  <bruno@clisp.org>
108832         * lib/strcasecmp.c: Include limits.h.
108833         (strcasecmp): Avoid integer overflow on exotic platforms.
108834         * lib/strncasecmp.c: Include limits.h.
108835         (strncasecmp): Avoid integer overflow on exotic platforms.
108836         Reported by Paul Eggert.
108838 2005-10-11  Bruno Haible  <bruno@clisp.org>
108840         * lib/c-strcasestr.h: New file, from GNU gettext.
108841         * lib/c-strcasestr.c: New file, from GNU gettext.
108843 2005-10-11  Bruno Haible  <bruno@clisp.org>
108845         * lib/c-strcase.h: New file, from GNU gettext.
108846         * lib/c-strcasecmp.c: New file, from GNU gettext.
108847         * lib/c-strncasecmp.c: New file, from GNU gettext.
108849 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108851         * modules/mempcpy (License): GPL -> LGPL.
108852         * modules/strchrnul (License): Likewise.
108853         * modules/sysexits (License): Likewise.
108855 2005-10-08  Simon Josefsson  <jas@extundo.com>
108857         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
108859 2005-10-07  Simon Josefsson  <jas@extundo.com>
108861         * m4/memxor.m4: Remove gl_C_RESTRICT call.
108863 2005-10-06  Simon Josefsson  <jas@extundo.com>
108865         * tests/test-hmac-md5.c: New file.
108867         * modules/hmac-md5-tests: New file.
108869         * modules/hmac-md5: New file.
108871 2005-10-06  Simon Josefsson  <jas@extundo.com>
108873         * m4/hmac-md5.m4: New file.
108875         * m4/memxor.m4: Require gl_C_RESTRICT.
108877 2005-10-06  Simon Josefsson  <jas@extundo.com>
108879         * lib/memxor.c (memxor): Avoid casts and warnings.
108881 2005-10-06  Simon Josefsson  <jas@extundo.com>
108883         * lib/hmac-md5.c: New file.
108885         * lib/hmac.h: New file.
108887 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108889         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
108890         promotes to int, not unsigned int, to catch the AIX 5.3
108891         compiler bug.
108893 2005-10-05  Simon Josefsson  <jas@extundo.com>
108895         * modules/memxor: New file.
108897         * modules/iconv (Files): Move config.rpath to havelib, it is used
108898         there.
108900         * modules/havelib (Files): Add config.rpath.
108902 2005-10-05  Simon Josefsson  <jas@extundo.com>
108904         * m4/memxor.m4: New file.
108906 2005-10-05  Simon Josefsson  <jas@extundo.com>
108908         * lib/memxor.c (memxor): Fix compiler error.
108910         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
108911         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
108913         * lib/memxor.h, lib/memxor.c: New files.
108915         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
108916         we assume all systems have it, suggested by Jim Meyering
108917         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
108918         any systems lack sys/socket.h; mingw32 is known to lack it, but we
108919         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
108920         same reasons.
108922 2005-10-05  Simon Josefsson  <jas@extundo.com>
108924         * config/srclist.txt: Add glibc bug 1423 for md5.h.
108926 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
108928         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
108929         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
108930         needed, since the source code now assumes these .h files.
108932 2005-10-05  Derek Price  <derek@ximbiot.com>
108934         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
108936 2005-10-05  Bruno Haible  <bruno@clisp.org>
108938         * modules/stdint (License): Change to LGPL.
108940 2005-10-04  Simon Josefsson  <jas@extundo.com>
108942         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
108943         D. Baushke" <mdb@gnu.org>.
108945 2005-10-04  Bruno Haible  <bruno@clisp.org>
108947         * lib/verify.h (verify_true): Provide alternative definition for C++.
108949 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
108951         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
108952         (SSIZE_MAX): New macro, if not already defined.
108953         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
108954         than 2 GiB.
108956 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
108958         Sync from coreutils.
108959         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
108960         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
108961         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
108962         ULLONG_MAX doesn't work with 2.7.2.1.
108964 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
108966         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
108967         From Ben Pfaff.
108969         * modules/exclude (Depends-on): Depend on verify.
108970         * modules/strtoimax (Depends-on): Likewise.
108971         * modules/utimecmp (Depends-on): Likewise.
108973 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
108975         * lib/exclude.c: Include verify.h.
108976         (verify): Remove.  All callers changed to use verify.h's version.
108977         * lib/strtoimax.c: Likewise.
108978         * lib/utimecmp.c: Likewis.e
108980         Sync from coreutils.
108981         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
108982         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
108983         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
108984         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
108985         bother returning ENOSYS if settimeofday or stime fails; just let
108986         them return whatever errno they want to return.
108987         * lib/utimens.c: Include unistd.h, for dup2.
108988         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
108989         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
108991 2005-10-02  Jim Meyering  <jim@meyering.net>
108993         Sync from coreutils.
108994         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
108995         from glibc-2.2.5 that fails for read-only files.
108997 2005-10-02  Jim Meyering  <jim@meyering.net>
108999         Sync from coreutils.
109000         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
109001         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
109002         `#if HAVE_CONFIG_H'.
109003         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
109004         Remove AT_FDCWD test.
109005         Do not consume the fd unless successful.
109006         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
109007         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
109008         block, so that we don't even try to compile it if settimeofday is
109009         available.  This works around a compilation failure on OSF1 V5.1,
109010         due to stime requiring a `long int*' while tv_sec is `int'.
109012 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
109014         Sync from coreutils.
109015         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
109016         against `yes', rather than just testing for nonempty.
109018 2005-10-01  Simon Josefsson  <jas@extundo.com>
109020         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
109021         and Darwin.
109023         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
109024         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
109025         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
109026         freeaddrinfo and gai_strerror are declared by the POSIX headers.
109027         Check if struct addrinfo is declared.
109029 2005-10-01  Simon Josefsson  <jas@extundo.com>
109031         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
109032         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
109033         AI_* and EAI_* definitions.  Protect function declarations.
109035 2005-10-01  Jim Meyering  <jim@meyering.net>
109037         Sync from coreutils.
109039         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
109040         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
109041         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
109042         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
109043         in the inet and nsl libraries.  Required on Solaris 5.7.
109045 2005-10-01  Jim Meyering  <jim@meyering.net>
109047         Sync from coreutils.
109048         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
109049         in the inet and nsl libraries.  Required on Solaris 5.7.
109051 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
109053         * lib/getdelim.c (getdelim): Remove unused variables.
109055 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
109057         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
109058         so that the code works even with ancient cpp.  Portability problem
109059         with GCC 2.7.2.1 reported by Thomas M.Ott.
109061 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
109063         * modules/regex (Depends-on): Add strcase.
109065         * modules/gethostname (Licence): Change from GPL to LGPL, since
109066         gethostname.c is a trivial implementation of a standard library
109067         function.
109068         * modules/poll (License): Change from GPL to LGPL, since it's
109069         derived from LGPL code.
109071 2005-09-27  Jim Meyering  <jim@meyering.net>
109073         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
109074         HAVE_CONFIG_H.
109076         * lib/intprops.h (signed_type_or_expr__): Define.
109077         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
109078         for unsigned types.
109080 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
109082         * lib/verify.h (verify_expr): Remove, replacing with:
109083         (verify_true): New macro that returns true instead of void.
109084         (verify_type__): Remove.
109085         (verify): Use verify_true rather than verify_type__.
109087 2005-09-26  Bruno Haible  <bruno@clisp.org>
109089         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
109090         is necessary.
109091         (lib_SOURCES): Remove mbchar.c.
109092         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
109093         (Files): Add m4/mbrtowc.m4.
109094         * modules/mbiter: Likewise.
109095         * modules/mbuiter: Likewise.
109097 2005-09-26  Bruno Haible  <bruno@clisp.org>
109099         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
109100         compile mbchar.c if they are not both present.
109101         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
109102         * m4/mbiter.m4 (gl_MBITER): Likewise.
109103         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
109104         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
109105         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
109107 2005-09-25  Jim Meyering  <jim@meyering.net>
109109         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
109110         also uses socklen_t.
109112 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
109114         * lib/utimens.c (ENOSYS): Define if not already defined.
109115         (futimens): Support having a null PATH if the file descriptor
109116         is nonnegative.
109118         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
109119         Remove.
109120         (__attribute): Define to empty unless GCC 3.1 or later.
109121         This works around a core dump on OpenBSD 3.4, which has GCC
109122         2.95.3, which dumps core when given __attribute__(()).  It also
109123         simplifies other tests, since we really don't want to bother with
109124         worrying about which ancient version of GCC supported what.
109125         Original problem reported by Yoann Vandoorselaere, with part of
109126         the fix suggested by Derek Price.
109128 2005-09-24  Jim Meyering  <jim@meyering.net>
109130         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
109131         so we can once again use a positive bitfield width of 1 -- now we
109132         don't have to explain why we were using a bitfield width of 2.
109134 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
109136         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
109137         and similarly for the other external symbols.  Problem reported
109138         by James Gallager.
109140         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
109141         bug reported by Jim Meyering.
109143         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
109144         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
109145         not needed, since socklen is a prerequisite module.
109147 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
109149         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
109150         Problem reported by Eric Blake.
109151         (getaddrinfo): Initialize se so that it's not garbage.
109152         Redo internal storage allocation so that it doesn't make unportable
109153         assumptions about alignment.
109154         Fix a memory leak.
109156         * lib/utimens.c (futimens): Use futimesat if available.
109157         Prefer it to futimes since it doesn't have the futimes bug.
109159         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
109160         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
109161         Instead, declare a function that returns a pointer to an array,
109162         and use verify_type__ to declare the size of the array.
109163         Problem and germ of a solution reported by Bruno Haible.
109164         (verify_type__): Use 2, not 1, for bitfield size, to avoid
109165         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
109167 2005-09-23  Jim Meyering  <jim@meyering.net>
109169         Sync from coreutils.
109170         Correct build failure (socklen_t not defined) on at least
109171         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
109172         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
109174 2005-09-23  Jim Meyering  <jim@meyering.net>
109176         * modules/getaddrinfo (Depends-on): Add socklen.
109178 2005-09-23  Bruno Haible  <bruno@clisp.org>
109180         * tests/test-verify.c: New file.
109182 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
109184         Sync from coreutils.
109186         * modules/argmatch (Depends-on): Add verify.
109187         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
109188         unistd-safer.
109189         * modules/save-cwd (Depends-on): Likewise.
109191         * modules/openat (Files): Add lib/openat-die.c.
109192         (Depends-on): Remove error, exitfail.
109193         Add dirname.
109195         * modules/verify: New file.
109196         * MODULES.html.sh (Diagnostics <assert.h>): New section,
109197         with "verify" module.
109199 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
109201         Sync from coreutils.
109203         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
109204         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
109205         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
109206         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
109207         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
109208         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
109209         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
109210         Don't bother checking for string.h, stdlib.h, unistd.h.
109211         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
109212         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
109213         module's job.
109214         * m4/jm-macros.m4 (gl_MACROS): Likewise.
109215         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
109217         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
109218         (gl_GETDATE): Use it.
109220         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
109222 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
109224         Sync from coreutils.
109226         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
109227         stat-time.h.
109228         * lib/argmatch.h: Include verify.h
109229         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
109230         (ARGMATCH_ASSERT): Remove; unused.
109231         * lib/canonicalize.c: Assume STDC_HEADERS.
109232         * lib/exclude.c: Include "strcase.h".
109233         * lib/regex_internal.h [!defined _LIBC]: Likewise.
109234         * lib/getusershell.c: Include stdio--.h rather than stdio.h
109235         and stdio-safer.h.
109236         (getusershell): Call fopen, not fopen_safer.
109237         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
109238         Do not include unistd-safer.h.
109239         (save_cwd): Don't call fd_safer; no longer needed
109240         now that we include fcntl--.h.
109242         * lib/getdate.y (relative_time): New type.
109243         (RELATIVE_TIME_0): New constant.
109244         (parser_control): Use relative_time instead of doing it ourselves.
109245         (%union): Add new relative_time rel member.
109246         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
109247         Now typeless.
109248         (relunit, relunit_snumber): Now of type rel.
109249         (zone, rel, relunit, get_date): Adjust to above changes.
109251         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
109252         Do not include unistd-safer.h.
109253         (getloadavg): Don't call fd_safer; no longer needed
109254         now that we include fcntl--.h.
109256         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
109257         (make_dir_parents): Treat ENOSYS like EEXIST.
109259         Improve quality of diagnostics on restore_cwd failure.
109260         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
109261         (make_dir_parents): Last arg is now int * (for errno), not bool *.
109262         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
109263         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
109264         each time through the loop.  Do not diagnose restore_cwd failure;
109265         that is the caller's job (and perhaps the caller does not care).
109267         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
109268         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
109269         If the file already exists but is not a directory, don't bother
109270         to try to make its parents.
109271         Close potential file descriptor leak if we can't chdir("/") (!).
109272         Don't always return true if chdir($PWD) fails; return true only
109273         if the requested action was done successfully (except for the
109274         chdir($PWD)).
109275         Don't log final directory unless we actually made it.
109276         Refactor to avoid duplicate code to fix up permissions.
109277         Don't attempt to fix up parent permissions if chdir($PWD) fails.
109279         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
109280         to make it a bit faster and (I hope) clearer.
109281         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
109282         Fix bug in formats like %2N.
109284         * lib/verify.h: New file.
109286 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
109288         Sync from coreutils.
109289         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
109291 2005-09-22  Jim Meyering  <jim@meyering.net>
109293         Sync from coreutils.
109295         * m4/lstat.m4 (gl_FUNC_LSTAT):
109296         Use AC_LIBSOURCES to require lstat.c and lstat.h.
109297         Remove obsolete comment.
109298         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
109299         * m4/xstrtod.m4: Likewise.
109301         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
109303 2005-09-22  Jim Meyering  <jim@meyering.net>
109305         Sync from coreutils.
109307         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
109309         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
109310         the .tm_year member, since otherwise gcc-4.0 would now warn about
109311         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
109313         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
109314         order to avoid an unsuppressible warning from gcc on 64-bit systems.
109316         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
109317         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
109318         when run in a time zone for which daylight savings time is in effect
109319         for the starting date.
109321         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
109322         stop us from restricting permissions of just-created absolute-named
109323         directories.
109324         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
109325         to restore initial working directory.
109326         * lib/mkdir-p.c (make_dir_parents): New parameter:
109327         different_working_dir, to tell caller if/when we change the working
109328         directory and are unable to return to the initial one.
109329         * lib/mkdir-p.h (make_dir_parents): Update prototype.
109330         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
109331         `return false'.  This fixes a bug introduced on 2004-07-30.
109333         * lib/openat.c (fdopendir): Be sure to close the supplied
109334         file descriptor before returning.  This makes our replacement
109335         implementation a little closer to Solaris's, where fdopendir
109336         ties the file descriptor to the returned DIR* pointer.
109337         * lib/openat.c (unlinkat): New function.
109338         * lib/openat.h (unlinkat): Add prototype.
109339         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
109340         (openat_restore_fail): Rename from openat_restore_die.
109341         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
109343         Provide an alternative to exiting immediately upon save_cwd or
109344         restore_cwd failure.  Now, an application can arrange e.g.,
109345         to perform a longjump in that case.
109346         * lib/openat.c: Include dirname.h.
109347         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
109348         (rpl_openat, fdopendir, fstatat): Call openat_save_die
109349         and openat_restore_die rather than calling error directly.
109350         Don't include "error.h" or "exitfail.h"; they're no longer needed.
109352         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
109353         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
109354         define.
109356         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
109357         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
109358                             int utc, int nanoseconds);
109359         Background:
109360         date should not have to allocate a megabyte of virtual memory to
109361         handle a format argument like +%1048575T.  When implemented with
109362         strftime, it must allocate such a buffer, use strftime to fill it
109363         in, print it, then free it.
109364         With fprintftime, it simply prints everything and exits.
109365         With no need for memory allocation, that's one fewer way to fail.
109366         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
109367         optional field width, not before, so we accept %9:z, not %:9z.
109368         (my_strftime): Be sure to use L_('x') for literals.
109370         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
109371         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
109372         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
109373         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
109374         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
109375         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
109376         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
109377         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
109378         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
109379         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
109380         * lib/xgethostname.c, lib/xreadlink.c:
109381         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
109383         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
109384         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
109385         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
109386         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
109387         and don't include <sys/file.h>).
109389 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
109391         Sync from coreutils.
109393         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
109394         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
109395         [!LDAV_DONE]: Avoid unused variable warning.
109397 2005-09-21  Bruno Haible  <bruno@clisp.org>
109399         * lib/unicodeio.h (unicode_to_mb): New declaration.
109401 2005-09-20  Derek Price  <derek@ximbiot.com>
109403         * lib/getaddrinfo.c: Don't include <netdb.h> included from
109404         getaddrinfo.h.
109406 2005-09-20  Bruno Haible  <bruno@clisp.org>
109408         * gnulib-tool: Remove trailing slashes from the values specified for
109409         --source-base, --m4-base, --tests-base, --aux-dir.
109410         Suggested by Simon Josefsson <jas@extundo.com>.
109412 2005-09-20  Bruno Haible  <bruno@clisp.org>
109414         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
109415         func_modules_to_filelist, func_import, func_create_testdir): Make all
109416         sorting results locale-independent, so that gnulib-cache.m4 doesn't
109417         change when gnulib-tool is invoked in a different locale.
109419 2005-09-19  Simon Josefsson  <jas@extundo.com>
109421         * m4/socklen.m4: Fix typo.
109423 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109425         Use a consistent style for including <config.h>.
109426         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
109427         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
109428         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
109429         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
109430         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
109431         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
109432         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
109433         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
109434         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
109435         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
109436         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
109437         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
109438         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
109439         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
109440         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
109441         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
109442         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
109443         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
109444         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
109445         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
109446         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
109447         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
109448         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
109449         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
109450         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
109451         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
109452         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
109453         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
109454         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
109455         lib/xstrtoumax.c, lib/yesno.c:
109456         Standardize inclusion of config.h.
109457         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
109458         lib/inttostr.h:  Removed inclusion of config.h from header files.
109459         * lib/inttostr.c:  Adjusted in-tree users.
109460         * lib/timespec.h: Remove superfluous warning to include config.h.
109461         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
109462         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
109463         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
109464         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
109465         config.h with HAVE_CONFIG_H.
109467 2005-09-19  Jim Meyering  <jim@meyering.net>
109469         * modules/pathmax (License): Change to LGPL.
109471 2005-09-19  Derek Price  <derek@ximbiot.com>
109473         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
109475 2005-09-19  Bruno Haible  <bruno@clisp.org>
109477         * gnulib-tool (import): Provide default for --tests-base.
109479 2005-09-19  Bruno Haible  <bruno@clisp.org>
109481         * doc/quote.texi: New file, extracted from gnulib.texi.
109482         * doc/ctime.texi: New file, extracted from gnulib.texi.
109483         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
109484         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
109485         * doc/gnulib.texi: Include them.
109487 2005-09-18  Bruno Haible  <bruno@clisp.org>
109489         Portability fix.
109490         * gnulib-tool (func_readlink): New function.
109491         (func_ln_if_changed): Use it.
109493 2005-09-18  Bruno Haible  <bruno@clisp.org>
109495         * gnulib-tool: Support --with-tests also with --import.
109496         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
109497         (func_import): Use variables $testsbase and $inctests. Emit a
109498         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
109499         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
109500         SUBDIRS += $testsdir.
109501         (func_create_testdir): Update.
109503 2005-09-18  Bruno Haible  <bruno@clisp.org>
109505         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
109506         instead of $dry_run.
109507         (func_cp_if_changed, func_mv_if_changed): Remove functions.
109508         (func_ln_if_changed): Don't handle dry-run here.
109509         (func_import): In dry-run mode, detect more precisely which actions
109510         would be performed, and don't use "...ing" verbs.
109512 2005-09-18  Bruno Haible  <bruno@clisp.org>
109514         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
109515         (func_import): Use join on two temporary files instead of three nested
109516         loops, in order to determine which files are new or old.
109518 2005-09-18  Bruno Haible  <bruno@clisp.org>
109520         * gnulib-tool (func_import): Comment out code that spits out the
109521         new files with --dry-run.
109523 2005-09-18  Bruno Haible  <bruno@clisp.org>
109525         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
109527 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
109529         * lib/stat-time.h: New file.
109530         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
109531         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
109532         in a different way.
109533         (timespec_cmp): New function.
109534         * lib/utimecmp.c: Include stat-time.h.
109535         (SYSCALL_RESOLUTION): Depend on whether various struct stat
109536         members exist, not on the obsolescent ST_MTIM_NSEC.
109537         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
109539 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
109541         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
109543 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
109545         * MODULES.html.sh (File system functions): Add stat-time.
109546         * modules/stat-time: New file.
109547         * modules/timespec (Files): Remove m4/st_mtim.m4; this
109548         is now done in a different way, by the stat-time module.
109549         * modules/utimecmp (Depends-on): Add stat-time.
109551 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109553         * m4/st_mtim.m4: Remove.  Superseded by...
109554         * m4/stat-time.m4: New file.
109555         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
109556         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
109558 2005-09-15  Derek Price  <derek@ximbiot.com>
109560         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
109562 2005-09-15  Derek Price  <derek@ximbiot.com>
109564         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
109565         * lib/regex_internal.c: Ditto, using this...
109566         (__GNUC_PREREQ): ...new macro.
109567         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
109568         using...
109569         (__GNUC_PREREQ): ...this new macro.
109571         * lib/strstr.h: Include string.h. Define strstr as a macro here.
109573 2005-09-15  Derek Price  <derek@ximbiot.com>
109574             Paul Eggert  <eggert@cs.ucla.edu>
109576         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
109577         changes, consolidating in...
109578         * lib/regex_internal.h: ...this file.
109580 2005-09-13  Jim Meyering  <jim@meyering.net>
109582         * lib/canon-host.c: Filter through gnu indent and reword comments
109583         slightly.
109584         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
109586 2005-09-13  Derek Price  <derek@ximbiot.com>
109588         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
109589         failure.
109590         Reported by Jim Meyering  <jim@meyering.net>.
109592 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
109594         * lib/base64.c: Typo.
109595         (base64_encode): Put b64str in initialized data section.
109597 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
109599         Merge glibc and coreutils changes into gnulib, plus a few
109600         extra fixes.
109601         * lib/md5.c: Use #error rather than a string.
109602         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
109603         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
109604         (__attribute__): Define to empty for non recent-GCC.
109605         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
109606         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
109607         Renamed from their non-__ counterparts, with new macros replacing
109608         them if not _LIBC.  Add __THROW attribute.
109609         (rol): Remove.
109610         (struct md5_ctx): Align buffer if using GCC.
109611         * lib/sha1.h (struct sha1_ctx): Likewise.
109612         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
109613         The old name was backwards.
109614         (NOTSWAP): Remove; not used.
109615         (rol): New macro, moved here from md5.h.
109616         (sha1_process_block): Remove a FIXME that doesn't make sense.
109618 2005-09-12  Derek Price  <derek@ximbiot.com>
109620         Return usable errors from canon-host.
109621         * lib/canon-host.h: New file.
109622         * lib/canon-host.c (canon_host): Wrap...
109623         (canon_host_r): ...this new function, which now relies exclusively on
109624         getaddrinfo.
109625         (ch_strerror): New function.
109626         (last_cherror): New global.
109627         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
109628         interface.
109629         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
109630         void *.
109631         (freeaddrinfo): Free ai->ai_canonname when set.
109633 2005-09-12  Derek Price  <derek@ximbiot.com>
109635         Make canon-host require getaddrinfo.
109636         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
109637         AC_LIBSOURCE canon-host.h.  Call...
109638         (gl_PREREQ_CANON_HOST): ...this new function, which requires
109639         gl_GETADDRINFO.
109640         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
109642 2005-09-12  Derek Price  <derek@ximbiot.com>
109644         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
109645         LGPL.
109646         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
109648 2005-09-12  Derek Price  <derek@ximbiot.com>
109650         * lib/gai_strerror.c: Include config.h when available.  Include
109651         getaddrinfo.h before other headers to test interface.
109652         Reported by Larry Jones <lawrence.jones@ugs.com>.
109654 2005-09-12  Derek Price  <derek@ximbiot.com>
109655             Paul Eggert  <eggert@cs.ucla.edu>
109657         * modules/glob (Files): Add glob-libc.h.
109659 2005-09-12  Derek Price  <derek@ximbiot.com>
109660             Paul Eggert  <eggert@cs.ucla.edu>
109662         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
109663         glob_.h, glob-libc.h.
109664         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
109666 2005-09-12  Derek Price  <derek@ximbiot.com>
109667             Paul Eggert  <eggert@cs.ucla.edu>
109669         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
109670         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
109671         protecting things that should be done only in gnulib contexts.
109672         * lib/glob_.h: New file, containing only the glob things needed for
109673         gnulib.
109674         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
109675         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
109676         (glob, globfree, glob_pattern_p): Now defined simply in terms of
109677         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
109678         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
109679         and to respect the namespace rules better.
109681 2005-09-08  Simon Josefsson  <jas@extundo.com>
109683         * modules/socklen: New file.
109685 2005-09-08  Simon Josefsson  <jas@extundo.com>
109687         * m4/socklen.m4: New file.
109689 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109691         * modules/utimens (Files): Add m4/utimbuf.m4, since
109692         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
109693         Reported by Sergey Poznyakoff.
109695 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109697         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
109698         definitions, since that's the preferred style in glibc.
109699         Fix a minor spacing issue, and update copyright notice to match
109700         glibc's.
109702 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109704         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
109706 2005-09-06  Simon Josefsson  <jas@extundo.com>
109708         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
109709         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
109711 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
109713         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
109714         warning.
109716 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
109718         * config/srclist.txt: Add glibc bug 1302.
109720 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
109722         Change bitset word type from unsigned int to unsigned long int,
109723         as this has better performance on typical 64-bit hosts.
109724         Port bitset code to hosts with unusual word sizes.
109725         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
109726         (build_collating_symbol):
109727         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
109728         argument is a bitset.  This is merely a style issue, but it makes
109729         it clearer that an entire array is expected.
109730         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
109731         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
109732         Port to the case where bitset_word is not the same as unsigned int.
109733         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
109734         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
109735         Likewise.
109736         * lib/regexec.c (check_dst_limits_calc_pos_1,
109737         check_subexp_matching_top):
109738         (build_trtable, group_nodes_into_DFAstates):
109739         Likewise.
109740         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
109741         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
109742         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
109743         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
109744         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
109745         * lib/regcomp.c (optimize_subexps, lower_subexp):
109746         Work even if bitset_word has holes in its bitwise representation.
109747         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
109748         * lib/regexec.c (check_dst_limits_calc_pos_1,
109749         check_subexp_matching_top):
109750         Likewise.
109751         * lib/regex_internal.c (re_string_reconstruct):
109752         Don't assume UCHAR_MAX == 255.
109753         * lib/regex_internal.h (bitset_set_all): Likewise.
109754         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
109755         All uses changed.
109756         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
109757         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
109758         All uses changed.
109759         (BITSET_WORD_MAX): New macro.
109760         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
109761         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
109762         (bitset_empty, bitset_copy):
109763         Prefer sizeof (bitset) to multiplying it out ourselves.
109764         (bitset_not_merge): Remove; unused.
109765         (bitset_contain): Return bool, not unsigned int with one bit on.
109766         All callers changed.
109767         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
109768         alignment than re_node_set; do this by defining a new internal
109769         type struct dests_alloc and using it to allocate memory.
109771 2005-09-05  Bruno Haible  <bruno@clisp.org>
109773         * gnulib-tool (func_import): Fix comparison in handling of symbolic
109774         links.
109776 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
109778         * modules/size_max (Makefile.am): Add size_max.h
109780 2005-09-04  Derek Price  <derek@ximbiot.com>
109782         * gnulib-tool (func_import): Fix reversed $symbolic logic.
109784 2005-09-03  Simon Josefsson  <jas@extundo.com>
109786         * gnulib-tool: Fix typo.
109788 2005-09-03  Simon Josefsson  <jas@extundo.com>
109790         * config/srclist.txt: Add glibc bug 1293.
109792 2005-09-03  Derek Price  <derek@ximbiot.com>
109794         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
109795         From Larry Jones <lawrence.jones@ugs.com>.
109797 2005-09-02  Simon Josefsson  <jas@extundo.com>
109799         * modules/socklen: New file.
109801 2005-09-02  Simon Josefsson  <jas@extundo.com>
109803         * modules/havelib: New module.
109805         * modules/gettext, modules/iconv, modules/lock, modules/readline:
109806         Use havelib.
109808 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
109810         Check for arithmetic overflow when calculating sizes, to prevent
109811         some buffer-overflow issues.  These patches are conservative, in the
109812         sense that when I couldn't determine whether an overflow was possible,
109813         I inserted a run-time check.
109814         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
109815         macros.
109816         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
109817         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
109818         (re_xnrealloc, re_x2nrealloc): New inline functions.
109819         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
109820         parse_bracket_exp):
109821         (build_equiv_class, build_charclass): Check for arithmetic overflow
109822         in size expression calculations.
109823         * lib/regex_internal.c (re_string_realloc_buffers):
109824         (build_wcs_upper_buffer, re_node_set_add_intersect):
109825         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
109826         (re_dfa_add_node, register_state): Likewise.
109827         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
109828         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
109829         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
109830         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
109832 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
109834         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
109835         m4/ulonglong.m4.  Problem reported by Martin Lambers.
109837 2005-09-02  Bruno Haible  <bruno@clisp.org>
109839         Support for lib vs. lib64 distinction on biarch platforms.
109840         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
109841         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
109842         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
109844 2005-09-02  Bruno Haible  <bruno@clisp.org>
109846         * gnulib-tool (import): In the other first-use case, provide defaults
109847         as well.
109849 2005-09-02  Bruno Haible  <bruno@clisp.org>
109851         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
109852         patches not yet found in the latest gettext release.
109854 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109856         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
109857         to avoid a collision with bits/local_lim.h in glibc.
109858         All uses changed.  Problem reported by Dmitry V. Levin in
109859         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
109861         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
109862         bugs in int versus size_t comparisons.
109863         (re_string_context_at): Fix bug where the code assumed that
109864         Idx is signed.
109866         Use bool where appropriate.
109867         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
109868         All callers changed.
109869         (calc_eclosure_iter): Likewise, for ROOT arg.
109870         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
109871         (build_charclass_op): Likewise, for NON_MATCH arg.
109872         * lib/regex_internal.c (re_string_allocate, re_string_construct):
109873         (re_string_construct_common): Likewise, for ICASE arg.
109874         * lib/regexec.c (re_search_2_stub, re_search_stub):
109875         Likewise, for RET_LEN arg.
109876         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
109877         (set_regs): Likewise, for FL_BACKTRACK arg.
109878         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
109879         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
109880         (calc_eclosure_iter, parse_bracket_exp):
109881         Use bool for internal variables that are booleans.
109882         * lib/regexec.c (re_search_internal, check_matching,
109883         proceed_next_node):
109884         (set_regs, build_sifted_states, sift_states_bkref):
109885         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
109886         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
109887         (find_collation_sequence_value):
109888         Likewise.
109889         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
109890         (re_node_set_compare):
109891         Return bool, not int. All callers changed.
109892         * lib/regexec.c (check_halt_node_context, check_dst_limits):
109893         (build_trtable, check_node_accept): Likewise.
109894         * lib/regex_internal.h: Include stdbool.h.
109896         Fix bugs uncovered when converting to bool.
109897         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
109898         failure instead of charging ahead blindly.
109899         * lib/regex_internal.c (register_state): Likewise.
109900         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
109901         for freeing internal storage.
109902         (group_nodes_into_DFA_states): Use unsigned int, not int, for
109903         bitset pieces used as boolean, to avoid undefined behavior
109904         on hosts that do int overflow checking.
109906 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109908         * config/srclist.txt: Add glibc bugs 1285-1287.
109910 2005-09-01  Jim Meyering  <jim@meyering.net>
109912         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
109913         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
109914         Require gl_STAT_MACROS, too.
109916 2005-09-01  Bruno Haible  <bruno@clisp.org>
109918         * gnulib-tool (import): In the first-use case, provide defaults.
109920 2005-09-01  Bruno Haible  <bruno@clisp.org>
109922         * gnulib-tool (func_import): Remove the .tmp files.
109924 2005-09-01  Bruno Haible  <bruno@clisp.org>
109926         * gnulib-tool (func_import): Fix handling of symbolic links.
109928 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109930         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
109931         old glibc regex code mishandles strings longer than 2**31 bytes.
109932         This patch fixes this when the regex code is used in gnulib
109933         (i.e., outside glibc).
109935         This patch should not affect the use of the regex code inside
109936         glibc.  No doubt this problem also needs to be handled for glibc
109937         as well, but the result will be an incompatible change to the
109938         glibc ABI, and the old ABI will have to be supported too.  That
109939         can be the subject for another patch.
109941         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
109942         governing whether the rest of this patch is active.  By default,
109943         the macro is disabled and the patch has no effect.
109944         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
109945         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
109946         (struct re_pattern_buffer, re_search, re_search_2, re_match):
109947         (re_match_2, re_set_registers): Use the new types.
109948         * lib/regex_internal.h (Idx, re_hashval_t): New types.
109949         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
109950         New macros.
109951         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
109952         (re_string_context_at, bin_tree_t, re_dfastate_t):
109953         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
109954         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
109955         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
109956         (re_string_char_size_at, re_string_wchar_at):
109957         (re_string_elem_size_at):
109958         Use the new types and macros to port to 64-bit hosts.
109959         Use unsigned types for internal values, so that the code
109960         mostly works even for arrays larger than SSIZE_MAX.
109961         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
109962         (search_duplicated_node, calc_eclosure_iter, fetch_number):
109963         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
109964         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
109965         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
109966         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
109967         (calc_inveclosure, parse_dup_op, build_range_exp):
109968         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
109969         (fetch_number, create_token_tree, mark_opt_subexp):
109970         Likewise.
109971         * lib/regex_internal.c (re_string_construct_common,
109972         create_ci_newstate):
109973         (create_cd_newstate, re_string_allocate, re_string_construct):
109974         (re_string_realloc_buffers, build_wcs_upper_buffer):
109975         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
109976         (re_string_reconstruct, re_string_peek_byte_case):
109977         (re_string_fetch_byte_case, re_string_context_at):
109978         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
109979         (re_node_set_init_copy, re_node_set_add_intersect):
109980         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
109981         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
109982         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
109983         (re_acquire_state, re_acquire_state_context, register_state):
109984         Likewise.
109985         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
109986         search_cur_bkref_entry):
109987         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
109988         (re_search_internal, re_search_2_stub, re_search_stub)
109989         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
109990         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
109991         (update_cur_sifted_state, check_dst_limits):
109992         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
109993         (check_subexp_limits, sift_states_bkref, merge_state_array):
109994         (check_subexp_matching_top, get_subexp, get_subexp_sub):
109995         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
109996         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
109997         (expand_bkref_cache, check_node_accept_bytes):
109998         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
109999         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
110000         (acquire_init_state_context, check_halt_node_context):
110001         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
110002         (sift_states_backward, clean_state_log_if_needed):
110003         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
110004         (find_recover_state, transit_state_sb, transit_state_mb):
110005         (transit_state_bkref, build_trtable, match_ctx_clean):
110006         Likewise.
110007         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
110008         to work around an assumption that REG_MISSING is negative.
110010         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
110011         (seek_collating_symbol_entry) [defined _LIBC]:
110012         (lookup_collation_sequence_value) [defined _LIBC]:
110013         (build_range_exp, build_collating_symbol) [defined _LIBC]:
110014         Use prototypes rather than old-style function definitions.
110015         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
110016         (transit_state_sb) [0]:
110017         (find_collation_sequence_value) [defined _LIBC]: Likewise.
110019         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
110020         rm_eo.
110022         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
110023         (optimize_subexps, lower_subexp):
110024         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
110025         since the signed shift might overflow.  Use 1u<<31 instead.
110026         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
110027         Likewise.
110028         * lib/regexec.c (check_dst_limits_calc_pos_1,
110029         check_subexp_matching_top): Likewise.
110031         * lib/regcomp.c (optimize_subexps, lower_subexp):
110032         Use CHAR_BIT rather than 8, for clarity.
110033         * lib/regexec.c (check_dst_limits_calc_pos_1):
110034         (check_subexp_matching_top): Likewise.
110035         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
110036         have to worry about portability issues when shifting it left.
110037         Remove no-longer-needed test for table_size > 0.
110038         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
110039         in a word, as the resulting behavior is undefined.
110040         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
110041         in one case, a <= should have been an <, and in another case the
110042         whole test was missing.
110043         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
110044         the standard name CHAR_BIT.
110045         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
110046         this is not true on one's complement and signed-magnitude hosts.
110048         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
110049         next_last_offset.
110050         (struct re_dfa_t): Remove unused member states_alloc.
110051         * lib/regcomp.c (init_dfa): Don't initialize unused members.
110053 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110055         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
110056         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
110057         and large-file glibc and in 32-bit large-file Solaris.
110059 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110061         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
110062         lengths fit in regoff_t; this isn't true if regoff_t is the same
110063         width as size_t.
110064         * lib/regex.c (re_search_internal): 5th arg is LAST_START
110065         (= START + RANGE) instead of RANGE.  This avoids overflow
110066         problems when regoff_t is the same width as size_t.
110067         All callers changed.
110068         (re_search_2_stub): Check for overflow when adding the
110069         sizes of the two strings.
110070         (re_search_stub): Check for overflow when adding START
110071         to RANGE; if it occurs, substitute the extreme value.
110073 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110075         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
110077 2005-08-31  Jim Meyering  <jim@meyering.net>
110079         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
110080         a pointer-to-const.
110081         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
110082         (register_state): Likewise.
110083         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
110084         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
110085         (group_nodes_into_DFAstates): Likewise.
110087 2005-08-31  Jim Meyering  <jim@meyering.net>
110089         * check-module: Add a FIXME comment.
110091 2005-08-31  Eric Blake  <ebb9@byu.net>
110093         * modules/unistd-safer (Files): Add unistd--.h.
110094         * modules/stdio-safer (Files): Add stdio--.h.
110096 2005-08-31  Derek Price  <derek@ximbiot.com>
110098         * lib/getdelim.c (getdelim): Return EOF on EOF.
110099         Reported by Larry Jones <lawrence.jones@ugs.com>.
110101 2005-08-31  Bruno Haible  <bruno@clisp.org>
110103         Avoid unnecessary diffs in the generated lib/Makefile.am.
110104         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
110105         the generated files.
110106         (func_import): Don't set cmd.
110108 2005-08-31  Bruno Haible  <bruno@clisp.org>
110110         * lib/strstr.c: Include <stddef.h>, for NULL.
110111         * lib/strcasestr.c: Likewise.
110112         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
110114 2005-08-31  Bruno Haible  <bruno@clisp.org>
110116         * gnulib-tool: New option --macro-prefix.
110117         (func_import): Use macro_prefix.
110118         (import): Handle option --macro-prefix.
110120 2005-08-31  Bruno Haible  <bruno@clisp.org>
110122         * gnulib-tool (import): Rename most ac_* variables to cached_*.
110123         Also use new variables cached_lgpl, cached_libtool.
110125 2005-08-31  Bruno Haible  <bruno@clisp.org>
110127         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
110128         always instantiating them.
110130 2005-08-31  Bruno Haible  <bruno@clisp.org>
110132         * gnulib-tool (func_import): Read the previous cached settings
110133         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
110134         earlier added by gnulib but are now dropped. Warn when a gnulib file
110135         overwrites a non-gnulib file.
110137 2005-08-31  Bruno Haible  <bruno@clisp.org>
110139         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
110140         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
110141         projects that don't keep autogenerated files in CVS. Put into
110142         actioncmd only the specified modules, not the transitive closure.
110144 2005-08-31  Bruno Haible  <bruno@clisp.org>
110146         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
110147         Create directories that shall be filled.
110148         (import): Don't look for gl_* macros in configure.ac. Recurse across
110149         all directories containing a gnulib-cache.m4 files, if meaningful.
110151 2005-08-31  Bruno Haible  <bruno@clisp.org>
110153         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
110154         (import): Set seen_libtool when we see gl_LIBTOOL.
110156 2005-08-31  Bruno Haible  <bruno@clisp.org>
110158         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
110159         declaration macro definitions from generated gnulib.m4.
110161 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
110163         * lib/iconvme.h: Add prototype for iconv_alloc.
110165 2005-08-29  Simon Josefsson  <jas@extundo.com>
110167         * lib/iconvme.c: Fix errno.
110169 2005-08-29  Bruno Haible  <bruno@clisp.org>
110171         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
110172         that it works when the directory contains spaces.
110174 2005-08-29  Bruno Haible  <bruno@clisp.org>
110176         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
110178 2005-08-29  Bruno Haible  <bruno@clisp.org>
110180         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
110181         Emit more advice.
110183 2005-08-29  Bruno Haible  <bruno@clisp.org>
110184         and Stepan Kasal  <kasal@ucw.cz>
110186         * check-module: If more parameters are given, check each of them
110187         separately; add more exceptions, as noted by Jim Meyering.
110188         (check_module): New procedure.
110189         (%exempt_header): Now contains all exceptions.
110191 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
110193         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
110195 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
110197         * lib/iconvme.c: Split iconv_string into iconv_alloc.
110199 2005-08-28  Bruno Haible  <bruno@clisp.org>
110201         * m4/gnulib-tool.m4: New file.
110203 2005-08-27  Jim Meyering  <jim@meyering.net>
110205         * modules/unistd-safer (Files): Add pipe-safer.c.
110206         * modules/fcntl-safer (Files): Add creat-safer.c.
110208 2005-08-27  Jim Meyering  <jim@meyering.net>
110210         * m4/stdlib-safer.m4: New file.  From coreutils.
110211         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
110212         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
110213         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
110214         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
110215         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
110217 2005-08-27  Jim Meyering  <jim@meyering.net>
110219         * lib/fopen-safer.c: Merge minor changes from coreutils.
110220         * lib/dup-safer.c: Likewise.
110221         * lib/fd-safer.c: Likewise.
110223         Merge from coreutils.
110224         * lib/stdio--.h: New file.
110225         * lib/stdlib--.h: New file.
110226         * lib/mkstemp-safer.c: New file.
110228         GNU tar needs these.
110229         * lib/pipe-safer.c: New file.
110230         * lib/creat-safer.c: New file.
110231         * lib/fcntl--.h (creat): Define to creat_safer.
110232         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
110233         * lib/unistd--.h (pipe): Define to pipe_safer.
110234         * lib/unistd-safer.h: Declare pipe_safer.
110236 2005-08-26  Simon Josefsson  <jas@extundo.com>
110238         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
110239         Haible <bruno@clisp.org>.
110241 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
110243         * lib/regex_internal.h: Remove all references to
110244         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
110245         or better.
110246         (bitset_not, bitset_merge, bitset_not_merge):
110247         (bitset_mask, re_string_allocate, re_string_construct):
110248         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
110249         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
110250         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
110251         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
110252         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
110253         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
110254         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
110255         (re_acquire_state_context):
110256         Remove unnecessary forward decls.
110257         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
110258         Put __attribute at function definition,
110259         now that the function decl has been removed.
110260         * lib/regex_internal.c (re_string_peek_byte_case):
110261         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
110262         Likewise.
110264 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
110266         * m4/regex.m4: Add AC_PREREQ(2.50).
110267         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
110269 2005-08-25  Simon Josefsson  <jas@extundo.com>
110271         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
110272         __fsetlocking.
110274 2005-08-25  Simon Josefsson  <jas@extundo.com>
110276         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
110277         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
110278         GLIBC specific code.
110280 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110282         Make regex safe for g++.  This fixes one real bug (an "err"
110283         that should have been "*err").  g++ problem reported by
110284         Sam Steingold.
110285         * lib/regex_internal.h (re_calloc): New macro, consistent with
110286         re_malloc etc.  All callers of calloc changed to use re_calloc.
110287         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
110288         not int.  All callers changed.
110289         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
110290         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
110291         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
110292         (find_recover_state): Change "err" to "*err"; this fixes what
110293         appears to be a real bug.
110294         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
110295         versus int.
110297 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110299         * modules/regex (Depends-on): Add malloc, since the code
110300         assumes that !malloc(0) means failure.
110302 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110304         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
110306         alloca modernization/simplification for regex.
110307         * lib/regex.c: Remove portability cruft for alloca.  This no longer
110308         needs to be at the start of the file, and can be moved into
110309         regex_internal.h and simplified.
110310         * lib/regex_internal.h: Include <alloca.h>.
110311         (__libc_use_alloca) [!defined _LIBC]: New macro.
110312         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
110313         now works outside glibc.
110315 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110317         * config/srclist.txt: Add glibc bugs 1241, 1245.
110319 2005-08-25  Jim Meyering  <jim@meyering.net>
110321         * lib/open-safer.c: Include <config.h>.
110322         Otherwise, we'd lose LARGEFILE support in any file using
110323         e.g. "fcntl--.h"
110325 2005-08-25  Bruno Haible  <bruno@clisp.org>
110327         * m4/minmax.m4: Require autoconf 2.52.
110328         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
110329         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
110330         alternatives of translit over the alphabet.
110331         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
110333 2005-08-24  Simon Josefsson  <jas@extundo.com>
110335         * tests/test-getpass.c: New file.
110337 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110339         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
110340         for GNU regex features.
110342 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110344         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
110345         * lib/regex.h (regerror): Likewise.
110347         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
110348         requires this.  (The code never needed it.)
110350         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
110351         All uses of recently-renamed identifiers changed to use the new,
110352         POSIX-compliant names.  The code will build and run just fine
110353         without these changes, but it's better to eat our own dog food
110354         and use the standard-conforming names.
110356         * lib/regex.h: Fix a multitude of POSIX name space violations.
110357         These changes have an effect only for programs that define
110358         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
110359         do not change anything for programs compiled in the normal way.
110360         Also, there is no effect on the ABI.
110362         (_REGEX_SOURCE): New macro.
110363         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
110364         defined and _GNU_SOURCE is not; this fixes a name space violation.
110366         Rename the following macros to obey POSIX requirements.
110367         The old names are still visible as macros if _REGEX_SOURCE is defined.
110368         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
110369         RE_BACKSLASH_ESCAPE_IN_LISTS.
110370         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
110371         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
110372         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
110373         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
110374         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
110375         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
110376         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
110377         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
110378         (REG_INTERVALS): renamed from RE_INTERVALS.
110379         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
110380         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
110381         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
110382         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
110383         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
110384         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
110385         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
110386         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
110387         RE_UNMATCHED_RIGHT_PAREN_ORD.
110388         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
110389         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
110390         (REG_DEBUG): renamed from RE_DEBUG.
110391         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
110392         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
110393         unusual, since we can't clash with the POSIX REG_ICASE.
110394         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
110395         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
110396         (REG_NO_SUB): renamed from RE_NO_SUB.
110397         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
110398         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
110399         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
110400         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
110401         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
110402         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
110403         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
110404         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
110405         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
110406         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
110407         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
110408         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
110409         RE_SYNTAX_POSIX_MINIMAL_BASIC.
110410         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
110411         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
110412         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
110413         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
110414         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
110415         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
110416         (REG_FIXED): Renamed from REGS_FIXED.
110417         (REG_NREGS): Renamed from RE_NREGS.
110419         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
110420         of other REG_* macros, since POSIX says the user is allowed to
110421         #undef these macros selectively.
110423         (reg_errcode_t): Update comment stating what other tables need
110424         to be consistent.
110426         Rename the following enum values to obey POSIX requirements.
110427         The old names are still visible as macros.
110428         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
110429         is not defined, since GNU is supposed to be a superset of POSIX as
110430         much as possible, and since we want reg_errcode_t to be a signed
110431         type for implementation consistency.
110432         (_REG_NOERROR): Renamed from REG_NOERROR.
110433         (_REG_NOMATCH): Renamed from REG_NOMATCH.
110434         (_REG_BADPAT): Renamed from REG_BADPAT.
110435         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
110436         (_REG_ECTYPE): Renamed from REG_ECTYPE.
110437         (_REG_EESCAPE): Renamed from REG_EESCAPE.
110438         (_REG_ESUBREG): Renamed from REG_ESUBREG.
110439         (_REG_EBRACK): Renamed from REG_EBRACK.
110440         (_REG_EPAREN): Renamed from REG_EPAREN.
110441         (_REG_EBRACE): Renamed from REG_EBRACE.
110442         (_REG_BADBR): Renamed from REG_BADBR.
110443         (_REG_ERANGE): Renamed from REG_ERANGE.
110444         (_REG_ESPACE): Renamed from REG_ESPACE.
110445         (_REG_BADRPT): Renamed from REG_BADRPT.
110446         (_REG_EEND): Renamed from REG_EEND.
110447         (_REG_ESIZE): Renamed from REG_ESIZE.
110448         (_REG_ERPAREN): Renamed from REG_ERPAREN.
110449         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
110450         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
110451         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
110452         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
110454         (_REG_RE_NAME, _REG_RM_NAME): New macros.
110455         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
110456         changed.  But support the old name if the new one is not defined
110457         and if _REGEX_SOURCE.
110459         Change the following member names in struct re_pattern_buffer.
110460         The old names are still supported if !_REGEX_SOURCE.
110461         The new names are always supported, regardless of _REGEX_SOURCE.
110462         (re_buffer): Renamed from buffer.
110463         (re_allocated): Renamed from allocated.
110464         (re_used): Renamed from used.
110465         (re_syntax): Renamed from syntax.
110466         (re_fastmap): Renamed from fastmap.
110467         (re_translate): Renamed from translate.
110468         (re_can_be_null): Renamed from can_be_null.
110469         (re_regs_allocated): Renamed from regs_allocated.
110470         (re_fastmap_accurate): Renamed from fastmap_accurate.
110471         (re_no_sub): Renamed from no_sub.
110472         (re_not_bol): Renamed from not_bol.
110473         (re_not_eol): Renamed from not_eol.
110474         (re_newline_anchor): Renamed from newline_anchor.
110476         Change the following member names in struct re_registers.
110477         The old names are still supported if !_REGEX_SOURCE.
110478         The new names are always supported, regardless of _REGEX_SOURCE.
110479         (rm_num_regs): Renamed from num_regs.
110480         (rm_start): Renamed from start.
110481         (rm_end): Renamed from end.
110483         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
110484         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
110485         Prepend __ to parameter names.
110487         Undo yesterday's changes.
110489 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110491         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
110492         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
110493         lib/regex.c.
110495 2005-08-24  Jim Meyering  <jim@meyering.net>
110497         Sync from coreutils.
110498         * m4/fcntl-safer.m4: New file.
110500         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
110501         and object files for this module.
110503 2005-08-24  Jim Meyering  <jim@meyering.net>
110505         Sync from coreutils.
110506         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
110508 2005-08-24  Jim Meyering  <jim@meyering.net>
110510         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
110511         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
110513 2005-08-24  Jim Meyering  <jim@meyering.net>
110515         * modules/fcntl-safer: New module.
110516         * modules/fts (Depends-on): Add fcntl-safer.
110517         * MODULES.html.sh (File descriptor based Input/Output):
110518         Add fcntl-safer.
110520 2005-08-24  Bruno Haible  <bruno@clisp.org>
110522         Support for unit test modules.
110523         * modules/README: Mention tests modules.
110524         * modules/TEMPLATE-TESTS: New file.
110525         * gnulib-tool: New options --extract-tests-module, --with-tests and
110526         --tests-base (unused for the moment).
110527         (testsbase, inctests): New variables.
110528         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
110529         (func_verify_module): Exclude TEMPLATE-TESTS.
110530         (func_verify_nontests_module, func_verify_tests_module): New functions.
110531         (func_get_dependencies): Add implicit dependency for tests modules.
110532         (func_get_tests_module): New function.
110533         (func_modules_transitive_closure): When --with-tests was specified,
110534         include the unit tests as well, unless explicitly avoided.
110535         (func_emit_lib_Makefile_am): Ignore the tests modules here.
110536         (func_emit_tests_Makefile_am): New function.
110537         (func_create_testdir): When --with-tests was specified, emit a
110538         tests/ directory.
110539         * MODULES.html.sh (Future developments): Update.
110541 2005-08-24  Bruno Haible  <bruno@clisp.org>
110543         * modules/tls-tests: New file.
110544         * tests/test-tls.c: New file, from GNU gettext.
110546 2005-08-24  Bruno Haible  <bruno@clisp.org>
110548         * modules/lock-tests: New file.
110549         * tests/test-lock.c: New file, from GNU gettext.
110551 2005-08-24  Bruno Haible  <bruno@clisp.org>
110553         * lib/lock.h: Add multiple inclusion guard.
110554         * lib/tls.h: Add multiple inclusion guard.
110556 2005-08-24  Bruno Haible  <bruno@clisp.org>
110558         * gnulib-tool: Add support for the --aux-dir option to
110559         --create-testdir, --create-megatestdir, --test, --megatest.
110560         (func_create_testdir, func_create_megatestdir): Optionally emit a
110561         AC_CONFIG_AUX_DIR directive.
110562         (create-testdir, create-megatestdir, test, megatest): Provide a
110563         default value for $auxdir.
110565 2005-08-24  Bruno Haible  <bruno@clisp.org>
110567         * gnulib-tool (import): Use compound statement instead of subshell
110568         where possible.
110570 2005-08-24  Bruno Haible  <bruno@clisp.org>
110572         * gnulib-tool (import): Change --aux-dir default to "build-aux".
110574 2005-08-24  Bruno Haible  <bruno@clisp.org>
110576         * gnulib-tool (func_version): Update.
110578 2005-08-24  Bruno Haible  <bruno@clisp.org>
110580         * gnulib-tool (func_import, func_create_testdir,
110581         func_create_megatestdir): Quote all autoconf macro arguments.
110583 2005-08-24  Bruno Haible  <bruno@clisp.org>
110585         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
110586         option --force, because --force causes the aclocal.m4 of each
110587         subdirectory to be newer than the corresponding config.h.in.
110589 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
110591         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
110592         All contents moved to gl_REGEX.
110593         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
110594         assume that it does.
110596 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
110598         * lib/regex.h (REG_NOSYS)
110599         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
110600         Define, since POSIX requires it as of 2001.
110601         (_REG_ENOSYS)
110602         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
110603         New private symbol, used to keep the enum signed in all cases.
110604         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
110605         Youngman in
110606         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
110608         * lib/regex_internal.c (re_string_skip_chars, register_state):
110609         (calc_state_hash):
110610         Remove forward decls; no longer needed now that we use prototypes.
110611         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
110612         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
110613         (clean_state_log_if_needed): Likewise.
110615 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
110617         * config/srclist.txt: Add glibc bugs 1231-1233.
110619 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110621         Fix problems reported by Sam Steingold in
110622         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
110623         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
110624         assumed that reg_errcode_t is a signed type, which is not
110625         necessarily true if _XOPEN_SOURCE is not defined.
110626         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
110627         since some compilers warn about it otherwise.
110629 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110631         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
110632         (init_word_char, create_initial_state, duplicate_node_closure):
110633         (fetch_token, peek_token_bracket, build_range_exp):
110634         (build_collating_symbol): Remove forward decls; no longer needed
110635         now that we use prototypes.
110637         * lib/regcomp.c:
110638         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
110639         (re_compile_fastmap_iter, regcomp, regerror, regfree):
110640         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
110641         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
110642         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
110643         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
110644         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
110645         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
110646         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
110647         (build_range_exp, build_collating_symbol, parse_bracket_exp):
110648         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
110649         (build_charclass, build_charclass_op, fetch_number, create_tree):
110650         (create_token_tree, mark_opt_subexp, duplicate_tree):
110651         Use prototypes rather than old-style definitions.
110653         * lib/regex_internal.c:
110654         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
110655         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
110656         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
110657         (re_string_reconstruct, re_string_peek_byte_case):
110658         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
110659         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
110660         (re_node_set_init_copy, re_node_set_add_intersect):
110661         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
110662         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
110663         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
110664         (re_acquire_state, re_acquire_state_context, register_state):
110665         (create_ci_newstate, create_cd_newstate, free_state):
110666         Likewise.
110667         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
110668         re_search_2):
110669         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
110670         (re_search_internal, prune_impossible_nodes):
110671         (acquire_init_state_context, check_matching, static):
110672         (check_halt_node_context, check_halt_state_context, proceed_next_node):
110673         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
110674         (update_regs, sift_states_backward, build_sifted_states):
110675         (clean_state_log_if_needed, merge_state_array):
110676         (update_cur_sifted_state, add_epsilon_src_nodes):
110677         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
110678         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
110679         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
110680         (find_recover_state, check_subexp_matching_top, transit_state_mb):
110681         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
110682         (check_arrival, check_arrival_add_next_nodes):
110683         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
110684         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
110685         (check_node_accept_bytes, check_node_accept, extend_buffers):
110686         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
110687         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
110688         (sift_ctx_init):
110689         Likewise.
110691         * lib/regex_internal.h:
110692         (re_string_allocate, re_string_construct, re_string_reconstruct):
110693         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
110694         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
110695         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
110696         (re_string_context_at, re_string_peek_byte_case):
110697         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
110698         is defined, since we now use prototypes always.
110700         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
110701         C89 or better.  All uses removed.
110703 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110705         * config/srclist.txt: Add glibc bugs 1220-1227.
110707 2005-08-20  Jim Meyering  <jim@meyering.net>
110709         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
110710         of unused local, dfa.
110712 2005-08-20  Bruno Haible  <bruno@clisp.org>
110714         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
110716 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110718         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
110719         (re_node_set_insert_last, re_dfa_add_node):
110720         Rename local variables to avoid GCC shadowing warnings.
110722 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110724         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
110725         [defined lint]: Suppress bogus uninitialized-variable warnings.
110727         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
110728         and let the caller return REG_ESPACE if out of space.  This
110729         removes an uninitialied-variable warning with GCC 4.0.1, and also
110730         avoids taking the address of a local variable.  All callers
110731         changed.
110733 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110735         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
110736         $LIBCSRC/posix/regexec.c.
110737         Add glibc bug 1217 for regcomp.c.
110739 2005-08-19  Jim Meyering  <jim@meyering.net>
110741         * lib/regexec.c (proceed_next_node): Redo local variables to
110742         avoid GCC shadowing warnings.
110744 2005-08-18  Bruno Haible  <bruno@clisp.org>
110746         * lib/strstr.c (strstr): Fix return value in multibyte case.
110747         * lib/strcasestr.c (strcasestr): Likewise.
110749 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110751         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
110753 2005-08-17  Jim Meyering  <jim@meyering.net>
110755         Make the %s format (seconds since the epoch) work for a negative
110756         number and when used with a zero-padded field width, e.g. %015s.
110758         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
110759         label so that it precedes the code to set `digits'.  Otherwise,
110760         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
110761         print `00-22'.  Now, it prints `-0022', as it should.
110763 2005-08-17  Bruno Haible  <bruno@clisp.org>
110765         * modules/strstr (Files): Add m4/mbrtowc.m4.
110766         (Depends-on): Add mbuiter.
110768 2005-08-17  Bruno Haible  <bruno@clisp.org>
110770         * modules/strcasestr: New file.
110771         * MODULES.html.sh (String handling, based on ANSI C 89): Add
110772         strcasestr.
110774 2005-08-17  Bruno Haible  <bruno@clisp.org>
110776         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
110778 2005-08-17  Bruno Haible  <bruno@clisp.org>
110780         * modules/mbuiter: New file.
110781         * MODULES.html.sh (Extended multibyte and wide character utilities):
110782         Add mbuiter.
110784 2005-08-17  Bruno Haible  <bruno@clisp.org>
110786         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
110787         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
110789 2005-08-17  Bruno Haible  <bruno@clisp.org>
110791         * m4/strcasestr.m4: New file.
110793 2005-08-17  Bruno Haible  <bruno@clisp.org>
110795         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
110796         * lib/strstr.c: Completely rewritten, with multibyte locale support.
110798 2005-08-17  Bruno Haible  <bruno@clisp.org>
110800         * lib/strcasestr.h: New file.
110801         * lib/strcasestr.c: New file.
110803 2005-08-17  Bruno Haible  <bruno@clisp.org>
110805         * lib/strcasecmp.c: Use mbuiter.h.
110807 2005-08-17  Bruno Haible  <bruno@clisp.org>
110809         * lib/mbuiter.h: New file.
110811 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
110813         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
110814         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
110815         and gl_GETOPT are both invoked via different paths (as happens
110816         with GNU tar CVS because it uses both argp and getopt), the former
110817         wins.
110819 2005-08-16  Bruno Haible  <bruno@clisp.org>
110821         * modules/tls: New file.
110822         * MODULES.html.sh (Multithreading): Add tls.
110824 2005-08-16  Bruno Haible  <bruno@clisp.org>
110826         * modules/strnlen1: New file.
110827         * MODULES.html.sh (String handling): Add strnlen1.
110829 2005-08-16  Bruno Haible  <bruno@clisp.org>
110831         * modules/strcase (Files): Add m4/mbrtowc.m4.
110832         (Depends-on): Add strnlen1, mbchar.
110834 2005-08-16  Bruno Haible  <bruno@clisp.org>
110836         * modules/mbiter: New file.
110837         * MODULES.html.sh (Extended multibyte and wide character utilities):
110838         Add mbiter.
110840 2005-08-16  Bruno Haible  <bruno@clisp.org>
110842         * modules/mbfile: New file.
110843         * MODULES.html.sh (Extended multibyte and wide character utilities):
110844         Add mbfile.
110846 2005-08-16  Bruno Haible  <bruno@clisp.org>
110848         * modules/mbchar: New file.
110849         * MODULES.html.sh (Extended multibyte and wide character utilities):
110850         New section.
110852 2005-08-16  Bruno Haible  <bruno@clisp.org>
110854         * m4/tls.m4: New file, from GNU gettext.
110856 2005-08-16  Bruno Haible  <bruno@clisp.org>
110858         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
110859         always.
110860         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
110862 2005-08-16  Bruno Haible  <bruno@clisp.org>
110864         * m4/mbiter.m4: New file.
110866 2005-08-16  Bruno Haible  <bruno@clisp.org>
110868         * m4/mbfile.m4: New file.
110870 2005-08-16  Bruno Haible  <bruno@clisp.org>
110872         * m4/mbchar.m4: New file.
110874 2005-08-16  Bruno Haible  <bruno@clisp.org>
110876         * lib/tls.h: New file, from GNU gettext.
110877         * lib/tls.c: New file, from GNU gettext.
110879 2005-08-16  Bruno Haible  <bruno@clisp.org>
110881         * lib/strnlen1.h: New file.
110882         * lib/strnlen1.c: New file.
110884 2005-08-16  Bruno Haible  <bruno@clisp.org>
110886         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
110887         (mbi_init): Update.
110888         (mbi_avail, mbi_advance): Let the iteration end before the terminating
110889         NUL byte, not after it.
110891 2005-08-16  Bruno Haible  <bruno@clisp.org>
110893         * lib/strcase.h (strcasecmp): Add note in comments.
110894         * lib/strncasecmp.c: Use code from strcasecmp.c.
110895         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
110896         (strcasecmp): Work correctly in multibyte locales.
110898 2005-08-16  Bruno Haible  <bruno@clisp.org>
110900         * lib/mbiter.h: New file.
110902 2005-08-16  Bruno Haible  <bruno@clisp.org>
110904         * lib/mbfile.h: New file.
110906 2005-08-16  Bruno Haible  <bruno@clisp.org>
110908         * lib/mbchar.h: New file.
110909         * lib/mbchar.c: New file.
110911 2005-08-16  Bruno Haible  <bruno@clisp.org>
110913         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
110914         the valid ones. Makes the comparison operations transitive:
110915         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
110916         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
110918 2005-08-15  Simon Josefsson  <jas@extundo.com>
110920         * modules/ssize_t (License): Change to 'unlimited'.
110922         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
110924 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110926         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
110927         Add comments for each pending glibc patch.
110929 2005-08-15  Bruno Haible  <bruno@clisp.org>
110931         * lib/regex.h (__restrict_arr): Don't define to __restrict if
110932         __cplusplus is defined.
110934 2005-08-14  Jim Meyering  <jim@meyering.net>
110936         Sync from coreutils.
110938         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
110939         Use the hash-table-based cycle-detection code not just when
110940         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
110941         Reported by James Youngman in
110942         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
110943         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
110944         FTS_TIGHT_CYCLE_CHECK.
110945         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
110946         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
110947         once again.
110948         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
110949         * lib/fts.c (fd_safer): Remove decl.
110950         Include fcntl--.h rather than unistd-safer.h
110951         (fts_safe_changedir): Don't call fd_safer; no longer needed
110952         now that we include fcntl--.h.
110954 2005-08-12  Simon Josefsson  <jas@extundo.com>
110956         * modules/getndelim2: Use ssize_t module.
110957         * modules/getnline: Likewise.
110958         * modules/safe-read: Likewise.
110959         * modules/xreadlink: Likewise.
110961         * modules/ssize_t: New file.
110963 2005-08-12  Simon Josefsson  <jas@extundo.com>
110965         * m4/readline.m4: Look for termcap, curses or ncurses if required.
110967 2005-08-12  Simon Josefsson  <jas@extundo.com>
110969         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
110970         ssize_t.
110972 2005-08-12  Simon Josefsson  <jas@extundo.com>
110974         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
110975         readline, getdelim and check_version.
110976         (Support for systems lacking ISO C 99: Sizes of integer types):
110977         Add size_max.
110979 2005-08-12  Bruno Haible  <bruno@clisp.org>
110981         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
110983 2005-08-11  Simon Josefsson  <jas@extundo.com>
110985         * modules/readline: New file.
110987         * modules/strnlen (Files): Add strnlen.h.
110989 2005-08-11  Simon Josefsson  <jas@extundo.com>
110991         * m4/readline.m4: New file.
110993 2005-08-11  Simon Josefsson  <jas@extundo.com>
110995         * lib/readline.h, readline.c: New file.
110997 2005-08-11  Simon Josefsson  <jas@extundo.com>
110999         * doc/gnulib.texi (Initial import, Finishing touches): Mention
111000         gl_AVOID.
111002 2005-08-11  Bruno Haible  <bruno@clisp.org>
111004         * lib/strnlen.h (strnlen): Change parameter name to match comment.
111006 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
111008         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
111010 2005-08-10  Simon Josefsson  <jas@extundo.com>
111012         * tests/test-iconvme.c: New file.
111014 2005-08-10  Simon Josefsson  <jas@extundo.com>
111016         * m4/strnlen.m4: New file.
111018         * m4/strndup.m4: Don't check for strnlen declaration, done in
111019         strnlen.m4.
111021 2005-08-10  Simon Josefsson  <jas@extundo.com>
111023         * lib/strndup.c: Use strnlen.h.
111025         * lib/strnlen.h: New file.
111027 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
111029         * README: Typos.
111031 2005-08-02  Simon Josefsson  <jas@extundo.com>
111033         * modules/readline: New file.
111035 2005-08-02  Simon Josefsson  <jas@extundo.com>
111037         * modules/getdelim: New file.
111039         * modules/getline: Rewrite, don't use getndelim2.
111041 2005-08-02  Simon Josefsson  <jas@extundo.com>
111043         * m4/getline.m4: Separate out getdelim stuff into separate module.
111045         * m4/getdelim.m4: New file.
111047 2005-08-02  Simon Josefsson  <jas@extundo.com>
111049         * lib/getline.h, getline.c: Rewrite.
111051         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
111053 2005-07-31  Bruno Haible  <bruno@clisp.org>
111055         * lib/lock.h (gl_lock_initializer): New macro.
111056         (gl_lock_define_initialized): Use it.
111057         (gl_rwlock_initializer): New macro.
111058         (gl_rwlock_define_initialized): Use it.
111059         (gl_recursive_lock_initializer): New macro.
111060         (gl_recursive_lock_define_initialized): Use it.
111062 2005-07-30  Karl Berry  <karl@gnu.org>
111064         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
111065         Report from Ben Pfaff, regarding getopt.
111067 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
111069         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
111070         normal way.
111071         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
111072         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
111073         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
111074         (gl_GETOPT): Use the new macros.  Most of the implementation
111075         is moved to the new macros.  This is for programs like Emacs
111076         that don't want all the functionality of gl_GETOPT.
111078 2005-07-26  Bruno Haible  <bruno@clisp.org>
111080         * m4/lock.m4: Update from GNU gettext.
111082 2005-07-26  Bruno Haible  <bruno@clisp.org>
111084         * lib/lock.h: Update from GNU gettext.
111085         * lib/lock.c: Update from GNU gettext.
111087 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
111089         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
111090         obsolescent AC_TRY_RUN.  Include the default includes files, for
111091         'exit'.
111093 2005-07-24  Bruno Haible  <bruno@clisp.org>
111095         * modules/visibility: New file.
111096         * MODULES.html.sh (Misc): Add visibility.
111098 2005-07-24  Bruno Haible  <bruno@clisp.org>
111100         * m4/visibility.m4: New file.
111102 2005-07-24  Bruno Haible  <bruno@clisp.org>
111104         * doc/visibility.texi: New file.
111106 2005-07-22  Bruno Haible  <bruno@clisp.org>
111108         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
111109         $(ALLOCA_H), redundant through BUILT_SOURCES.
111110         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
111111         redundant through BUILT_SOURCES.
111112         * modules/byteswap (Makefile.am): Remove explicit dependency on
111113         $(BYTESWAP_H), redundant through BUILT_SOURCES.
111114         * modules/fnmatch (Makefile.am): Remove explicit dependency on
111115         $(FNMATCH_H), redundant through BUILT_SOURCES.
111116         * modules/getopt (Makefile.am): Remove explicit dependency on
111117         $(GETOPT_H), redundant through BUILT_SOURCES.
111118         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
111119         redundant through BUILT_SOURCES.
111120         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
111121         redundant through BUILT_SOURCES.
111122         * modules/stdbool (Makefile.am): Remove explicit dependency on
111123         $(STDBOOL_H), redundant through BUILT_SOURCES.
111124         * modules/stdint (Makefile.am): Remove explicit dependency on
111125         $(STDINT_H), redundant through BUILT_SOURCES.
111126         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
111127         Remove explicit dependency on $(SYSEXITS_H).
111128         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
111130 2005-07-18  Simon Josefsson  <jas@extundo.com>
111132         * lib/check-version.c (check_version): Accept identical versions too.
111134 2005-07-18  Bruno Haible  <bruno@clisp.org>
111136         * modules/lock: New file.
111137         * MODULES.html.sh (Multithreading): New section.
111139 2005-07-18  Bruno Haible  <bruno@clisp.org>
111141         * m4/lock.m4: New file, from GNU gettext.
111143 2005-07-18  Bruno Haible  <bruno@clisp.org>
111145         * lib/lock.h: New file, from GNU gettext.
111146         * lib/lock.c: New file, from GNU gettext.
111148 2005-07-18  Bruno Haible  <bruno@clisp.org>
111150         * lib/lock.h (gl_once_t): New type.
111151         (gl_once_define, gl_once): New macros.
111152         * lib/lock.c (fresh_once): New variable.
111153         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
111154         functions.
111156 2005-07-16  Simon Josefsson  <jas@extundo.com>
111158         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
111159         workaround, suggested by Bruno.
111161 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
111163         * modules/xalloc (Depends-on): Add xalloc-die.
111164         * modules/xvasprintf (Depends-on): Add xalloc-die.
111166 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
111168         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
111169         with a minor change.
111171 2005-07-15  Bruno Haible  <bruno@clisp.org>
111173         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
111174         When using lib/poll.c, define poll as rpl_poll.
111176 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
111178         * modules/argp (Depends-on): Remove unlocked-io.
111180 2005-07-14  Derek Price  <derek@ximbiot.com>
111182         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
111183         for glob symlink bug.
111185 2005-07-14  Bruno Haible  <bruno@clisp.org>
111187         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
111188         Instead, test for *_unlocked function declarations directly.
111190 2005-07-11  Simon Josefsson  <jas@extundo.com>
111192         * modules/size_max: New file.
111194         * modules/xsize: Depend on size_max module for size_max.m4.
111196 2005-07-11  Simon Josefsson  <jas@extundo.com>
111198         * lib/size_max.h: New file.
111200 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
111202         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
111203         copyright symbol and the year.
111204         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
111205         (version_etc_va): Use parameterized copyright notice.
111206         Reword to conform to the current GNU coding standards.
111208 2005-07-11  Karl Berry  <karl@gnu.org>
111210         * doc/gnulib.texi (Quoting): new node.
111211         (Initial import): more info, from Patrice.
111213 2005-07-11  Bruno Haible  <bruno@clisp.org>
111215         * gnulib-tool (func_usage): Document option --avoid.
111216         (Command line options): Handle --avoid.
111217         (func_acceptable): New function.
111218         (func_modules_transitive_closure): Use it.
111220 2005-07-11  Bruno Haible  <bruno@clisp.org>
111222         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
111223         Reported by Jim Meyering.
111225 2005-07-10  Bruno Haible  <bruno@clisp.org>
111227         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
111228         Needed when size_t is smaller than 'unsigned int'.
111229         Reported by Paul Eggert.
111231 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
111233         * modules/argp (Depends-on): Add unlocked-io
111235 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
111237         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
111238         block of defines.
111240 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
111242         * config/srclist.txt: Comment out regcomp.c, since we have a porting
111243         fix now.
111245 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
111246         and Paul Eggert  <eggert@cs.ucla.edu>
111248         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
111249         in wint_t, not wchar_t.  Remove now-unnecessary cast.
111251 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
111253         * modules/regex (Files): Add lib/regex_internal.c,
111254         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
111255         (Depends-on): Add extensions.
111256         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
111258 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
111260         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
111261         pathconf.
111262         * m4/same.m4 (gl_SAME): Likewise.
111263         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
111265         * m4/regex.m4: Adjust to new libc regex implementation.
111266         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
111267         all the .c and .h parts of (the new) regex.
111268         Quote the m4 stuff better.
111269         Check for RE_ICASE bug of old gnulib.
111270         Check for REG_STARTEND of recent libc.
111271         Rename local variables from jm_* to gl_*.
111272         Quote operand of "test -f".
111273         Say "recent enough" version of libc, not "version 2".
111274         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
111275         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
111276         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
111277         Remove check for btowc, isascii.
111278         Require AM_LANGINFO_CODESET.
111280 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
111282         * lib/regex.c, regex.h: Sync from libc.
111283         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
111284         * lib/regexec.c:
111285         New files, synced from libc, except that regex_internal.h
111286         currently has a small porting fix.
111288 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
111290         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
111291         regex_internal.c, regexec.c.
111292         Add regex_internal.h too, but as a comment, since the libc version
111293         is currently broken in gnulib mode.
111295 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111297         Support programs like Emacs that use gnulib but not gettext.
111298         * MODULES.html.sh (Internationalization functions): Add gettext-h.
111299         * modules/gettext-h: New file.
111300         * modules/gettext (Files): Remove lib/gettext.h.
111301         (Depends-on): Add gettext-h.
111302         (Makefile.am): Remove lib_SOURCES.
111303         * modules/argmatch, modules/c-stack, modules/closeout:
111304         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
111305         * modules/execute, modules/file-type, modules/getaddrinfo:
111306         * modules/getopt, modules/human, modules/javacomp:
111307         * modules/javaexec, modules/mkdir-p, modules/obstack:
111308         * modules/openat, modules/pagealign_alloc, modules/pipe:
111309         * modules/quotearg, modules/regex, modules/rpmatch:
111310         * modules/unicodeio, modules/userspec, modules/version-etc:
111311         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
111312         * modules/xsetenv:
111313         Depend on gettext-h, not gettext.
111315 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111317         * gnulib-tool (func_import): Add support for 'public domain' license.
111318         * modules/alloca, modules/atexit, modules/memmove:
111319         Now public domain, not GPL.
111320         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
111321         * modules/realloc, modules/strerror, modules/strtod:
111322         Now LGPL, not GPL.
111324 2005-07-05  Bruno Haible  <bruno@clisp.org>
111326         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
111327         autoconf CVS. Needed for mingw.
111329 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111331         Remove the dependency of the strftime module on the tzset module.
111332         * modules/strftime (Depends-on): Remove dependency on tzset.
111334 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111336         Remove the dependency of the strftime module on the tzset module.
111337         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
111338         gl_FUNC_TZSET_CLOBBER.
111340 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111342         Remove the dependency of the strftime module on the tzset module.
111343         * lib/strftime.c (my_strftime)
111344         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
111345         Copy the input structure, to work around some of the bug with
111346         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
111347         Solaris releases, you should also use the tzset module, but we won't
111348         require it as a dependency any more since we don't want LGPLed code
111349         to depend on GPLed code.
111351 2005-07-02  Jim Meyering  <jim@meyering.net>
111353         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
111354         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
111355         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
111356         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
111358 2005-07-02  Jim Meyering  <jim@meyering.net>
111360         * lib/backupfile.c (backup_args): Change a `0' to NULL.
111362 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
111364         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
111365         declares only 'struct timespec;' (!).
111367 2005-07-01  Jim Meyering  <jim@meyering.net>
111369         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
111370         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
111371         * lib/save-cwd.c, tempname.c:
111372         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
111373         and don't include <sys/file.h>).
111375 2005-06-29  Jim Meyering  <jim@meyering.net>
111377         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
111378         type name.  Use the variable name instead.
111379         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
111380         Likewise.
111382 2005-06-28  Simon Josefsson  <jas@extundo.com>
111384         * modules/check-version (Files): Add check-version.m4.
111386 2005-06-28  Simon Josefsson  <jas@extundo.com>
111388         * m4/check-version.m4: New file, suggested by Jim Meyering
111389         <jim@meyering.net>.
111391 2005-06-28  Simon Josefsson  <jas@extundo.com>
111393         * lib/check-version.h, lib/check-version.c: New files.
111395 2005-06-28  Simon Josefsson  <jas@extundo.com>
111397         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
111398         collision with global variable.  Better indentation.  Don't
111399         increment buffer pointer beyond buffer end.  Based on comments
111400         from Paul Eggert <eggert@cs.ucla.edu>.
111402         * lib/base64.h: Indent.
111404 2005-06-28  Simon Josefsson  <jas@extundo.com>
111406         * doc/gnulib.texi (Library version handling): New section.
111408 2005-06-28  Jim Meyering  <jim@meyering.net>
111410         * check-module (find_included_lib_files): Hard-code another
111411         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
111412         but modules/fts-lgpl (correctly) does not list those files.
111414         * modules/canonicalize (Files): Add lib/pathmax.h.
111416 2005-06-25  Simon Josefsson  <jas@extundo.com>
111418         * modules/check-version: New file.
111420 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
111422         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
111423         initializer of struct addrinfo, as an indication that we don't
111424         care how many members the structure has.
111426 2005-06-24  Derek Price  <derek@ximbiot.com>
111427         and Bruno Haible  <bruno@clisp.org>
111429         Remove stat module & update lstat.
111430         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
111431         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
111432         * m4/stat.m4: Remove this file.
111434 2005-06-24  Derek Price  <derek@ximbiot.com>
111435         and Bruno Haible  <bruno@clisp.org>
111437         Remove stat module & update lstat.
111438         * lib/stat.c: Remove this file...
111439         (slash_aware_lstat): ...moving this content and its support...
111440         * lib/lstat.c (rpl_lstat): ...into here.
111441         * lib/lstat.h: New file.
111443 2005-06-24  Derek Price  <derek@ximbiot.com>
111444         and Bruno Haible  <bruno@clisp.org>
111446         Remove stat module & update lstat.
111447         * config/srclist.txt (libc sources): Remove stat.
111449 2005-06-24  Derek Price  <derek@ximbiot.com>
111450         and Bruno Haible  <bruno@clisp.org>
111452         Remove stat module & update lstat.
111453         * MODULES.html.sh (stat): Remove.
111454         * MODULES.html: Regenerated.
111455         * modules/lstat (Description): Correct function name.
111456         (Files): Add "lstat.h".
111457         (Depends-on): Remove stat, add xalloc, stat-macros.
111458         * modules/stat: Remove this file.
111459         (Include): Add "lstat.h", remove <sys/stat.h>.
111461 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
111463         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
111464         (ranged_convert): Don't save conversion in a temporary struct.
111465         This causes a warning with GCC 4.0.0, and anyway in the typical
111466         case it's not worth the extra 100 bytes or so of code.
111467         (ranged_convert, __mktime_internal): When calling a function via a
111468         pointer P, use P () rather than (*P) (), as we now assume C89 or
111469         better.
111471 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
111473         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
111474         "who -r" failed to give output.  Problem reported by Tim Waugh.
111476         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
111477         (xcalloc): Use it to avoid needless tests.
111478         Problem reported by Jim Meyering.
111480 2005-06-20  Derek Price  <derek@ximbiot.com>
111482         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
111483         unnecessary for Autoconfs > 2.59c.
111485 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
111487         * lib/argp.h (__option_is_short): Check upper limit of
111488         __key. Isprint() requires its argument to have the value
111489         of an unsigned char or EOF.
111491 2005-06-16  Jim Meyering  <jim@meyering.net>
111493         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
111494         when either N or S is zero.
111496 2005-06-16  Derek Price  <derek@ximbiot.com>
111498         * m4/bison.m4: Declare YACC & YFLAGS precious.
111500 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
111502         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
111503         multibyte string or pattern, fall back on unibyte matching.
111504         Problem reported by James Youngman.
111506 2005-06-08  Bruno Haible  <bruno@clisp.org>
111508         * modules/csharpcomp: New file.
111509         * MODULES.html.sh (C#): Add csharpcomp.
111511 2005-06-08  Bruno Haible  <bruno@clisp.org>
111513         * m4/csharpcomp.m4: New file, from GNU gettext.
111515 2005-06-08  Bruno Haible  <bruno@clisp.org>
111517         * lib/csharpcomp.h: New file, from GNU gettext.
111518         * lib/csharpcomp.c: New file, from GNU gettext.
111519         * lib/csharpcomp.sh.in: New file, from GNU gettext.
111521 2005-06-08  Bruno Haible  <bruno@clisp.org>
111523         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
111524         warning on mingw.
111526 2005-06-07  Derek Price  <derek@ximbiot.com>
111528         Sync from CVS.
111529         * lib/glob_.h: Indent nested #ifdef.
111531 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
111533         Sync from coreutils.
111534         Use "file name" when talking about file names, instead of "filename"
111535         or "path", as per the GNU coding standards.
111536         * lib/mkdir-p.c: Renamed from makepath.c.
111537         (make_dir_parents): Renamed from make_path.  All callers changed.
111538         * lib/mkdir-p.h: Likewise.  All includers changed.
111539         * lib/filenamecat.c: Renamed from path-concat.c.
111540         (file_name_concat): Renamed from path_concat.  All callers changed.
111541         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
111542         * lib/filenamecat.h: Likewise.  All includers changed.
111543         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
111544         in comments or local variable names.
111545         * lib/basename.c: Likewise.
111546         * lib/canonicalize.c, canonicalize.h: Likewise.
111547         * lib/dirname.c, dirname.h: Likewise.
111548         * lib/euidaccess.c: Likewise.
111549         * lib/exclude.c: Likewise
111550         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
111551         * lib/fsusage.c, fsuage.h: Likewise.
111552         * lib/fts.c, fts_.h: Likewise.
111553         * lib/getcwd.c: Likewise.
111554         * lib/getloadavg.c: Likewise.
111555         * lib/mkstemp.c: Likewise.
111556         * lib/mountlist.c, mountlist.h: Likewise.
111557         * lib/openat.c, openat.h: Likewise.
111558         * lib/readlink-stub.c: Likewise.
111559         * lib/readutmp.c, readutmp.h: Likewise.
111560         * lib/rename.c: Likewise.
111561         * lib/rmdir.c: Likewise.
111562         * lib/same.c: Likewise.
111563         * lib/savedir.c: Likewise.
111564         * lib/stripslash.c: Likewise.
111565         * lib/tempname.c: Likewise.
111566         * lib/xreadlink.c: Likewise.
111567         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
111568         All uses changed.
111569         * lib/exclude.h: Likewise.
111571         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
111572         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
111573         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
111574         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
111575         * lib/pathmax.h: Include <limits.h> unconditionally, since other
111576         files have been getting away with it for years (MORE/BSD 4.3
111577         is extinct now).
111578         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
111579         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
111581         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
111582         Define to 256, not 255, as per modern POSIX.
111584 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
111586         Sync from coreutils.
111587         Use "file name" when talking about file names, instead of "filename"
111588         or "path", as per the GNU coding standards.
111589         * MODULES.html.sh: mkdir-p renamed from makepath.
111590         filenamecat renamed from path-concat.
111591         * modules/filenamecat: Renamed from modules/path-concat.
111592         (Files): filenamecat.h and filenamecat.c renamed from
111593         path-concat.h and path-concat.c.
111594         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
111595         (Include): filenamecat.h, not path-concat.h.
111596         * modules/mkdir-p: Renamed from modules/makepath.
111597         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
111598         makepath.c.
111599         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
111600         (Include): mkdir-p.h, not makepath.h.
111602 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
111604         Sync from coreutils.
111605         * m4/mkdir-p.m4: Renamed from makepath.m4.
111606         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
111607         Rename files from makepath.c to mkdir-p.c, and from
111608         makepath.h to mkdir-p.h.
111609         * m4/filenamecat.m4: Renamed from path-concat.m4.
111610         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
111611         Rename files from path-concat.c to filenamecat.c,
111612         and from path-concat.h to filenamecat.h.
111613         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
111614         "file name" in local variables or comments.
111615         * m4/rename.m4: Likewise.
111617 2005-06-01  Bruno Haible  <bruno@clisp.org>
111619         * modules/csharpexec: New file.
111620         * MODULES.html.sh (C#): New section.
111622 2005-06-01  Bruno Haible  <bruno@clisp.org>
111624         * m4/csharp.m4: New file, from GNU gettext.
111625         * m4/csharpexec.m4: New file, from GNU gettext.
111627 2005-06-01  Bruno Haible  <bruno@clisp.org>
111629         * lib/csharpexec.h: New file, from GNU gettext.
111630         * lib/csharpexec.c: New file, from GNU gettext.
111631         * lib/csharpexec.sh.in: New file, from GNU gettext.
111633 2005-05-31  Derek Price  <derek@ximbiot.com>
111634             Paul Eggert  <eggert@cs.ucla.edu>
111636         Sync from cvs.
111637         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
111639 2005-05-31  Derek Price  <derek@ximbiot.com>
111640             Paul Eggert  <eggert@cs.ucla.edu>
111642         Sync from cvs.
111643         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
111645 2005-05-29  Derek Price  <derek@ximbiot.com>
111647         * config/srclist.txt (glob_.h, glob.c): Add these files.
111649 2005-05-29  Derek Price  <derek@ximbiot.com>
111651         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
111652         * modules/glob: New file.
111653         * modules/getlogin_r: Add link to POSIX spec in description.
111655 2005-05-29  Derek Price  <derek@ximbiot.com>
111656             Paul Eggert  <eggert@cs.ucla.edu>
111658         * m4/glob.m4: New file.
111660 2005-05-29  Derek Price  <derek@ximbiot.com>
111661             Paul Eggert  <eggert@cs.ucla.edu>
111663         * lib/glob_.h, lib/glob.c: New files.
111665 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
111667         * modules/fts (Files): Remove m4/inttypes-pri.m4.
111668         * modules/fts-lgpl (Depends-on): Remove gettext.
111670 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
111672         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
111673         and don't require gt_INTTYPES_PRI.
111675 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
111677         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
111679         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
111680         the configuration hassle isn't worth it.
111681         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
111682         (LONGEST_MODIFIER, PRIuMAX): Remove.
111684 2005-05-27  Bruno Haible  <bruno@clisp.org>
111686         * lib/getlogin_r.h: Remove second include of <stddef.h>.
111688 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
111690         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
111691         _POSIX_PTHREAD_SEMANTICS for Solaris.
111693 2005-05-25  Derek Price  <derek@ximbiot.com>
111695         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
111697 2005-05-25  Derek Price  <derek@ximbiot.com>
111698             Paul Eggert  <eggert@cs.ucla.edu>
111700         * modules/getlogin_r, m4/getlogin_r.m4: New files.
111701         * lib/getlogin_r.c, getlogin_r.h: New files.
111703 2005-05-25  Bruno Haible  <bruno@clisp.org>
111704             Derek Price  <derek@ximbiot.com>
111706         * lib/getlogin_r.h: Simplify API documentation.
111708 2005-05-23  Derek Price  <derek@ximbiot.com>
111710         * modules/minmax (Files): Add m4/minmax.m4.
111711         (configure.ac): Add gl_MINMAX.
111713 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
111715         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
111716         so that unistd-safer.h (GPL'ed code) need not be included.
111718 2005-05-22  Bruno Haible  <bruno@clisp.org>
111720         * m4/minmax.m4: New file.
111721         Based on a patch by Derek Price <derek@ximbiot.com>.
111723 2005-05-22  Bruno Haible  <bruno@clisp.org>
111725         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
111726         (INT64_MIN): Fix definition.
111727         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
111729         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
111730         NEED_SIGNED_INT_TYPES.
111732         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
111733         HAVE_SYSTEM_INTTYPES.
111735 2005-05-22  Bruno Haible  <bruno@clisp.org>
111737         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
111738         Also include <sys/param.h> if it defines MIN, MAX.
111739         Based on a patch by Derek Price <derek@ximbiot.com>.
111741 2005-05-21  Jim Meyering  <jim@meyering.net>
111743         * modules/fts (Files): Add m4/inttypes-pri.m4.
111744         (Depends-on): Add lstat and remove gettext.  Alphabetize.
111746 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
111748         New fts module.
111749         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
111750         (setup_dir, free_dir): New functions.
111751         (enter_dir, leave_dir): Define trivial
111752         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
111753         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
111754         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
111755         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
111756         Move to fts-cycle.c.
111757         (fts_open): Use setup_dir.
111758         (fts_close): Use free_dir.
111759         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
111760         This adds a label and some gotos, but the alternatives were messier.
111761         Check for memory allocation failure when entering a dir.
111762         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
111763         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
111764         (FTS): New member fts_cycle, that is a union that contains the
111765         old active_dir_ht and cycle_state.  All uses changed to mention
111766         fts_cycle.ht and fts_cycle.state.
111767         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
111768         fts.c, with the following changes:
111769         (setup_dir, free_dir): New functions.
111770         (enter_dir): Now returns bool.  Return true if successful, false
111771         if memory exhausted.  All callers changed.
111772         Do not bother partly cleaning up on
111773         memory allocation failure; that is free_dir's job.
111774         However, free ad if hash_insert fails, to avoid memory leak.
111775         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
111776         fts->fts_options to see which union member to use.
111778 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
111780         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
111781         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
111783 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
111785         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
111787 2005-05-20  Jim Meyering  <jim@meyering.net>
111789         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
111790         Now a macro, to pacify GCC.
111792 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
111794         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
111795         of -1.
111797 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
111799         * lib/chown.c (rpl_chown): Return -1 on failure.
111801 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
111803         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
111804         Don't check for stddef.h.
111805         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
111806         don't use its results.
111807         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
111808         since we include them unconditionally.  Don't require
111809         AM_STDBOOL_H, since stdbool is a prerequisite.
111810         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
111811         since we assume C89 or better.
111812         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
111813         as we don't use their results.
111814         Don't check for fchdir, memmove, memset, strrchr, as we use
111815         them unconditionally.
111816         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
111817         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
111819 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
111821         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
111822         Include <stddef.h> unconditionally, since we assume C89 now.
111823         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
111824         * lib/fts.c: Include fts_.h first, to check interface.
111825         Do not include intprops.h; no longer needed.
111826         Include cycle-check.h and hash.h, since fts_.h no longer does.
111827         Remove unnecessary casts of closedir to void.
111828         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
111829         decide whether to decrement nlinks.
111830         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
111831         (FTS): Use struct hash_table * instead of Hash_table, so that
111832         we no longer need to include hash.h here.
111834 2005-05-18  Jim Meyering  <jim@meyering.net>
111836         * modules/dirfd (License): Change to LGPL.  Most of the code
111837         is already in the public domain.
111839 2005-05-18  Jim Meyering  <jim@meyering.net>
111841         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
111842         Reported by Yoann Vandoorselaere.
111844 2005-05-17  Jim Meyering  <jim@meyering.net>
111846         * m4/fts.m4: New file, from coreutils.
111848 2005-05-17  Jim Meyering  <jim@meyering.net>
111850         * lib/fts.c, lib/fts_.h: New files, from coreutils.
111852 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
111854         Sync from coreutils.
111855         * m4/unlinkdir.m4: New file.
111857 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
111859         Sync from coreutils.
111860         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
111861         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
111862         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
111863         White space changes only.
111864         * lib/makepath.c (make_path): Port to hosts where leading "//" is
111865         special.
111866         * lib/yesno.c: Include getline.h, not ctype.h.
111867         (yesno): Don't remove leading white space; POSIX doesn't allow it.
111868         Use getline to remove arbitrary restriction on response length.
111870 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
111872         * config/srclist-update: Spell out "Street" in FSF postal
111873         mail address; this is the style the FSF seems to prefer.
111875         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
111876         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
111877         this updates FSF postal mail address.
111879         Sync from coreutils.
111880         * modules/unlinkdir: New file.
111881         * modules/yesno (Depends-on): Add getline.
111882         * MODULES.html.sh (File system functions): Add unlinkdir.
111884 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
111886         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
111887         lib/strsep.h:
111888         Change the initial comment to refer to GPL, not LGPL.
111889         gnulib-tool will change it to LGPL as needed.
111891         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
111892         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
111893         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
111894         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
111895         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
111896         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
111897         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
111898         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
111899         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
111900         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
111901         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
111902         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
111903         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
111904         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
111905         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
111906         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
111907         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
111908         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
111909         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
111910         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
111911         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
111912         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
111913         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
111914         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
111915         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
111916         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
111917         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
111918         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
111919         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
111920         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
111921         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
111922         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
111923         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
111924         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
111925         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
111926         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
111927         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
111928         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
111929         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
111930         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
111931         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
111932         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
111933         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
111934         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
111935         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
111936         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
111937         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
111938         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
111939         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
111940         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
111941         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
111942         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
111943         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
111944         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
111945         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
111946         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
111947         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
111948         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
111949         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
111950         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
111951         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
111952         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
111953         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
111954         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
111955         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
111956         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
111957         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
111958         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
111959         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
111960         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
111961         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
111962         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
111963         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
111964         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
111965         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
111966         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
111967         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
111968         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
111969         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
111970         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
111971         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
111972         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
111973         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
111974         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
111975         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
111976         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
111977         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
111978         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
111979         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
111980         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
111981         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
111982         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
111983         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
111984         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
111985         lib/yesno.c, lib/yesno.h:
111986         Update FSF postal mail address.
111988 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
111990         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
111991         tests/test-memmem.c, tests/test-stpncpy.c:
111992         Update FSF postal mail address.
111994 2005-05-13  Bruno Haible  <bruno@clisp.org>
111996         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
111997         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
111998         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
111999         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
112000         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
112001         Add support for 64-bit integers in the MSVC compiler.
112003 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112005         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
112007 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
112009         * gnulib-tool (func_import): Sort and uniquify recommended includes.
112011 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
112013         * doc/getdate.texi (General date syntax): Don't say that date
112014         date --iso-8601=ns generates acceptable dates; it doesn't yet.
112015         Problem reported by Nic Ferrier.
112017 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112019         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
112020         specified in ai_socktype. Fix invalid ai_protocol
112021         check. ai_protocol is usually set to 0 or depending on
112022         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
112023         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
112024         ai_socktype / ai_protocol in the returned addrinfo structure.
112026 2005-05-10  Simon Josefsson  <jas@extundo.com>
112028         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
112029         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
112031 2005-05-10  Karl Berry  <karl@gnu.org>
112033         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
112034         (from http://www.gnu.org/licenses).
112035         * doc/COPYING.LIB: also rename to COPYING.LESSER.
112036         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
112037         fdl.texi suffices.
112039 2005-05-10  Karl Berry  <karl@gnu.org>
112041         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
112042         (COPYING.DOC): remove.
112044         * config/srclist-update: new FSF address.
112046 2005-05-10  Derek Price  <derek@ximbiot.com>
112048         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
112049         possible.
112051 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112052             Bruno Haible  <bruno@clisp.org>
112054         * modules/inet_ntop: New file.
112055         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
112056         inet_ntop.
112058 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112059             Bruno Haible  <bruno@clisp.org>
112061         * m4/inet_ntop.m4: New file.
112063 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112064             Bruno Haible  <bruno@clisp.org>
112066         * lib/inet_ntop.h: New file.
112067         * lib/inet_ntop.c: New file, from glibc with modifications.
112069 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
112071         * modules/time_r (License): Change to LGPL.
112072         * modules/extensions (License): Change to LGPL.  Actually,
112073         the license is more permissive than that, but currently gnulib-tool
112074         doesn't know how to handle more-permissive licenses.
112076         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
112077         Problem reported by Dave Love.
112079 2005-05-08  Jim Meyering  <jim@meyering.net>
112081         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
112082         blank.
112084 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
112086         * modules/argmatch (Depends-on): Add stdbool.
112087         * modules/backupfile (Depends-on): Likewise.
112088         * modules/chdir-long (Depends-on): Likewise.
112089         * modules/closeout (Depends-on): Likewise.
112090         * modules/cycle-check (Depends-on): Likewise.
112091         * modules/dirname (Depends-on): Likewise.
112092         * modules/fnmatch (Depends-on): Likewise.
112093         * modules/fsusage (Depends-on): Likewise.
112094         * modules/fwriteerror (Depends-on): Likewise.
112095         * modules/getcwd (Depends-on): Likewise.
112096         * modules/getloadavg (Depends-on): Likewise.
112097         * modules/hard-locale (Depends-on): Likewise.
112098         * modules/makepath (Depends-on): Likewise.
112099         * modules/mountlist (Depends-on): Likewise.
112100         * modules/nanosleep (Depends-on): Likewise.
112101         * modules/posixtm (Depends-on): Likewise.
112102         * modules/quotearg (Depends-on): Likewise.
112103         * modules/readtokens (Depends-on): Likewise.
112104         * modules/readtokens0 (Depends-on): Likewise.
112105         * modules/readutmp (Depends-on): Likewise.
112106         * modules/save-cwd (Depends-on): Likewise.
112107         * modules/strftime (Depends-on): Likewise.
112108         * modules/userspec (Depends-on): Likewise.
112109         * modules/utimecmp (Depends-on): Likewise.
112110         * modules/xgetcwd (Depends-on): Likewise.
112111         * modules/xnanosleep (Depends-on): Likewise.
112112         * modules/xstrtod (Depends-on): Likewise.
112113         * modules/yesno (Depends-on): Likewise.
112115 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
112117         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
112118         needless checks.
112120 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
112122         Merge from coreutils.  Among other things,
112123         add bulletproofing for cases where stdin, stdout, or stderr are closed.
112124         * lib/fd-safer.c: New file.
112125         * lib/fcntl-safer.h, open-safer.c: Remove.
112126         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
112127         * lib/dup-safer.c: Include unistd-safer.h first.
112128         Don't include errno.h.
112129         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
112130         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
112131         * lib/file-type.c: Rely on file-type.h change.
112132         * lib/getloadavg.c: Include unistd-safer.h.
112133         (getloadavg): Use safer open.
112134         * lib/getusershell.c: Include "stdio-safer.h".
112135         (getusershell): Use safer fopen.
112136         * lib/long-options.c (long_options): Use NULL rather than 0.
112137         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
112138         'free'.
112139         * lib/modechange.c: Likewise.
112140         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
112141         (MODE_DONE): New constant.
112142         (struct mode_change): Remove 'next' member.
112143         (make_node_op_equals): New function; like the old one of the
112144         same name, except it allocates an array.
112145         (mode_compile, mode_create_from_ref): Use it.
112146         (mode_compile): Allocate result as an array, not a linked list.
112147         Parse octal string ourself, so that we catch mistakes like "+0".
112148         (mode_adjust): Arg is an array, not a linked list.
112149         * lib/modechange.c: Include stat-macros.h, xalloc.h.
112150         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
112151         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
112152         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
112153         Remove.  This is now stat-macros.h's job.
112154         (talloc): Remove.  All callers replaced by xalloc, so that
112155         our invokers don't have to worry about reporting memory failures.
112156         (make_node_op_equals): Remove.
112157         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
112158         New constants.
112159         (struct mode_change): Moved here from modechange.h.
112160         (mode_append_entry): Remove.
112161         (mode_compile): Remove MASKED_OPS arg, since it encouraged
112162         apps to have incorrect behavior.  Use simpler algorithm for head
112163         and tail.  Don't futz with umask; that's now the job of mode_adjust.
112164         Detect more invalid usages rather than having somewhat-random behavior.
112165         Don't insert an "a=" action, as that leads to incorrect behavior.
112166         (mode_compile, mode_create_from_ref): Return NULL on error instead
112167         of an enum, since now there's only one way to have an error.  All
112168         callers changed.
112169         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
112170         at the correct time.  Simplify calculation of "+u" and its ilk.
112171         Don't mishandle "+X".
112172         (mode_free): Remove "register" and localize decls.
112173         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
112174         (struct mode_change): Move to modechange.c; callers don't
112175         need to see this stuff.
112176         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
112177         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
112178         (mode_change, mode_adjust): Reflect the new signatures noted above.
112179         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
112180         that might redefine system include files.
112181         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
112182         (my_usleep): Use NULL rather than (void *) 0.
112183         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
112184         Use siginterrupt to specify that system calls should be interrupted.
112185         (rpl_nanosleep): Move initialization of suspended closer to call of
112186         my_usleep.
112187         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
112188         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
112189         (desirable_utmp_entry): New function.
112190         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
112191         using x2nrealloc, to simplify logic.
112192         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
112193         size calculation.  Do not assume utmp file is a regular file.
112194         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
112195         (READ_UTMP_CHECK_PIDS): New constant.
112196         * lib/save-cwd.c: Include unistd-safer.h.
112197         (save_cwd): Use fd_safer.
112198         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
112199         [!_LIBC] Include "stat-macros.h" instead.
112200         * lib/unistd-safer.h (fd_safer): New decl.
112202 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
112204         * modules/getloadavg (Depends-on): Add unistd-safer.
112205         * modules/getusershell (Depends-on): Add stdio-safer.
112206         * modules/lstat (Depends-on): Remove xalloc.
112207         * modules/mkstemp (Depends-on): Add stat-macros.
112208         * modules/modechange (Depends-on): Remove xstrtol.
112209         Add stat-macros, xalloc.
112210         * modules/save-cwd (Depends-on): Add unistd-safer.
112211         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
112212         * modules/unistd-safer (Files): Add lib/fd-safer.c
112213         (Makefile.am): Remove lib_SOURCES.
112215         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
112216         Remove fcntl-safer; unistd-safer supersedes it.
112218 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
112220         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
112221         AC_HEADER_STAT.
112222         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
112223         (gl_PREREQ_CHOWN): Remove.
112224         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
112225         it.  Don't require AC_HEADER_STAT.
112226         (gl_PREREQ_LSTAT): Remove.
112227         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
112228         Don't require AC_HEADER_STAT.
112229         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
112230         (gl_PREREQ_RMDIR): Remove.
112231         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
112232         mention stat-macros.h or AC_HEADER_STAT, since we'll make
112233         the stat-macros module a prerequisite.
112234         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
112235         * m4/filemode.m4 (gl_FILEMODE): Likewise.
112236         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
112237         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
112238         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
112239         variable names.
112240         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
112241         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
112242         variable prefixes.
112243         * m4/fcntl-safer.m4: Remove.
112244         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
112245         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
112246         Invoke gl_PREREQ_FD_SAFER.
112247         (gl_PREREQ_FD_SAFER): New macro.
112248         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
112249         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
112250         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
112251         Remove duplicate call to AC_LIBOBJ(readutmp).
112252         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
112254         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
112255         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
112257 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
112259         * MODULES.html.sh (Misc): Add byteswap.
112261 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
112263         * modules/getcwd (Depends-on): Add extensions.
112264         * modules/openat (Depends-on): Likewise.
112266 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
112268         * modules/byteswap: New file.
112270 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
112272         * m4/byteswap.m4: New file.
112274 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
112276         * lib/byteswap_.h: New file.
112278 2005-04-25  Karl Berry  <karl@gnu.org>
112280         * m4/gettext.m4: Update from GNU gettext 0.14.4.
112282 2005-04-25  Albert Chin  <china@thewrittenword.com>
112284         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
112285         Toolkit C bug.
112287 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
112289         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
112290         (func_ln_if_changed): Remove forcibly for no error message
112291         in case file does not exist.
112293 2005-04-19  Simon Josefsson  <jas@extundo.com>
112295         * gnulib-tool (Options): Make --symlink mean --symbolic.
112297 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
112299         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
112301 2005-04-16  Simon Josefsson  <jas@extundo.com>
112303         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
112305 2005-04-15  Simon Josefsson  <jas@extundo.com>
112307         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
112309 2005-04-15  Simon Josefsson  <jas@extundo.com>
112311         * gnulib-tool: Rename --symlink to --symbolic.
112313 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
112315         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
112316         symbolic links to files instead of copying/moving.  Add --aux-dir,
112317         specifying directory relative --dir where auxiliary build tools
112318         are placed.
112320 2005-04-14  Bruno Haible  <bruno@clisp.org>
112322         * modules/allocsa (License): Change to LGPL.
112323         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
112325 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
112327         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
112328         that "UTC +1 second" continues to work.  Problem reported
112329         by Dmitry V. Levin.
112330         (relunit_snumber): New rule.
112331         (relunit): Use it.
112333 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
112335         * lib/getdate.y (universal_time_zone_table): New constant.
112336         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
112337         universal_time_zone_table.
112338         (lookup_zone): Prefer universal_time_zone_table to
112339         local_time_zone_table, so that "GMT" time stamps are allowed in
112340         London during the summer.  Problem reported by Ian Abbott.
112342 2005-04-12  Jim Meyering  <jim@meyering.net>
112344         * lib/human.c (humblock): Set *options even when returning due to
112345         xstrtoumax conversion failure.  Thanks to a used-uninitialized
112346         warning from gcc-4.
112348 2005-04-09  Jim Meyering  <jim@meyering.net>
112350         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
112351         -Wuninitialized: initialize tm0.tm_year.
112353 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
112355         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
112356         count, since there's no maximum.  All uses changed.
112357         Add member dsts_seen.
112358         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
112359         not being INT_MAX.
112360         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
112361         Use pc_rels_seen to decide whether a date is absolute.
112363         * lib/getdate.y (number): Don't overwrite year.
112364         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
112365         check.
112367 2005-04-02  Simon Josefsson  <jas@extundo.com>
112369         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
112370         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
112372 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
112374         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
112375         where no absolute path name can be longer than PATH_MAX.
112377 2005-03-27  Jim Meyering  <jim@meyering.net>
112379         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
112381 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
112383         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
112384         "one's complement" -> "ones' complement" in comment, as per Knuth.
112385         "value of type" -> "type or expression" in comment.
112386         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
112388 2005-03-26  Jim Meyering  <jim@meyering.net>
112390         Comment nits.
112391         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
112392         Correct typos: s/or/of/.
112394 2005-03-26  Jim Meyering  <jim@meyering.net>
112396         * modules/check-include-files: Move to ../ and rename to...
112397         * check-module: ...this.
112399 2005-03-25  Jim Meyering  <jim@meyering.net>
112401         * modules/xvasprintf (Files): Add xalloc.h.
112403 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
112405         * modules/gettext (Files): config/config.rpath ->
112406         build-aux/config.rpath
112407         * modules/iconv (Files): Likewise.
112408         Problem reported by Oskar Liljeblad.
112410 2005-03-23  Jim Meyering  <jim@meyering.net>
112412         * modules/check-include-files: New script to check for
112413         missing dependencies, multiple includes, etc.
112415         * modules/c-strtold (Depends-on): Add xalloc.
112416         * modules/c-strtod (Depends-on): Add xalloc.
112417         * modules/hash (Depends-on): Add xalloc.
112418         (Files): Remove lib/xalloc.h.
112420         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
112421         * modules/userspec (Files): Add lib/inttostr.h.
112423 2005-03-23  Jim Meyering  <jim@meyering.net>
112425         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
112427 2005-03-22  Jim Meyering  <jim@meyering.net>
112429         * modules/stat-macros: New module.
112430         * modules/canonicalize, modules/euidaccess, modules/file-type,
112431         * modules/filemode, modules/lchown, modules/makepath,
112432         * modules/rmdir, modules/stat: Depend on new stat-macros module
112433         rather than listing lib/stat-macros.h manually.
112434         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
112436 2005-03-22  Jim Meyering  <jim@meyering.net>
112438         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
112440 2005-03-22  Bruno Haible  <bruno@clisp.org>
112442         * config/srclist.txt: Replace target directory 'config' with
112443         'build-aux'.
112444         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
112445         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
112446         ../build-aux/.
112448 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
112450         * modules/chdir-long (Depends-on): Add mempcpy.
112452         * modules/acl, modules/backupfile, modules/c-strtod,
112453         modules/c-strtold, modules/canon-host, modules/canonicalize,
112454         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
112455         modules/exclude, modules/exitfail, modules/file-type,
112456         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
112457         modules/getdate, modules/getline, modules/getpagesize,
112458         modules/getpass, modules/getugroups, modules/group-member,
112459         modules/hard-locale, modules/hash, modules/human, modules/idcache,
112460         modules/inttostr, modules/long-options, modules/makepath,
112461         modules/md5, modules/memcasecmp, modules/memcoll,
112462         modules/modechange, modules/mountlist, modules/path-concat,
112463         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
112464         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
112465         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
112466         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
112467         modules/strftime, modules/strndup, modules/strverscmp,
112468         modules/timespec, modules/unlocked-io, modules/userspec,
112469         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
112470         modules/yesno:
112471         Remove lib_SOURCES line from Makefile.am section, as this is now
112472         done automatically by the corresponding Autoconf macro.
112474 2005-03-21  Jim Meyering  <jim@meyering.net>
112476         Changes imported from coreutils.
112478         * lib/cycle-check.c: Don't include xalloc.h.
112480         * lib/path-concat.c: Don't include assert.h.
112481         (path_concat): Remove assertion that would have triggered
112482         for ABASE starting with more than one slash.
112483         Reported by Andreas Schwab.
112485         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
112486         properly when ABASE is an absolute file name.
112487         Correct the description of this function.
112488         Include <assert.h>.
112489         Add an assertion and a test driver.
112490         This fixes a bug introduced on 2004-07-02.
112491         Andreas Schwab reported the resulting failure of cp --parents:
112492         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
112494 2005-03-21  Jim Meyering  <jim@meyering.net>
112496         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
112497         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
112499 2005-03-21  Jim Meyering  <jim@meyering.net>
112500         and  Paul Eggert  <eggert@cs.ucla.edu>
112502         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
112503         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
112504         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
112505         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
112506         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
112507         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
112508         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
112509         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
112510         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
112511         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
112512         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
112513         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
112514         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
112515         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
112516         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
112517         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
112518         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
112519         for these modules.
112521 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
112523         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
112524         (which shouldn't happen), generate nothing instead of returning 0
112525         immediately, so that nstrftime (NULL, ...) doesn't return 0.
112527 2005-03-16  Bruno Haible  <bruno@clisp.org>
112529         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
112530         HAVE_LONGLONG_64BIT.
112532 2005-03-16  Bruno Haible  <bruno@clisp.org>
112534         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
112535         HAVE_LONGLONG_64BIT.
112537 2005-03-16  Bruno Haible  <bruno@clisp.org>
112539         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
112540         HAVE_LONGLONG_64BIT.
112542 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
112544         * lib/strftime.c (my_strftime): Prepend space to format so that we can
112545         reliably distinguish strftime failure from empty output on POSIX
112546         hosts.
112548 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
112550         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
112551         (iconv_string): Don't guess a size-zero buffer, as that might cause
112552         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
112553         result would be 'too large', where 'too large' is (heuristically)
112554         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
112555         overflow concerns.  This will prevent some unwanted malloc failures
112556         when the inputs are very large.
112558 2005-03-15  Karl Berry  <karl@gnu.org>
112560         * config/srclist.txt (config.rpath): from gettext.
112561         * config/config.rpath: update.
112563 2005-03-15  Bruno Haible  <bruno@clisp.org>
112565         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
112566         to 'negate'.
112568         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
112569         variable.
112571         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
112572         results.
112574 2005-03-14  Simon Josefsson  <jas@extundo.com>
112576         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
112577         <fx@gnu.org>.
112579 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
112581         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
112582         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
112583         intprops.h.
112584         * lib/strtol.c: Likewise.
112586 2005-03-14  Jim Meyering  <jim@meyering.net>
112588         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
112589         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
112590         to be nonzero so that we (and caller) can detect the difference
112591         between a valid zero-length expansion and an error return, even
112592         when the underlying strftime fails before writing anything into
112593         that location.
112595 2005-03-14  Bruno Haible  <bruno@clisp.org>
112597         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
112598         Update from GNU gettext 0.14.3.
112600 2005-03-10  Jim Meyering  <jim@meyering.net>
112602         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
112604 2005-03-10  Jim Meyering  <jim@meyering.net>
112606         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
112607         so that this module works on systems without fchdir.
112609 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
112611         Factor int-properties macros into a single file, except for
112612         glibc-related files.
112613         * lib/intprops.h: New file.
112614         * lib/getloadavg.c: Include it instead of limits.h.
112615         (INT_STRLEN_BOUND): Remove.
112616         * lib/human.c: Include intprops.h.
112617         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
112618         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
112619         302/1000.
112620         * lib/inttostr.h: Include intprops.h instead of limits.h.
112621         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
112622         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
112623         for consistency with intprops.h.
112624         (time_t_is_integer, twos_complement_arithmetic): Use them.
112625         * lib/sig2str.h: Include <signal.h>, intprops.h.
112626         (INT_STRLEN_BOUND): Remove.
112627         * lib/strftime.c (TYPE_SIGNED): Remove.
112628         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
112629         * lib/strtol.c: Adjust comments to match intprops.h.
112630         * lib/userspec.c: Include intprops.h.
112631         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
112632         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
112633         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
112634         instead of rolling our own expressions.
112635         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
112637         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
112638         instead of int.
112639         (my_strftime): Do not mishandle years close to INT_MAX, by doing
112640         the right thing even if adding 1900 would overflow.  Similarly
112641         for tm_mon + 1 and tm_yday + 1.
112642         Make %Y always equivalent to %C%y, and similarly for %G and %g.
112643         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
112644         (DO_SIGNED_NUMBER): New macro.
112645         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
112647 2005-03-07  Bruno Haible  <bruno@clisp.org>
112649         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
112651 2005-03-07  Bruno Haible  <bruno@clisp.org>
112653         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
112655 2005-03-04  Derek R. Price  <derek@ximbiot.com>
112657         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
112658         (func_import): Only replace files via --import when they have actually
112659         changed.
112661 2005-03-03  Derek R. Price  <derek@ximbiot.com>
112663         * m4/mmap-anon.m4: New file.
112664         * m4/pagealign_alloc.m4: New file.
112666 2005-03-03  Derek R. Price  <derek@ximbiot.com>
112667             Bruno Haible  <bruno@clisp.org>
112669         * modules/pagealign_alloc: New file.
112670         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
112672 2005-03-03  Derek R. Price  <derek@ximbiot.com>
112673             Bruno Haible  <bruno@clisp.org>
112675         * lib/pagealign_alloc.h: New file.
112676         * lib/pagealign_alloc.c: New file.
112678 2005-03-03  Bruno Haible  <bruno@clisp.org>
112680         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
112681         Use an all-permissive copyright notice, recommended by RMS.
112683 2005-03-02  Bruno Haible  <bruno@clisp.org>
112685         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
112686         of AIX, the replacement has to be done only after <string.h> is
112687         included, therefore not in config.h. stpncpy.h does the replacement,
112688         and stpncpy.c uses it.
112690 2005-03-02  Bruno Haible  <bruno@clisp.org>
112692         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
112693         stpncpy.c uses it.
112695 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
112697         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
112698         The workaround isn't strictly needed for POSIX conformance, and
112699         it's too much of a pain to configure and maintain.  We'll ask
112700         people to fix their kernels instead.
112701         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
112702         (NANOSLEEP_BUG_WORKAROUND): Remove.
112703         (xnanosleep): Remove the workaround.
112705 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
112707         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
112708         Reported by Derek Price.
112709         (Include): Add "timespec.h".
112711         * modules/xnanosleep (Depends-on): Remove gethrxtime.
112713 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
112715         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
112716         to detect nanosleep bug.
112718 2005-03-01  Bruno Haible  <bruno@clisp.org>
112720         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
112722 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
112724         * modules/gethrxtime: New file.
112725         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
112726         (Depends-on): Add gethrxtime.
112727         (configure.ac): Add gl_XNANOSLEEP.
112728         (Makefile.am): Remove lib_SOURCES line.
112730 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
112732         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
112733         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
112735 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
112737         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
112738         * lib/timespec.h (gettime): Return void, since it always
112739         succeeds now.  All uses changed.
112740         * lib/gettime.c (gettime): Likewise.
112741         [HAVE_NANOTIME]: Prefer nanotime.
112742         Assume gettimeofday succeeds, as POSIX requires.
112743         Assime time () succeeds, since other code already does.
112744         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
112745         (timespec_subtract): Remove.
112746         (NANOSLEEP_BUG_WORKAROUND): New constant.
112747         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
112748         things considerably.  Use it only on GNU/Linux hosts, since the
112749         workaround shouldn't be needed elsewhere.
112751 2005-02-24  Bruno Haible  <bruno@clisp.org>
112753         * modules/gettext (Files): Add m4/glibc2.m4.
112755 2005-02-24  Bruno Haible  <bruno@clisp.org>
112757         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
112758         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
112759         * m4/progtest.m4:
112760         Update from GNU gettext 0.14.2.
112761         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
112763 2005-02-24  Bruno Haible  <bruno@clisp.org>
112765         * lib/localcharset.c: Update from GNU gettext 0.14.2.
112766         * lib/config.charset: Update from GNU gettext 0.14.2.
112768 2005-02-24  Bruno Haible  <bruno@clisp.org>
112770         * lib/gettext.h: Update from GNU gettext 0.14.2.
112772 2005-02-23  Simon Josefsson  <jas@extundo.com>
112774         * m4/iconvme.m4: New file.
112776 2005-02-23  Jim Meyering  <jim@meyering.net>
112778         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
112779         change.
112780         Thanks to Bruno Haible for catching it.
112782 2005-02-22  Simon Josefsson  <jas@extundo.com>
112784         * modules/iconvme: New file.
112786         * MODULES.html.sh: Add iconvme.
112788 2005-02-22  Simon Josefsson  <jas@extundo.com>
112790         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
112792 2005-02-22  Simon Josefsson  <jas@extundo.com>
112794         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
112796 2005-02-22  Jim Meyering  <jim@meyering.net>
112798         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
112799         s/ifndef/ifdef/.
112801 2005-02-20  Neil Conway  <neilc@samurai.com>
112803         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
112804         returned by OSX/Darwin if the specified buffer is not large
112805         enough for the hostname.
112807 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112809         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
112810         pass it to _help, otherwise the latter coredumps trying to
112811         dereference state.root_argp.
112813 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
112815         * modules/chdir-long (Depends-on): Add memrchr.
112816         * modules/memrchr (Files): Add lib/memrchr.h.
112817         (Include): "memrchr.h".
112819 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
112821         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
112823 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
112825         * lib/memrchr.h: New file.
112826         * lib/chdir-long.c: Include it.
112827         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
112828         Don't bother including stddef.h.
112830 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
112832         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
112833         inclusion.
112834         Include <sys/types.h>, for dev_t.
112835         (ME_DUMMY, ME_REMOTE): Move from here....
112836         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
112837         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
112838         Dmitry V. Levin.
112839         Include mountlist.h first, to test the interface.
112841 2005-01-29  Bruno Haible  <bruno@clisp.org>
112843         * lib/progname.c (program_name): Initialize.
112844         Needed when linking statically on MacOS X.
112846 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
112848         Sync from coreutils.
112849         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
112850         (Depends-on): Add c-strtod.
112851         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
112853 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
112855         Sync from coreutils.
112856         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
112858         Remove files that are specific to coreutils.
112859         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
112861 2005-01-28  Bruno Haible  <bruno@clisp.org>
112863         * modules/javacomp: New file.
112864         * MODULES.html.sh (Java): Add javacomp.
112866 2005-01-28  Bruno Haible  <bruno@clisp.org>
112868         * m4/javacomp.m4: New file, from GNU gettext.
112870 2005-01-28  Bruno Haible  <bruno@clisp.org>
112872         * lib/javacomp.sh.in: New file, from GNU gettext.
112873         * lib/javacomp.h: New file, from GNU gettext.
112874         * lib/javacomp.c: New file, from GNU gettext.
112876 2005-01-26  Simon Josefsson  <jas@extundo.com>
112878         * lib/gai_strerror.c: Use GPL in header.
112880 2005-01-26  Bruno Haible  <bruno@clisp.org>
112882         * modules/javaexec: New file.
112883         * MODULES.html.sh (Java): Add javaexec.
112885 2005-01-26  Bruno Haible  <bruno@clisp.org>
112887         * m4/javaexec.m4: New file, from GNU gettext.
112889 2005-01-26  Bruno Haible  <bruno@clisp.org>
112891         * lib/javaexec.sh.in: New file, from GNU gettext.
112892         * lib/javaexec.h: New file, from GNU gettext.
112893         * lib/javaexec.c: New file, from GNU gettext.
112895 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112897         * modules/lchown (Depends-on): Remove lchown.h
112899 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112901         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
112902         must be defined if the header file was not found, in order
112903         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
112905 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112907         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
112908         initializers for struct pentry_state.
112909         (__argp_error): Check return value of __asprintf
112910         (__argp_failure): Translate error message
112912         * lib/argp-parse.c: Removed braces around the expansion of N_()
112914 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
112916         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
112917         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
112918         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
112919         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
112920         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
112921         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
112922         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
112923         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
112924         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
112925         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
112926         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
112927         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
112928         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
112929         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
112930         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
112931         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
112932         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
112933         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
112934         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
112935         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
112936         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
112937         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
112938         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
112939         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
112940         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
112941         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
112942         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
112943         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
112944         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
112945         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
112946         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
112947         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
112948         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
112949         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
112950         xstrtol.m4, xstrtoumax.m4, yesno.m4:
112951         Use an all-permissive copyright notice, recommended by RMS.
112953 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
112955         * modules/chdir-long (Depends-on): Remove mempcpy.
112957 2005-01-21  Jim Meyering  <jim@meyering.net>
112959         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
112960         same value as for Solaris 9.
112962         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
112963         component length.  This included changing the parameter to be
112964         of type `char *' rather than `char const *'.
112965         * lib/chdir-long.h (chdir_long): Update prototype.
112967         * lib/openat.c (fdopendir, fstatat): New functions.
112968         * lib/openat.h: Include headers required for use of DIR and struct
112969         stat.
112970         [AT_SYMLINK_NOFOLLOW]: Define.
112971         (fdopendir, fstatat): Add prototypes.
112973 2005-01-21  Bruno Haible  <bruno@clisp.org>
112975         * modules/classpath: New file.
112976         * MODULES.html.sh (Java): Add classpath.
112978 2005-01-21  Bruno Haible  <bruno@clisp.org>
112980         * lib/classpath.h: New file, from GNU gettext.
112981         * lib/classpath.c: New file, from GNU gettext.
112983 2005-01-20  Simon Josefsson  <jas@extundo.com>
112985         * modules/version-etc-fsf: New file.
112987 2005-01-20  Simon Josefsson  <jas@extundo.com>
112989         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
112990         * lib/version-etc.c: Remove version_etc_copyright.
112991         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
112992         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
112994 2005-01-20  Simon Josefsson  <jas@extundo.com>
112996         * lib/base64.h (isbase64): Add.
112998         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
112999         using a unsigned prototype, don't inline.
113000         (base64_decode): Use it.
113002 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
113004         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
113005         it.
113007 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
113009         * lib/save-cwd.c (save_cwd): Remove code to support the case
113010         where fchdir is missing or flaky.
113012 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
113014         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
113016 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
113018         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
113019         AC_LIBSOURCES now does this.
113020         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
113021         with new ullong_max module.
113023 2005-01-19  Bruno Haible  <bruno@clisp.org>
113025         * modules/sh-quote: New file.
113026         * MODULES.html.sh (Executing programs): Add sh-quote.
113028 2005-01-19  Bruno Haible  <bruno@clisp.org>
113030         * lib/sh-quote.h: New file, from GNU gettext.
113031         * lib/sh-quote.c: New file, from GNU gettext.
113033 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
113035         Merge from coreutils.
113036         * m4/ullong_max.m4: New file.
113037         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
113038         (gl_MACROS): Assume localeconv exists.
113040 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
113042         Merge changes from coreutils, as described below in several
113043         changelogs dated today.
113045         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
113046         (O_DIRECTORY): Remove; not needed here, since "." must be
113047         a directory.  All uses removed.
113048         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
113049         universal on Suns, and we also need to test for IRIX.
113050         Revamp code to use 'if' rather than '#if'.
113051         Avoid unnecessary comparison of cwd->desc to 0.
113053         * lib/utimens.c (futimens): Robustify the previous patch, by checking
113054         for known valid error numbers rather than observed invalid ones.
113056 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
113058         * modules/ullong_max: New file.
113060         * modules/chdir-long, modules/openat: New files.
113061         * modules/save-cwd (Depends-on): Depend on chdir-long.
113062         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
113064 2005-01-18  Jim Meyering  <jim@meyering.net>
113066         Merge from coreutils.
113067         * m4/chdir-long.m4, m4/openat.m4: New files.
113068         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
113069         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
113070         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
113071         is sane and DOES follow symlinks.  Besides, testing 20 different
113072         systems found no broken chown implementations.
113073         Prompted by a change in rsync's copy of this macro.
113074         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
113076         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
113078         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
113079         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
113080         NULL-means-set-to-current-time semantics.
113081         Remove temporary file immediately, rather than waiting
113082         for configure's at-exit trap code to do it.
113084 2005-01-18  Jim Meyering  <jim@meyering.net>
113086         * lib/version-etc.c (version_etc_copyright): Update copyright date.
113088         * lib/utimens.c (futimens): Account for the fact that futimes
113089         can also fail with errno == ENOSYS or errno == ENOENT.
113090         Patch from Dmitry V. Levin.
113092         Change the name of the robust chdir function from chdir to chdir_long.
113093         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
113094         (restore_cwd): Use chdir_long, not chdir.
113095         * lib/chdir-long.c: Renamed from chdir.c.
113096         * lib/chdir-long.h: Renamed from chdir.h.
113097         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
113098         Hurd.
113100 2005-01-18  Bruno Haible  <bruno@clisp.org>
113102         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
113103         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
113104         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
113105         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
113106         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
113107         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
113108         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
113109         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
113110         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
113111         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
113112         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
113113         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
113114         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
113115         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
113116         Use an all-permissive copyright notice, recommended by RMS.
113118 2005-01-18  Bob Proulx  <bob@proulx.com>
113120         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
113121         simplify offsetof() macro construct to avoid compile failure with
113122         native HP-UX 11.0 ANSI C compiler.
113124 2005-01-17  Bruno Haible  <bruno@clisp.org>
113126         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
113127         redundant because stpncpy.m4 takes care of it.
113129 2005-01-17  Bruno Haible  <bruno@clisp.org>
113131         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
113133 2005-01-17  Bruno Haible  <bruno@clisp.org>
113135         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
113136         used.
113138 2005-01-17  Bruno Haible  <bruno@clisp.org>
113140         * lib/fwriteerror.h (fwriteerror): Change specification to include
113141         fclose.
113142         * lib/fwriteerror.c: Include <stdbool.h>.
113143         (fwriteerror): At the end, close the file stream. Record whether
113144         stdout was already closed.
113146 2005-01-17  Bruno Haible  <bruno@clisp.org>
113148         * lib/execute.c (environ): Declare if needed.
113149         * lib/pipe.c (environ): Likewise.
113150         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
113152 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113154         * modules/argp: Depend on vsnprintf
113156 2005-01-10  Jim Meyering  <jim@meyering.net>
113158         * modules/closeout (Depends-on): Add atexit.
113160 2005-01-06  Bruno Haible  <bruno@clisp.org>
113162         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
113164 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
113166         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
113167         definitions to be after all include files, to avoid collisions.
113168         Problem reported by Bob Proulx.
113170 2005-01-04  Jim Meyering  <jim@meyering.net>
113172         Changes imported from coreutils.
113173         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
113174         as the mkstemp template, use a temporary directory and an
113175         8.3-friendly template to avoid trouble on systems like DJGPP.
113176         Reported by Juan M. Guerrero via Stepan Kasal.
113177         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
113178         close. Remove the temporary directory right away, rather than waiting
113179         for configure's at-exit trap code to do it.
113180         Suggestion from Stepan Kasal.
113182 2005-01-01  Simon Josefsson  <jas@extundo.com>
113184         * gnulib-tool: Print #include directives when --import'ing.
113186 2004-12-28  Simon Josefsson  <jas@extundo.com>
113188         * tests/test-base64.c: Include required header files.  Remove
113189         unused variables.
113191 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
113193         * modules/error (Depends-on): Remove gettext.
113195 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
113197         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
113198         not needed.  This removes a dependency on the gettext module.
113199         [defined _LIBC]: Do not include <libintl.h>; not needed.
113201 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
113203         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
113204         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
113206 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
113208         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
113209         HAVE_DECL_STRTOLD.
113211 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
113213         * modules/getdate (Depends-on): Remove alloca-opt.
113215 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
113217         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
113219 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
113221         * lib/argp-parse.c: Include <stddef.h>.
113222         (alignof, alignto): New macros.
113223         (parser_init): Don't assume that void * is aligned sufficiently
113224         for struct option.
113226         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
113227         need to extend the stack.
113228         (YYINITDEPTH): New macro, so that the initial stack isn't overly
113229         large.
113231 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113233         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
113235 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
113237         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
113238         (2004-10-24) change.  Apparently this was a false alarm.
113240         * modules/getdate: Depend on alloca-opt, not alloca.
113242 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
113244         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
113245         Remove now-obsolete comment about AIX.
113246         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
113247         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
113248         (YYMAXDEPTH): New macro.
113250 2004-12-18  Simon Josefsson  <jas@extundo.com>
113252         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
113254 2004-12-18  Bruno Haible  <bruno@clisp.org>
113256         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
113258 2004-12-18  Bruno Haible  <bruno@clisp.org>
113260         * lib/fatal-signal.c (fatal_signals): Make non-const.
113261         (init_fatal_signals): New function.
113262         (uninstall_handlers, install_handlers): Ignore signals that were set to
113263         SIG_IGN.
113264         (at_fatal_signal): Call init_fatal_signals.
113265         (init_fatal_signal_set): Likewise. Ignore signals that were set to
113266         SIG_IGN.
113267         Reported by Paul Eggert.
113269 2004-12-18  Bruno Haible  <bruno@clisp.org>
113271         * doc/alloca.texi: New file.
113272         * doc/alloca-opt.texi: New file.
113274 2004-12-17  Jim Meyering  <jim@meyering.net>
113276         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
113277         Otherwise, install-sh could exit with improper exit status when
113278         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
113280 2004-12-16  Simon Josefsson  <jas@extundo.com>
113282         * tests/test-base64.c: Add license.
113284 2004-12-15  Stepan Kasal  <address@hidden>
113286         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
113288 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
113290         * modules/getcwd (Files): Add m4/d-ino.m4.
113291         Suggested by Mark D. Baushke.
113293 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
113295         * lib/getdate.y (textint): New member "negative".
113296         (time_zone_hhmm): New function.
113297         Expect 14 shift-reduce conflicts, not 13.
113298         (o_colon_minutes): New rule.
113299         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
113300         (yylex): Set the "negative" member of signed numbers.
113302 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
113304         * doc/getdate.texi (Time of day items, Time zone items):
113305         Describe new formats +00:00, UTC+00:00.
113307 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
113309         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
113310         spurious "-l"s.  Problem reported by Stepan Kasal.
113312 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
113314         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
113315         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
113317 2004-12-04  Simon Josefsson  <jas@extundo.com>
113319         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
113320         Vandoorselaere <yoann@prelude-ids.org>.
113322 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
113324         Changes imported from coreutils.
113325         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
113326         exist.
113327         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
113329 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
113331         Changes imported from coreutils.
113332         * lib/hard-locale.c: Assume <locale.h> exists.
113333         Include "strdup.h".
113334         (GLIBC_VERSION): New macro.
113335         (hard_locale): Assume setlocale exists.
113336         Rewrite to avoid #ifdef.
113337         Use strdup rather than malloc + strcpy.
113338         * lib/human.c: Assume <locale.h> exists.
113339         (human_readable): Assume localeconv exists.
113341 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
113343         * modules/hard-locale (Depends-on): Add strdup.
113345 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
113347         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
113348         convert T2, not T.  (Imported from libc.)
113350 2004-11-30  Simon Josefsson  <jas@extundo.com>
113352         * modules/restrict (License): Change to LGPL.
113354 2004-11-30  Simon Josefsson  <jas@extundo.com>
113356         * m4/restrict.m4: Add copyright and copying conditions.
113358 2004-11-30  Simon Josefsson  <jas@extundo.com>
113360         * m4/base64.m4: New file.
113362 2004-11-30  Simon Josefsson  <jas@extundo.com>
113364         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
113365         base64.
113367         * tests/test-base64.c: New file.
113369         * modules/base64: New file.
113371 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
113373         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
113374         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
113376         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
113378 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
113380         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
113381         (__getcwd.c): Don't restore errno; glibc doesn't.
113382         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
113383         first, falling back to our code only if its results look suspicious.
113384         Ensure that the resulting buffer is only as large as necessary.
113386         * lib/readutmp.c: Include readutmp.h first.
113387         Include <errno.h>, since readutmp.h no longer does that.
113388         * lib/readutmp.h: Don't include <errno.h>,
113389         <sys/param.h>, <time.h>; not needed to establish interface.
113390         (errno): Remove decl.
113391         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
113392         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
113393         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
113395 2004-11-28  Simon Josefsson  <jas@extundo.com>
113397         * lib/base64.h, base64.c: New file.
113399 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
113401         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
113403 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
113405         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
113406         (Depends-on): Remove pathmax, same.  Add mempcpy.
113407         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
113408         (Makefile.am): Append getcwd.h to lib_SOURCES.
113409         (Include): Add getcwd.h.
113410         (Maintainer): Change from Jim Meyering to "all, glibc",
113411         since getdate now uses intended-for-glibc code.
113412         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
113413         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
113415 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
113417         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
113418         HP's ANSI C compiler.
113419         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
113420         Declaring int functions causes warnings on some modern systems and
113421         shouldn't be needed to compile on ancient ones.
113422         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
113423         defined.
113425         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
113426         with the following changes.
113427         (__set_errno): Parenthesize properly.
113428         Include <stdbool.h>.
113429         (MIN, MAX, MATCHING_INO): New macros.
113430         (__getcwd): Define with prototype, not K&R form.
113431         Use heuristics to allocate default buffer on stack if possible.
113432         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
113433         behavior, and to avoid the PATH_MAX limit when computing
113434         ../../../../...
113435         Use MATCHING_INO to compare inode number to file.
113436         Check for arithmetic overflow in size calculations.
113437         Fix bug in reallocation of dot array that caused getcwd to fail
113438         on directories nested deeper than 75.
113439         Be more careful about saving errno on error.
113440         Do not use realloc; use only free+malloc, as this is a bit
113441         more flexible and avoids a needless copy operation.
113442         Do not inspect st_dev and st_ino for symbolic links; POSIX
113443         doesn't specify the latter.
113444         Check for closedir errors.
113445         Avoid needless casts.
113446         Use "#ifdef weak_alias" around weak_alias, to be like other
113447         glibc code.
113448         The following changes to getcwd.c have effect only when used in
113449         gnulib; they have no effect inside glibc proper.
113450         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
113451         as alloca isn't used.
113452         (alloca, __alloca): Likewise.
113453         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
113454         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
113455         unconditionally, as gnulib assumes C89 or better.
113456         Do not include <sys/param.h>.
113457         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
113458         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
113459         better.
113460         (NULL) [!defined NULL]: Remove; we assume C89 or better.
113461         Include <dirent.h> in a way that is compatible with modern Autoconf.
113462         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
113463         New macros, if not already defined.
113464         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
113465         Use "_LIBC", not "defined _LIBC", for consistency.
113466         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
113467         a mempcpy module.
113468         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
113469         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
113470         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
113471         credit only to Jim Meyering and adjust the copyright dates.
113472         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
113473         <stdlib.h>, <unistd.h>, "pathmax.h".
113474         Instead, include "xgetcwd.h" (first) and "getcwd.h".
113475         (INITIAL_BUFFER_SIZE): Remove.
113476         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
113478 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
113480         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
113481         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
113482         Use the _ONCE methods, for efficiency.
113483         Check for fcntl.h.  In test program, include <errno.h>
113484         and <fcntl.h> if available.  Remove old K&R cruft from
113485         test program.  Check for common errors in GNU/Linux,
113486         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
113487         don't do AC_LIBOBJ, as that's getcwd.m4's job.
113488         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
113489         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
113490         name accordingly.
113491         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
113492         accommodate new getcwd.c.
113493         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
113494         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
113495         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
113496         that's all we need now.
113498 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113500         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
113501         argp-parse.c depends on getopt internals, that means we should
113502         always use our getopt, to be on the safe side.
113503         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
113504         order not to spoil the result of an eventual previous invocation
113505         of gl_GETOPT_SUBSTITUTE.
113507 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113509         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
113510         redefinition warnings. To avoid them, include the defines
113511         in `#if !defined __need_getopt ... #endif'. The only place
113512         where __getopt_argv_const is used is in definitions
113513         of getopt_long and getopt_long_only below, which are as well
113514         protected by `#ifndef __need_getopt'.
113515         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
113516         __need_getopt after including <stdio.h> and <unistd.h> These
113517         headers might have defined it.
113519 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
113521         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
113523 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
113525         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
113526         (futimens): New function, which uses futimes if available.
113527         (futimens, utimens): Support timespec==NULL, with same semantics
113528         as utime and utimens.
113529         * lib/utimens.h (futimens): New decl.
113531 2004-11-23  Jim Meyering  <jim@meyering.net>
113533         * lib/getopt_.h: Remove trailing blanks.
113535 2004-11-23  Jim Meyering  <jim@meyering.net>
113537         * lib/__fpending.c: Add comment.
113539 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
113541         * modules/canonicalize (Depends-on): Add xreadlink.
113542         Problem reported by James Youngman.
113544 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
113546         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
113547         New macros.
113548         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
113549         optopt): Use them instead of invoking ## directly; otherwise, the
113550         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
113552 2004-11-19  Bruno Haible  <bruno@clisp.org>
113554         * lib/strtok_r.c: Move comments from here...
113555         * lib/strtok_r.h: ... to here.
113557 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
113559         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
113560         implementations that mishandle size_t overflow.
113562 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
113564         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
113565         might fail.  Problem reported by Yoann Vandoorselaere.
113566         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
113567         implementations that mishandle size_t overflow.
113569 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
113571         * modules/canon-host (Depends-on): Add strdup.
113573 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
113575         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
113577 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
113579         * lib/canon-host.c: Include "strdup.h".
113580         (canon_host): Use getaddrinfo if available, so that IPv6 works.
113581         Use strdup instead of malloc/strcpy to duplicate strings.
113583         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
113584         (human_space_before_unit): New constant.
113585         * lib/human.c (human_readable): Support it.
113587         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
113588         (xgetcwd): Set errno correctly when failing.
113589         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
113590         the failure is actually due to a PATH_MAX problem.
113592         Further getopt changes to make it more likely that glibc will
113593         buy the changes back.
113594         * lib/getopt.c (POSIXLY_CORRECT): New constant.
113595         (getopt): Use it, so to preserve glibc semantic
113596         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
113597         when compiling for libc.
113598         * lib/getopt_.h (__getopt_argv_const): Bring it back.
113599         (getopt_long, getopt_long_only): Use it.
113601         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
113602         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
113603         (getopt): Argv is now char * const *, as per standard.
113604         (_getopt_internal_r, _getopt_internal): Argv is now char **,
113605         not char *__getopt_argv_const *.
113606         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
113607         _getopt_long_only_r): Likewise.
113608         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
113609         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
113610         _getopt_long_r, _getopt_long_only_r): Likewise.
113611         * lib/getopt_.h (__getopt_argv_const): Remove.
113612         (getopt): Argv is now char * const *, as per standard.
113614         * lib/getdate.y (tORDINAL): New token.
113615         (day, relunit): Allow it for relative times.
113616         (relative_time_table): Use tORDINAL for ordinals.
113618 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
113620         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
113621         Document that "second" isn't allowed as an ordinal number.
113623 2004-11-16  Jim Meyering  <jim@meyering.net>
113625         * modules/closeout (Depends-on): Add fpending.
113627 2004-11-15  Jim Meyering  <jim@meyering.net>
113629         * lib/closeout.c: Include "__fpending.h" once again.
113630         Include <stdbool.h>.
113631         (close_stdout): Don't fail just because stdout was closed initially,
113632         since some programs don't write to stdout in the normal course of
113633         operation (other than --version and --help), and we don't want this
113634         function to make e.g. `touch file >&-' fail.
113635         But do fail if it was closed and someone has tried to write to it.
113636         E.g., `printf foo >&-' must fail.
113638 2004-11-13  Jim Meyering  <jim@meyering.net>
113640         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
113642 2004-11-12  Simon Josefsson  <jas@extundo.com>
113644         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
113645         small doc fix is still pending.
113647 2004-11-11  Simon Josefsson  <jas@extundo.com>
113649         * modules/strtok_r: New file.
113651         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
113652         strtok_r.
113654 2004-11-11  Simon Josefsson  <jas@extundo.com>
113656         * m4/strtok_r.m4: New file.
113658         * m4/getopt.m4: Replace opterr.
113660 2004-11-11  Simon Josefsson  <jas@extundo.com>
113662         * lib/strtok_r.h, strtok_r.c: New file.
113664 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
113666         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
113667         of replacing opterr, getopt, etc.  This should handle the
113668         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
113670 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
113672         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
113673         we can stop lying to compilers about the constness of argv when we
113674         are compiled outside glibc.
113675         (getopt, getopt_long, getopt_long_only): Use it.
113676         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
113677         _getopt_internal, getopt): Likewise.
113678         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
113679         _getopt_long_only_r): Likewise.
113680         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
113681         _getopt_long_r, _getopt_long_only_r): Likewise.
113683         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
113684         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
113685         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
113686         the other external symbols.
113687         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
113688         declaration, since the above renaming now works around collisions.
113690 2004-11-11  Jim Meyering  <jim@meyering.net>
113692         * lib/linebreak.c: Remove trailing blanks.
113693         * lib/alloca_.h: Likewise.
113694         * lib/acosl.c: Likewise.
113695         * lib/euidaccess.c: Likewise.
113696         * lib/allocsa.h: Likewise.
113698 2004-11-10  Simon Josefsson  <jas@extundo.com>
113700         * m4/getaddrinfo.m4: New file.
113702 2004-11-10  Simon Josefsson  <jas@extundo.com>
113704         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
113706 2004-11-10  Simon Josefsson  <jas@extundo.com>
113708         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
113709         getaddrinfo.
113711         * modules/getaddrinfo: New file.
113713 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
113715         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
113717 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
113719         * lib/mktime.c (SHR): New macro, which is a portable
113720         substitute for >> that should work even on Crays.
113721         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
113722         Problem reported by Mark D. Baushke in
113723         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
113724         * lib/getdate.y (SHR): Likewise.
113725         (tm_diff): Use it.
113726         * lib/strftime.c (SHR): Likewise.
113727         (tm_diff): Use it.
113728         * lib/quotearg.c (struct quoting_options): Use unsigned int for
113729         quote_these_too, so that right shifts are well defined.  All uses
113730         changed.
113732 2004-11-10  Jim Meyering  <jim@meyering.net>
113734         Ensure that no close failure goes unreported.
113735         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
113736         return early when it seems there's nothing to flush.
113737         Don't include __fpending.h.
113739 2004-11-10  Jim Meyering  <jim@meyering.net>
113741         * modules/closeout (Depends-on): Remove fpending.
113743 2004-11-10  Jim Meyering  <jim@meyering.net>
113745         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
113747 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
113749         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
113750         gl_FUNC_STRFTIME.
113751         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
113752         and AC_REQUIRE when possible, to avoid duplicate checks.
113753         Check for <wchar.h>.
113755 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
113757         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
113759 2004-11-09  Bruno Haible  <bruno@clisp.org>
113761         * m4/sockpfaf.m4: New file.
113763 2004-11-05  Bruno Haible  <bruno@clisp.org>
113765         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
113766         Reported by Mark D. Baushke <mdb@cvshome.org>.
113768 2004-11-04  Bruno Haible  <bruno@clisp.org>
113770         2004-09-11  Bruno Haible  <bruno@clisp.org>
113771                 * allocsa.valgrind: New file.
113772         2004-02-06  Bruno Haible  <bruno@clisp.org>
113773                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
113774                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
113775                 Reported by Christopher Seip <chris.seip@hp.com>.
113777 2004-11-04  Bruno Haible  <bruno@clisp.org>
113779         * modules/allocsa (Files): Add lib/allocsa.valgrind.
113780         (Makefile.am): Distribute it.
113782 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
113784         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
113785         with errno == ERANGE if the buffer is too small.
113786         Problem reported by Mark D. Baushke.
113788 2004-11-03  Albert Chin  <china@thewrittenword.com>
113789             Paul Eggert  <eggert@cs.ucla.edu>
113791         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
113792         equivalent, substitute $ac_type for equivalent type rather than
113793         blindly using uint32_t *always* which won't work if uint32_t is not
113794         available.  Define _UINT32_T to work around typedef of uint32_t if
113795         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
113796         2.5.1.
113798 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
113800         * m4/jm-macros.m4: Sync from coreutils.
113801         (gl_MACROS): Check for mbrlen, for pathchk.
113802         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
113804 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
113806         * lib/xreadlink.c (MAXSIZE): New macro.
113807         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
113808         size does not exceed MAXSIZE.  Avoid cast.
113809         As suggested by Mark D. Baushke in
113810         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
113811         if readlink fails with buffer size just under MAXSIZE, try again
113812         with MAXSIZE.
113814 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
113816         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
113818 2004-11-02  Derek R. Price  <derek@ximbiot.com>
113819         and  Paul Eggert  <eggert@cs.ucla.edu>
113821         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
113822         (get_date): Overparenthesize to avoid GCC warning.
113824 2004-11-02  Bruno Haible  <bruno@clisp.org>
113826         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
113827         returns void.
113829 2004-11-02  Bruno Haible  <bruno@clisp.org>
113831         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
113832         function returns void.
113834 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
113836         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
113837         fflush_unlocked, flockfile, funlockfile, funlockfile,
113838         fputs_unlocked, putc_unlocked.
113840 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
113842         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
113843         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
113844         already declared.
113846 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
113848         * modules/getdate (Files): Add doc/getdate.texi.
113849         (Depends-on): Add setenv, xalloc.
113851 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
113853         * lib/getdate.y: Add support for TZ="foo" within a date string.
113854         Fix some bugs near time_t boundaries.  Reject dates with
113855         out-of-range components, e.g., "Sept 31".
113856         Include <stdlib.h>, "setenv.h", "xalloc.h".
113857         (ISDIGIT_LOCALE): Remove; unused.
113858         Note that the TZ and time functions used here are not reentrant.
113859         (mktime_ok, get_tz): New functions.
113860         (TZBUFSIZE): New constant.
113861         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
113862         This requires that we sometimes generate our own TZ="XXX..." setting.
113864 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
113866         * doc/getdate.texi: New file, from coreutils with modifications for
113867         the new TZ parsing.
113869 2004-10-27  Derek R. Price  <derek@ximbiot.com>
113871         * lib/mktime.c (not_equal_tm): Remove redundant check.
113873 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
113875         * modules/regex (lib_SOURCES): Add regex.c.
113876         Reported by James Youngman in
113877         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
113879 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
113881         * lib/getdate.y: Use Bison 1.875 features, and some minor
113882         code cleanups.  This change does not affect semantics.
113883         Don't include <stdlib.h>; no longer needed.
113884         Don't include unlocked-io.h; only the "#if TEST" code uses
113885         stdio, and performance isn't crucial there.
113886         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
113887         Bison 1.875 features as described below.
113888         All uses of "PC." replaced by "pc->".
113889         (YYSTYPE): Add a forward declaration.
113890         (yylex, yyerror): Use full prototypes in forward decls.
113891         Use "%pure-parser" rather than obsolescent "%pure_parser".
113892         Use %parse-param and %lex-param instead of obsolescent
113893         YYPARSE_PARAM and YYLEX_PARAM.
113894         (meridian_table, month_and_day_table, time_units_table,
113895         relative_time_table, time_zone_table, military_table,
113896         lookup_zone, lookup_word, get_date):
113897         Use NULL instead of 0 where appropriate.
113898         (to_hour): Avoid abort (), to avoid a dependency on
113899         stdlib.h.
113900         (yyerror, yylex): Now accepts parser_control * arg.
113901         (main) [TEST]: Use '\0' rather than 0 for char.
113903 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
113905         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
113907 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
113909         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
113910         It's now the caller's responsibility to handle the case where
113911         !HAVE_GETPAGESIZE && !defined getpagesize.
113913         * lib/mktime.c (leapyear): Arg is long int, not int.
113915 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
113917         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
113919 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
113921         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
113922         missing.  Problem reported by James Youngman.
113924 2004-10-16  Simon Josefsson  <jas@extundo.com>
113926         * gnulib-tool: Fix comments.  Fix parse problem.
113927         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
113929 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
113931         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
113932         implementation of getopt_long.  Problem reported by Alexander Taler in:
113933         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
113935 2004-10-15  Bruno Haible  <bruno@clisp.org>
113937         * gnulib-tool: Untabify. Initialize supplied_libname.
113938         (func_usage): More homogenous output.
113939         (func_modules_transitive_closure, func_modules_to_filelist,
113940         func_emit_lib_Makefile_am): New functions.
113941         (func_import): New function, extracted from big case statement. Use
113942         func_get_license, func_modules_transitive_closure,
113943         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
113944         opt_lgpl. Don't use test -a, as it's not portable.
113945         (func_create_testdir): Use func_modules_transitive_closure,
113946         func_modules_to_filelist, func_emit_lib_Makefile_am.
113948 2004-10-15  Bruno Haible  <bruno@clisp.org>
113950         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
113952 2004-10-15  Bruno Haible  <bruno@clisp.org>
113954         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
113955         the portions belonging to each module.
113956         Suggested by Derek Robert Price <derek@ximbiot.com>.
113958 2004-10-12  Simon Josefsson  <jas@extundo.com>
113960         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
113961         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
113962         to real functions.
113964 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113966         * modules/vsnprintf: New file.
113968 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113970         * m4/vsnprintf.m4: New file.
113972 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113974         * lib/vsnprintf.h: New file.
113975         * lib/vsnprintf.c: New file.
113977 2004-10-11  Bruno Haible  <bruno@clisp.org>
113979         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
113980         vsnprintf.
113982 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
113984         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
113986 2004-10-07  Bruno Haible  <bruno@clisp.org>
113988         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
113989         fits into the provided buffer.
113991 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
113993         * lib/diacrit.c, diacrit.h: Add GPL notice.
113995         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
113996         notice.
113997         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
113998         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
113999         This avoids a potential constant-folding bug.
114001 2004-10-05  Bruno Haible  <bruno@clisp.org>
114003         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
114004         for the declaration of strsep.
114006 2004-10-05  Bruno Haible  <bruno@clisp.org>
114008         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
114010 2004-10-04  Simon Josefsson  <jas@extundo.com>
114012         * modules/memmem: New file.
114013         * tests/test-memmem.c: New file.
114014         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
114016 2004-10-04  Simon Josefsson  <jas@extundo.com>
114018         * m4/memmem.m4: New file.
114020 2004-10-04  Simon Josefsson  <jas@extundo.com>
114022         * lib/memmem.h: New file.
114023         * lib/memmem.c: New file, taken from glibc.
114025 2004-10-04  Simon Josefsson  <jas@extundo.com>
114027         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
114028         '#ifdef USE_UNLOCKED_IO'.
114030 2004-10-04  Simon Josefsson  <jas@extundo.com>
114032         * config/srclist.txt: Add memmem from glibc.
114034 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
114036         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
114038         * modules/argmatch, modules/argp, modules/closeout, modules/error,
114039         modules/exclude, modules/getdate, modules/getline,
114040         modules/getndelim2, modules/getpass, modules/getpass-gnu,
114041         modules/getusershell, modules/linebuffer, modules/md5,
114042         modules/mountlist, modules/posixtm, modules/readtokens,
114043         modules/readutmp, modules/regex, modules/sha1,
114044         modules/version-etc, modules/yesno:
114045         Remove dependency on unlocked-io.
114047 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
114049         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
114051         * m4/unlocked-io.m4: Add copyright notice.
114052         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
114054 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
114056         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
114057         * lib/xmalloc.c (xmemdup): Likewise.
114058         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
114059         XFREE): Remove these long-obsolescent macros.
114060         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
114061         * lib/xstrdup.c: Remove.
114063         * lib/regex.c (re_comp): Cast gettext return value to char *,
114064         Problem reported by Martin Neitzel via Mark D. Baushke.
114066 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
114068         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
114069         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
114070         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
114071         regex.c, sha1.c, version-etc.c, yesno.c:
114072         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
114073         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
114074         the includer's responsibility.
114076         Sync from coreutils.
114078         * lib/modechange.c (mode_compile): Don't decrement a pointer that
114079         points to the start of a string, as the C Standard says the
114080         resulting behavior is undefined.
114082         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
114083         simple -> simple_backups, numbered_existing ->
114084         numbered_existing_backups, numbered -> numbered_backups
114085         to avoid shadowing problems.  All uses changed.
114086         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
114087         * lib/backupfile.c (check_extension, numbered_backup):
114088         Rename locals to avoid shadowing 'basename'.
114089         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
114090         once.
114092         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
114093         * lib/.cvsignore: Add getopt.h.
114095 2004-10-04  Bruno Haible  <bruno@clisp.org>
114097         * modules/README: New file.
114098         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
114099         not a module.
114101 2004-10-02  Jim Meyering  <jim@meyering.net>
114103         * lib/dirfd.h, getpagesize.h: Add copyright notice.
114105 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
114107         * modules/strsep: New file.
114109 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
114111         * m4/strsep.m4: New file.
114113 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
114115         * lib/strsep.h: New file.
114116         * lib/strsep.c: New file.
114118 2004-10-01  Simon Josefsson  <jas@extundo.com>
114120         * lib/snprintf.c (snprintf): Handle size==0.
114122 2004-10-01  Simon Josefsson  <jas@extundo.com>
114123             Bruno Haible  <bruno@clisp.org>
114125         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
114126         (snprintf): Declare 'args'.
114128 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
114130         * lib/snprintf.c: Remove comments as to why each header is needed.
114132 2004-10-01  Bruno Haible  <bruno@clisp.org>
114134         * MODULES.html.sh: Add strsep.
114136 2004-09-30  Simon Josefsson  <jas@extundo.com>
114138         * modules/snprintf: New file.
114140 2004-09-30  Simon Josefsson  <jas@extundo.com>
114142         * m4/snprintf.m4: New file.
114144 2004-09-30  Simon Josefsson  <jas@extundo.com>
114146         * lib/snprintf.h, lib/snprintf.c: New files.
114148 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
114150         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
114151         (hol_entry_help): Never translate an empty string.
114152         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
114153         * lib/argp.h (OPTION_NO_TRANS): New option.
114155 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
114157         * modules/argp (Maintainer): Replace Simon Josefsson
114158         by Sergey Poznyakoff.
114160 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
114162         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
114163         changes merged back into glibc.
114165 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
114167         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
114169 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
114171         * lib/xvasprintf.c: Include xalloc.h.
114172         (xvasprintf): Use xalloc_die, not xmalloc_die.
114174 2004-09-29  Bruno Haible  <bruno@clisp.org>
114176         * modules/alloca-opt: New file, derived from modules/alloca.
114177         * modules/allocsa: Depend on alloca-opt instead of alloca.
114178         * modules/setenv: Likewise.
114179         * modules/vasnprintf: Likewise.
114180         * MODULES.html.sh: Add alloca-opt.
114182 2004-09-28  Simon Josefsson  <jas@extundo.com>
114184         * gnulib-tool: New parameter --lgpl, to asseert that modules are
114185         LGPL, and to replace license template from GPL to LGPL.
114187 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
114189         * modules/dummy: Change license to LGPL.
114191 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
114193         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
114195 2004-09-24  Simon Josefsson  <jas@extundo.com>
114197         * modules/minmax (License): Change from GPL to LGPL.
114199 2004-09-23  Simon Josefsson  <jas@extundo.com>
114201         * gnulib-tool (--import): Typo.
114203 2004-09-23  Simon Josefsson  <jas@extundo.com>
114205         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
114207 2004-09-22  Bruno Haible  <bruno@clisp.org>
114209         * modules/*: Add 'License' field.
114210         * gnulib-tool: Accept --extract-license option.
114211         (func_get_license): New function.
114213 2004-09-21  Bruno Haible  <bruno@clisp.org>
114215         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
114216         Reported by Simon Josefsson.
114218 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
114220         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
114221         gl_AC_TYPE_LONG_LONG.
114223 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
114225         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
114227 2004-09-18  Simon Josefsson  <jas@extundo.com>
114228         and  Paul Eggert  <eggert@cs.ucla.edu>
114230         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
114231         calls with autoreconf.  Define GL_LIB.
114233 2004-09-14  Karl Berry  <karl@gnu.org>
114235         * config/srclist.txt: unsync setenv.c, sigh.
114237 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
114239         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
114240         Problem reported by Bruno Haible in:
114241         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
114243 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
114245         * config/srclist.txt: Comment out argp-pvh.c.
114247 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
114249         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
114250         in case some system header has #define'd it.  Problem reported by
114251         Soeren D. Schulze in
114252         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
114254 2004-09-09  Karl Berry  <karl@gnu.org>
114256         * regex.[ch]: delete from the root.  These were supposed to be
114257                 synced with emacs cvs, but this has not happened for about
114258                 a year, and anyway nothing else uses emacs regex.[ch].
114259                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
114260                 lib/regex[.ch] is untouched.
114262 2004-09-09  Bruno Haible  <bruno@clisp.org>
114264         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
114266 2004-09-09  Bruno Haible  <bruno@clisp.org>
114268         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
114269         modifications.
114270         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
114272 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
114274         * modules/xvasprintf: New file.
114275         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
114277 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
114279         * lib/xvasprintf.h: New file.
114280         * lib/xvasprintf.c: New file.
114281         * lib/xasprintf.c: New file.
114283 2004-09-08  Bruno Haible  <bruno@clisp.org>
114285         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
114287 2004-09-08  Bruno Haible  <bruno@clisp.org>
114289         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
114290         length is > INT_MAX.
114291         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
114292         more.
114294 2004-09-08  Bruno Haible  <bruno@clisp.org>
114296         * lib/stdint_.h: New file, taken from GNU clisp.
114298 2004-09-08  Bruno Haible  <bruno@clisp.org>
114299             Oskar Liljeblad  <oskar@osk.mine.nu>
114301         * modules/stdint: New file.
114302         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
114304 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114306         Import from coreutils.
114307         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
114308         strings on unbounded length.  alloca's performance benefits aren't
114309         that important here.
114310         (V_STRDUP): Remove.
114311         (parse_with_separator): New function, with most of the internals
114312         of the old parse_user_spec.  Allow user to omit both user and group,
114313         for compatibility with FreeBSD.
114314         Clone only the user name, not the entire spec.
114315         Do not set *uid, *gid unless entirely successful.
114316         Avoid memory leak in some failing cases.
114317         Fix regression for USER.GROUP reported by Dmitry V. Levin in
114318         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
114319         (parse_user_spec): Rewrite to use parse_with_separator.
114321 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114323         * modules/userspec: Don't depend on alloca.
114325 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114327         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
114329 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114331         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
114332         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
114333         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
114335 2004-08-16  Simon Josefsson  <jas@extundo.com>
114337         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
114338         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
114339         Add --dry-run for --import.
114340         Let user provided command line parameters override configure.ac
114341         settings.
114343 2004-08-12  Simon Josefsson  <jas@extundo.com>
114345         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
114346         as discussed with Paul Eggert in threads rooted at
114347         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
114348         and
114349         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
114350         Before, the test was empty, and relied on ELIDE_CODE in source
114351         code.)
114352         (gl_PREREQ_GETOPT): New macro.
114353         (gl_GETOPT): Use them.
114355 2004-08-12  Simon Josefsson  <jas@extundo.com>
114357         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
114358         * lib/getopt_.h: Renamed from getopt.h.
114360 2004-08-12  Simon Josefsson  <jas@extundo.com>
114362         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
114363         Change default library name from libfoo to libgnu.
114364         Now, if you have a configure.ac that says:
114365                 gl_SOURCE_BASE(gl)
114366                 gl_M4_BASE(gl/m4)
114367                 gl_MODULES(error getopt etcetera)
114368                 gl_INIT
114369         you can import all you need by running:
114370                 ../gnulib/gnulib-tool --import
114372         * modules/getopt (Files): Rename getopt.h to getopt_.h.
114373         (Makefile.am): Rewrite, use logic from argz.
114374         (Include): Use <getopt.h> instead of "getopt.h".
114376 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
114378         * modules/argp (Files): Add m4/unlocked-io.m4.
114379         (Depends-on): Add extensions.
114381 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
114383         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
114384         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
114385         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
114386         Check for program_invocation_name, program_invocation_short_name,
114387         flockfile, funlockfile, features.h, _getopt_long_only_r.
114389 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
114391         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
114392         its complicated substitute.
114393         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
114394         and program_invocation_name.
114395         (__argp_basename) [!_LIBC]: Remove; the only use was
114396         replaced by its body.
114397         (__argp_short_program_name): Change condition from
114398         !defined __argp_short_program_name to
114399         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
114400         to match argp-namefrob.h.
114401         (__argp_failure): Don't assume strerror_r returns char *.
114402         * lib/argp-parse.c (N_): Define unconditionally.
114403         (argp_default_options): Fill out initializers with 0 to avoid
114404         gcc warnings.
114406 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
114408         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
114409         getopt1.c.
114411 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
114413         Merge from coreutils.
114415         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
114417         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
114418         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
114420 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
114422         Merge from coreutils.
114424         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
114425         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
114426         for Reliant Unix 5.43.
114428         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
114429         (union fooround): Use uintmax_t, not long int.
114430         The rest is a merge from libc:
114431         [defined _LIBC]: Include <shlib-compat.h>.
114432         (_obstack) [defined _LIBC]: Remove after 2.3.4.
114434         * lib/settime.c (settime): Recode to avoid warning with
114435         Sun Forte C 6U2.
114437         * lib/strverscmp.c: Convert to UTF-8.
114439 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
114441         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
114442         m4/uintmax_t.m4.
114444 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114446         * modules/xalloc-die: New file.
114447         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
114449         * modules/md5 (Files): Add m4/uint32_t.m4.
114450         * modules/sha1: Renamed from modules/sha.
114451         (Files):
114452         Rename lib/sha.h to lib/sha1.h.
114453         Rename lib/sha.c to lib/sha1.c.
114454         Rename m4/sha.m4 to m4/sha1.m4.
114455         (lib_SOURCES): Likewise.
114456         (configure.ac): Rename gl_SHA to gl_SHA1.
114457         (Include): sha.h -> sha1.h.
114459 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114461         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
114462         * m4/sha1.m4: Renamed from sha.m4.
114463         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
114465 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114467         * lib/obstack.h (obstack_empty_p):
114468         Don't assume that chunk->contents is suitably aligned.
114469         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
114470         Likewise. Problem reported by Benno in
114471         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
114473         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
114474         readable.  This could be improved further but it'd take some work.
114476 2004-08-08  Simon Josefsson  <jas@extundo.com>
114478         * modules/xgethostname (Depends-on): Remove exit and error (not
114479         used).
114481         * modules/getpass-gnu: Add getpass.h.
114482         (Depends-on): Add stdbool.
114483         * modules/getpass: Add getpass.h.
114485 2004-08-08  Simon Josefsson  <jas@extundo.com>
114487         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
114488         Check getpass declaration.
114490 2004-08-08  Simon Josefsson  <jas@extundo.com>
114492         * lib/xgethostname.c: Don't include error.h (not used).
114494         * lib/getpass.h: Add.
114495         * lib/getpass.c: Include getpass.h first.
114497 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
114499         * lib/xalloc-die.c: New file.
114500         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
114501         All uses removed.
114502         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
114503         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
114504         xalloc-die.c.
114505         (_, N_, xalloc_die): Move to xalloc-die.c.
114506         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
114507         so that we needn't mess with xalloc_msg_memory_exhausted.
114509         * lib/sha1.h: Renamed from sha.h.
114510         (SHA1_H): Renamed from _SHA_H.
114511         (sha1_ctx): Renamed from sha_ctx.
114512         (sha1_init_ctx): Renamed from sha_init_ctx.
114513         (sha1_process_block): Renamed from sha_process_block.
114514         (sha1_process_bytes): Renamed from sha_process_bytes.
114515         (sha1_finish_ctx): Renamed from sha_finish_ctx.
114516         (sha1_read_ctx): Renamed from sha_read_ctx.
114517         (sha1_stream): Renamed from sha_stream.
114518         (sha1_buffer): Renamed from sha_buffer.
114519         * lib/sha1.c: Likewise; renamed from sha.c.
114520         Do not include <sys/types.h>.
114521         Include <stddef.h> rather than <stdlib.h>.
114523 2004-08-08  Bruno Haible  <bruno@clisp.org>
114525         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
114526         FILESYSTEM_PREFIX_LEN.
114527         * lib/progreloc.c: Likewise.
114528         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
114530 2004-08-06  Simon Josefsson  <jas@extundo.com>
114532         * modules/progname (Depends-on): Don't depend on stdbool.
114534 2004-08-06  Simon Josefsson  <jas@extundo.com>
114536         * modules/getsubopt: New file.
114537         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
114538         getsubopt.
114540 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
114542         More merge from coreutils.
114544         * m4/utimens.m4, m4/utimecmp.m4: New files.
114545         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
114546         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
114547         prereq.m4, sha.m4: Import changes from coreutils.
114549 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
114551         More merge from coreutils.
114552         * modules/raise, modules/readtokens0, modules/utimens:
114553         * modules/utimecmp, module/xnanosleep: New files.
114554         * modules/strftime: Add lib/strftime.h.
114555         Change include from <time.h> to "strftime.h".
114556         * modules/yesno: Add lib/yesno.h.
114557         * modules/backupfile: Remove lib/addext.c.
114558         * modules/euidaccess: Add stat-macros.h.
114559         * modules/canonicalize, modules/euidaccess,
114560         modules/filemode, modules/lchown, modules/makepath,
114561         modules/rmdir, modules/stat: Likewise.
114563 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
114565         Merge from tar.
114566         * lib/argp-help.c (make_hol, hol_append): Don't assume that
114567         SIZE_MAX is a valid preprocessor constant.
114568         (__argp_basename): Change from "#ifndef _LIBC"
114569         to "#ifndef __argp_short_program_name", so that
114570         we don't compile these functions for tar.
114572         More merges from coreutils.
114573         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
114574         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
114575         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
114576         * lib/addext.c: Remove; no longer needed.
114577         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
114578         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
114579         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
114580         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
114581         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
114582         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
114583         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
114584         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
114585         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
114586         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
114587         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
114588         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
114589         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
114590         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
114591         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
114592         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
114593         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
114594         Import changes from coreutils.
114596 2004-08-05  Simon Josefsson  <jas@extundo.com>
114598         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
114600 2004-08-05  Simon Josefsson  <jas@extundo.com>
114602         * m4/getsubopt.m4: New file.
114604 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
114606         Merge from coreutils.
114608         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
114609         * m4/getcwd-path-max.m4: New files.
114611         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
114612         FILESYSTEM_PREFIX_LEN ->
114613         FILE_SYSTEM_PREFIX_LEN.
114614         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
114615         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
114616         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
114617         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
114619         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
114620         prerequisite modules now handle the DOS stuff.
114621         Don't check for unistd.h.
114623 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
114625         Merge from coreutils.
114627         * lib/.gdb-history: Remove; this doesn't belong here.
114629         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
114630         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
114631         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
114632         * lib/getcwd.c: New files.
114634         * lib/dirname.h: Include <stdbool.h>.
114635         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
114636         for consistency with POSIX terminology.  All uses changed.
114637         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
114638         (strip_trailing_slashes): Use bool for booleans.
114639         * lib/stripslash.c (strip_trailing_slashes): Likewise.
114641         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
114642         sometimes returns a positive errno value even when it succeeds.
114643         (print_errno_message) [!LIBC]: Fall back on strerror if
114644         __strerror_r fails.
114646         * lib/path-concat.c (mempcpy): Don't define if a system header defines
114647         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
114648         (longest_relative_suffix): New function.
114649         (path_concat): Use it.  Assume first argument is not NULL.
114650         Port to DOS.  Omit redundant separators.
114651         Report an error instead of returning NULL.
114652         Use mempcpy instead of memcpy.
114653         (xpath_concat): Remove: not declared or used.
114655         * lib/same.h: Include <stdbool.h>
114656         (same_name): Return bool, not int.
114657         * lib/same.c (same_name): Likewise.
114658         (errno): Don't declare; we assume C89 or better now.
114660         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
114661         if not already defined.
114663         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
114664         * lib/dup-safer.c (errno): Likewise.
114666 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
114668         Merge from coreutils.
114669         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
114670         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
114671         * modules/path-concat: Don't depend on strdup.
114673 2004-08-03  Simon Josefsson  <jas@extundo.com>
114675         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
114676         * lib/progname.h: Don't include stdbool.h.
114678 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
114680         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
114681         * MODULES.html.sh (func_all_modules): Remove fatal.
114683 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
114685         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
114687 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
114689         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
114690         working.
114692 2004-08-02  Simon Josefsson  <jas@extundo.com>
114694         * lib/getsubopt.h: New file, with comments from Bruno Haible.
114695         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
114696         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
114698 2004-08-01  Simon Josefsson  <jas@extundo.com>
114700         * lib/xgetdomainname.c: Include stdlib.h, for free().
114702 2004-07-19  Bruno Haible  <bruno@clisp.org>
114704         * MODULES.html.sh (func_all_modules): Add dummy.
114706 2004-07-16  Simon Josefsson  <jas@extundo.com>
114708         * modules/dummy: New file.
114710 2004-07-16  Simon Josefsson  <jas@extundo.com>
114712         * lib/dummy.c: New file.
114714 2004-07-16  Bruno Haible  <bruno@clisp.org>
114716         * lib/backupfile.h: Add extern "C" for C++.
114717         * lib/closeout.h: Likewise.
114718         * lib/copy-file.h: Likewise.
114719         * lib/findprog.h: Likewise.
114720         * lib/full-write.h: Likewise.
114721         * lib/pathname.h: Likewise.
114722         * lib/progname.h: Likewise.
114723         * lib/stpcpy.h: Likewise.
114724         * lib/stpncpy.h: Likewise.
114725         * lib/strcase.h: Likewise.
114726         * lib/strstr.h: Likewise.
114727         * lib/xalloc.h: Likewise.
114729         * lib/mbswidth.h: Add extern "C" for C++.
114730         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
114732 2004-07-13  Robert Millan  <robertmh@gnu.org>
114734         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
114736 2004-07-09  Simon Josefsson  <jas@extundo.com>
114738         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
114739         failed without this.)
114741 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114743         * modules/chown (Files): Add lib/fchown-stub.c, since
114744         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
114746 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114748         * lib/fchown-stub.c: New file.
114750 2004-06-24  Jim Meyering  <jim@meyering.net>
114752         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
114754 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
114756         * modules/argz: Omit "#include".
114758         * MODULES.html.sh (func_all_modules): Add calloc, to match
114759         2004-06-01 addition of calloc module.
114761 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
114763         * m4/argz.m4: New file, which is autoupdated from libtool.
114765 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
114767         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
114768         libtool.
114770 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
114772         * config/srclist-update: Don't insist on "USA." before the
114773         close-comment, as libtool omits the period and puts the */ on a
114774         separate line.
114775         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
114776         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
114778 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
114780         * modules/argz: New file.
114781         * MODULES.html.sh (func_all_modules): Add argz.
114783 2004-06-12  Jim Meyering  <jim@meyering.net>
114784         and  Paul Eggert  <eggert@cs.ucla.edu>
114786         * modules/hash (Files): Add lib/xalloc.h.
114787         * modules/pipe (Depends-on): Add wait-process.
114788         * modules/stat (Depends-on): Add xalloc.
114789         * modules/userspec (Files): Add lib/userspec.h.
114790         * modules/xstrto
114792         Upgrade from gettext-0.13.
114793         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
114794         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
114795         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
114797 2004-06-10  Jim Meyering  <jim@meyering.net>
114799         * lib/calloc.c: New file.
114801 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
114803         * lib/getdate.y (yylex): Allow space between sign and number.
114804         Problem reported by Dan Jacobson.
114806 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
114808         Merge from coreutils CVS.
114810         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
114811         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
114812         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
114813         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
114814         xstrtol.m4: Fix copyright date and/or serial number.
114816         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
114817         See if we need an fchown replacement.
114818         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
114819         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
114820         and use the replacement function if we detect either defect.
114822         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
114823         gl_UTIMECMP.
114825 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
114826         and  Jim Meyering  <jim@meyering.net>
114828         Merge from coreutils CVS.
114830         * lib/stat-macros.h: New file, with contents from file-type.h
114831         and coreutils' system.h.
114832         * lib/file-type.c: Include "stat-macros.h".
114833         * lib/file-type.h (file_type): Move all macro definitions to new file,
114834         stat-macros.h.
114836         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
114837         Wrap old code with this conditional.
114838         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
114839         function that does not dereference symlinks.
114840         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
114842         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
114843         dependency problems.
114844         (xreadlink): Accept new arg SIZE, for efficiency.
114845         All decls and uses changed.
114846         * lib/xreadlink.h: Include <stddef.h>, for size_t.
114848         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
114849         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
114851         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
114852         sysexits.h.
114854 2004-06-01  Jim Meyering  <jim@meyering.net>
114856         * m4/calloc.m4: New file.
114858 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
114860         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
114861         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
114862         Also, fix a typo in a diagnostic.
114864 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
114866         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
114867         or AC_FUNC_REALLOC.
114869 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
114871         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
114872         macros to be defined.
114873         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
114874         the allocator returns NULL because the requested size is zero.
114876 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
114878         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
114879         var.  Add comment explaining why libc still defines it.  This
114880         merges the following patch from glibc:
114881         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
114883 2004-05-20  Andreas Schwab  <schwab@suse.de>
114885         * m4/free.m4: Replace free if it not known to work, not the other
114886         way round.
114888 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
114890         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
114891         present in glibc since revision 1.1 of this file.
114892         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
114893         obstack_alignment_mask, obstack_alloc, obstack_base,
114894         obstack_blank, obstack_blank_fast, obstack_chunk_size,
114895         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
114896         obstack_grow0, obstack_init, obstack_int_grow,
114897         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
114898         obstack_next_free, obstack_object_size, obstack_ptr_grow,
114899         obstack_ptr_grow_fast, obstack_room): Remove declarations of
114900         nonexistent functions.
114902 2004-05-18  Karl Berry  <karl@gnu.org>
114904         * config/srclist.txt: break link for vasnprintf.c.
114906 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
114908         Port obstack to the AS/400, where pointers are 16 bytes wide and
114909         you cannot cast an integer to a valid pointer.  This patch is
114910         currently waiting to be integrated into glibc; see
114911         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
114913         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
114914         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
114915         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
114916         (struct obstack): temp member is now a union of a pointer and
114917         an integer, instead of an integer.  All integer uses changed.
114918         This does not affect the physical layout of struct obstack,
114919         except on hosts (like the AS/400) where the size or alignment of
114920         void * is greater than that of ptrdiff_t.
114921         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
114922         __STDC__)]: Store temporary in pointer member of union, not
114923         integer member.
114924         * lib/obstack.c: Include <stddef.h>, for offsetof.
114925         (struct fooalign): Remove; it doesn't need a name.
114926         (union fooround): Change double to long double, and add void *.
114927         (DEFAULT_ALIGNMENT): Use offsetof to compute.
114928         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
114929         not a macro.  Hence the values are always int; so remove all
114930         casts-to-int in uses.
114932 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
114934         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
114935         we can get this patch merged into glibc.
114937 2004-05-17  Derek R. Price  <derek@ximbiot.com>
114938             Paul Eggert  <eggert@cs.ucla.edu>
114940         * m4/argp: Depend on alloca.
114942 2004-05-17  Derek R. Price  <derek@ximbiot.com>
114943             Paul Eggert  <eggert@cs.ucla.edu>
114945         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
114946         freecoding.
114948 2004-05-17  Bruno Haible  <bruno@clisp.org>
114950         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
114951         precision that consists of a '.' followed by an empty digit string.
114952         Patch by Tor Lillqvist <tml@iki.fi>.
114954 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
114956         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
114957         for backward compatibility with older code.  We need our own
114958         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
114959         it under some other name, and our alloca.h will define it.
114961 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
114962             Derek Price  <derek@ximbiot.com>
114964         * lib/alloca.c: Include <alloca.h>, to get our interface.
114965         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
114966         include <alloca.h> first.  Use C89 prototype for alloca; this
114967         requires including <stddef.h> for size_t.  Use extern "C" if C++.
114968         Use #elif for simplicity, since we can assume C89 now.
114969         Don't try to source the system alloca.h since it will not be found
114970         and to prevent recursively including its replacement.
114971         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
114972         * lib/regex.c: Likewise.
114974 2004-05-16  Derek Price  <derek@ximbiot.com>
114975             Paul Eggert  <eggert@cs.ucla.edu>
114977         getline cleanup.  This changes the getndelim2 API: both order of
114978         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
114979         no delimiter).
114981         * lib/getline.c: Don't include stddef.h or stdio.h, since our
114982         interface does that.
114983         (getline): Always use getdelim, so that we don't have two
114984         copies of this code.
114985         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
114986         if available.
114987         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
114988         (GETNDELIM2_MAXIMUM): New macro.
114989         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
114990         instead of the old practice of delim2==0.  All callers changed.
114991         Return -1 on overflow, instead of returning junk.
114992         Do not set *linesize unless allocation succeeds.
114993         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
114994         that we include sys/types.h.
114995         * lib/getnline.h: Likewise.
114996         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
114997         (getndelim2): Reorder arguments.
114998         * lib/getnline.c (getnline, getndelim):
114999         Don't discard the NMAX argument.
115000         (getnline): Invoke getndelim, to avoid code duplication.
115001         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
115002         of (size_t) -1 by callers of the getnline family.
115004 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
115006         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
115007         Check for gettimeofday.
115008         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
115009         Check for settimeofday, stime.
115011 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
115013         * lib/nanosleep.c (suspended): Change its type from int to
115014         sig_atomic_t volatile.
115015         (first_call): Make it private to rpl_nanosleep, and have it
115016         be zero initially as that's a bit faster.
115017         (my_usleep): Round up fractional times instead of truncating them,
115018         as this is the usual meaning for 'sleep'.
115020         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
115021         doesn't work.
115022         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
115023         (ENOSYS): Define if not defined.
115024         (settime): Fall back on stime if it exists and settimeofday fails.
115025         But don't bother with fallbacks if a method fails with errno == EPERM.
115027 2004-05-11  Jim Meyering  <jim@meyering.net>
115029         Prior to this change, the save_cwd caller required read access to the
115030         current directory on most systems (ones with the fchdir function).
115032         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
115033         fails, try write-only, and finally, resort to using xgetcwd.
115035 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
115037         * lib/obstack.c, obstack.h: Import changes from libc.
115039 2004-04-28  Bruno Haible  <bruno@clisp.org>
115041         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
115042         also implicitly appends .exe to executables.
115043         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
115044         accepts Windows pathnames.
115045         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
115046         Treat Cygwin like Windows, since it now accepts Windows pathnames.
115047         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
115048         Treat Cygwin like Windows, since it now accepts Windows pathnames.
115049         Reported by Derek Robert Price <derek@ximbiot.com>.
115051 2004-04-21  Karl Berry  <karl@gnu.org>
115053         * config/srclist.txt (localcharset.c): break sync.
115055 2004-04-20  Paul Eggert  <eggert@twinsun.com>
115057         * m4/host-os.m4: Add a copyright notice.
115059 2004-04-20  Jim Meyering  <jim@meyering.net>
115061         Change UTILS_ to gl_ in AC_DEFINE'd names.
115062         Change utils_- and jm_-prefixed variables, too.
115063         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
115064         UTILS_FUNC_MKDIR_TRAILING_SLASH.
115065         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
115067         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
115068         Don't emit trailing blanks.
115069         Also rename jm_-prefixed variables to have gl_ prefix.
115071         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
115072         Also rename jm_-prefixed variables to have gl_ prefix.
115074         * m4/jm-macros.m4: Reflect the renamings.
115075         * m4/prereq.m4: Likewise.
115077 2004-04-20  Jim Meyering  <jim@meyering.net>
115079         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
115080         memory.
115082 2004-04-20  Jim Meyering  <jim@meyering.net>
115083             Bruno Haible  <bruno@clisp.org>
115085         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
115086         memory when realloc fails.
115088 2004-04-19  Jim Meyering  <jim@meyering.net>
115090         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
115091         now that readutmp.c may call `free (0)'.
115093 2004-04-19  Bruno Haible  <bruno@clisp.org>
115095         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
115096         * m4/inttypes_h.m4: Likewise.
115097         * m4/stdint_h.m4: Likewise.
115098         * m4/intmax_t.m4: Likewise.
115099         * m4/uintmax_t.m4: Likewise.
115101 2004-04-18  Jim Meyering  <jim@meyering.net>
115103         * m4/prereq.m4: Don't forbid jm_ prefix.
115105         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
115106         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
115107         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
115108         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
115109         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
115110         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
115111         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
115112         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
115113         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
115114         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
115115         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
115116         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
115117         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
115118         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
115119         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
115120         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
115121         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
115122         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
115123         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
115125 2004-04-18  Jim Meyering  <jim@meyering.net>
115127         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
115128         failure, don't leak memory and do call END_UTMP_ENT.
115130 2004-04-16  Jim Meyering  <jim@meyering.net>
115132         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
115133         coreutils' stat program.
115134         (gl_PREREQ): Don't require jm_PREREQ_STAT.
115136 2004-04-11  Paul Eggert  <eggert@twinsun.com>
115138         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
115139         C89.
115140         (CHAR_BIT): Remove, since we assume C89.
115141         Include <stdint.h> if available, as per current Autoconf CVS advice.
115143 2004-03-31  Jim Meyering  <jim@meyering.net>
115145         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
115146         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
115147         * m4/xalloc.m4: Likewise.
115149 2004-03-30  Paul Eggert  <eggert@twinsun.com>
115151         Merge from coreutils.
115153         * m4/inttostr.m4: New file.
115154         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
115155         Require AM_STDBOOL_H and gl_TIMESPEC instead.
115156         Require gl_CLOCK_TIME.
115157         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
115159 2004-03-30  Paul Eggert  <eggert@twinsun.com>
115161         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
115162         not bool, to be more consistent with Unix conventions.
115163         Suggested by Bruno Haible.
115165         Merge from coreutils.
115167         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
115168         * lib/umaxtostr.c: New files.
115170         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
115171         the usual <time.h> dance.
115172         (get_date): Change signature to support fractional time stamps.
115173         All callers changed.
115174         * lib/getdate.y: Include "getdate.h" first, as we can now
115175         assume C89 and don't need to worry about 'const'.
115176         Similarly, include "unlocked-io.h" near start, not in middle.
115177         Include <limits.h>.
115178         (textint.value): Use long int rather than int.
115179         (textint.digits): Use size_t rather than int.
115180         (BILLION, LOG10_BILLION): New constants.
115181         (parser_control): New member rel_ns.  Members day_ordinal,
115182         time_zone, month, day, hour, minutes, rel_year, rel_month,
115183         rel_day, rel_hour, rel_minutes, rel_seconds
115184         are now long int, not int.  Member seconds is now struct timespec,
115185         not int.  New member timespec_seen.  Members dates_seen, days_seen,
115186         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
115187         not int.
115188         (%union.intval): Now long int, not int.
115189         New member timespec.
115190         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
115191         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
115192         (spec): Now is a timespec or an item list.
115193         (timespec, items): New nonterminals.
115194         (time, rel, relunit, number, get_date):
115195         Add support for fractional seconds.
115196         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
115197         (gmtime, localtime, mktime): Remove decls; not needed with C89.
115198         (to_hour): First arg is now long int, not int.
115199         (to_year): Returns long int, not int.
115200         Don't treat year -70 like 70.
115201         (tm_diff): Returns long int, not int.
115202         (lookup_word): Use bool instead of int when appropriate.
115203         (yylex): Use size_t for count, not int.
115204         Detect overflow when parsing large integer constants.
115205         Add support for fractions.
115206         (get_date): Make pointers 'const' if possible.
115207         Use more-portable code to detect integer overflow.
115208         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
115209         Don't use ctime; it's not reliable if the year has >4 digits.
115211         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
115212         This is for compatibility with BSD.
115214         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
115215         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
115216         From coreutils' system.h.
115218         * lib/userspec.c: Don't include "posixver.h".
115219         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
115220         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
115221         compatible extension.  Simplify code by removing a boolean int
115222         that was always nonzero if a string was nonnull.
115224 2004-03-30  Jim Meyering  <jim@meyering.net>
115226         Merge from coreutils.
115228         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
115229         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
115230         on some systems one must include <grp.h> before it.
115231         Reported by Christian Krackowizer.
115233 2004-03-30  Jim Meyering  <jim@meyering.net>
115235         Merge from coreutils.
115237         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
115239         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
115240         an empty input stream.
115242         * lib/readtokens.c: Include <stdbool.h>.
115243         (readtoken): Use `size_t' rather than int/long.
115244         All callers adjusted.
115245         Use `bool' rather than `int' where appropriate.
115246         Use memset rather than an explicit loop.
115247         Use x2nrealloc rather than xrealloc.
115248         Allow the use of `\0' as a delimiter.
115249         (readtokens): Likewise.
115250         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
115252 2004-03-30  Jim Meyering  <jim@meyering.net>
115254         * m4/realloc.m4: Remove file, since now it does no more than
115255         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
115256         the `configure.ac' section of module/realloc.
115257         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
115259 2004-03-30  Bruno Haible  <bruno@clisp.org>
115261         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
115262         nonnull.
115264 2004-03-29  Paul Eggert  <eggert@twinsun.com>
115266         Merge changes to getloadavg.c from coreutils and Emacs.
115268         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
115269         Define to an expression, not to the empty string.
115270         Include cloexec.h and xalloc.h.
115271         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
115272         Use set_cloexec_flag rather than rolling our own.
115273         * lib/cloexec.c, lib/cloexec.h: New files.
115275 2004-03-29  Paul Eggert  <eggert@twinsun.com>
115277         * m4/cloexec.m4: New file.
115279 2004-03-18  Paul Eggert  <eggert@twinsun.com>
115281         * lib/getopt.h: Sync with libc CVS.
115283 2004-03-18  Paul Eggert  <eggert@twinsun.com>
115284             Bruno Haible  <bruno@clisp.org>
115286         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
115287         mbswidth.
115289 2004-03-18  Paul Eggert  <eggert@twinsun.com>
115290             Bruno Haible  <bruno@clisp.org>
115292         * lib/mbswidth.h: Include <wchar.h> only if
115293         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
115294         <wchar.h>.
115295         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
115297 2004-03-09  Paul Eggert  <eggert@twinsun.com>
115299         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
115300         Sync with libc CVS.
115301         * lib/getopt_int.h: New file, also synced from libc.
115303 2004-03-09  Paul Eggert  <eggert@twinsun.com>
115305         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
115306         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
115307         Bring back getopt.c, getopt.h, getopt1.c.
115309 2004-03-07  Paul Eggert  <eggert@twinsun.com>
115311         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
115312         All uses changed.  Check for sa_sigaction member; this fixes
115313         a bug first reported by Jason Andrade in
115314         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
115316 2004-03-07  Paul Eggert  <eggert@twinsun.com>
115318         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
115319         '#if' expressions.  Unlike the code it replaces, it does not
115320         depend on (defined _SC_PAGESIZE).  However, it does depend on
115321         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
115322         first reported by Jason Andrade in
115323         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
115325 2004-02-25  Simon Josefsson  <jas@extundo.com>
115327         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
115329 2004-02-25  Simon Josefsson  <jas@extundo.com>
115331         * lib/strdup.h: New file.
115332         * lib/strdup.c: Include it.
115333         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
115334         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
115336 2004-02-23  Karl Berry  <karl@gnu.org>
115338         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
115339         (from fencepost.gnu.org:/gd/gnuorg).
115341 2004-02-23  Karl Berry  <karl@gnu.org>
115343         * config/srclistvars.sh (GNUORG) [karl]: redefine.
115344         * config/srclist.txt: add maintain/standards documents.
115346 2004-02-18  Bruno Haible  <bruno@clisp.org>
115348         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
115349         Reported by Derek Robert Price <derek@ximbiot.com>.
115351 2004-02-16  Karl Berry  <karl@gnu.org>
115353         * config/mkinstalldirs, install-sh: update from automake.
115355 2004-02-06  Karl Berry  <karl@gnu.org>
115357         * m4/po.m4: update from gettext 0.14.1.
115359 2004-02-06  Karl Berry  <karl@gnu.org>
115361         * lib/config.charset: update from gettext 0.14.1.
115363 2004-02-05  Paul Eggert  <eggert@twinsun.com>
115365         Add comments and code, prompted by suggestions from Bruno Haible
115366         for sh-quote.
115367         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
115368         describing the enum quoting_style values.
115369         * lib/quotearg.c (quotearg_alloc): New function.
115370         (quotearg_buffer_restyled): Treat lone { and } as special.
115371         Treat = as special.  Work around bug with older shells
115372         that "see" a '\' that is really the 2nd byte of a multibyte char.
115373         Quote empty string with shell_quoting_style.
115375 2004-02-03  Bruno Haible  <bruno@clisp.org>
115377         * m4/pipe.m4: New file, from GNU gettext.
115379 2004-02-03  Bruno Haible  <bruno@clisp.org>
115381         * lib/pipe.h: New file, from GNU gettext.
115382         * lib/pipe.c: New file, from GNU gettext.
115384 2004-01-27  Bruno Haible  <bruno@clisp.org>
115386         * m4/execute.m4: New file, from GNU gettext.
115388 2004-01-27  Bruno Haible  <bruno@clisp.org>
115390         * lib/execute.h: New file, from GNU gettext.
115391         * lib/execute.c: New file, from GNU gettext.
115392         * lib/w32spawn.h: New file, from GNU gettext.
115394 2004-01-24  Paul Eggert  <eggert@twinsun.com>
115396         Merge from diffutils.
115398         * lib/file-type.c (file_type): Add typed memory objects.
115399         * lib/file-type.h (S_TYPEISTMO): New macro.
115401         * lib/c-stack.h (c_stack_action): Remove argv argument.
115402         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
115403         (die): Don't calculate message unless segv_action returns.
115404         (get_stack_location, min_address_from_argv, max_address_from_argv,
115405         volatile stack_base, volatile_stack_size): Remove.
115406         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
115407         that every segmentation violation is a stack overflow.  (Ouch!)
115408         See Debian bug 136249 (still outstanding) for more info about why
115409         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
115411 2004-01-24  Paul Eggert  <eggert@twinsun.com>
115413         Exit-status fix from coreutils.
115415         Use exit_failure consistently in place of EXIT_FAILURE,
115416         so that program exit statuses are consistent on failure.
115418         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
115419         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
115420         * lib/argmatch.h: Comment fix to match the above.
115421         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
115422         Now a macro referring to exit_failure, instead of a separate
115423         variable.  Include "exitfail.h" to get it.
115424         * lib/xstrtol.h: Include "exitfail.h".
115425         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
115427         * lib/long-options.c (parse_long_options): Use prototype
115428         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
115429         for clarity.
115431 2004-01-21  Jim Meyering  <jim@meyering.net>
115433         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
115434         so as not to conflict with a different-sized __mktime_internal
115435         function in GNU libc.
115436         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
115437         Problem building statically-linked `ls' reported by Michael Brunnbauer.
115439 2004-01-20  Karl Berry  <karl@gnu.org>
115441         * config/config.guess: update from config.
115443         * config/srclistvars.sh: GNUWWWLICENSES for karl.
115445 2004-01-20  Bruno Haible  <bruno@clisp.org>
115447         Safer stack allocation.
115448         * lib/setenv.c: Include allocsa.h.
115449         (alloca): Remove fallback definition.
115450         (freea): Remove macro.
115451         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
115452         instead of freea.
115454 2004-01-20  Bruno Haible  <bruno@clisp.org>
115456         * m4/eealloc.m4: New file, from GNU gettext.
115458 2004-01-20  Bruno Haible  <bruno@clisp.org>
115460         * m4/allocsa.m4: New file, from GNU gettext.
115462 2004-01-20  Bruno Haible  <bruno@clisp.org>
115464         * lib/xallocsa.h: New file, from GNU gettext.
115465         * lib/xallocsa.c: New file, from GNU gettext.
115467 2004-01-20  Bruno Haible  <bruno@clisp.org>
115469         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
115471 2004-01-20  Bruno Haible  <bruno@clisp.org>
115473         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
115474         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
115475         specially.
115477 2004-01-20  Bruno Haible  <bruno@clisp.org>
115479         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
115480         patch.
115482 2004-01-20  Bruno Haible  <bruno@clisp.org>
115484         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
115486 2004-01-20  Bruno Haible  <bruno@clisp.org>
115488         * lib/eealloc.h: New file.
115490 2004-01-20  Bruno Haible  <bruno@clisp.org>
115492         * lib/binary-io.h: Avoid warnings on Cygwin.
115494 2004-01-20  Bruno Haible  <bruno@clisp.org>
115496         * lib/allocsa.h: New file, from GNU gettext.
115497         * lib/allocsa.c: New file, from GNU gettext.
115499 2004-01-18  Karl Berry  <karl@gnu.org>
115501         * doc/gpl.texi, doc/lgpl.texi: new files.
115503 2004-01-18  Karl Berry  <karl@gnu.org>
115505         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
115506         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
115508 2004-01-15  Paul Eggert  <eggert@twinsun.com>
115510         Merge from coreutils.
115512         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
115513         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
115514         (gl_DEFAULT_POSIX2_VERSION): Move
115515         the documentation from 'configure' into 'config.hin',
115516         so that 'configure --help' isn't burdened by it and
115517         we don't have to worry about its formatting there.
115518         Reword the documentation so that it's more succinct
115519         and can be run together into a single paragraph.
115520         * m4/same.m4 (gl_SAME): Check for pathconf.
115522 2004-01-15  Paul Eggert  <eggert@twinsun.com>
115524         Merge from coreutils.
115526         * lib/posixver.c: Include posixver.h.
115528         * lib/same.c: Include <stdbool.h>, <limits.h>.
115529         (_POSIX_NAME_MAX): Define if not defined.
115530         (MIN): New macro.
115531         (same_name): If file names are silently truncated, report
115532         that the file names are the same if they are the same after
115533         the silent truncation.
115535         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
115536         conversion function.
115537         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
115538         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
115539         longer needed.
115541 2004-01-15  Jim Meyering  <jim@meyering.net>
115543         Merge from coreutils.
115545         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
115546         if no library is required.
115547         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
115548         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
115549         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
115550         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
115551         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
115552         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
115553         value, $ac_cv_search_crypt, if it's "none required".
115554         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
115555         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
115556         not gl_FUNC_GETLOADAVG.
115557         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
115558         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
115560 2004-01-15  Jim Meyering  <jim@meyering.net>
115562         Merge from coreutils.
115564         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
115565         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
115566         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
115568         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
115569         optional configure-time default.
115571         * lib/version-etc.c (version_etc_copyright): Update copyright date.
115573         * lib/xreadlink.c (xreadlink): Correct outdated comment.
115575 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
115577         Merge from coreutils.
115579         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
115580         value, $ac_cv_search_nanosleep, if it's "none required".
115582 2004-01-14  Paul Eggert  <eggert@twinsun.com>
115584         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
115585         with like-named macro in fnmatch.c.
115586         (EXT): Use an internal constant instead.
115588         Merge fnmatch patches from glibc.
115589         * lib/fnmatch.c (mbsinit): Remove define.
115590         Add libc_hidden_ver (__fnmatch, fnmatch).
115591         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
115592         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
115594 2004-01-14  Karl Berry  <karl@gnu.org>
115596         * config/install-sh: update from automake.
115598 2004-01-13  Karl Berry  <karl@gnu.org>
115600         * config/install-sh: update from automake.
115602 2004-01-09  Karl Berry  <karl@gnu.org>
115604         * config/install-sh: update from automake.
115606 2004-01-05  Karl Berry  <karl@gnu.org>
115608         * config/config.{sub,guess}: update from config.
115610 2003-12-31  Karl Berry  <karl@gnu.org>
115612         * config/depcomp: update from automake.
115614 2003-12-14  Karl Berry  <karl@gnu.org>
115616         * lib/config.charset: update from gettext-runtime.
115618 2003-12-03  Paul Eggert  <eggert@twinsun.com>
115620         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
115621         Bug reported by Alfred M. Szmidt.
115623 2003-12-03  Bruno Haible  <bruno@clisp.org>
115625         * m4/gettext.m4: Upgrade from gettext-0.13.
115626         * m4/po.m4: Upgrade from gettext-0.13.
115627         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
115628         * m4/intmax.m4: New file, from gettext-0.13.
115629         * m4/printf-posix.m4: New file, from gettext-0.13.
115631 2003-11-29  Karl Berry  <karl@gnu.org>
115633         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
115635 2003-11-25  Paul Eggert  <eggert@twinsun.com>
115636             Bruno Haible  <bruno@clisp.org>
115638         * lib/printf-parse.h: Don't include sys/types.h.
115639         (ARG_NONE): New macro.
115640         (char_directive): Change type of *arg_index fields to size_t.
115641         * lib/printf-parse.c: Don't include sys/types.h.
115642         (SSIZE_MAX): Remove macro.
115643         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
115644         Remove unnecessary overflow check.
115645         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
115646         fields.
115648 2003-11-25  Bruno Haible  <bruno@clisp.org>
115650         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
115652 2003-11-25  Bruno Haible  <bruno@clisp.org>
115654         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
115655         gt_TYPE_SSIZE_T.
115657 2003-11-24  Paul Eggert  <eggert@twinsun.com>
115659         * modules/alloca: Remove dependency on xalloc.
115661 2003-11-24  Paul Eggert  <eggert@twinsun.com>
115663         * lib/alloca.c: Remove dependency on xalloc module.
115664         (xalloc_die): Remove.
115665         (memory_full) [!defined emacs]: New macro.
115666         [!defined emacs]: Don't include xalloc.h.
115667         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
115668         address arithmetic overflows.  Change datatypes a bit to avoid
115669         unnecessary casts.
115671 2003-11-22  Jim Meyering  <jim@meyering.net>
115673         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
115674         s/size/size_t/.
115676 2003-11-21  Karl Berry  <karl@gnu.org>
115678         * config/config.{sub,guess}: update from config.
115680 2003-11-18  Karl Berry  <karl@gnu.org>
115682         * config/config.{sub,guess}: update from config.
115684         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
115686 2003-11-17  Paul Eggert  <eggert@twinsun.com>
115688         * README: Mention that S+T cannot overflow if S is the size of
115689         an existing object and T is sufficiently small.
115691 2003-11-17  Jim Meyering  <jim@meyering.net>
115693         On systems without utime and without a utimes function capable of
115694         dealing with a NULL struct utimbuf* argument, this utime replacement
115695         could -- in unusual circumstances -- leak a file descriptor.
115696         * lib/utime.c: Include <unistd.h> and <errno.h>.
115697         (utime_null): Be sure to close `fd' and to preserve errno.
115698         Reported by Geoff Collyer via Arnold Robbins.
115700 2003-11-17  Bruno Haible  <bruno@clisp.org>
115702         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
115703         (Depends-on): Add xsize.
115705 2003-11-17  Bruno Haible  <bruno@clisp.org>
115707         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
115709 2003-11-17  Bruno Haible  <bruno@clisp.org>
115711         * lib/vasnprintf.c (alloca): Remove fallback definition.
115712         (freea): Remove definition.
115713         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
115714         Reported by Paul Eggert.
115716 2003-11-16  Paul Eggert  <eggert@twinsun.com>
115717             Bruno Haible  <bruno@clisp.org>
115719         Protect against address arithmetic overflow.
115720         * lib/printf-args.h: Include stddef.h.
115721         (arguments): Change type of field 'count' to size_t.
115722         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
115723         'unsigned int' where appropriate.
115724         * lib/printf-parse.h: Include sys/types.h.
115725         (char_directive): Change type of *arg_index fields to ssize_t.
115726         (char_directives): Change type of fields 'count', max_*_length to
115727         size_t.
115728         * lib/printf-parse.c: Include sys/types.h and xsize.h.
115729         (SSIZE_MAX): Define fallback value.
115730         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
115731         instead of 'int' where appropriate. Check a_allocated, d_allocated
115732         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
115733         * lib/vasnprintf.c: Include xsize.h.
115734         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
115735         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
115736         overflow. Avoid wraparound when converting a width or precision from
115737         decimal to binary.
115739 2003-11-16  Bruno Haible  <bruno@clisp.org>
115741         Update from GNU gettext.
115742         * lib/printf-parse.c: Generalize to it can be compiled for wide
115743         strings.
115744         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
115745         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
115746         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
115747         SNPRINTF): New macros.
115748         Don't include <alloca.h> if the file is used inside libintl.
115749         (local_wcslen): New function, for Solaris 2.5.1.
115750         (VASNPRINTF): Use it instead of wcslen.
115752 2003-11-16  Bruno Haible  <bruno@clisp.org>
115754         * lib/xsize.h (xmax): New function.
115755         (xsum, xsum3, xsum4): Declare as "pure" functions.
115757 2003-11-12  Paul Eggert  <eggert@twinsun.com>
115759         * modules/xalloc (Files): Undo latest change, since xalloc.h
115760         no longer needs SIZE_MAX or PTRDIFF_MAX.
115762 2003-11-12  Paul Eggert  <eggert@twinsun.com>
115764         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
115765         gl_PTRDIFF_MAX.
115767 2003-11-12  Paul Eggert  <eggert@twinsun.com>
115769         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
115770         "return", to pacify some unknown compiler.  Problem reported
115771         by Joerg Schilling.
115773 2003-11-12  Paul Eggert  <eggert@twinsun.com>
115775         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
115776         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
115777         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
115778         heuristic is just as accurate as far as we know, and it removes a
115779         dependency on size_max.m4 and ptrdiff_max.m4.
115781 2003-11-11  Bruno Haible  <bruno@clisp.org>
115783         * modules/xsize (Files): Add m4/size_max.m4.
115784         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
115786 2003-11-11  Bruno Haible  <bruno@clisp.org>
115788         * m4/size_max.m4: New file.
115789         * m4/ptrdiff_max.m4: New file.
115790         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
115791         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
115792         (gl_XALLOC): Invoke it.
115794 2003-11-11  Bruno Haible  <bruno@clisp.org>
115796         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
115797         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
115798         defined.
115800 2003-11-10  Paul Eggert  <eggert@twinsun.com>
115802         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
115803         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
115804         rejected some allocations of exactly SIZE_MAX - 2 bytes.
115805         From Bruno Haible.
115806         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
115807         not (size_t) -1, since it's defined here.
115809 2003-11-09  Karl Berry  <karl@gnu.org>
115811         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
115813 2003-11-06  Paul Eggert  <eggert@twinsun.com>
115815         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
115816         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
115817         Reject sizes of exactly SIZE_MAX bytes.
115818         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
115819         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
115821 2003-11-05  Bruno Haible  <bruno@clisp.org>
115823         * lib/xsize.h: Include limits.h, to avoid a possible collision with
115824         SIZE_MAX defined in <limits.h> on Solaris.
115826 2003-11-04  Jim Meyering  <jim@meyering.net>
115828         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
115829         variable names, rather than @VAR@.
115830         * modules/poll: Likewise.
115832 2003-11-04  Bruno Haible  <bruno@clisp.org>
115834         * modules/xsize: New file.
115835         * modules/linebreak: Depend on xsize.
115836         * MODULES.html.sh (func_all_modules): Add xsize.
115838 2003-11-04  Bruno Haible  <bruno@clisp.org>
115840         * m4/xsize.m4: New file.
115842 2003-11-04  Bruno Haible  <bruno@clisp.org>
115844         * lib/xsize.h: New file.
115845         * lib/linebreak.c: Include xsize.h.
115846         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
115847         argument for overflow.
115848         Suggested by Paul Eggert.
115850 2003-11-03  Karl Berry  <karl@gnu.org>
115852         * config/config.{guess,sub}: update from config.
115854 2003-11-03  Jim Meyering  <jim@meyering.net>
115856         * modules/userspec (lib_SOURCES): Add userspec.h.
115857         (Include): Add "userspec.h".
115858         Improve description.
115860 2003-11-03  Jim Meyering  <jim@meyering.net>
115862         * lib/userspec.c: Include "userspec.h".
115863         * lib/userspec.h: New file.
115865 2003-11-03  Bruno Haible  <bruno@clisp.org>
115867         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
115869 2003-11-03  Bruno Haible  <bruno@clisp.org>
115871         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
115872         available, to avoid (extremely rare) race condition.
115873         Suggested by Paul Eggert.
115875 2003-11-02  Karl Berry  <karl@gnu.org>
115877         * config/srclist.txt (vasprintf.c): sync broken, sigh.
115879 2003-10-31  Paul Eggert  <eggert@twinsun.com>
115881         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
115882         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
115883         (read_filesystem_list): Set and use me_type_malloced.
115884         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
115885         whatever the type happens to be), for brevity and consistency.
115886         Check for size calculation overflow on Alphas running OSF/1.
115888 2003-10-31  Jim Meyering  <jim@meyering.net>
115890         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
115892         * lib/linebuffer.c: Include <string.h> for declaration of memset.
115894 2003-10-30  Paul Eggert  <eggert@twinsun.com>
115895             Bruno Haible  <bruno@clisp.org>
115897         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
115898         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
115900 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115902         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
115903         netbsd*-gnu*.  Suggested by Robert Millan.
115905 2003-10-29  Paul Eggert  <eggert@twinsun.com>
115907         * modules/group-member: Depend on stdbool.
115909 2003-10-29  Paul Eggert  <eggert@twinsun.com>
115911         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
115913 2003-10-29  Paul Eggert  <eggert@twinsun.com>
115915         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
115916         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
115917         after the 'gnu' in these cases.  This fixes some bugs in the
115918         previous change, and is based on suggestions by Robert Millan.
115920 2003-10-29  Paul Eggert  <eggert@twinsun.com>
115922         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
115923         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
115924         no longer needed.
115925         * lib/quotearg.c (quotearg_n_options): Use it.
115926         * lib/group-member.c: Include <stdbool.h>.
115927         (free_group_info): Arg is now const *; don't free arg.
115928         (get_group_info): Now returns bool and accepts struct group_info *,
115929         rather than returning a malloc'ed struct group_info *.
115930         All uses changed.  Check for overflow in internal size calculation.
115932         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
115933         rather than xmalloc/xrealloc.
115934         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
115935         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
115936         conformance bug: the old code used a pointer after freeing the
115937         storage that it addressed.
115938         * lib/hash.c (hash_initialize): Simplify the code by using
115939         xalloc_oversized rather than doing it by hand.
115940         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
115941         the buffer preserved.  Use free and xmalloc instead.
115942         * lib/quotearg.c (quotearg_n_options): Likewise.
115943         Use a simpler test for size overflow.  Don't use xalloc_oversized
115944         because unsigned int might be wider than size_t (!); this suggests
115945         that we should switch from unsigned int to size_t for slot numbers.
115947 2003-10-28  Paul Eggert  <eggert@twinsun.com>
115949         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
115950         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
115951         NetBSD kernels.  Requested by Richard Stallman.
115953 2003-10-27  Paul Eggert  <eggert@twinsun.com>
115955         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
115956         to allocate the returned structure.  Do not allocate a subarray,
115957         as x2nrealloc will do that.
115958         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
115959         instead of xnrealloc.
115960         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
115962 2003-10-27  Bruno Haible  <bruno@clisp.org>
115964         * lib/stdbool_.h: Better support for BeOS.
115966 2003-10-26  Paul Eggert  <eggert@twinsun.com>
115968         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
115969         now uses inline.
115971 2003-10-26  Paul Eggert  <eggert@twinsun.com>
115973         * lib/xalloc.h (xalloc_oversized): New static inline function, for
115974         callers that want to do their own size-overflow checking.  Include
115975         <stdbool.h>, since xalloc_oversized returns bool.
115976         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
115977         to use xalloc_oversized.
115979         Add two functions x2realloc, x2nrealloc, for programs that grow
115980         arrays dynamically by doubling their sizes.
115981         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
115982         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
115983         New functions.
115985         Port to C99 semantics for 'inline' of external functions.
115986         Bug reported by Bruno Haible.
115987         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
115988         with the old contents of xnmalloc.
115989         (xnmalloc, xmalloc): Use it.
115990         (xnrealloc_inline): New static inline function,
115991         with the old contents of xnrealloc.
115992         (xnrealloc, xrealloc): Use it.
115994         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
115995         that.
115997 2003-10-26  Karl Berry  <karl@gnu.org>
115999         * config/srclist.txt (COPYING.DOC): no longer available from
116000         /gd/gnuorg; don't know where the ultimate source is.
116002 2003-10-25  Paul Eggert  <eggert@twinsun.com>
116004         Fix several address-calculation bugs in the hash modules,
116005         plus some minor code cleanup.
116007         * lib/hash.h: Include <stdbool.h>, for bool.
116008         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
116009         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
116010         hash_get_n_entries, hash_get_max_bucket_length,
116011         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
116012         hash_rehash): Use size_t rather than unsigned.
116013         * lib/hash.c (struct hash_table, hash_get_n_buckets,
116014         hash_get_n_buckets_used, hash_get_n_entries,
116015         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
116016         hash_get_entries, hash_do_for_each, hash_string, is_prime,
116017         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
116018         Likewise.
116019         (SIZE_MAX): Define if not defined.
116020         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
116021         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
116022         hash_print):
116023         Use const * when possible.
116024         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
116025         (check_tuning): Fix bug: if tuning parameters were very close to
116026         0 or 1, rounding errors could have caused subscript violations.
116027         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
116028         (hash_initialize): Add 'fail:' label
116029         to free table and return NULL, and use it to simplify code.
116030         Use calloc rather than clearing the storage ourself.
116031         (hash_initialize, hash_rehash): Check for arithmetic overflow in
116032         buffer size calculations.
116033         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
116034         Include <stddef.h>, for size_t.
116035         * lib/hash-pjw.c (hash_pjw): Likewise.
116036         Switch to method described by Bruno Haible.
116037         Include <limits.h>, for CHAR_BIT.
116038         (SIZE_BITS): New macro.
116040 2003-10-23  Paul Eggert  <eggert@twinsun.com>
116042         * m4/getline.m4 (AM_FUNC_GETLINE):
116043         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
116044         hosts.  Problem reported by Derek Robert Price in
116045         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
116046         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
116047         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
116049 2003-10-21  Paul Eggert  <eggert@twinsun.com>
116051         * lib/getndelim2.c (getndelim2): When size calculation overflows,
116052         ceiling the allocation at NMAX bytes rather than silently
116053         discarding input bytes before NMAX is reached.  This makes
116054         a difference only if NMAX exceeds SIZE_MAX / 2.
116056         * lib/obstack.c: Merge from glibc.
116057         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
116058         Add libc_hidden_def (_obstack_newchunk).
116059         (_obstack_free) [! defined _LIBC]: Remove.
116060         [defined _LIBC]: Make a strong alias from obstack_free, rather than
116061         a clone of the function body.
116062         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
116063         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
116065         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
116066         glibc.
116067         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
116068         arg to memcpy.
116070         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
116071         (obstack_ptr_grow_fast, obstack_int_grow_fast):
116072         Don't use lvalue casts, as GCC plans to remove support for them
116073         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
116074         was also present in the non-GCC version, indicating that this
116075         code had always been buggy and had never been widely used.
116076         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
116077         Use the fast variant of each macro, rather than copying the
116078         definiens of the fast variant; that way, we'll be more likely to
116079         catch future bugs in the fast variants.
116081 2003-10-20  Bruno Haible  <bruno@clisp.org>
116083         * modules/wait-process: New file.
116084         * MODULES.html.sh (func_all_modules): Add wait-process.
116086 2003-10-20  Bruno Haible  <bruno@clisp.org>
116088         * m4/wait-process.m4: New file.
116090 2003-10-20  Bruno Haible  <bruno@clisp.org>
116092         * lib/wait-process.h: New file, from GNU gettext.
116093         * lib/wait-process.c: New file, from GNU gettext.
116095 2003-10-19  Jim Meyering  <jim@meyering.net>
116097         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
116098         HPUX 10.20.
116100 2003-10-18  Karl Berry  <karl@gnu.org>
116102         * config/config.guess: update from config.
116104 2003-10-16  Paul Eggert  <eggert@twinsun.com>
116106         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
116107         (getgroups): First arg is int, not size_t.
116108         Don't let 'free' mangle errno.
116110 2003-10-16  Paul Eggert  <eggert@twinsun.com>
116112         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
116114 2003-10-16  Karl Berry  <karl@gnu.org>
116116         * config/config.{guess,sub}: update from config.
116118 2003-10-16  Jim Meyering  <jim@meyering.net>
116120         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
116121         memcpy.
116123 2003-10-15  Paul Eggert  <eggert@twinsun.com>
116125         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
116126         (SIZE_MAX): Remove.
116127         (new_exclude, add_exclude_file): Initial size no longer needs to
116128         be a power of 2.
116129         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
116130         our own address arithmetic overflow checking.
116132         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
116133         (fnmatch): Do not alloca more than 2000 wide characters;
116134         instead, use malloc for large buffers.
116135         Check for address arithmetic overflow, and return -1
116136         with errno set to ENOMEM in that case.
116137         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
116138         (NEW_PATTERN): Do not alloca more than 8000 bytes;
116139         instead, return -1.  Check for address arithmetic overflow.
116141 2003-10-14  Paul Eggert  <eggert@twinsun.com>
116143         Handle invalid suffixes and overflow independently, so that
116144         callers can treat them independently as needed.  Fix some bugs in
116145         suffix handling, e.g., "100k@" was not diagnosed as an invalid
116146         suffix for a human-readable blocksize.  The major caller-visible
116147         change is the addition of a new
116148         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
116149         that both overflow and suffix chars were found.
116151         * lib/human.c (humblock): Don't check separately for invalid suffix
116152         char; that is xstrtoumax's job (now that its bug is fixed).
116153         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
116154         INTMAX_MAX]: New macros.
116155         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
116156         TYPE_MAXIMUM): New macros.
116157         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
116158         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
116159         if overflow occurs, as it's what __strtol does and it's more useful
116160         in practice.
116161         (__xstrtol): If __strtol reports some error other than ERANGE,
116162         reflect it to the caller as LONGINT_INVALID.  If it reports
116163         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
116164         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
116165         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
116166         value.
116167         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
116168         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
116169         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
116170         [defined UINTMAX_MAX]: New macros.
116172 2003-10-14  Bruno Haible  <bruno@clisp.org>
116174         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
116176 2003-10-14  Bruno Haible  <bruno@clisp.org>
116178         * m4/sig_atomic_t: New file, from GNU gettext.
116179         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
116181 2003-10-14  Bruno Haible  <bruno@clisp.org>
116183         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
116184         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
116185         Also use volatile where needed.
116187 2003-10-12  Paul Eggert  <eggert@twinsun.com>
116189         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
116190         Change maintainer from Bruno Haible to 'all'.
116192 2003-10-12  Paul Eggert  <eggert@twinsun.com>
116194         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
116196 2003-10-12  Paul Eggert  <eggert@twinsun.com>
116198         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
116199         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
116200         and define in terms of the other primitives.
116201         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
116202         (SIZE_MAX): Define if not already defined.
116203         (array_size_overflow): New function.
116204         (xalloc_die): Abort instead of exiting if 'error' returns.
116205         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
116206         (xmalloc, xrealloc): Use them.
116207         (xcalloc): Check for address arithmetic overflow.
116208         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
116209         a bit faster than strcpy.
116211 2003-10-10  Simon Josefsson  <jas@extundo.com>
116213         * modules/argp (Depends-on): Add restrict and strcase.
116215 2003-10-10  Simon Josefsson  <jas@extundo.com>
116217         * m4/argp.m4: Add AC_C_INLINE.
116219 2003-10-08  Paul Eggert  <eggert@twinsun.com>
116221         Merge getpass from libc, plus a few fixes.
116223         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
116224         Include <stdbool.h>.
116225         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
116226         __fsetlocking to empty.
116227         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
116228         do include <bits/libc-lock.h>.
116229         Do not include <fcntl.h>; not needed.
116230         [_LIBC]: Include <wchar.h>.
116231         (NOTCANCEL_MODE): New macro.
116232         (flockfile, funlockfile) [_LIBC]: New macros.
116233         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
116234         [!_LIBC]: New macros.
116235         (call_fclose): New function.
116236         (getpass): Use it.  Save tty stream separately; this simplifies the
116237         code and makes it more reliable if stdin happens to equal stdout.
116238         Invoke __fsetlocking on tty.
116239         Handle thread cancellation if needed.
116240         Namespace cleanup (use __tcgetattr, __getline).
116241         Use bool for Booleans.
116242         [USE_IN_LIBIO]: Handle wide streams.
116243         [!_LIBC]: Unconditionally do the fseek, since we don't know what
116244         stream might go where.
116246         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
116247         doesn't have to include <stdio.h> before us.
116248         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
116249         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
116250         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
116251         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
116252         if not declared, so that we can use getpass.c code from libc without
116253         rewriting it.
116254         (flockfile, ftrylockfile, funlockfile): New macros.
116256 2003-10-08  Paul Eggert  <eggert@twinsun.com>
116258         * modules/getpass: Depend on stdbool.
116260 2003-10-08  Paul Eggert  <eggert@twinsun.com>
116262         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
116264 2003-10-07  Karl Berry  <karl@gnu.org>
116266         * config/config.{guess,sub}: update from config.
116268 2003-10-06  Jim Meyering  <jim@meyering.net>
116269             Bruno Haible  <bruno@clisp.org>
116271         This lets translators provide better translations for the
116272         "Written by ..." part of --version output.
116273         * lib/version-etc.h: Include stdarg.h.
116274         (version_etc_copyright): Declare as readonly.
116275         (version_etc): Make this function variadic with a NULL-terminated list
116276         of author name strings.
116277         (version_etc_va): New declaration.
116278         * lib/version-etc.c: Include stdarg.h, stdlib.h.
116279         (version_etc_copyright): Declare as readonly.
116280         (version_etc_va): New function. Provide a different translatable string
116281         for each possible number of authors < 10. Abbreviate when there are 10
116282         authors or more.
116283         (version_etc): Make this function variadic. Call version_etc_va.
116284         Suggestion from Gary V. Vaughan.
116286         * lib/long-options.h (parse_long_options): Change prototype: the
116287         authors string is moved to the end and becomes variadic.
116288         * lib/long-options.c: Include stdarg.h.
116289         (parse_long_options): Make this function variadic, too.
116290         Call version_etc_va, not version_etc.
116292 2003-10-06  Bruno Haible  <bruno@clisp.org>
116294         * modules/version-etc-2: Remove file.
116295         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
116297 2003-10-06  Bruno Haible  <bruno@clisp.org>
116299         * modules/fatal-signal: New file.
116300         * MODULES.html.sh (func_all_modules): Add fatal-signal.
116302 2003-10-06  Bruno Haible  <bruno@clisp.org>
116304         * m4/fatal-signal.m4: New file.
116305         * m4/signalblocking.m4: New file, from GNU gettext.
116307 2003-10-06  Bruno Haible  <bruno@clisp.org>
116309         * lib/version-etc-2.h: Remove file.
116310         * lib/version-etc-2.c: Remove file.
116312 2003-10-06  Bruno Haible  <bruno@clisp.org>
116314         * lib/fatal-signal.h: New file, from GNU gettext.
116315         * lib/fatal-signal.c: New file, from GNU gettext.
116317 2003-10-05  Paul Eggert  <eggert@twinsun.com>
116319         * README: Rework advice for preventing empty .o files.
116320         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
116321         not <sys/types.h>.
116323 2003-10-04  Karl Berry  <karl@gnu.org>
116325         * lib/argp*: update from libc.
116327 2003-10-04  Karl Berry  <karl@gnu.org>
116329         * config/config.{guess,sub}: update from config.
116331 2003-10-02  Bruno Haible  <bruno@clisp.org>
116333         * modules/lchown (Include): Add lchown.h.
116334         * modules/time_r (Include): Use "..." syntax.
116335         * modules/xgetdomainname (Include): Add xgetdomainname.h.
116337 2003-10-01  Simon Josefsson  <jas@extundo.com>
116339         * MODULES.html.sh (func_all_modules): Move gethostname from section
116340         'based on' to section 'lacking' POSIX:2001.
116342 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
116344         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
116345         to output mode on the same stream.
116347 2003-09-29  Paul Eggert  <eggert@twinsun.com>
116349         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
116350         Fix arg typo in previous patch.
116352 2003-09-28  Jim Meyering  <jim@meyering.net>
116354         * lib/error.c: Correct cpp indentation.
116356 2003-09-27  Paul Eggert  <eggert@twinsun.com>
116358         * modules/free: New file.
116360 2003-09-27  Paul Eggert  <eggert@twinsun.com>
116362         * m4/free.m4: New file.
116364 2003-09-27  Paul Eggert  <eggert@twinsun.com>
116366         * lib/minmax.h (MIN, MAX)
116367         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
116368         Omit the special code that used __typeof__, since we worry that
116369         it could be more trouble than it's worth.  See:
116370         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
116371         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
116373         * lib/free.c: New file.
116375 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
116377         Trivial fixes to Makefile.am parts of module listings.
116378         * modules/strstr: Append strstr.h to lib_SOURCES.
116379         * modules/strcase: Likewise, for strcase.h.
116381 2003-09-27  Karl Berry  <karl@gnu.org>
116383         * config/mkinstalldirs: update from automake.
116385 2003-09-26  Paul Eggert  <eggert@twinsun.com>
116387         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
116388         (error_tail): Do not loop, reallocating temporary buffer, since
116389         the output cannot contain more wide characters than the input
116390         contains bytes, the size must be big enough already.  This avoids
116391         one potential size overflow calculation.  Check for size overflow
116392         when calculating temporary buffer size.  Free temporary buffer
116393         when done, if it was allocated with malloc; this plugs a memory
116394         leak.  Remove casts from void * to pointers, that are no longer
116395         needed now that we're assuming C89 or better.
116397         Merge error changes from glibc.
116399         * lib/error.c, error.h: Update copyright notice header to match glibc.
116400         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
116401         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
116402         Disable cancellation while printing error.
116403         * lib/error.h: Prepend __ to parameter names.
116405 2003-09-26  Jim Meyering  <jim@meyering.net>
116407         * lib/error.c (error_tail): Move some declarations
116408         into inner scope where the local variables are used.
116410 2003-09-26  Bruno Haible  <bruno@clisp.org>
116412         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
116413         stpncpy().
116414         Don't define stpncpy through config.h; it's now done through stpncpy.h.
116416 2003-09-26  Bruno Haible  <bruno@clisp.org>
116418         * lib/stpncpy.h (gnu_stpncpy): New declaration.
116419         (stpncpy): Define as alias for gnu_stpncpy.
116420         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
116422 2003-09-25  Simon Josefsson  <jas@extundo.com>
116424         * lib/xgetdomainname.h: New file.
116425         * lib/xgetdomainname.c: New file.
116427 2003-09-25  Simon Josefsson  <jas@extundo.com>
116428             Bruno Haible  <bruno@clisp.org>
116430         * modules/getdomainname: New file.
116431         * modules/xgetdomainname: New file.
116432         * MODULES.html.sh (func_all_modules): Add getdomainname,
116433         xgetdomainname.
116435 2003-09-25  Simon Josefsson  <jas@extundo.com>
116436             Bruno Haible  <bruno@clisp.org>
116438         * m4/getdomainname.m4: New file.
116440 2003-09-25  Simon Josefsson  <jas@extundo.com>
116441             Bruno Haible  <bruno@clisp.org>
116443         * lib/getdomainname.h: New file.
116444         * lib/getdomainname.c: New file.
116446 2003-09-25  Karl Berry  <karl@gnu.org>
116448         * lib/argp-fmtstream.c, argp-help.c: update from libc.
116450 2003-09-25  Karl Berry  <karl@gnu.org>
116452         * config/install-sh: update from automake.
116454 2003-09-25  Bruno Haible  <bruno@clisp.org>
116456         * modules/version-etc-2: New file, from modules/version-etc with
116457         modifications.
116458         * MODULES.html.sh (func_all_modules): Add version-etc-2.
116460 2003-09-25  Bruno Haible  <bruno@clisp.org>
116462         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
116463         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
116465 2003-09-24  Simon Josefsson  <jas@extundo.com>
116467         * modules/xgethostname: Add xgethostname.h.
116469 2003-09-24  Paul Eggert  <eggert@twinsun.com>
116471         * lib/linebuffer.c (freebuffer): Don't free the argument, just
116472         the buffer associated with the argument.  Bug reported by
116473         Simon Josefsson.
116475 2003-09-24  Paul Eggert  <eggert@twinsun.com>
116477         * README: Document assumptions that 'int' is at least 32 bits
116478         wide, that integer arithmetic is 2's complement without overflow,
116479         that there are no holes in integer values, that adding sizes of
116480         two nonoverlapping objects can't overflow, and that all-bits-zero
116481         yields scalar zero.  Fix spelling and capitalization typos.
116483 2003-09-19  Karl Berry  <karl@gnu.org>
116485         * lib/argp.h: update from libc.
116487 2003-09-17  Paul Eggert  <eggert@twinsun.com>
116489         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
116490         to avoid spurious warnings like "AC_RUN_IFELSE was called before
116491         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
116493 2003-09-17  Paul Eggert  <eggert@twinsun.com>
116495         * gnulib-tool: Use "test -h", not "test -L", for portability
116496         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
116497         (tags_regexp): Remove, since \| doesn't conform to POSIX.
116498         (sed_extract_prog): Issue s commands one-by-one, rather than
116499         using \| in one s command.
116501 2003-09-16  Paul Eggert  <eggert@twinsun.com>
116503         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
116504         input error, instead of returning NULL the next time we are called
116505         (and therefore losing track of errno).
116507 2003-09-16  Bruno Haible  <bruno@clisp.org>
116509         * gnulib-tool (func_create_testdir): Warn about duplicated
116510         dependencies.
116512 2003-09-15  Paul Eggert  <eggert@twinsun.com>
116514         * modules/argmatch, modules/fatal, modules/obstack,
116515         modules/xalloc, modules/xgethostname: Sort dependencies by
116516         importance, not alphabetically.
116518 2003-09-15  Paul Eggert  <eggert@twinsun.com>
116520         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
116521         fails, so that the caller gets the proper errno.
116523         * lib/readutmp.c (read_utmp): Likewise.
116524         Check for fstat error.  Close stream and free storage
116525         when failing.
116527 2003-09-14  Karl Berry  <karl@gnu.org>
116529         * config/srclist.txt (strdup.c): disable for c89 changes.
116531 2003-09-14  Jim Meyering  <jim@meyering.net>
116533         * lib/getloadavg.c: Correct cpp indentation.
116534         * lib/strdup.c: Likewise.
116535         * lib/vasnprintf.c: Likewise.
116537 2003-09-14  Bruno Haible  <bruno@clisp.org>
116539         * modules/fwriteerror: New file.
116540         * MODULES.html.sh (func_all_modules): Add fwriteerror.
116542 2003-09-14  Bruno Haible  <bruno@clisp.org>
116544         * lib/fwriteerror.h: New file.
116545         * lib/fwriteerror.c: New file.
116547 2003-09-12  Paul Eggert  <eggert@twinsun.com>
116549         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
116550         modules/xgethostname, modules/xalloc: Depend on exit.
116552 2003-09-12  Paul Eggert  <eggert@twinsun.com>
116554         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
116556         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
116557         and AC_MINIX, too, so that their extensions are available.
116559         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
116560         This macro has been superseded by gl_BACKUPFILE.
116562         More patches to assume C89 or better.
116564         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
116566         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
116567         unconditionally.
116568         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
116569         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
116570         Include <string.h>, <stdlib.h> unconditionally.
116571         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
116572         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
116573         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
116574         headers or for string.h.
116575         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
116576         or strtoul.
116578         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
116579         headers.
116580         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
116581         * m4/userspec.m4 (gl_USERSPEC): Likewise.
116582         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
116583         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
116584         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116585         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
116586         memcpy, memset.
116587         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
116588         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
116589         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
116590         strtol.
116591         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
116592         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
116593         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
116594         strtoul.
116596 2003-09-12  Paul Eggert  <eggert@twinsun.com>
116598         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
116599         * lib/obstack.c [!defined _LIBC]: Likewise.
116600         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
116601         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
116602         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
116604         More changes to assume C89 or better.
116606         * lib/error.c (error_tail): Assume vprintf.
116608         * lib/argmatch.c (getenv): Remove decl.
116609         * lib/progreloc.c (get_full_program_name): Define via prototype.
116610         * lib/setenv.c (clearenv): Likewise.
116611         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
116612         needed.
116613         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
116614         (malloc, memcpy): Remove decls.
116615         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
116616         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
116617         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
116618         (memcpy): Remove macro.
116619         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
116620         (__P): Remove.  All uses removed.
116621         (PTR): Remove.  All uses changed to void *.
116622         (CHAR_BIT, NULL): Remove.
116623         (spaces, zeros, memset_space, memset_zero)
116624         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
116625         Remove.
116626         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
116627         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
116628         Define with prototype.
116629         Remove now-unnecessary prototype decl.
116630         (extra_args_spec): Assume ANSI C.  All uses changed.
116631         (extra_args_spec_iso): Remove.
116632         (my_strftime, emacs_strftimeu): Define via prototype.
116633         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
116634         unconditionally.
116635         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
116636         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
116637         (strtoul, strtol): Remove decls.
116638         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
116639         LONG_MAX): Remove.
116640         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
116641         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
116642         (LOCALE_PARAM_PROTO): New macro.
116643         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
116644         (INTERNAL (strtol), strtol): Define with a prototype.
116645         (PARAMS): Remove.  All uses removed.
116646         * lib/tempname.c: Include <string.h> unconditionally.
116647         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
116648         * lib/xgethostname.c (main): Define with a prototype.
116649         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
116650         Include <stdlib.h> unconditionally.
116651         (calloc, malloc, realloc, free): Remove decls.
116652         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
116653         Include <stdlib.h> unconditionally.  Sort include file names.
116654         (strtod): Remove.
116655         (xstrtod): Define with a prototype.
116656         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
116657         (strtol, strtoul): Remove decls.
116659 2003-09-11  Paul Eggert  <eggert@twinsun.com>
116661         More patches to assume C89 or better.
116662         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
116663         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
116664         string.h, memchr, STDC_HEADERS.
116666 2003-09-11  Paul Eggert  <eggert@twinsun.com>
116668         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
116669         Include <stdlib.h>, <string.h> unconditionally.
116670         Remove now-unnecessary cast to char *.
116671         * lib/strnlen.c: Include <string.h> unconditionally.
116672         * lib/yesno.c (yesno): Define with a prototype.
116674 2003-09-11  Bruno Haible  <bruno@clisp.org>
116676         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
116678 2003-09-10  Jim Meyering  <jim@meyering.net>
116680         * lib/error.c: Correct indentation of cpp directives.
116682 2003-09-10  Bruno Haible  <bruno@clisp.org>
116684         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
116685         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
116686         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
116687         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
116688         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
116689         <stdlib.h> and <string.h> checks.
116690         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
116691         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
116693 2003-09-10  Bruno Haible  <bruno@clisp.org>
116695         * lib/strcspn.c: Include <string.h> unconditionally.
116696         * lib/strpbrk.c: Include <string.h> unconditionally.
116697         * lib/strstr.c: Include <string.h> unconditionally.
116698         * lib/unicodeio.c: Include <string.h> unconditionally.
116699         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
116700         * lib/unsetenv.c: Likewise.
116701         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
116702         * lib/yesno.c: Include <stdlib.h> unconditionally.
116703         (rpmatch): Add prototype.
116705 2003-09-09  Paul Eggert  <eggert@twinsun.com>
116707         More patches to assume C89 or better.
116708         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
116709         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
116710         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
116711         or for string.h.
116712         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
116713         stdlib.h.
116714         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
116715         C headers.
116716         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
116717         string.h.
116718         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
116719         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
116720         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
116721         or for string.h.
116722         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
116723         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
116724         C headers.
116725         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
116726         memcpy.
116727         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
116728         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
116729         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
116730         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
116731         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
116732         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
116733         string.h, free.
116734         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
116735         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
116736         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
116737         C headers, or for string.h.
116738         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
116739         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
116740         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
116741         headers, memory.h, stdlib.h, string.h, strings.h.
116742         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
116743         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
116744         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
116745         strchr.
116746         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
116747         headers, memory.h, string.h.
116748         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
116749         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
116750         free.
116751         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
116752         headers.
116753         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
116754         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
116755         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
116756         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
116757         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
116759 2003-09-09  Paul Eggert  <eggert@twinsun.com>
116761         More K&R removal.
116763         * lib/acosl.c (main): Use a prototype.
116764         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
116765         tanl.c: Likewise.
116767         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
116769         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
116770         (getopt, etopt_long, getopt_long_only, _getopt_internal)
116771         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
116772         with a prototype.
116773         * lib/getopt.c (const): Remove macro.
116774         Include <string.h> unconditionally.
116775         (my_index): Remove; all uses changed to strchr.
116776         (strlen): Remove decl.
116777         (exchange): Remove forward decl; no longer needed.
116778         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
116779         Define with prototype.
116780         * lib/getopt1.c (const): Remove macro.
116781         (getopt_long, getopt_long_only, main): Define with prototype.
116783         * lib/getugroups.c: Include <string.h> unconditionally.
116785         * lib/getusershell.c: Include <stdlib.h> unconditionally.
116786         (getusershell, setusershell, endusershell, readname, main):
116787         Define with prototypes.
116789         * lib/group-member.c: Include group-member.h first.
116790         Include <stdlib.h> unconditionally.
116792         * lib/hard-locale.c: Include hard-locale.h first.
116793         Include <stdlib.h>, <string.h> unconditionally.
116795         * lib/hash.c (free, malloc): Remove decls.
116796         Include <stdlib.h> unconditionally.
116798         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
116799         (getenv): Do not declare.
116801         * lib/idcache.c: Include <string.h> unconditionally.
116803         * lib/long-options.c: Include long-options.h first, to test interface.
116804         Include <stdlib.h> unconditionally.
116806         * lib/makepath.c: Include makepath.h first, to test interface.
116807         Include <stdlib.h> and <string.h> unconditionally.
116809         * lib/linebuffer.c: Include <stdlib.h>.
116810         (free): Remove decl.
116812         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
116813         stddef.h. rpl_malloc returns void *, not char *.
116814         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
116815         prototype.
116817         * lib/md5.h: Include <limits.h> unconditionally.
116818         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
116819         (__P): Remove; all uses removed.
116820         * lib/md5.c: Include "md5.h" first.
116821         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
116822         md5_buffer, md5_process_bytes, md5_process_block):
116823         Define with prototypes.
116824         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
116825         * lib/sha.c: Include "sha.h" first.
116826         Include <stdlib.h>, <string.h> unconditionally.
116828         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
116829         * lib/memcmp.c (__ptr_t): Likewise.
116830         * lib/memrchr.c (__ptr_t): Likewise.
116831         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
116832         Include <string.h> unconditionally.
116833         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
116834         * lib/memchr.c: Include <stdlib.h> unconditionally.
116835         * lib/memchr.c (LONG_MAX): Remove.
116836         * lib/memrchr.c (LONG_MAX): Likewise.
116837         * lib/memchr.c (__memchr): Define via a prototype.
116838         * lib/memrchr.c (__memrchr): Likewise.
116839         * lib/memcmp.c (__P): Remove, and remove all uses.
116840         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
116841         Remove forward decls; no longer needed.
116842         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
116843         Use types required by C89 in prototype.
116845         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
116846         * lib/savedir.c: Likewise.
116847         * lib/mkdir.c (free): Remove decl.
116848         * lib/rmdir.c (rmdir): Define with a prototype.
116849         * lib/savedir.c: Include savedir.h first, to test interface.
116851         * lib/mktime.c (STDC_HEADERS): Remove.
116852         Include <stdlib.h>, <string.h> unconditionally.
116854         * lib/modechange.c: Include <stdlib.h> unconditionally.
116855         (malloc): Remove decl.
116857         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
116858         (free): Remove decl.
116860         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
116861         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
116862         (This type really should be intptr_t, but that's a C99ism.)
116863         (_obstack_memcpy): Remove: all uses changed to memcpy.
116864         Include <string.h> unconditionally.
116865         (struct obstack): Assume __STDC__ for types of members
116866         chunkfun, freefun, extra_arg.
116867         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
116868         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
116869         obstack_begin, obstack_specify_allocation,
116870         obstack_specify_allocation_with_arg, obstack_chunkfun,
116871         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
116872         Remove unprototyped decls and the macros that use them.
116873         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
116874         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
116875         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
116876         (defined __STDC__ && __STDC__)]:
116877         Remove nonprototyped code.
116878         Include <stdlib.h> unconditionally.
116879         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
116880         _obstack_allocated_p, _obstack_free, obstack_free,
116881         _obstack_memory_used, print_and_abort):
116882         Define using prototypes.
116883         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
116884         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
116885         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
116886         obstack_next_free, obstack_object_size, obstack_room) [0]:
116887         Remove unused, unprototyped code.
116889         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
116891         * lib/physmem.c (physmem_total, physmem_available, main): Define
116892         with prototypes.
116894         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
116895         (main): Define with a prototype.
116897         * lib/posixver.c (getenv): Remove decl.
116899         * lib/putenv.c (malloc): Returns void *, not char *.
116900         Include <string.h> unconditionally.
116901         (strchr, memcpy, NULL): Do not define.
116903         * lib/readtokens.c: Include readtokens.h first, to test interface.
116904         Include <stdlib.h>, <string.h> unconditionally.
116905         (init_tokenbuffer): Define with a prototype.
116907         * lib/regex.c (PARAMS): Remove.  All uses removed.
116908         All uses of _RE_ARGS removed, too.
116909         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
116910         unconditionally.
116911         (bzero): Assume memset exists.
116912         (memcmp, memcpy, NULL): Remove.
116913         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
116914         char, or assignments to local vars of type signed char.
116915         (init_syntax_once, PREFIX(extract_number_and_incr),
116916         PREFIX(print_partial_compiled_pattern),
116917         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
116918         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
116919         PREFIX(regex_grow_registers), PREFIX(regex_compile),
116920         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
116921         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
116922         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
116923         wcs_compile_range, byte_compile_range, truncate_wchar,
116924         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
116925         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
116926         count_mbs_length, wcs_re_match_2_internal,
116927         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
116928         PREFIX(alt_match_null_string_p),
116929         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
116930         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
116931         regfree, PREFIX(extract_number)): Define with prototype.  Remove
116932         now-unnecessary declaration, if any.
116933         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
116934         regcomp, regexec):
116935         Remove now-unnecessary casts among pointer types.
116936         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
116938         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
116939         (free): Remove decl.
116941         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
116943         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
116944         (free): Remove decl.
116946         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
116947         * lib/xgetcwd.c: Likewise.
116949         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
116950         (free): Remove decl.
116952         * lib/strchrnul.c (strchrnul): Define with a prototype.
116953         Fix bug: c_in was not converted to char before searching.
116955         The following changes are not K&R related:
116957         * lib/group-member.h: Include <sys/types.h>, so that this file is
116958         self-contained.
116959         * lib/makepath.h: Likewise.
116961         * lib/getusershell.c (readname, default_index, line_size, readname):
116962         Use size_t, not int, for sizes.
116963         (readname): If the size overflows, report an error instead of
116964         looping forever.
116966 2003-09-09  Paul Eggert  <eggert@twinsun.com>
116968         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
116969         libc.
116971 2003-09-09  Paul Eggert  <eggert@twinsun.com>
116973         * README: New section: portability guidelines.
116975 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
116977         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
116978         C89 spec.
116980 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
116982         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
116984 2003-09-08  Paul Eggert  <eggert@twinsun.com>
116986         Assume C89 or better; remove K&R cruft.
116987         A few of these changes were first proposed by Derek Robert Price
116988         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
116990         * lib/addext.c: Include <string.h> unconditionally.
116991         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
116992         Don't declare getenv or malloc.
116994         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
116995         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
116996         (NULL): Remove.
116997         (find_stack_direction, alloca): Use prototypes.
116999         * lib/atexit.c (atexit): Define using a prototype.
117001         * lib/basename.c, dirname.c, stripslash.c:
117002         Include <string.h> unconditionally.
117004         * lib/bcopy.c: Include <stddef.h>.
117005         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
117007         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
117009         * lib/error.h (error, error_at_line, error_print_progname)
117010         [! (defined (__STDC__) && __STDC__)]: Remove decls.
117011         * lib/error.c: Include error.h first, to check interface.
117012         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
117013         (VA_START): Remove; all uses changeed to va_start.
117014         (exit, strerror): Remove decls.
117015         (error_print_progname): Prototype uncondionally.
117016         Don't include <errno.h>; no longer needed.
117017         (private_strerror): Remove.
117018         (error_tail): Always define.
117019         (error, error_at_line): Assume C89 or better; always use prototypes.
117020         * lib/fatal.c: Include "fatal.h" first, to test interface.
117021         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
117022         (VA_START): Remove; all uses changed to va_start.
117023         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
117024         this case.
117025         (exit): Remove decl.
117026         (fatal): Prototype unconditionally.  Assume va_start works.
117027         Abort at end, to pacify gcc.
117029         * lib/euidaccess.c (main): Define with a prototype.
117031         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
117033         * lib/exitfail.c: Include <stdlib.h> unconditionally.
117035         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
117036         prototypes.
117037         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
117038         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
117039         (getenv): Remove decl.
117040         (fnmatch): Define using a prototype.
117041         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
117042         (FCT): Define using a prototype.
117044         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
117046         * lib/gethostname.c: Include <stddef.h>.
117047         (gethostname): Define with prototype.  Length is size_t, not int.
117049 2003-09-08  Paul Eggert  <eggert@twinsun.com>
117051         Assume C89 or better; remove K&R cruft.
117052         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
117053         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
117054         string.h, getenv, malloc.
117055         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
117056         headers.
117057         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
117058         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
117059         do not check for strerror.
117060         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
117061         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
117062         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
117063         do not check for doprnt or vprintf.
117064         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
117065         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
117067 2003-09-08  Paul Eggert  <eggert@twinsun.com>
117069         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
117070         getversion.c should have been removed then, but was accidentally
117071         preserved.
117073         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
117074         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
117076 2003-09-08  Karl Berry  <karl@gnu.org>
117078         * config/config.sub, config.guess, srclistvars.sh: update from savannah
117079                 config, forget about prep.
117081         * config/depcomp, missing: update from automake.
117083 2003-09-07  Paul Eggert  <eggert@twinsun.com>
117085         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
117086         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
117088 2003-09-07  Paul Eggert  <eggert@twinsun.com>
117090         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
117091         copy_tm_result.  Bug reported by Simon Josefsson in
117092         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
117094 2003-09-06  Paul Eggert  <eggert@twinsun.com>
117096         * m4/time_r.m4: New file.
117097         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
117098         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
117099         is. Check for timegm declaration.
117100         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
117101         Do not check for gmtime_r.
117102         Replace mktime if __mktime_internal does not exist and if mktime
117103         hasn't been replaced already.
117105 2003-09-06  Paul Eggert  <eggert@twinsun.com>
117107         * lib/time_r.c, lib/time_r.h: New files.
117109         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
117110         __localtime_r.
117111         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
117112         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
117114         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
117115         __gmtime_r.
117116         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
117117         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
117118         Include <time_r.h>.
117120         * lib/timegm.c: Switch to glibc implementation, with the following
117121         changes:
117122         [defined HAVE_CONFIG_H]: Include <config.h>.
117123         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
117124         (__mktime_internal) [!defined _LIBC]: New decl.
117125         (__gmtime_r) [!defined _LIBC]: New macro and function.
117126         (timegm): Use a prototype, since gnulib assumes C89.
117127         Do not bother declaring tmp to be const, as it's not really usefu.
117128         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
117129         (timegm): Declare only if HAVE_DECL_TIMEGM.
117131 2003-09-06  Paul Eggert  <eggert@twinsun.com>
117133         * MODULES.html.sh (func_all_modules): Add time_r.
117134         * modules/time_r: New file.
117135         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
117136         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
117138 2003-09-03  Paul Eggert  <eggert@twinsun.com>
117140         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
117141         Bug reported by Lute Kamstra in
117142         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
117144         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
117145         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
117146         course with correspondingly smaller numbers for tomorrow and
117147         yesterday.  From Tadayoshi Funaba.  Originally installed into
117148         sh-utils on 1999-08-07, but the patch got lost (I guess during the
117149         coreutils merge?).
117151 2003-08-31  Simon Josefsson  <jas@extundo.com>
117153         * modules/timegm: New file.
117154         * MODULES.html.sh (func_all_modules): Add timegm.
117156 2003-08-31  Simon Josefsson  <jas@extundo.com>
117158         * m4/timegm.m4: New file.
117160 2003-08-31  Simon Josefsson  <jas@extundo.com>
117162         * lib/timegm.h: New file.
117163         * lib/timegm.c: New file.  Based on
117164         wget-1.8.2/src/http.c:mktime_from_utc.
117166 2003-08-31  Karl Berry  <karl@gnu.org>
117168         * lib/argp.h: update from libc.
117170 2003-08-28  Bruno Haible  <bruno@clisp.org>
117172         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
117173         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
117174         followed by '#define fnmatch fnmatch_posix' gives an error.
117176 2003-08-28  Bruno Haible  <bruno@clisp.org>
117178         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
117179         warning on QNX, which defines O_BINARY to 000000.
117181 2003-08-27  Jim Meyering  <jim@meyering.net>
117183         * m4/mkstemp.m4: Require that the system mkstemp be able to create
117184         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
117185         would fail after 32.  Reported by Danny Levinson.  Details here:
117186         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
117188 2003-08-24  Bruno Haible  <bruno@clisp.org>
117190         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
117191         MSVC7 <stdio.h> is included later.
117193 2003-08-22  Simon Josefsson  <jas@extundo.com>
117195         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
117197 2003-08-20  Karl Berry  <karl@gnu.org>
117199         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
117201 2003-08-20  Bruno Haible  <bruno@clisp.org>
117203         * modules/progname: New file.
117204         * MODULES.html.sh (func_all_modules): Add progname.
117206 2003-08-20  Bruno Haible  <bruno@clisp.org>
117208         * lib/progname.h: New file, from GNU gettext.
117209         * lib/progname.c: New file, from GNU gettext.
117210         * lib/progreloc.c: New file, from GNU gettext.
117212 2003-08-19  Jim Meyering  <jim@meyering.net>
117214         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
117215         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
117217 2003-08-19  Bruno Haible  <bruno@clisp.org>
117219         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
117220         more.
117222 2003-08-19  Bruno Haible  <bruno@clisp.org>
117224         * lib/xstrdup.c: Assume <string.h> exists.
117226 2003-08-18  Paul Eggert  <eggert@twinsun.com>
117228         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
117229         in makefile rules.
117231 2003-08-18  Jim Meyering  <jim@meyering.net>
117233         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
117234         * m4/lib-ld.m4: Likewise.
117236 2003-08-18  Jim Meyering  <jim@meyering.net>
117238         * lib/setenv.h: Indent nested cpp directive.
117239         * lib/vasnprintf.c: Remove trailing blanks.
117241 2003-08-17  Simon Josefsson  <jas@extundo.com>
117243         * modules/xstrndup: New file.
117244         * MODULES.html.sh (func_all_modules): Add xstrndup.
117246 2003-08-17  Simon Josefsson  <jas@extundo.com>
117248         * modules/argp: Fix autoconf macro name. Add more dependencies.
117250 2003-08-17  Simon Josefsson  <jas@extundo.com>
117252         * m4/xstrndup.m4: New file.
117254 2003-08-17  Simon Josefsson  <jas@extundo.com>
117256         * m4/argp.m4: New file.
117258 2003-08-17  Simon Josefsson  <jas@extundo.com>
117259             Bruno Haible  <bruno@clisp.org>
117261         * lib/xstrndup.h: New file.
117262         * lib/xstrndup.c: New file.
117264 2003-08-17  Bruno Haible  <bruno@clisp.org>
117266         * modules/strndup (Files, Include): Add lib/strndup.h.
117268 2003-08-17  Bruno Haible  <bruno@clisp.org>
117270         * modules/euidaccess (Files): Add lib/euidaccess.h.
117272 2003-08-17  Bruno Haible  <bruno@clisp.org>
117274         * lib/strndup.h: New file.
117276 2003-08-17  Bruno Haible  <bruno@clisp.org>
117278         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
117279         like AC_GNU_SOURCE.
117280         * modules/extensions (configure.ac): Comment out the invocation of
117281         gl_USE_SYSTEM_EXTENSIONS.
117283 2003-08-16  Paul Eggert  <eggert@twinsun.com>
117285         Merges from coreutils, etc.
117286         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
117287         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
117288         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
117289         fixing a typo.
117290         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
117291         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
117293 2003-08-16  Paul Eggert  <eggert@twinsun.com>
117295         Document merge from coreutils.
117296         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
117297         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
117298         * modules/utime: Add m4/utimes-null.m4.
117300 2003-08-16  Paul Eggert  <eggert@twinsun.com>
117302         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
117303         space, undoing this 2003-08-12 change:
117304         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
117306 2003-08-16  Paul Eggert  <eggert@twinsun.com>
117308         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
117309         strtoul.c from libc, undoing this 2003-08-12 change:
117310         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
117312 2003-08-16  Jim Meyering  <jim@meyering.net>
117314         Merges from coreutils.
117315         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
117316         prefix.  Adjust cache variables similarly.  Create 500 rather than
117317         just 300 files, to exercise bug on Darwin6.5, too.
117318         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
117319         $missing_dir.
117320         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
117321         AM_SYS_POSIX_TERMIOS.
117322         Reported by mkc@mathdogs.com.
117323         Also change use of $am_cv_sys_posix_termios
117324         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
117325         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
117326         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
117327         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
117328         in /proc/mounts until it finds one with matching device number.  This
117329         is unnecessary when the FILE argument *is* a mount point.  No stat call
117330         is necessary in that case.  So, disable the statvfs-testing code on
117331         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
117332         as RedHat bug# 84846.
117333         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
117334         to 1MB, so as not to render systems with no stack size limit (e.g.,
117335         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
117336         Include <unistd.h>.  On some systems,
117337         it is required for the definition of _SC_PAGESIZE.
117339 2003-08-16  Jim Meyering  <jim@meyering.net>
117341         Merge from coreutils.
117342         * lib/xstrtoimax.c: #else #if -> #elif.
117343         * lib/xstrtoumax.c: Likewise.
117345 2003-08-16  Jim Meyering  <jim@meyering.net>
117347         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
117348         * m4/utimes.m4: Removed.
117349         * m4/utimes-null.m4: Renamed from utimes.m4.
117351         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
117352         to 1MB, so as not to render systems with no stack size limit (e.g.,
117353         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
117354         Include <unistd.h>.  On some systems,
117355         it is required for the definition of _SC_PAGESIZE.
117357 2003-08-16  Jim Meyering  <jim@meyering.net>
117358         and Paul Eggert  <eggert@cs.ucla.edu>
117360         Merges from coreutils, etc.
117362         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
117363         using the latest version from cvs.  This avoids problems with #line
117364         directives using a vendor (Sun) compiler.
117365         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
117366         Don't set GETGROUPS_LIB here; now it's
117367         done via getgroups.m4's wrapper function.
117368         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
117369         rather than just in sh-util/configure.in, so that the
117370         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
117371         same.
117372         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
117373         AC_FUNC_GETLOADAVG where to find getloadavg.c.
117374         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
117375         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
117376         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
117377         Remove code that is now done by the newly-required macros.
117378         Append $(EXEEXT) to DF_PROG.
117379         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
117380         Do not invoke or require the following here,
117381         since prereq.m4 or some gnulib .m4 now does this for us:
117382         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
117383         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
117384         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
117385         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
117386         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
117387         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
117388         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
117389         AC_FUNC_OBSTACK.
117390         Do not replace the following functions, as this is now the job
117391         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
117392         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
117393         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
117394         atexit getpass, strdup, getpagesize.
117395         Replace 'raise'.
117396         Do not check for the following functions, as this is now the job
117397         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
117398         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
117399         setregid.
117400         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
117401         Check for sys/sysctl.h.
117402         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
117403         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
117404         of checking for ssize_t ourselves.
117406         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
117407         Require every macro that gnulib/modules/* suggests for us.
117408         (jm_PREREQ_ADDEXT): New macro.
117409         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
117410         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
117412         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
117413         (gl_PHYSMEM): Use it.
117414         Also check for `table' function.
117415         Check for new headers and functions.
117416         Add check for sys/sysmp.h.
117417         With suggestions from Kaveh Ghazi.
117418         Ignore headers that are present but cannot be compiled.  This
117419         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
117420         C 5.4.
117422 2003-08-15  Paul Eggert  <eggert@twinsun.com>
117424         Document merge from coreutils.
117425         * modules/userspec: Depend on posixver.
117426         * modules/strftime: Depend on tzset.
117428 2003-08-15  Paul Eggert  <eggert@twinsun.com>
117430         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
117431         rather than tab, after '#' in shell-script copyright notices.
117432         Suggested by Bruno Haible.
117434 2003-08-15  Paul Eggert  <eggert@twinsun.com>
117436         * config/srclist-update: Use three spaces, rather than tab, after '#'
117437         in shell-script copyright notices.  Suggested by Bruno Haible.
117438         Remove unnecessary parenthesization in regular expression.
117440 2003-08-15  Jim Meyering  <jim@meyering.net>
117442         Merge from coreutils.
117443         * lib/xgethostname.c: Include <stdlib.h>.
117444         (xghostname): Don't exit for anything other than memory-related
117445         failure; just return NULL.
117446         * lib/userspec.c: Include "posixver.h".
117447         (parse_user_spec): Accept `.' as a separator only
117448         in pre-POSIX-200112 mode.
117449         * lib/strtoimax.c: Use #elif rather than #else #if.
117450         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
117451         Remove function, now that we can rely on a working tzset function.
117452         [!_LIBC]: Ensure that the required autoconf test has been run.
117453         [!defined _NL_CURRENT && HAVE_STRFTIME]:
117454         Use underlying_strftime for %r.
117455         * lib/sha.c: Merge in some clean-up and optimization changes from
117456         glibc.
117457         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
117458         Ensure that it is a multiple of 64.
117459         Rearrange loop exit tests so as to avoid performing an
117460         additional fread after encountering an error or EOF.
117461         * lib/realloc.c: Update copyright date.
117463 2003-08-15  Jim Meyering  <jim@meyering.net>
117464         and Paul Eggert  <eggert@twinsun.com>
117466         Merge from coreutils.
117467         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
117468         member but strut utmpx does not.  Needed for AIX 4.3.3.
117469         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
117471 2003-08-15  Jim Meyering  <jim@meyering.net>
117472         and Paul Eggert  <eggert@cs.ucla.edu>
117474         Merges from coreutils, etc.
117475         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
117476         Require gl_FUNC_TZSET_CLOBBER.
117477         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
117478         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
117479         members.
117481 2003-08-14  Paul Eggert  <eggert@twinsun.com>
117483         Help the merge from coreutils.
117484         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
117485         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
117486         * m4/tzset.m4: Use it too.
117488 2003-08-14  Paul Eggert  <eggert@twinsun.com>
117490         * modules/tzset: New file.
117492 2003-08-14  Jim Meyering  <jim@meyering.net>
117494         Merges from coreutils.
117495         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
117496         variable names, rather than @FNMATCH_H@.
117497         * modules/alloca: Likewise for $(ALLOCA_H).
117499         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
117500         the three copies of the literal target, `fnmatch.h'.
117501         * modules/alloca (alloca.h): Likewise.
117503 2003-08-14  Jim Meyering  <jim@meyering.net>
117505         Merge from coreutils.
117506         * m4/tzset.m4: New file.
117507         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
117508         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
117509         otherwise, AIX 5.1 systems would end up using the latter.
117510         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
117511         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
117512         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
117513         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
117515 2003-08-14  Jim Meyering  <jim@meyering.net>
117517         Merge from coreutils.
117518         * lib/obstack.h: Whitespace changes.
117519         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
117520         and xcalloc return values.
117521         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
117522         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
117523         hang on OSF/1 5.1 for DIR on both local and remote file systems.
117524         Reported by (and fix confirmed by) Nelson H. F. Beebe.
117525         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
117526         error from mntctl.
117527         Use mntctl's return value to drive the entry-processing loop, since
117528         we can't rely on the value of the vmt_length member in the last
117529         entry.  On some systems doing so could result in exhausting
117530         virtual memory.  Based in part on a patch from Mike Jetzer.
117532 2003-08-14  Jim Meyering  <jim@meyering.net>
117533         and Paul Eggert  <eggert@twinsun.com>
117535         Merges from coreutils, plus other fixes.
117536         * lib/physmem.c: Merge in portability changes from gcc/libiberty
117537         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
117538         for credits and details.  Thanks to Kaveh Ghazi for helping
117539         to keep these files in sync.
117540         (ARRAY_SIZE): Define it.
117541         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
117542         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
117543         (memcasecmp): Don't assume size_t fits in unsigned int.
117544         Remove casts and duplicate code.
117545         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
117546         (memcpy): Remove definition.
117547         Merge in some clean-up and optimization changes from glibc.
117548         [BLOCKSIZE]: Move definition to top of file.
117549         Ensure that it is a multiple of 64.
117550         Rearrange loop exit tests so as to avoid performing an
117551         additional fread after encountering an error or EOF.
117552         * lib/md5.h (md5_uintptr): Define.
117553         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
117554         return to the initial working directory.  Preserve errno
117555         for caller.
117556         * lib/idcache.c: Include "xalloc.h".
117557         (xmalloc, xrealloc): Remove decls.
117558         (getuser): Remove casts no longer required in C89.
117559         * lib/human.c: Include stdio.h, for sprintf.
117560         * lib/group-member.c: Include "xalloc.h".
117561         (xmalloc, xrealloc): Remove decls.
117562         (get_group_info): Remove casts no longer required in C89.
117563         * lib/getusershell.c (readname): Remove casts no longer required in
117564         C89.
117565         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
117566         * lib/getline.c: Whitespace fix, from coreutils.
117568 2003-08-13  Paul Eggert  <eggert@twinsun.com>
117570         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
117571         Check for isascii.
117573         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
117574         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
117575         Undo previous (whitespace-only) change.
117577 2003-08-13  Paul Eggert  <eggert@twinsun.com>
117579         * lib/exclude.c: Include <ctype.h>
117580         (IN_CTYPE_DOMAIN): New macro.
117581         (is_space): New fn.
117582         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
117583         and empty lines.
117585         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
117586         Undo previous (whitespace-only) change.
117588 2003-08-13  Paul Eggert  <eggert@twinsun.com>
117590         * config/srclist-update: Change update back to the old behavior,
117591         leaving whitespace alone.  Use one 'sed' command rather than a
117592         pipeline.
117593         (fixlicense): Now a variable, not a function.
117594         (remove_trailing_blanks): Remove.
117595         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
117596         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
117597         Undo previous (whitespace-only) change.
117599 2003-08-12  Paul Eggert  <eggert@twinsun.com>
117601         Merge from coreutils.
117602         * modules/euidaccess: Add lib_SOURCES, include for new
117603         file euidaccess.h
117605 2003-08-12  Paul Eggert  <eggert@twinsun.com>
117607         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
117608         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
117609         Normalize leading white space and remove trailing white space.
117611         Merge from coreutils
117612         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
117614         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
117615         0.12.1.  These files are now being upgraded automatically by
117616         ../config/srclist-update.
117618 2003-08-12  Paul Eggert  <eggert@twinsun.com>
117620         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
117621         Normalize leading white space and remove trailing white space.
117622         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
117623         notice, as per ../config/srclist-update.
117625         Merge from coreutils.
117626         * lib/euidaccess.h: New file.
117627         * lib/euidaccess.c: Include it.
117628         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
117629         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
117630         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
117632 2003-08-12  Paul Eggert  <eggert@twinsun.com>
117634         * config/srclist-update: Add copyright notice.
117635         (remove_id_lines, remove_trailing_blanks): New constants.
117636         (fixfile): Use them to normalize spacing a bit in copied files.
117637         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
117638         Normalize leading white space and remove trailing white space.
117640         * config/texinfo.tex: Sync with texinfo.
117642         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
117643         strtoul.c from libc, to merge coreutils whitespace changes.
117645         * config/srclist.txt: Get the following m4 files from gettext:
117646         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
117647         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
117648         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
117649         wint_t.m4.
117651 2003-08-12  Karl Berry  <karl@gnu.org>
117653         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
117654         been made.
117656 2003-08-11  Paul Eggert  <eggert@twinsun.com>
117658         * modules/gnu-source, m4/gnu-source.m4:
117659         Remove; we're assuming Autoconf 2.54 or later now.
117660         Suggested by Bruno Haible.
117661         * MODULES.html.sh (func_all_modules): Remove gnu-source.
117663 2003-08-11  Bruno Haible  <bruno@clisp.org>
117665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
117667 2003-08-11  Bruno Haible  <bruno@clisp.org>
117669         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
117670         (vasnprintf): Use it instead of wcslen.
117672 2003-08-11  Bruno Haible  <bruno@clisp.org>
117674         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
117675         value to ensure that _Bool promotes to int. Use #define for _Bool when
117676         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
117678 2003-08-10  Karl Berry  <karl@gnu.org>
117680         * lib/regex.h: update from libc (whitespace fix).
117682 2003-08-09  Paul Eggert  <eggert@twinsun.com>
117684         Merge some files from coreutils.  These changes were
117685         originally made by Jim Meyering.
117686         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
117687         many older Unixes require this.
117688         * lib/alloca.c (alloca): Remove cast to argument of free;
117689         no longer needed in C89.
117690         * lib/alloca_.h, regex.h: Fix white space to match
117691         what GNU indent does.
117693 2003-08-09  Paul Eggert  <eggert@twinsun.com>
117695         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
117696         apparently Emacs's Unicode mode got confused before my 2003-08-05
117697         checkin.
117699 2003-08-08  Paul Eggert  <eggert@twinsun.com>
117701         * m4/extensions.m4: New file.
117702         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
117703         Require gl_USE_SYSTEM_EXTENSIONS.
117704         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
117705         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
117707 2003-08-08  Paul Eggert  <eggert@twinsun.com>
117709         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
117710         * modules/extensions, modules/gnu-source: New files.
117711         * modules/timespec, modules/unlocked-io: Depend on extensions.
117713 2003-08-07  Paul Eggert  <eggert@twinsun.com>
117715         * modules/restrict: New file.
117716         * MODULES.html.sh (func_all_modules): Add restrict.
117717         * modules/regex: Depend on restrict.
117719 2003-08-07  Paul Eggert  <eggert@twinsun.com>
117721         * m4/restrict.m4: New file.
117722         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
117724 2003-08-07  Bruno Haible  <bruno@clisp.org>
117726         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
117727         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
117729 2003-08-07  Bruno Haible  <bruno@clisp.org>
117731         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
117732         makes the module 'getndelim2' compatible with the module 'getline'.
117734 2003-08-05  Paul Eggert  <eggert@twinsun.com>
117736         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
117737         byte with "\201" to avoid glitches when editing that source file
117738         with multi-gnome-terminal.
117740 2003-08-05  Paul Eggert  <eggert@twinsun.com>
117742         * lib/bumpalloc.h: Remove.
117744 2003-08-05  Paul Eggert  <eggert@twinsun.com>
117746         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
117747         * modules/bumpalloc: Remove.
117749 2003-08-04  Paul Eggert  <eggert@twinsun.com>
117751         * lib/getloadavg.c: Change copyright notice and spacing to conform to
117752         GNU coding style.
117754         Merge from coreutils.
117755         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
117756         1. From glibc.
117757         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
117758         from Karl Berry, implemented by Jim Meyering.
117759         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
117760         from Dmitry V. Levin.
117761         Remove anachronistic cast of xrealloc.
117762         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
117763         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
117764         type. Otherwise, it wouldn't compile with at least /bin/cc on
117765         ymp-cray-unicos9.0.2.X.
117766         Combine two mostly-identical uses of alloca into one.
117767         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
117769 2003-08-04  Dave Love  <d.love@dl.ac.uk>
117771         [From Emacs.]
117773         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
117774         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
117775         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
117776         obsolete NLIST_NAME_UNION.
117777         [__GNU__]: Undef BSD and FSCALE.
117778         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
117780 2003-08-03  Paul Eggert  <eggert@twinsun.com>
117782         * lib/stdbool_.h (_Bool): Make it signed char, instead of
117783         an enum type, so that it's guaranteed to promote to int.  See:
117784         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
117786 2003-08-03  Karl Berry  <karl@gnu.org>
117788         * config/depcomp: update from automake.
117790 2003-07-31  Paul Eggert  <eggert@twinsun.com>
117792         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
117793         (strerror): Don't assume that a printable int fits in 14 bytes.
117795 2003-07-31  Bruno Haible  <bruno@clisp.org>
117797         * modules/getpass-gnu: New file.
117798         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
117800 2003-07-31  Bruno Haible  <bruno@clisp.org>
117802         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
117804 2003-07-24  Karl Berry  <karl@gnu.org>
117806         * config/missing: update from automake.
117808 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
117809             Bruno Haible  <bruno@clisp.org>
117811         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
117812         * lib/getline.c (getline, getdelim): Likewise.
117813         Remove _GNU_SOURCE define; now it's defined in config.h through
117814         m4/getline.m4.
117816 2003-07-23  Karl Berry  <karl@gnu.org>
117818         * config/config.sub: update from prep.
117820 2003-07-22  Paul Eggert  <eggert@twinsun.com>
117822         * modules/xalloc (Depends-on): Add exitfail.
117823         * modules/xmemcoll: Likewise.
117825 2003-07-22  Paul Eggert  <eggert@twinsun.com>
117827         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
117828         over-parenthesization in macros.
117830         Sync with coreutils.
117832         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
117833         required by C99.
117835         Use `exit_failure' for xalloc and xmemcoll instead of their own
117836         private exit-failure variables.
117837         * lib/xalloc.h (xalloc_exit_failure): Remove.
117838         * lib/xmalloc.c: Likewise.  Include exitfail.h.
117839         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
117840         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
117841         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
117842         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
117844 2003-07-20  Jim Meyering  <jim@meyering.net>
117846         * modules/closeout (Depends-on): Add exitfail.
117847         Suggestion from Bruno Haible.
117849 2003-07-19  Karl Berry  <karl@gnu.org>
117851         * config/config.sub: update from prep.
117853 2003-07-18  Paul Eggert  <eggert@twinsun.com>
117855         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
117856         Remove.
117857         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
117858         to test that it can stand by itself.  Include "exitfail.h".
117859         Clients should set exit_failure instead.
117860         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
117862 2003-07-18  Bruno Haible  <bruno@clisp.org>
117864         * modules/getndelim2: New file.
117865         * modules/getline: Share files with module getndelim2.
117866         * modules/getnline: Depend on getndelim2 instead of sharing files with
117867         it. Add getnline.c to lib_SOURCES.
117868         * MODULES.html.sh (func_all_modules): Add getndelim2.
117870 2003-07-18  Bruno Haible  <bruno@clisp.org>
117872         * m4/getndelim2.m4: New file.
117873         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
117874         invoke gl_PREREQ_GETNDELIM2.
117875         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
117876         gl_PREREQ_GETNDELIM2.
117877         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
117878         gl_GETNDELIM2.
117880 2003-07-18  Bruno Haible  <bruno@clisp.org>
117882         * lib/getndelim2.h: New file.
117883         * lib/getndelim2.c: Make into a module of its own. Include config.h,
117884         getndelim2.h.
117885         (getndelim2): Make non-static. Change return type to ssize_t.
117886         * lib/getline.h: Change argument names.
117887         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
117888         * lib/getnline.c: Include getndelim2.h.
117890 2003-07-18  Andreas Schwab  <schwab@suse.de>
117892         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
117894 2003-07-17  Karl Berry  <karl@gnu.org>
117896         * config/config.sub: update from prep.
117898 2003-07-17  Bruno Haible  <bruno@clisp.org>
117900         * modules/getnline: New file.
117901         * modules/getline: Add lib/getndelim2.c to source file list.
117902         * MODULES.html.sh (func_all_modules): Add getnline.
117904 2003-07-17  Bruno Haible  <bruno@clisp.org>
117906         * m4/getnline.m4: New file.
117908 2003-07-17  Bruno Haible  <bruno@clisp.org>
117910         * m4/Makefile.am.in: Remove file.
117911         * m4/Makefile.am: Remove file.
117912         * m4/Makefile.in: Remove file.
117914 2003-07-17  Bruno Haible  <bruno@clisp.org>
117916         * lib/getnline.h: New file.
117917         * lib/getnline.c: New file.
117918         * lib/getndelim2.c: New file, extracted from getline.c.
117919         (getndelim2): Renamed from getdelim2, with added nmax argument.
117920         * lib/getline.c: Include getndelim2.c.
117921         (getdelim2): Moved out to getndelim2.c.
117922         (getline, getdelim): Update.
117924 2003-07-17  Bruno Haible  <bruno@clisp.org>
117926         * lib/Makefile.am: Remove file.
117927         * lib/Makefile.in: Remove file.
117929 2003-07-17  Bruno Haible  <bruno@clisp.org>
117931         * configure.in: Remove file.
117932         * Makefile.in: Remove file.
117934 2003-07-17  Bruno Haible  <bruno@clisp.org>
117936         * MODULES.html.sh: Put the </BODY> right before </HTML>.
117938 2003-07-16  Karl Berry  <karl@gnu.org>
117940         * config/srclist-update: was running fixlicense twice, which caused
117941                 texinfo.tex to be nullified for some reason.  Simplify,
117942                 $gplsrc is no longer needed as far as I can see?
117944 2003-07-16  Jim Meyering  <jim@meyering.net>
117946         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
117948 2003-07-15  Paul Eggert  <eggert@twinsun.com>
117950         * config/srclist.txt: Get the following files from gettext-runtime/intl
117951         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
117952         ref-del.sin.  From Bruno Haible.
117953         * config/srclist-update (fixfile): Change grep pattern again, since the
117954         previous fix didn't work (there was another trailing $).  Use
117955         '[$]' to escape the $s.
117957 2003-07-15  Karl Berry  <karl@gnu.org>
117959         * lib/vasnprintf.c: update from gettext.
117961 2003-07-15  Karl Berry  <karl@gnu.org>
117963         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
117964         gets expanded when surrounded by '$'.
117966 2003-07-15  Jim Meyering  <jim@meyering.net>
117968         * modules/save-cwd: Don't depend on error.  From Derek Price.
117970 2003-07-15  Jim Meyering  <jim@meyering.net>
117972         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
117974 2003-07-14  Simon Josefsson  <jas@extundo.com>
117976         * modules/mempcpy: New file.
117977         * MODULES.html.sh (func_all_modules): Add mempcpy.
117979 2003-07-14  Simon Josefsson  <jas@extundo.com>
117981         * m4/mempcpy.m4: New file.
117983 2003-07-14  Simon Josefsson  <jas@extundo.com>
117985         * lib/mempcpy.h: New file.
117986         * lib/mempcpy.c: New file.
117988 2003-07-14  Paul Eggert  <eggert@twinsun.com>
117990         * modules/getdate, modules/posixtm: Depend on mktime.
117992 2003-07-14  Paul Eggert  <eggert@twinsun.com>
117994         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
117995         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
117996         unicodeio.c, unicodeio.h, unlocked-io.h:
117997         Switch from LGPL to GPL.
117999 2003-07-14  Paul Eggert  <eggert@twinsun.com>
118001         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
118002         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
118003         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
118004         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
118005         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
118006         updated automatically by ../config/srclist-update.  This changes
118007         their license from LPGL to GPL.
118009 2003-07-14  Paul Eggert  <eggert@twinsun.com>
118011         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
118012         assumed to refer to the root of the most recent stable gettext version.
118013         * config/srclistvars.sh: Add defaults for eggert.
118014         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
118015         Match "This program" as well as "The program".  This is needed
118016         for gettext.
118018 2003-07-14  Jim Meyering  <jim@meyering.net>
118020         Don't emit diagnostics.  Let callers do that.
118021         * lib/save-cwd.c: Don't include "error.h".
118022         (save_cwd): Don't call error.  Ensure that errno is valid
118023         when returning nonzero.
118025         * lib/save-cwd.h (restore_cwd): Update prototype.
118026         * lib/save-cwd.c (restore_cwd): Remove two parameters.
118027         Simplify.  Don't call error upon failure.  Let callers do that.
118028         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
118029         when auditing is enabled.  But don't bother updating the #if.
118031 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
118033         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
118034         it breaks C++ compilation.
118035         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
118037 2003-07-10  Simon Josefsson  <jas@extundo.com>
118039         * modules/strchrnul (Makefile.am): Add strchrnul.h.
118041 2003-07-10  Jim Meyering  <jim@meyering.net>
118043         * m4/clock_time.m4: Remove trailing blank.
118044         * m4/intmax_t.m4: Likewise.
118046 2003-07-10  Jim Meyering  <jim@meyering.net>
118048         * lib/vasnprintf.c: Remove trailing blanks.
118049         Make cpp indentation consistent.
118051 2003-07-09  Paul Eggert  <eggert@twinsun.com>
118053         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
118054         posixver.c, strftime.c, strnlen.c, strverscmp.c:
118055         Switch from LGPL to GPL.
118057 2003-07-09  Paul Eggert  <eggert@twinsun.com>
118059         * config/srclist.txt: Sort sublists.  Add
118060         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
118061         that differ from gnulib for one reason or another; we'd like this list
118062         to be smaller but for now let's document what we have.
118064 2003-07-08  Paul Eggert  <eggert@twinsun.com>
118066         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
118067         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
118068         and sweeter "eval x=$x".
118069         * config/srclist.txt: Get lib/argp* from glibc.
118071 2003-07-07  Paul Eggert  <eggert@twinsun.com>
118073         * lib/mktime.c: Fix some boundary cases and remove need for floating
118074         point.
118076         Issue a compile-time diagnostic if time_t is floating point, or if
118077         two's complement arithmetic is not in effect, or if arithmetic
118078         right shift does not propagate the sign.  These assumptions were
118079         all in the original code but they weren't checked.
118081         (TIME_T_MIDPOINT, verify): New macros.
118082         (__isleap): Remove; it has integer overflow problems.
118083         (leapyear): New function, without those problems.
118084         (ydhms_tm_diff): Remove; splitting into two parts.
118085         (ydhms_diff): New function, containing the arithmetic part of
118086         the old ydhms_tm_diff function.  Issue a compile-time
118087         diagnostic if we are not using C99 integer division.
118088         Avoid casts when possible.
118089         (guess_time_tm): New function, containing the checking part of
118090         the old ydhms_tm_diff function.  Return the new value, rather than
118091         the difference between it and the old.  Accept a new argument T
118092         so that *T specifies the old value.  Check for overflow in the result.
118094         (__mktime_internal): Use a time_t offset, not a long int offset.
118095         This undoes the 2003-06-04 change, which is no longer needed now
118096         that we have better overflow checking.
118097         (localtime_offset): Likewise.
118099         (__mktime_internal): Avoid harmful overflow on hosts where time_t
118100         and long are 64-bit but int is only 32-bit.
118101         (ydhms_diff): Use long int to store year1 and yday1.
118102         Issue a compile-time diagnostic if long int is not wide enough.
118104         (__mktime_internal): Use long int to store adjusted year and yday.
118105         Use plain C rather than preprocessor commands, if that doesn't
118106         affect efficiency.
118107         Check for overflow (and try to repair) after each probe
118108         rather than checking only at the very end.  This avoids some bugs
118109         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
118110         does not equal GMT offset at maximum time).
118111         Use integer to check for overflow rather than floating point; this
118112         is more portable to non-IEEE hosts, and is a tad faster.
118113         When we detect that we are oscillating between two values,
118114         don't check whether tm_isdst has the requested value, since
118115         we already know the answer.  When tm_isdst has the wrong value,
118116         use a different heuristic to find the right one, based on the
118117         extreme values actually observed in practice in tz2003a,
118118         rather than the (overly optimistic) "previous 3 calendar quarters".
118120         (not_equal_tm, print_tm, check_result): Use "const T" rather than
118121         "T const" to accommodate glibc style.
118122         (check_result): Use less-confusing report format.  "long" -> "long int.
118123         (main): Likewise.
118124         Don't loop if the iteration overflows time_t.
118125         Allow a negative step in the iteration.
118127 2003-07-06  Karl Berry  <karl@gnu.org>
118129         * config/depcomp: update from automake.
118130         * config/config.sub: update from prep.
118132 2003-07-03  Karl Berry  <karl@gnu.org>
118134         * config/config.guess: update from prep.
118136 2003-07-01  Paul Eggert  <eggert@twinsun.com>
118138         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
118139         xreadlink.c now includes it unconditionally.
118141 2003-07-01  Paul Eggert  <eggert@twinsun.com>
118143         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
118144         having it depend on HAVE_SYS_TYPES_H.
118146 2003-07-01  Bruno Haible  <bruno@clisp.org>
118148         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
118149         <sys/types.h> should be sufficient.
118150         Reported by Paul Eggert.
118152 2003-06-26  Karl Berry  <karl@gnu.org>
118154         * config/depcomp: update from automake.
118156 2003-06-26  Bruno Haible  <bruno@clisp.org>
118158         * modules/human: Depend on module stdbool.
118160 2003-06-25  Bruno Haible  <bruno@clisp.org>
118162         * modules/readlink: New file.
118163         * modules/xreadlink: Depend on it.
118164         * MODULES.html.sh (func_all_modules): Add readlink.
118166 2003-06-25  Bruno Haible  <bruno@clisp.org>
118168         * m4/readlink.m4: New file.
118170 2003-06-25  Bruno Haible  <bruno@clisp.org>
118172         * lib/readlink.c: New file.
118174 2003-06-22  Karl Berry  <karl@gnu.org>
118176         * config/srclist.txt: update mkinstalldirs from automake.
118177         * config/mkinstalldirs: update.
118179 2003-06-22  Bruno Haible  <bruno@clisp.org>
118181         Portability to mingw32.
118182         * m4/ssize_t.m4: New file, from GNU gettext.
118183         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
118184         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
118186 2003-06-22  Bruno Haible  <bruno@clisp.org>
118188         * modules/safe-read: Add m4/ssize_t.m4.
118189         * modules/xreadlink: Add m4/ssize_t.m4.
118191 2003-06-20  Bruno Haible  <bruno@clisp.org>
118193         Assume C89, so PARAMS isn't needed.
118194         * lib/unicodeio.h (PARAMS): Remove.
118195         * lib/unicodeio.c: Don't use PARAMS.
118197 2003-06-18  Karl Berry  <karl@gnu.org>
118199         * config/config.{guess,sub}: update from prep.
118201 2003-06-18  Jim Meyering  <jim@meyering.net>
118203         Merge changes from coreutils.
118204         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
118205         Remove explicit declarations of xmalloc and realloc.
118206         Include xalloc.h.
118207         (read_utmp): Remove anachronistic cast of xmalloc.
118209 2003-06-17  Paul Eggert  <eggert@twinsun.com>
118211         Assume C89, so PARAMS isn't needed.
118212         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
118213         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
118214         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
118215         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
118216         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
118217         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
118218         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
118219         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
118220         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
118221         lib/xstrtod.h, lib/xstrtol.h: Likewise.
118222         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
118223         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
118224         no longer needed. Anyway, config.h should always be included before any
118225         other file.
118227 2003-06-11  Simon Josefsson  <jas@extundo.com>
118229         * modules/sysexits: New file.
118230         * MODULES.html.sh (func_all_modules): Add sysexits.
118232 2003-06-11  Simon Josefsson  <jas@extundo.com>
118234         * lib/sysexit_.h: New file.
118236 2003-06-11  Derek Price  <derek@ximbiot.com>
118238         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
118239         necessary.
118241 2003-06-11  Bruno Haible  <bruno@clisp.org>
118243         * m4/sysexits.m4: New file.
118245 2003-06-10  Simon Josefsson  <jas@extundo.com>
118247         * lib/argp.h: New file, from glibc.
118248         * lib/argp-ba.c: New file, from glibc.
118249         * lib/argp-eexst.c: New file, from glibc.
118250         * lib/argp-fmtstream.c: New file, from glibc.
118251         * lib/argp-fmtstream.h: New file, from glibc.
118252         * lib/argp-fs-xinl.c: New file, from glibc.
118253         * lib/argp-help.c: New file, from glibc.
118254         * lib/argp-namefrob.h: New file, from glibc.
118255         * lib/argp-parse.c: New file, from glibc.
118256         * lib/argp-pv.c: New file, from glibc.
118257         * lib/argp-pvh.c: New file, from glibc.
118258         * lib/argp-xinl.c: New file, from glibc.
118260 2003-06-10  Simon Josefsson  <jas@extundo.com>
118262         * modules/strchrnul: New file.
118264 2003-06-10  Simon Josefsson  <jas@extundo.com>
118266         * modules/argp: New file.
118268 2003-06-10  Simon Josefsson  <jas@extundo.com>
118270         * m4/strchrnul.m4: New file.
118272 2003-06-10  Simon Josefsson  <jas@extundo.com>
118274         * lib/strchrnul.h: New file.
118275         * lib/strchrnul.c: New file.
118277 2003-06-10  Bruno Haible  <bruno@clisp.org>
118279         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
118281 2003-06-07  Karl Berry  <karl@gnu.org>
118283         * config/config.{guess,sub}: update from prep.
118285 2003-06-07  Jim Meyering  <jim@meyering.net>
118287         * modules/strtod: Use $(...) notation, not @...@ for
118288         AC_REPLACE'd variables.
118289         * modules/localcharset: Likewise.
118291 2003-06-07  Jim Meyering  <jim@meyering.net>
118293         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
118294         in place of my name in the copyright comment.
118295         Remove definition and uses of __P.
118297         From coreutils.
118298         * lib/stat.c: Don't declare xmalloc explicitly.
118299         Instead, include "xalloc.h".
118300         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
118301         xrealloc, and xcalloc return values.
118302         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
118303         Improve comment.
118304         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
118306 2003-06-07  Bruno Haible  <bruno@clisp.org>
118308         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
118309         avoid AC_CONFIG_LINKS.
118310         * modules/fnmatch (Makefile.am): Use explicit creation rule for
118311         fnmatch.h, to avoid AC_CONFIG_LINKS.
118312         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
118314 2003-06-07  Bruno Haible  <bruno@clisp.org>
118316         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
118317         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
118318         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
118319         directory.
118320         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
118321         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
118322         directory.
118324 2003-06-06  Jim Meyering  <jim@meyering.net>
118326         Merge from coreutils.
118327         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
118328         Consolidate declarations and initializations of *_base* locals.
118330         Merge from coreutils.
118331         This avoids a core dump on systems without GNU putenv,
118332         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
118333         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
118334         (unsetenv): New static function, from GNU libc.
118335         (rpl_putenv): Use it.
118337         * lib/modechange.c: Remove trailing blanks.
118339         Merge from coreutils.
118340         * lib/fsusage.c: Remove declaration of statfs.
118341         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
118343         * lib/posixtm.c: Include <stdbool.h> unconditionally.
118345 2003-06-06  Jim Meyering  <jim@meyering.net>
118347         * lib/stdbool_.h: Renamed from stdbool.h.in.
118349 2003-06-06  Jim Meyering  <jim@meyering.net>
118350             Bruno Haible  <bruno@clisp.org>
118352         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
118353         Adjust Makefile.am snippet not to redirect directly to target.
118354         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
118356 2003-06-05  Paul Eggert  <eggert@twinsun.com>
118358         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
118359         mismatch, look in future quarters as well as past.  This fixes a
118360         bug when processing fall-backwards gaps immediately after a long
118361         period of daylight-saving time.
118363         * lib/mktime.c: Assume freestanding C89 or better.
118364         (HAVE_LIMITS_H): Remove.  Assume it's 1.
118365         (__P): Remove; not used.
118366         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
118367         (mktime, not_equal_tm, print_tm, check_result,
118368         main): Use prototypes.  Use const * where appropriate.
118369         (main): Fix typo in testing code that uncovered by above changes.
118370         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
118372 2003-06-04  Paul Eggert  <eggert@twinsun.com>
118374         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
118375         locale.h, localeconv.  This merges changes from coreutils.
118377         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
118378         It can be removed after the next Autoconf is released.
118379         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
118380         needed.
118382 2003-06-04  Paul Eggert  <eggert@twinsun.com>
118384         * lib/mktime.c: Fix Debian bug 177940
118385         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
118386         (localtime_offset): Now long int, not time_t, because we want it
118387         to be guaranteed to be signed.  All uses changed.
118388         (__mktime_internal): If overflow would occur when adding offset,
118389         don't add it.
118391         Merge 'human' changes from coreutils.  Rewrite to support
118392         locale-specific notations like thousands separators.
118393         * lib/human.c: Simplify authorship notice.
118394         Include human.h immediately after config.h.
118395         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
118396         <limits.h>: Do not include, since human.h does.
118397         (SIZE_MAX, UINTMAX_MAX): New macros.
118398         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
118399         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
118400         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
118401         (power_letter): Renamed from suffixes.
118402         (generate_suffix_backwards): Remove.
118403         (adjust_value): Now takes int style (because of human.h changes)
118404         and long double value (for greater precision on some platforms).
118405         (group_number): New function.
118406         (human_readable): Use it.  Use integer options, not enum.
118407         Put the options before the sizes in the arg list.
118408         Support all the new options.
118409         The old human_readable function has been removed;
118410         use inttostr.h instead.
118411         (human_readable, default_block_size, humblock):
118412         Use uintmax_t, not int, for block sizes.
118413         (human_readable_inexact, block_size_types): Remove.
118414         (block_size_opts): New constant.
118415         (human_options): Renamed from human_block_size, with new signature
118416         that allows block sizes up to UINTMAX_MAX.  All callers changed.
118417         * lib/human.h: Add copyright and authorship notice.
118418         Include <limits.h> and <stdbool.h> unconditionally.
118419         (PARAMS): Remove.  All uses removed.
118420         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
118421         (enum human_inexact_style): Remove tag; now a nameless enum.
118422         (human_floor, human_ceiling, human_round_to_even): Now have
118423         values 2, 0, 1 rather than -1, 1, 0.
118424         (human_group_digits, human_suppress_point_zero, human_autoscale,
118425         human_base_1024, human_SI, human_B): New constants.
118426         (human_readable_inexact, human_block_size): Remove.
118427         (human_readable): Size args are now uintmax_t, not int.
118428         (human_options): New decl.
118430         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
118431         unnecessary now that we assume C89 or better.  This change
118432         imported from coreutils.
118434         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
118435         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
118436         in the 2003-05-30 sync from glibc.
118438         .h files should stand alone, but we shouldn't include <sys/types.h>
118439         if we can get away with just <stddef.h>.
118441         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
118442         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
118443         rather than <sys/types.h>, as we merely need size_t.
118444         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
118445         to get size_t.
118446         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
118447         Include <stdio.h>, to get FILE.
118448         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
118449         memcasecmp.h has included <stddef.h> and all we need is size_t.
118450         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
118451         our interface, instead of including <sys/types.h>
118453 2003-06-04  Paul Eggert  <eggert@twinsun.com>
118455         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
118456         now, as glibc mktime is buggy on non-glibc systems.
118458 2003-06-03  Karl Berry  <karl@gnu.org>
118460         * config/config.sub: update from prep.
118462 2003-06-02  Paul Eggert  <eggert@twinsun.com>
118464         [from coreutils]
118465         Fix some minor time-related bugs with POSIX time arguments.
118466         Some valid time stamps were being rejected (notably -1, and
118467         time stamps before 1900 on 64-bit hosts).  And some invalid
118468         time stamps were being accepted, e.g. September 31.
118470         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
118471         that we can return (time_t) -1 successfully.
118472         * lib/posixtm.c: Likewise.
118473         [HAVE_STDBOOL_H]: Include <stdbool.h>.
118474         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
118475         (t): Remove static var.
118476         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
118477         of static var.  All uses changed.
118478         (year): Do not reject years before 1900; they can occur with
118479         64-bit time_t.
118480         (posix_time_parse): Do not check for out-of-range components;
118481         that is now the caller's responsibility, since our checks were
118482         only approximations.
118483         (posixtime): Use mktime to check for out-of-range components,
118484         since it knows them exactly.
118485         If mktime returns (time_t) -1, check whether an error actually occurred
118486         by invoking localtime on -1.
118487         (main) [TEST_POSIXTIME]: Check for input data errors, and report
118488         posixtime failures better.
118489         Improve the test data (in comments only).
118491 2003-06-02  Karl Berry  <karl@gnu.org>
118493         * config/mkinstalldirs (version): new variable.
118494         (--version): new option.
118495         (usage): improve message.
118497 2003-05-30  Karl Berry  <karl@gnu.org>
118499         * lib/mktime.c: update from libc.
118501 2003-05-30  Bruno Haible  <bruno@clisp.org>
118503         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
118504         * config/config.rpath: Upgrade to gettext-0.12.1.
118506 2003-05-30  Bruno Haible  <bruno@clisp.org>
118508         * m4/gettext.m4: Upgrade to gettext-0.12.1.
118509         * m4/nls.m4: New file, from gettext-0.12.1.
118510         * m4/po.m4: New file, from gettext-0.12.1.
118511         * m4/progtest.m4: Upgrade to gettext-0.12.1.
118513 2003-05-30  Bruno Haible  <bruno@clisp.org>
118515         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
118516         * lib/localcharset.h: Likewise.
118517         * lib/localcharset.c: Likewise.
118519 2003-05-29  Karl Berry  <karl@gnu.org>
118521         * config/config.rpath: update from gettext.
118523 2003-05-28  Paul Eggert  <eggert@twinsun.com>
118525         Assume the headers required for C89 freestanding compilers.
118526         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
118527         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
118528         * m4/human.m4 (gl_HUMAN): Likewise.
118529         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
118530         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
118531         * m4/userspec.m4 (gl_USERSPEC): Likewise.
118532         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
118533         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
118534         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
118536 2003-05-28  Paul Eggert  <eggert@twinsun.com>
118538         Assume the headers required for C89 freestanding compilers.
118539         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
118540         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
118541         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
118542         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
118543         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
118544         define, since <limits.h> is guaranteed to do that.
118545         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
118546         * lib/exclude.c: Include <stdbool.h> unconditionally.
118547         * lib/tempname.c: Include <stddef.h> unconditionally.
118548         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
118549         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
118550         <stddef.h> does that.
118551         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
118552         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
118553         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
118554         needed.
118555         * lib/xstrtol.c: Likewise.
118556         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
118557         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
118559         * lib/addext.c (addext): Use assignment rather than cast, to avoid
118560         warnings on some platforms.
118562         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
118563         arbitrarily.
118565 2003-05-26  Jim Meyering  <jim@meyering.net>
118567         Merge in a change from coreutils:
118568         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
118569         that is guaranteed to be `no'.  Use `no_such_member' to indicate
118570         that condition, rather than `-1' which is slightly misleading.
118571         Change the name of the cache variable to have the gl_ prefix.
118572         Prompted by a patch from Richard Dawe for DJGPP.
118574 2003-05-24  Karl Berry  <karl@gnu.org>
118576         * config/config.guess: update from prep.
118578 2003-05-22  Karl Berry  <karl@gnu.org>
118580         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
118582 2003-05-20  Karl Berry  <karl@gnu.org>
118584         * config/config.guess: update from prep.
118586 2003-05-18  Karl Berry  <karl@gnu.org>
118588         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
118589         might actually be set by the user.
118591         * config/depcomp, install-sh, mdate-sh: update from automake.
118593 2003-05-17  Bruno Haible  <bruno@clisp.org>
118595         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
118596         invalid expansion for AC_EGREP_CPP.
118597         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
118598         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
118599         Suggested by Akim Demaille <akim@epita.fr> in
118600         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
118602 2003-05-12  Jim Meyering  <jim@meyering.net>
118604         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
118605         the space-padded-by-default conversion specifiers, %e, %k, %l.
118607 2003-05-12  Bruno Haible  <bruno@clisp.org>
118609         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
118610         the string is longer than 4 KB.
118612 2003-05-11  Karl Berry  <karl@gnu.org>
118614         * config/config.{guess,sub}: update from prep.
118616 2003-05-09  Bruno Haible  <bruno@clisp.org>
118618         * modules/error: Add m4/strerror_r.m4 to file list.
118620 2003-05-03  Bruno Haible  <bruno@clisp.org>
118622         Upgrade to Unicode-4.0.
118623         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
118624         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
118625         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
118626         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
118627         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
118628         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
118629         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
118630         Change width of U+E0100..U+E01EF from 1 to 0.
118632 2003-04-25  Jim Meyering  <jim@meyering.net>
118634         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
118635         of type size_t, not int.
118637 2003-04-25  Bruno Haible  <bruno@clisp.org>
118639         * lib/copy-file.c: Include <stddef.h>, for size_t.
118641 2003-04-21  Paul Eggert  <eggert@twinsun.com>
118643         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
118644         code which expansion is under static control.  Patch imported from
118645         Akim Demaille's patch to Bison; see
118646         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
118648 2003-04-14  Bruno Haible  <bruno@clisp.org>
118650         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
118652 2003-04-11  Jim Meyering  <jim@meyering.net>
118654         Merge changes from Coreutils.
118656         2003-03-22  Jim Meyering  <jim@meyering.net>
118658         * lib/strftime.c (widen): Cast alloca return value to proper type.
118660         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
118662         From GNU libc.
118663         * lib/strftime.c (my_strftime): Handle very large width
118664         specifications for numeric values correctly.  Improve checks for
118665         overflow.
118667         2003-01-19  Jim Meyering  <jim@meyering.net>
118669         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
118670         definitions.
118671         (nl_get_alt_digit) [! defined my_strftime]: Define.
118672         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
118673         _nl_get_alt_digit and _nl_get_walt_digit.
118675         * lib/strftime.c (my_strftime): Merge in locale-related changes from
118676         libc. These changes have no effect outside of _LIBC.
118678 2003-04-10  Bruno Haible  <bruno@clisp.org>
118680         * modules/findprog: New file.
118681         * MODULES.html.sh (func_all_modules): Add it.
118683 2003-04-10  Bruno Haible  <bruno@clisp.org>
118685         * m4/findprog.m4: New file.
118686         * m4/eaccess.m4: New file.
118688 2003-04-10  Bruno Haible  <bruno@clisp.org>
118690         * lib/findprog.h: New file, from GNU gettext.
118691         * lib/findprog.c: New file, from GNU gettext.
118693 2003-04-05  Jim Meyering  <jim@meyering.net>
118695         Merge changes from Coreutils.
118697         * lib/exclude.h (PARAMS): Remove definition and uses.
118698         * lib/exclude.c: Remove uses of `PARAMS'.
118700         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
118701         Add test-cases for DOS filenames. Declare program_name.
118702         (main): Set up program_name.  Patch by Rich Dawe.
118704         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
118705         error from mntctl.
118706         Use mntctl's return value to drive the entry-processing loop, since
118707         we can't rely on the value of the vmt_length member in the last
118708         entry.  On some systems doing so could result in exhausting
118709         virtual memory.  Based in part on a patch from Mike Jetzer.
118711 2003-04-04  Bruno Haible  <bruno@clisp.org>
118713         * modules/linebreak: New file.
118714         * MODULES.html.sh (func_all_modules): Add it.
118716 2003-04-04  Bruno Haible  <bruno@clisp.org>
118718         * m4/linebreak.m4: New file.
118720 2003-04-04  Bruno Haible  <bruno@clisp.org>
118722         * lib/linebreak.h: New file, from GNU gettext.
118723         * lib/linebreak.c: New file, from GNU gettext with slight
118724         modifications.
118725         * lib/lbrkprop.h: New file, from GNU gettext.
118727 2003-04-03  Bruno Haible  <bruno@clisp.org>
118729         * modules/utf8-ucs4: New file.
118730         * modules/utf16-ucs4: New file.
118731         * modules/ucs4-utf8: New file.
118732         * modules/ucs4-utf16: New file.
118733         * MODULES.html.sh (func_all_modules): Add them.
118735 2003-04-03  Bruno Haible  <bruno@clisp.org>
118737         * m4/utf-ucs4.m4: New file.
118738         * m4/ucs4-utf.m4: New file.
118740 2003-04-03  Bruno Haible  <bruno@clisp.org>
118742         * lib/utf8-ucs4.h: New file, from GNU gettext.
118743         * lib/utf16-ucs4.h: New file, from GNU gettext.
118744         * lib/ucs4-utf8.h: New file, from GNU gettext.
118745         * lib/ucs4-utf16.h: New file, from GNU gettext.
118747 2003-04-02  Bruno Haible  <bruno@clisp.org>
118749         * modules/binary-io: New file.
118750         * MODULES.html.sh (func_all_modules): Add it.
118752 2003-04-02  Bruno Haible  <bruno@clisp.org>
118754         * lib/binary-io.h: New file, from GNU gettext.
118756 2003-04-01  Bruno Haible  <bruno@clisp.org>
118758         * modules/pathname: New file.
118759         * MODULES.html.sh (func_all_modules): Add it.
118761 2003-04-01  Bruno Haible  <bruno@clisp.org>
118763         * lib/pathname.h: New file, from GNU gettext.
118764         * lib/concatpath.c: New file, from GNU gettext.
118766 2003-03-30  Bruno Haible  <bruno@clisp.org>
118768         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
118770 2003-03-30  Bruno Haible  <bruno@clisp.org>
118772         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
118773         function chown() doesn't exist.
118775 2003-03-28  Bruno Haible  <bruno@clisp.org>
118777         * modules/copy-file: New file.
118778         * MODULES.html.sh (func_all_modules): Add it.
118780 2003-03-28  Bruno Haible  <bruno@clisp.org>
118782         * m4/copy-file.m4: New file.
118784 2003-03-28  Bruno Haible  <bruno@clisp.org>
118786         * lib/copy-file.h: New file, from GNU gettext.
118787         * lib/copy-file.c: New file, from GNU gettext.
118789 2003-03-18  Jim Meyering  <jim@meyering.net>
118791         * lib/quote.c (quote_n): Fix typo in comment.
118793 2003-03-18  Bruno Haible  <bruno@clisp.org>
118795         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
118796         checking.
118797         * m4/onceonly_2_57.m4: Likewise.
118799 2003-03-17  Bruno Haible  <bruno@clisp.org>
118801         * m4/onceonly.m4: Require autoconf 2.54 or newer.
118802         (m4_quote): Remove macro.
118803         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
118805 2003-03-14  Jim Meyering  <jim@meyering.net>
118807         Merge changes from Coreutils.
118808         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
118809         to be const, in order to avoid warnings.
118810         (obstack_room): Likewise.
118811         (obstack_empty_p): Likewise.
118813 2003-03-14  Bruno Haible  <bruno@clisp.org>
118815         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
118816         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
118818 2003-03-13  Paul Eggert  <eggert@twinsun.com>
118820         Merge changes from Bison.
118821         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
118822         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
118823         when compiling Bison 1.875's `bitset bset = obstack_alloc
118824         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
118825         * lib/hash.c: Include <stdbool.h> unconditionally.
118827 2003-03-13  Paul Eggert  <eggert@twinsun.com>
118829         * m4/onceonly.m4 (m4_quote): New macro.
118830         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
118831         Quote AC_FOREACH variable-expansions properly.
118833 2003-03-13  Paul Eggert  <eggert@twinsun.com>
118835         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
118837 2003-03-09  Paul Eggert  <eggert@twinsun.com>
118839         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
118840         Reported by Bruce Becker; see:
118841         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
118843 2003-03-03  Paul Eggert  <eggert@twinsun.com>
118844             Bruno Haible  <bruno@clisp.org>
118846         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
118847         Reported by John Hughes, see
118848         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
118850 2003-02-20  Bruno Haible  <bruno@clisp.org>
118852         * MODULES.html.sh (func_all_modules): Add poll.
118854 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
118856         * modules/poll: New file.
118858 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
118860         * lib/poll_.h: New file.
118861         * lib/poll.c: New file.
118863 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
118865         * m4/poll.m4: New file.
118867 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
118869         * modules/mathl: New file.
118871 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
118873         * lib/mathl.h: New file.
118874         * lib/acosl.c: New file.
118875         * lib/asinl.c: New file.
118876         * lib/atanl.c: New file.
118877         * lib/ceill.c: New file.
118878         * lib/cosl.c: New file.
118879         * lib/expl.c: New file.
118880         * lib/floorl.c: New file.
118881         * lib/frexpl.c: New file.
118882         * lib/ldexpl.c: New file.
118883         * lib/logl.c: New file.
118884         * lib/sincosl.c: New file.
118885         * lib/sinl.c: New file.
118886         * lib/sqrtl.c: New file.
118887         * lib/tanl.c: New file.
118888         * lib/trigl.c: New file.
118889         * lib/trigl.h: New file.
118891 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
118893         * m4/mathl.m4: New file.
118895 2003-02-18  Bruno Haible  <bruno@clisp.org>
118897         * MODULES.html.sh (func_all_modules): Add mathl.
118899 2003-02-17  Bruno Haible  <bruno@clisp.org>
118901         * modules/mkdtemp: New module.
118902         * MODULES.html.sh (func_all_modules): Add it.
118904 2003-02-17  Bruno Haible  <bruno@clisp.org>
118906         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
118908 2003-02-17  Bruno Haible  <bruno@clisp.org>
118910         * lib/mkdtemp.h: New file, from GNU gettext.
118911         * lib/mkdtemp.c: New file, from GNU gettext.
118913 2003-02-02  Jim Meyering  <jim@meyering.net>
118915         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
118916         e.g. glibc-2.2.93.
118918 2003-01-31  Bruno Haible  <bruno@clisp.org>
118920         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
118921         'rpl_rename'.
118922         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
118923         'rpl_strnlen'.
118924         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
118925         'rpl_strtod'.
118926         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
118927         'rpl_utime'.
118929 2003-01-31  Bruno Haible  <bruno@clisp.org>
118931         * lib/rename.c: #undef rename before defining rpl_rename.
118932         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
118934 2003-01-30  Bruno Haible  <bruno@clisp.org>
118936         * modules/vasnprintf, modules/vasprintf: New modules.
118937         * MODULES.html.sh (func_all_modules): Add them.
118939 2003-01-30  Bruno Haible  <bruno@clisp.org>
118941         * m4/signed.m4: New file, from GNU gettext.
118942         * m4/longdouble.m4: New file, from GNU gettext.
118943         * m4/wchar_t.m4: New file, from GNU gettext.
118944         * m4/wint_t.m4: New file, from GNU gettext.
118945         * m4/vasnprintf.m4: New file.
118946         * m4/vasprintf.m4: New file.
118948 2003-01-30  Bruno Haible  <bruno@clisp.org>
118950         * lib/printf-args.h: New file, from GNU gettext.
118951         * lib/printf-args.c: New file, from GNU gettext.
118952         * lib/printf-parse.h: New file, from GNU gettext.
118953         * lib/printf-parse.c: New file, from GNU gettext.
118954         * lib/vasnprintf.h: New file, from GNU gettext.
118955         * lib/vasnprintf.c: New file, from GNU gettext.
118956         * lib/asnprintf.c: New file, from GNU gettext.
118957         * lib/vasprintf.h: New file, from GNU gettext with modifications.
118958         * lib/vasprintf.c: New file, from GNU gettext.
118959         * lib/asprintf.c: New file, from GNU gettext.
118961 2003-01-29  Bruno Haible  <bruno@clisp.org>
118963         * modules/stpncpy: New module.
118964         * MODULES.html.sh (func_all_modules): Add it.
118966 2003-01-29  Bruno Haible  <bruno@clisp.org>
118968         * m4/stpncpy.m4: New file.
118970 2003-01-29  Bruno Haible  <bruno@clisp.org>
118972         * lib/stpncpy.h: New file, from GNU gettext with modifications.
118973         * lib/stpncpy.c: New file, from GNU gettext with modifications.
118975 2003-01-28  Bruno Haible  <bruno@clisp.org>
118977         * modules/c-ctype: New module.
118978         * MODULES.html.sh (func_all_modules): Add it.
118980 2003-01-28  Bruno Haible  <bruno@clisp.org>
118982         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
118983         Paul Eggert.
118984         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
118985         Paul Eggert.
118987 2003-01-27  Bruno Haible  <bruno@clisp.org>
118989         * modules/xsetenv: New module.
118990         * MODULES.html.sh (func_all_modules): Add it.
118992 2003-01-27  Bruno Haible  <bruno@clisp.org>
118994         * lib/xsetenv.h: New file, from GNU gettext.
118995         * lib/xsetenv.c: New file, from GNU gettext.
118997 2003-01-23  Jim Meyering  <jim@meyering.net>
118999         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
119000         from working on systems without dirfd (at least Irix and OSF1/Tru64).
119002 2003-01-23  Bruno Haible  <bruno@clisp.org>
119004         * modules/minmax: New module.
119005         * MODULES.html.sh (func_all_modules): Add it.
119007 2003-01-23  Bruno Haible  <bruno@clisp.org>
119009         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
119010         Eggert.
119012 2003-01-22  Bruno Haible  <bruno@clisp.org>
119014         * modules/exit: New module.
119015         * MODULES.html.sh (func_all_modules): Add it.
119017 2003-01-22  Bruno Haible  <bruno@clisp.org>
119019         * lib/exit.h: New file, from GNU gettext.
119021 2003-01-19  Bruno Haible  <bruno@clisp.org>
119023         * gnulib-tool: Recognize option --extract-maintainer.
119024         (func_get_maintainer): New function.
119025         * modules/*: Add Maintainer entry.
119027 2003-01-16  Jim Meyering  <jim@meyering.net>
119029         * m4/regex.m4: The `regex' struct is both input and output.
119030         Initialize it before each use.  Patch by Tim Waugh.
119032 2003-01-16  Bruno Haible  <bruno@clisp.org>
119034         * MODULES.html.sh: Add a table of contents. Add the module name as
119035         leftmost column. Add hyperlinks.
119037 2003-01-15  Bruno Haible  <bruno@clisp.org>
119039         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
119041 2003-01-15  Bruno Haible  <bruno@clisp.org>
119043         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
119044         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
119045         suffix.
119047 2003-01-15  Bruno Haible  <bruno@clisp.org>
119049         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
119051 2003-01-15  Bruno Haible  <bruno@clisp.org>
119053         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
119054         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
119056 2003-01-14  Jim Meyering  <jim@meyering.net>
119058         * lib/same.c (same_name): Tweak a comment.
119060 2003-01-14  Bruno Haible  <bruno@clisp.org>
119062         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
119063         when a string comparison is sufficient.
119065 2003-01-14  Bruno Haible  <bruno@clisp.org>
119067         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
119068         'unsigned int'.
119070 2003-01-14  Bruno Haible  <bruno@clisp.org>
119072         * lib/hash-pjw.c: Add comment about low quality of this function.
119074 2003-01-13  Bruno Haible  <bruno@clisp.org>
119076         * modules/stpcpy: Distribute lib/stpcpy.h.
119077         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
119079 2003-01-13  Bruno Haible  <bruno@clisp.org>
119081         * modules/*: Add a description.
119082         * modules/strpbrk: Fix Makefile.am snippet.
119083         * modules/strtoimax: Fix dependencies.
119084         * modules/strtoumax: Likewise.
119086 2003-01-13  Bruno Haible  <bruno@clisp.org>
119088         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
119089         * modules/alloca (Makefile.am): All object files depend on alloca.h.
119090         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
119092 2003-01-13  Bruno Haible  <bruno@clisp.org>
119094         * gnulib-tool (func_create_testdir): Store config/* files in the main
119095         directory.
119096         * config.rpath: Move to ...
119097         * config/config.rpath: ... here.
119098         * modules/gettext: Contains config/config.rpath, not config.rpath.
119099         * modules/iconv: Likewise.
119101 2003-01-12  Paul Eggert  <eggert@twinsun.com>
119103         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
119104         to avoid collisions with libcurses and libreadline.
119106         * m4/getstr.m4: Remove.
119107         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
119109 2003-01-12  Paul Eggert  <eggert@twinsun.com>
119111         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
119112         to avoid collisions with libcurses and libreadline.
119114         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
119115         * lib/getstr.h, getstr.c: Remove.
119116         * lib/getline.c: Include "getline.h", to check interface.
119117         Move body of old getstr.c here: this defines MIN_CHUNK and
119118         declares getdelim2, which is renamed from getstr.
119119         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
119121         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
119122         All uses changed.
119123         * lib/linebuffer.h: Likewise.
119124         (readline): Remove backward-compatibility macro.
119126 2003-01-12  Paul Eggert  <eggert@twinsun.com>
119128         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
119129         to avoid collisions with libcurses and libreadline.
119130         * getstr: Remove.
119131         * MODULES.html.sh: Remove getstr.
119132         * modules/getline: Depend on unlocked-io, not getstr.
119134 2003-01-12  Jim Meyering  <jim@meyering.net>
119136         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
119138 2003-01-10  Bruno Haible  <bruno@clisp.org>
119140         * modules/alloca: Change Makefile.am requirements. Simplify Include
119141         requirements. Add lib/alloca_.h to file list.
119143 2003-01-10  Bruno Haible  <bruno@clisp.org>
119145         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
119147 2003-01-10  Bruno Haible  <bruno@clisp.org>
119149         * lib/alloca_.h: New file.
119150         * lib/getdate.y: Unconditionally include alloca.h.
119151         * lib/makepath.c: Likewise.
119152         * lib/setenv.c: Likewise.
119153         * lib/userspec.c: Likewise.
119155 2003-01-09  Karl Berry  <karl@gnu.org>
119157         * MODULES.html.sh: include `dirname $0` in PATH, to find
119158         gnulib-tool.
119160 2003-01-09  Bruno Haible  <bruno@clisp.org>
119162         * modules/stdbool: Change configure.ac, Makefile.am requirements.
119163         Simplify Include requirements. Add lib/stdbool.h.in to file list.
119165 2003-01-09  Bruno Haible  <bruno@clisp.org>
119167         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
119169 2003-01-09  Bruno Haible  <bruno@clisp.org>
119171         * lib/stdbool.h.in: New file.
119173 2003-01-09  Bruno Haible  <bruno@clisp.org>
119175         * gnulib-tool (func_all_modules): Ignore files ending in ~.
119176         * MODULES.html.sh: Likewise.
119178 2003-01-08  Jim Meyering  <jim@meyering.net>
119180         * lib/full-write.c: Undefine and define-away `const' after inclusion
119181         of errno.h, not before.  Suggestion from Bruno Haible.
119183 2003-01-08  Bruno Haible  <bruno@clisp.org>
119185         * modules/full-read: Depend on full-write.
119187 2003-01-08  Bruno Haible  <bruno@clisp.org>
119189         * lib/safe-read.c: Include specification header first, to ensure its
119190         selfcontainedness.
119191         * lib/full-write.c: Likewise.
119193 2003-01-07  Jim Meyering  <jim@meyering.net>
119195         * lib/full-write.c: Rework so that it may serve to define full_read,
119196         too.
119197         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
119199 2003-01-07  Bruno Haible  <bruno@clisp.org>
119201         * lib/strtoimax.c: Include <stdint.h> as an alternative to
119202         <inttypes.h>.
119203         * lib/xstrtol.h: Likewise.
119204         * lib/xstrtoimax.c: Likewise.
119205         * lib/xstrtoumax.c: Likewise.
119206         * lib/human.h: Likewise.
119208         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
119209         on systems that have <inttypes.h> but not <stdint.h>.
119211 2003-01-07  Bruno Haible  <bruno@clisp.org>
119213         * MODULES.html.sh: Add copyright notice.
119214         (missed_files): Omit CVS directory entries.
119215         (func_module): Make it work with sed-3.02.
119216         * MODULES.txt: Remove file.
119218 2003-01-06  Jim Meyering  <jim@meyering.net>
119220         * lib/version-etc.c: Update year in translatable copyright string.
119222 2003-01-03  Karl Berry  <karl@gnu.org>
119224         * config/config.{guess,sub}: update from prep.
119226 2003-01-02  Karl Berry  <karl@gnu.org>
119228         * doc/COPYING.DOC: belatedly updated to 1.2.
119230 2003-01-01  Karl Berry  <karl@gnu.org>
119232         * gnulib-tool (func_verify_module): report module name $module in
119233         error message, not $1.
119234         * gnulib-tool (create-testdir): don't complain if destdir couldn't
119235         be created, only if it doesn't exist.
119236         * gnulib-tool (last_checkin_date): don't expand the $Date here.
119238 2002-12-31  Paul Eggert  <eggert@twinsun.com>
119240         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
119242 2002-12-31  Paul Eggert  <eggert@twinsun.com>
119244         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
119245         memcmp if strcoll doesn't work.
119247 2002-12-31  Bruno Haible  <bruno@clisp.org>
119249         * lib/utime.c (utime_null): No need to call ftruncate if the file was
119250         nonempty.
119252 2002-12-31  Bruno Haible  <bruno@clisp.org>
119254         * lib/memcoll.c (STRCOLL): New macro.
119255         (memcoll): Use it.
119257 2002-12-31  Bruno Haible  <bruno@clisp.org>
119259         * lib/localcharset.h: New file.
119260         * lib/localcharset.c: Include it.
119261         * lib/unicodeio.c: Likewise.
119263 2002-12-31  Bruno Haible  <bruno@clisp.org>
119265         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
119266         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
119268 2002-12-31  Bruno Haible  <bruno@clisp.org>
119270         * lib/getline.h: Include <stddef.h>, for size_t.
119272         * lib/unicodeio.h: Include <stddef.h>, for size_t.
119273         * lib/unicodeio.c: Don't include <stddef.h>.
119275 2002-12-31  Bruno Haible  <bruno@clisp.org>
119277         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
119278         HAVE_TM_ZONE.
119280 2002-12-24  Karl Berry  <karl@gnu.org>
119282         * config/config.guess: update from prep.
119284 2002-12-24  Bruno Haible  <bruno@clisp.org>
119286         General infrasructure.
119287         * m4/README: Rewritten.
119288         * m4/onceonly.m4: New file.
119289         * m4/onceonly_2_57.m4: New file.
119291         Module atexit.
119292         * m4/atexit.m4: New file.
119294         Module strtod.
119295         * m4/strtod.m4: New file.
119297         Module strtol.
119298         * m4/strtol.m4: New file.
119300         Module strtoul.
119301         * m4/strtoul.m4: New file.
119303         Module memchr.
119304         * m4/memchr.m4: New file.
119306         Module memcmp.
119307         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
119308         (jm_FUNC_MEMCMP): Invoke it.
119310         Module memcpy.
119311         * m4/memcpy.m4: New file.
119313         Module memmove.
119314         * m4/memmove.m4: New file.
119316         Module memset.
119317         * m4/memset.m4: New file.
119319         Module strcspn.
119320         * m4/strcspn.m4: New file.
119322         Module strpbrk.
119323         * m4/strpbrk.m4: New file.
119325         Module strstr.
119326         * m4/strstr.m4: New file.
119328         Module strerror.
119329         * m4/strerror.m4: New file.
119331         Module mktime.
119332         * m4/mktime.m4: Renamed from jm-mktime.m4.
119333         (gl_PREREQ_MKTIME): New macro.
119334         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
119336         Module malloc.
119337         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
119338         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
119339         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
119341         Module realloc.
119342         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
119343         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
119344         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
119346         Module strftime.
119347         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
119348         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
119349         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
119350         gl_TM_GMTOFF.
119351         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
119353         Module xalloc.
119354         * m4/xalloc.m4: New file.
119356         Module alloca.
119357         * m4/alloca.m4: New file.
119359         Module putenv.
119360         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
119361         (jm_FUNC_PUTENV): Invoke it.
119363         Module setenv.
119364         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
119365         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
119366         when invoked twice.
119367         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
119368         gt_FUNC_SETENV.
119370         Module memrchr.
119371         * m4/memrchr.m4: New file.
119373         Module stpcpy.
119374         * m4/stpcpy.m4: New file.
119376         Module strcase.
119377         * m4/strcase.m4: New file.
119379         Module strdup.
119380         * m4/strdup.m4: New file.
119382         Module strnlen.
119383         * m4/strnlen.m4: New file.
119385         Module strndup.
119386         * m4/strndup.m4: New file.
119388         Module xstrtod.
119389         * m4/xstrtod.m4: New file.
119391         Module xstrtol.
119392         * m4/xstrtol.m4: New file.
119394         Module getdate.
119395         * m4/getdate.m4: New file.
119397         Module unlocked-io.
119398         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
119399         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
119400         * m4/jm-glibc-io.m4n: Remove file.
119402         Module long-options.
119403         * m4/long-options.m4: New file.
119405         Module md5.
119406         * m4/md5.m4: New file.
119408         Module sha.
119409         * m4/sha.m4: New file.
119411         Module getstr.
119412         * m4/getstr.m4: New file.
119414         Module getline.
119415         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
119416         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
119417         <sys/types.h>, for size_t. Use the function name gnu_getline, not
119418         simply getline. Infoke gl_PREREQ_GETLINE.
119420         Module obstack.
119421         * m4/obstack.m4: New file.
119423         Module hash.
119424         * m4/hash.m4: New file.
119426         Module readtokens.
119427         * m4/readtokens.m4: New file.
119429         Module strverscmp.
119430         * m4/strverscmp.m4: New file.
119432         Module stdbool.
119433         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
119434         OSF/1.
119436         Module strtoll.
119437         * m4/strtoll.m4: New file.
119439         Module strtoull.
119440         * m4/strtoull.m4: New file.
119442         Module strtoimax.
119443         * m4/strtoimax.m4: New file.
119445         Module strtoumax.
119446         * m4/strtoumax.m4: New file.
119448         Module xstrtoimax.
119449         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
119450         jm_AC_PREREQ_XSTRTOIMAX.
119451         Moved the strtol prerequisites to strtol.m4.
119452         Moved the strtoll prerequisites to strtoll.m4.
119453         Moved the strtoimax prerequisites to strtoimax.m4.
119455         Module xstrtoumax.
119456         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
119457         jm_AC_PREREQ_XSTRTOUMAX.
119458         Moved the strtoul prerequisites to strtoul.m4.
119459         Moved the strtoull prerequisites to strtoull.m4.
119460         Moved the strtoumax prerequisites to strtoumax.m4.
119462         Module chown.
119463         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
119464         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
119466         Module dup2.
119467         * m4/dup2.m4: New file.
119469         Module ftruncate.
119470         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
119471         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
119473         Module getgroups.
119474         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
119475         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
119477         Module gettimeofday.
119478         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
119479         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
119480         gl_PREREQ_GETTIMEOFDAY.
119482         Module mkdir.
119483         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
119484         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
119486         Module mkstemp.
119487         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
119488         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
119489         jm_AC_TYPE_UINTMAX_T.
119490         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
119492         Module stat.
119493         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
119494         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
119496         Module lstat.
119497         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
119498         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
119500         Module timespec.
119501         * m4/timespec.m4 (gl_TIMESPEC): New macro.
119502         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
119503         * m4/st_mtim.m4: Indentation.
119505         Module nanosleep.
119506         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
119507         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
119508         gl_PREREQ_NANOSLEEP.
119510         Module regex.
119511         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
119512         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
119513         (gl_REGEX): New macro.
119515         Module rename.
119516         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
119517         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
119519         Module rmdir.
119520         * m4/rmdir.m4: New file.
119522         Module utime.
119523         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
119524         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
119525         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
119527         Module dirname.
119528         * m4/dirname.m4: New file.
119530         Module getopt.
119531         * m4/getopt.m4: New file.
119533         Module unistd-safer.
119534         * m4/unistd-safer.m4: New file.
119536         Module fnmatch.
119537         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
119538         declaration.
119539         (gl_PREREQ_FNMATCH_EXTRA): New macro.
119540         (gl_FUNC_FNMATCH_POSIX): New macro.
119541         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
119542         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
119543         simply fnmatch.
119545         Module exclude.
119546         * m4/exclude.m4: New file.
119548         Module human.
119549         * m4/human.m4: New file.
119551         Module acl.
119552         * m4/acl.m4: Nop.
119554         Module backupfile.
119555         * m4/backupfile.m4: New file.
119556         * m4/d-ino.m4: Indentation.
119558         Module fsusage.
119559         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
119560         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
119561         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
119563         Module dirfd.
119564         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
119565         requirements.
119567         Module euidaccess.
119568         * m4/euidaccess.m4: New file.
119570         Module file-type.
119571         * m4/file-type.m4: New file.
119573         Module fileblocks.
119574         * m4/fileblocks.m4: New file.
119576         Module filemode.
119577         * m4/filemode.m4: New file.
119579         Module isdir.
119580         * m4/isdir.m4: New file.
119582         Module lchown.
119583         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
119584         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
119586         Module makepath.
119587         * m4/makepath.m4: New file.
119589         Module modechange.
119590         * m4/modechange.m4: New file.
119592         Module mountlist.
119593         * m4/mountlist.m4: New file.
119594         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
119595         Indentation.
119597         Module path-concat.
119598         * m4/path-concat.m4: New file.
119600         Module pathmax.
119601         * m4/pathmax.m4: New file.
119603         Module same.
119604         * m4/same.m4: New file.
119606         Module save-cwd.
119607         * m4/save-cwd.m4: New file.
119609         Module savedir.
119610         * m4/savedir.m4: New file.
119612         Module xgetcwd.
119613         * m4/xgetcwd.m4: New file.
119614         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
119616         Module xreadlink.
119617         * m4/xreadlink.m4: New file.
119619         Module safe-read.
119620         * m4/safe-read.m4: New file.
119622         Module safe-write.
119623         * m4/safe-write.m4: New file.
119625         Module closeout.
119626         * m4/closeout.m4: New file.
119628         Module stdio-safer.
119629         * m4/stdio-safer.m4: New file.
119631         Module getpass.
119632         * m4/getpass.m4: New file.
119634         Module getugroups.
119635         * m4/getugroups.m4: New file.
119637         Module group-member.
119638         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
119639         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
119641         Module idcache.
119642         * m4/idcache.m4: New file.
119644         Module userspec.
119645         * m4/userspec.m4: New file.
119647         Module gettime.
119648         * m4/clock_time.m4: New file.
119649         * m4/gettime.m4: New file.
119651         Module settime.
119652         * m4/settime.m4: New file.
119654         Module posixtm.
119655         * m4/posixtm.m4: New file.
119657         Module gethostname.
119658         * m4/gethostname.m4: New file.
119660         Module canon-host.
119661         * m4/canon-host.m4: New file.
119663         Module gettext.
119664         * m4/codeset.m4: New file, from gettext-0.11.5.
119665         * m4/gettext.m4: New file, from gettext-0.11.5.
119666         * m4/glibc21.m4: New file, from gettext-0.11.5.
119667         * m4/iconv.m4: New file, from gettext-0.11.5.
119668         * m4/intdiv0.m4: New file, from gettext-0.11.5.
119669         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
119670         * m4/inttypes.m4: New file, from gettext-0.11.5.
119671         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
119672         * m4/isc-posix.m4: New file, from gettext-0.11.5.
119673         * m4/lcmessage.m4: New file, from gettext-0.11.5.
119674         * m4/lib-ld.m4: New file, from gettext-0.11.5.
119675         * m4/lib-link.m4: New file, from gettext-0.11.5.
119676         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
119677         * m4/progtest.m4: New file, from gettext-0.11.5.
119678         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
119679         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
119680         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
119682         Module localcharset.
119683         * m4/localcharset.m4: New file.
119685         Module hard-locale.
119686         * m4/hard-locale.m4: New file.
119688         Module mbswidth.
119689         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
119690         onceonly macros.
119691         * m4/mbrtowc.m4: Add comment.
119693         Module memcasecmp.
119694         * m4/memcasecmp.m4: New file.
119696         Module memcoll.
119697         * m4/memcoll.m4: New file.
119699         Module unicodeio.
119700         * m4/unicodeio.m4: New file.
119702         Module rpmatch.
119703         * m4/rpmatch.m4: New file.
119705         Module yesno.
119706         * m4/yesno.m4: New file.
119708         Module exitfail.
119709         * m4/exitfail.m4: New file.
119711         Module c-stack.
119712         * m4/c-stack.m4 (gl_C_STACK): New macro.
119713         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
119715         Module error.
119716         * m4/error.m4 (gl_ERROR): New macro.
119717         (jm_PREREQ_ERROR): Use onceonly macros.
119719         Module fatal.
119720         * m4/fatal.m4: New file.
119722         Module getloadavg.
119723         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
119724         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
119726         Module getpagesize.
119727         * m4/getpagesize.m4: New file.
119729         Module getusershell.
119730         * m4/getusershell.m4: New file.
119732         Module physmem.
119733         * m4/physmem.m4: New file.
119735         Module posixver.
119736         * m4/posixver.m4: New file.
119738         Module quotearg.
119739         * m4/quotearg.m4: New file.
119741         Module quote.
119742         * m4/quote.m4: New file.
119744         Module readutmp.
119745         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
119747         Module sig2str.
119748         * m4/sig2str.m4: New file.
119750         Other.
119751         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
119752         ulonglong.m4.
119753         * m4/intmax_t.m4: New file.
119754         * m4/d-type.m4: Indentation.
119755         * m4/jm-macros.m4: Update.
119756         * m4/prereq.m4 (jm_PREREQ): Update.
119757         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
119758         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
119759         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
119760         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
119761         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
119762         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
119763         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
119764         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
119765         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
119766         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
119767         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
119768         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
119769         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
119770         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
119771         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
119772         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
119773         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
119774         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
119775         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
119777 2002-12-24  Bruno Haible  <bruno@clisp.org>
119779         * MODULES.txt: Update according to m4/ changes.
119781         Module gettext.
119782         * config.rpath: New file, from gettext-0.11.5.
119784         * modules/*: New module descriptions.
119785         * gnulib-tool: New file.
119786         * MODULES.html.sh: New file.
119788 2002-12-21  Karl Berry  <karl@gnu.org>
119790         * doc/fdl.texi: update to version 1.2.
119792 2002-12-19  Karl Berry  <karl@gnu.org>
119794         * config/config.guess: update from prep.
119796 2002-12-18  Bruno Haible  <bruno@clisp.org>
119798         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
119799         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
119801 2002-12-17  Bruno Haible  <bruno@clisp.org>
119803         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
119804         stdlib.h, string.h.
119806 2002-12-17  Bruno Haible  <bruno@clisp.org>
119808         * lib/canon-host.c (strdup): Remove unused declaration.
119810         * lib/fsusage.c: Include full_read.h.
119811         (get_fs_usage): Use full_read instead of safe_read.
119813         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
119815 2002-12-12  Karl Berry  <karl@gnu.org>
119817         * config/config.guess: update from prep.
119819 2002-12-11  Bruno Haible  <bruno@clisp.org>
119821         * m4/setenv.m4: New file, from gettext-0.11.5.
119823 2002-12-11  Bruno Haible  <bruno@clisp.org>
119825         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
119826         not unsetenv().
119827         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
119828         modifications:
119830         2002-12-11  Bruno Haible  <bruno@clisp.org>
119832                 * setenv.c (alloca): Fall back to malloc.
119833                 (freea): New macro.
119834                 (setenv): Use freea() to free memory allocated with alloca().
119836         2002-11-13  Bruno Haible  <bruno@clisp.org>
119838                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
119839                 function declarations.
119840                 * unsetenv.c (unsetenv): Likewise.
119842         2002-03-04  Bruno Haible  <bruno@clisp.org>
119844                 Portability to AIX 4.3.3.
119845                 * unsetenv.c: New file, extracted from setenv.c.
119846                 * setenv.c: Move the unsetenv() function to unsetenv.c.
119848         2001-12-20  Bruno Haible  <bruno@clisp.org>
119850                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
119851                 use malloc instead. For SunOS 4.
119853         2001-12-11  Bruno Haible  <bruno@clisp.org>
119855                 * setenv.c: Declare alloca.
119856                 (compar_fn_t): New typedef.
119857                 (KNOWN_VALUE, STORE_VALUE): Use it.
119859         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
119860         setenv.h.
119862 2002-12-10  Paul Eggert  <eggert@twinsun.com>
119864         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
119865         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
119866         Choose values that are less likely to collide with system fnmatch
119867         options.
119868         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
119869         defined (e.g., a pure POSIX system).
119870         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
119871         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
119873 2002-12-06  Paul Eggert  <eggert@twinsun.com>
119875         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
119876         a pain in practice to deal with generated m4 files.  This change
119877         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
119879         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
119880         and jm-glibc-io.m4, as they are no longer a special case.
119881         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
119882         kludge and the auto-generation stuff.  Check only whether the
119883         functions are declared, not whether they exist, since older hosts
119884         that don't declare the functions can't use the optimization anyway.
119886 2002-12-06  Jim Meyering  <jim@meyering.net>
119888         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
119890         Merge in changes from libc's misc/error.c, in preparation
119891         for the merge of gnulib's changes back into libc.
119893         * lib/error.c (_): Define only if not already defined.
119894         Move definition to follow all #include directives.
119895         Include unlocked-io.h only if !_LIBC.
119896         [_LIBC]: Include <libio/libioP.h>.
119897         [USE_IN_LIBIO]: Include <libio/iolibio.h>
119898         (fflush): Tweak definition to use INTUSE.
119899         (putc): Define.
119901 2002-12-05  Paul Eggert  <eggert@twinsun.com>
119903         * lib/alloca.c [defined emacs]: Include "lisp.h".
119904         (xalloc_die) [defined emacs]: New macro.
119905         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
119906         [! defined emacs]: Include <xalloc.h>.
119907         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
119908         (pointer): Typedef to POINTER_TYPE *.
119909         (malloc): Remove decl; we now always use xmalloc.
119910         (alloca): Use old-style definition, since Emacs needs this.
119911         Check for arithmetic overflow when computing combined size.
119913 2002-12-04  Paul Eggert  <eggert@twinsun.com>
119915         Do not generate unlocked-io.h automatically, since it's easier to
119916         maintain it by hand.
119918         * lib/unlocked-io.h: New file, from GNU diffutils,
119919         but with proper copyright notice and attribution.
119920         * lib/gen-uio: Remove.
119921         * lib/Makefile.am: Add copyright notice.
119922         (libfetish_a_SOURCES): Add unlocked-io.h.
119923         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
119924         (DISTCLEANFILES, io_functions): Remove macros.
119925         (EXTRA_DIST): Remove gen_uio.
119926         (unlocked-io.h): Remove rule.
119928 2002-12-04  Jim Meyering  <jim@meyering.net>
119930         Reflect the fact that stat.c and lstat.c are no longer generated.
119931         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
119932         (DISTCLEANFILES): Likewise.
119933         (EXTRA_DIST): Likewise.
119934         (all_local): Don't depend on stat.c or lstat.c.
119935         (stat.c, lstat.c): Remove rules.
119936         (EXTRA_DIST): Remove xstat.in.
119938         * lib/xstat.in: Remove file.  Contents moved into stat.c.
119939         * lib/stat.c: New file.  Contents mostly from xstat.in.
119940         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
119941         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
119943         * lib/safe-read.c: Rework so that it may serve to define safe_write,
119944         too.
119945         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
119947 2002-12-03  Jim Meyering  <jim@meyering.net>
119949         * lib/safe-read.c, safe-write.c: Change variable names and comments,
119950         but not semantics, to minimize the differences between these two files.
119951         (safe_read): Change comment to mention SAFE_READ_ERROR.
119953         * lib/safe-read.c (IS_EINTR): Define.
119954         (safe_read): Use IS_EINTR in place of in-function cpp directives.
119956 2002-12-02  Jim Meyering  <jim@meyering.net>
119958         * lib/safe-read.c (EINTR): Define.
119959         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
119960         (INT_MAX): Provide fallback.
119961         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
119963         * lib/safe-read.h (SAFE_READ_ERROR): Define.
119965 2002-12-02  Bruno Haible  <bruno@clisp.org>
119967         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
119968         Define, taken from safe-read.c.
119969         (INT_MAX): Provide fallback.
119970         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
119971         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
119973         * lib/safe-read.c (EINTR): Remove definition.
119974         (safe_read): Don't use EINTR if it is absent.
119976 2002-12-01  Jim Meyering  <jim@meyering.net>
119978         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
119979         zero.
119980         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
119982 2002-11-27  Paul Eggert  <eggert@twinsun.com>
119984         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
119985         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
119986         with `if (! (value < limit)) abort ();', for readability.
119988 2002-11-26  Karl Berry  <karl@gnu.org>
119990         * lib/strdup.c: copy from libc again, with jim's ok.
119991         * lib/.cppi-disable: re-add strdup.c
119993 2002-11-25  Karl Berry  <karl@gnu.org>
119995         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
119996         instead of "strtol.c".
119998 2002-11-25  Karl Berry  <karl@gnu.org>
120000         * config/install-sh: update from automake for variable quoting, $0 in
120001         error msgs, etc.
120003         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
120004         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
120005         entry.
120007 2002-11-25  Jim Meyering  <jim@meyering.net>
120009         * lib/mktime.c: Sync from libc, now that it has the latest fix.
120011 2002-11-24  Karl Berry  <karl@gnu.org>
120013         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
120014         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
120016 2002-11-24  Jim Meyering  <jim@meyering.net>
120018         Update from coreutils:
120020         * lib/mktime.c: Merge in changes from libc.
120022         Avoid a link-time failure on some Linux systems.
120023         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
120024         (otherwise).
120025         (__mon_yday): Declare with the STATIC attribute.
120026         (__mktime_internal): Likewise.
120027         Based on a report from Greg Schafer.
120029 2002-11-23  Jim Meyering  <jim@meyering.net>
120031         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
120032         Use `unsigned', not `int', as type of index.
120034         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
120036         * lib/fsusage.c: Remove unneeded parentheses around operands of
120037         `defined'.
120039 2002-11-22  Paul Eggert  <eggert@twinsun.com>
120041         * lib/quotearg.h: Allow multiple inclusion by surrounding with
120042         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
120043         so that we can be included first.
120044         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
120045         * lib/quotearg.c: Include quotearg.h immediately after config.h.
120046         No need to include stddef.h or sys/types.h any more.
120047         Surround local include files with "", not "<>".
120048         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
120049         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
120050         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
120051         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
120052         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
120053         (ISPRINT): Remove; no longer needed now that we assume C89.
120055         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
120056         Preserve errno.
120058         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
120059         quotearg_char): Use SIZE_MAX rather than
120060         (size_t) -1 when we are talking about "infinity".
120062         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
120064 2002-11-22  Paul Eggert  <eggert@twinsun.com>
120066         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
120067         hint that one should use `if (! x) abort ();' rather than `assert
120068         (x);', and anyway it's one less thing to worry about configuring.
120069         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
120070         hash_rehash, hash_insert): Use abort rather than assert.
120072 2002-11-22  Bruno Haible  <bruno@clisp.org>
120074         * lib/safe-read.h: Assume C89. Add comments.
120075         (safe_read): Change return type to size_t.
120076         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
120077         byte counts > SSIZE_MAX correctly.
120078         * lib/safe-write.h: New file.
120079         * lib/safe-write.c: New file.
120080         * lib/full-read.h: New file.
120081         * lib/full-read.c: New file.
120082         * lib/full-write.h: Assume C89. Add comments.
120083         * lib/full-write.c: Include safe-write.h.
120084         (full_write): Rewritten to use safe_write.
120085         Suggested by Jim Meyering and Paul Eggert.
120087 2002-11-21  Jim Meyering  <jim@meyering.net>
120089         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
120091         Merge in changes from the coreutils.
120093         2002-09-25  Paul Eggert  <eggert@twinsun.com>
120094         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
120095         <stdint.h>.
120096         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
120097         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
120098         int.  Work more efficiently if X is the same width as uintmax_t.
120099         Do not compare X to -1, to avoid bogus compiler warning.
120100         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
120101         Don't assume that f_frsize and f_bsize are the same type.
120103         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
120104         warning on FreeBSD.
120106         * lib/makepath.c (make_path): Restore umask *before* creating the final
120107         component.
120108         (make_path): Minor reformatting.
120110         * lib/xmalloc.c: Adjust to work with new autoconf macros,
120111         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
120112         HAVE_MALLOC/HAVE_REALLOC.
120114         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
120115         dummy ones.  At least on GNU/Linux systems, `auto' means something
120116         else.
120117         From Michael Stone.
120119 2002-11-21  Bruno Haible  <bruno@clisp.org>
120121         Remove case insensitive option matching.
120122         * lib/argmatch.h (argcasematch): Remove declaration.
120123         (ARGCASEMATCH): Remove macro.
120124         (__xargmatch_internal): Remove case_sensitive argument.
120125         (XARGMATCH): Update.
120126         (XARGCASEMATCH): Remove macro.
120127         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
120128         case_sensitive argument.
120129         (argcasematch): Remove function.
120130         (__xargmatch_internal): Remove case_sensitive argument.
120131         (main): Use XARGMATCH instead of XARGCASEMATCH.
120133         * lib/xmalloc.c: Change compile-time error message. Add comment about
120134         required autoconf version.
120136 2002-11-20  Paul Eggert  <eggert@twinsun.com>
120138         Merge argmatch cleanups from Bison.  Assume C89.
120140         * lib/argmatch.c: Include config.h here, not in argmatch.h.
120141         Include stdlib.h, for EXIT_FAILURE.
120142         Always include <string.h>, since we assume C89.
120143         (EXIT_FAILURE): Remove pre-C89 bug workaround.
120144         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
120145         Include <stddef.h> instead, since it's all we need for size_t.
120146         (PARAMS): Remove.  All uses removed.
120147         (ARRAY_CARDINALITY): Do not bother to #undef.
120148         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
120149         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
120150         Remove unnecessary parentheses.
120151         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
120152         Insert necessary parentheses.
120153         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
120154         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
120156 2002-11-19  Bruno Haible  <bruno@clisp.org>
120158         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
120159         * lib/mbswidth.h: Include <stddef.h>, for size_t.
120161         * lib/mbswidth.h (PARAMS): Remove macro.
120162         (mbswidth, mbsnwidth): Use ANSI C function declarations.
120163         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
120165         * lib/gcd.h (PARAMS): Remove macro.
120166         (gcd): Use ANSI C function declarations.
120167         * lib/gcd.c (gcd): Likewise.
120169 2002-11-15  Bruno Haible  <bruno@clisp.org>
120171         * lib/strcspn.c: Include <stddef.h>.
120172         (strcspn): Use ANSI C function declaration. Change return type to
120173         size_t. Use NULL.
120174         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
120175         (strpbrk): Use NULL.
120176         * lib/strpbrk.h (PARAMS): Remove macro.
120177         (strpbrk): Use ANSI C function declaration.
120178         * lib/strstr.c: Don't include <sys/types.h>.
120179         * lib/strstr.h (PARAMS): Remove macro.
120180         (strstr): Use ANSI C function declarations.
120182 2002-11-14  Karl Berry  <karl@gnu.org>
120184         * config/mkinstalldirs: `do' on separate line, instead of
120185         `for var; do'.
120187 2002-11-06  Bruno Haible  <bruno@clisp.org>
120189         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
120190         * lib/gcd.c (gcd): Likewise.
120192 2002-11-05  Bruno Haible  <bruno@clisp.org>
120194         * lib/gcd.h: New file, from gettext-0.11.5.
120195         * lib/gcd.c: New file, from gettext-0.11.5.
120197 2002-11-05  Bruno Haible  <bruno@clisp.org>
120199         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
120200         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
120201         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
120202         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
120204         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
120205         <libintl.h>.
120206         * lib/makepath.c: Include gettext.h instead of <locale.h> and
120207         <libintl.h>.
120209         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
120210         * lib/human.c: Include gettext.h instead of <libintl.h>.
120211         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
120212         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
120213         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
120214         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
120215         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
120216         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
120217         (textdomain): Remove definition.
120218         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
120220         * lib/long-options.c: Remove include of <libintl.h> and definition of
120221         _.
120222         * lib/same.c: Remove include of <libintl.h> and definition of _.
120224 2002-11-04  Owen Taylor  <otaylor@redhat.com>
120226         * lib/config.charset: A few additions for Solaris.
120228 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
120230         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
120231         * lib/localcharset.c (locale_charset): Declare as extern "C".
120233 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
120235         * lib/config.charset: msdos in uk_UA uses CP1125.
120237 2002-11-04  Bruno Haible  <bruno@clisp.org>
120239         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
120240         * lib/strcase.h: New file, from GNU gettext-0.11.5.
120241         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
120242         * lib/strstr.h: New file, from GNU gettext-0.11.5.
120243         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
120245 2002-11-04  Bruno Haible  <bruno@clisp.org>
120247         * lib/localcharset.c (locale_charset): Don't return an empty string.
120249 2002-11-04  Bruno Haible  <bruno@clisp.org>
120251         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
120252         aliases.
120254 2002-11-04  Bruno Haible  <bruno@clisp.org>
120256         * lib/config.charset: Update for newest glibc. Add canonical names
120257         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
120259 2002-11-04  Bruno Haible  <bruno@clisp.org>
120261         * lib/config.charset: Add support for NetBSD.
120263 2002-11-04  Bruno Haible  <bruno@clisp.org>
120265         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
120267 2002-11-01  Bruno Haible  <bruno@clisp.org>
120269         * configure.in: Add AC_CONFIG_AUX_DIR call.
120270         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
120271         test/Makefile.
120272         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
120274 2002-09-28  Karl Berry  <karl@gnu.org>
120276         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
120277         installed automake until the next release, since changes have been
120278         made.
120280 2002-09-25  Karl Berry  <karl@gnu.org>
120282         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
120283         * lib/getopt*: copy from libc/posix.
120284         * lib/gettext.h: copy from gettext.
120285         * lib/.cppi-disable: add strdup.c, gettext.h.
120287 2002-09-25  Karl Berry  <karl@gnu.org>
120289         * config/srclist.txt: enable gettext.h check.
120290         * config/config.{guess,sub}: update from prep.
120291         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
120292                 from automake 1.6.3.
120293         See srclist*.
120295 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
120297         * regex.c (PATFETCH): Remove the translating fetch.
120298         (PATFETCH_RAW): Rename to PATFETCH.
120299         (set_image_of_range): New fun.
120300         (SET_RANGE_TABLE_WORK_AREA): Use it.
120301         (regex_compile): Don't translate the pattern chars so eagerly.
120302         Only do it when inserting an `exactn' bytecode or when handling
120303         a char-range.
120304         (mutually_exclusive_p): Avoid empty statement.
120306 2002-07-06  Jim Meyering  <meyering@lucent.com>
120308         * m4/README: Don't mention Makefile.am.in.
120309         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
120311 2002-07-01  Jim Meyering  <meyering@lucent.com>
120313         * lib/c-stack.c: Include sys/time.h.
120314         From Volker Borchert.
120316 2002-06-26  Paul Eggert  <eggert@twinsun.com>
120318         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
120320 2002-06-26  Paul Eggert  <eggert@twinsun.com>
120322         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
120323         New macro.  Use it uniformly instead of
120324         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
120325         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
120326         reported by Vin Shelton.
120328 2002-06-22  Paul Eggert  <eggert@twinsun.com>
120330         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
120331         Do not assume SA_SIGINFO behavior.
120332         Bug reported by Jim Meyering on NetBSD 1.5.2.
120334 2002-06-22  Jim Meyering  <meyering@lucent.com>
120336         * m4/c-stack.m4: New file, from diffutils-2.8.2.
120337         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
120339         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
120340         now that configure.ac uses AC_GNU_SOURCE.
120341         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
120342         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
120344         Update to latest tools.  Suggestions from Paul Eggert.
120345         * m4/stdbool.m4: New file, from diffutils-2.8.2.
120346         * m4/gnu-source.m4: Update from diffutils-2.8.2.
120347         * m4/fnmatch.m4: Likewise.
120348         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
120349         to AC_HEADER_STDBOOL
120351 2002-06-22  Jim Meyering  <meyering@lucent.com>
120353         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
120354         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
120356 2002-06-22  Jim Meyering  <meyering@lucent.com>
120358         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
120360         * lib/exitfail.c, exitfail.h: Likewise.
120361         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
120363         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
120364         of fnmatch.h.
120365         (EXTRA_DIST): Add fnmatch_loop.c.
120366         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
120368         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
120369         * lib/fnmatch.c: Update from diffutils-2.8.2.
120370         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
120371         * lib/fnmatch.h: Remove file.
120373 2002-06-21  Jim Meyering  <meyering@lucent.com>
120375         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
120376         * m4/mbrtowc.m4: Likewise.
120378         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
120379         * m4/mbswidth.m4: Reflect name change:
120380         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
120381         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
120383         * m4/lib-link.m4: Update from gettext-0.11.2.
120384         * m4/gettext.m4: Likewise.
120386         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
120387         From Alfred M. Szmidt.
120389 2002-06-18  Paul Eggert  <eggert@twinsun.com>
120391         * lib/file-type.h: Report an error if neither S_ISREG nor
120392         S_IFREG is defined, instead of using a test specific to glibc
120393         2.2.  This should be safe, since POSIX requires S_ISREG and
120394         Unix Version 7 had S_IFREG.  We don't need to check for
120395         <sys/types.h> since we don't use any symbols that it defines.
120397 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
120399         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
120400         $@-t, so that each temporary file name is unique and valid in the first
120401         8 characters, for operation under DOS.
120403 2002-06-15  Paul Eggert  <eggert@twinsun.com>
120405         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
120407 2002-06-15  Jim Meyering  <meyering@lucent.com>
120409         Work even with DJGPP 2.03, which lacks support for symlinks.
120410         From Richard Dawe.
120411         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
120412         is defined.
120413         * lib/lchown.c (S_ISLNK): Likewise.
120415 2002-06-15  Jim Meyering  <meyering@lucent.com>
120417         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
120418         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
120419         have been included before this file.
120421 2002-06-14  Jim Meyering  <meyering@lucent.com>
120423         * lib/file-type.h: Use the version from diffutils-2.8.2.
120424         * lib/file-type.c: Likewise.
120426 2002-06-07  Jim Meyering  <meyering@lucent.com>
120428         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
120429         They're needed at least for NetBSD 1.5.2.
120430         ($statxfs_includes): Include those same headers.
120431         ($statxfs_includes): Include sys/vfs.h if available.
120432         ($statxfs_includes): Likewise for sys/statvfs.h.
120433         Check for the following members in both structs statfs and statvfs:
120434         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
120436 2002-06-01  Jim Meyering  <meyering@lucent.com>
120438         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
120439         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
120441 2002-05-28  Jim Meyering  <meyering@lucent.com>
120443         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
120444         Reported by Volker Borchert.
120446 2002-05-27  Jim Meyering  <meyering@lucent.com>
120448         Fix a problem seen only on nonconforming systems whereby ls.c's
120449         use of localtime, and then of gettimeofday would cause trouble:
120450         the localtime call used to initialize rpl_gettimeofday's save
120451         mechanism would clobber ls's current local time information so
120452         that in any long listing the first file would always be listed
120453         with date 1970-01-01.  Analysis by Volker Borchert.
120455         * lib/gettimeofday.c (localtime): Undefine.
120456         (rpl_localtime): New function.
120458 2002-05-27  Jim Meyering  <meyering@lucent.com>
120460         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
120461         localtime.
120463         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
120464         use the replacement function; it wouldn't resolve at link time.
120465         Reported by Volker Borchert.
120467 2002-05-22  Jim Meyering  <meyering@lucent.com>
120469         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
120470         file-type.h.
120471         * lib/file-type.h: New file.
120472         * lib/file-type.c (file_type): New file/function.  Extracted from
120473         diffutils.
120475 2002-04-30  Jim Meyering  <meyering@lucent.com>
120477         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
120479 2002-04-29  Paul Eggert  <eggert@twinsun.com>
120481         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
120483 2002-04-29  Paul Eggert  <eggert@twinsun.com>
120485         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
120486         Do not check for alloca.h (no longer used) or stdbool.h (was never
120487         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
120489 2002-04-29  Paul Eggert  <eggert@twinsun.com>
120491         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
120493 2002-04-29  Jim Meyering  <meyering@lucent.com>
120495         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
120496         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
120497         Use AC_FUNC_STRNLEN here instead.
120499         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
120500         With autoconf-2.53a, it's part of AC_PROG_CC.
120502 2002-04-28  Paul Eggert  <eggert@twinsun.com>
120504         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
120505         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
120507 2002-04-28  Paul Eggert  <eggert@twinsun.com>
120509         * lib/sig2str.h, lib/sig2str.c: New files.
120510         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
120512 2002-04-28  Paul Eggert  <eggert@twinsun.com>
120514         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
120515         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
120516         of 127, since 64 is the largest conceivable number for ancient
120517         nonstandard hosts.
120518         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
120520 2002-04-28  Jim Meyering  <meyering@lucent.com>
120522         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
120524 2002-04-24  Jim Meyering  <meyering@lucent.com>
120526         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
120527         (jm_PREREQ): Use it.
120529         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
120530         mach/mach.h fcntl.h.
120531         Check for this function: setlocale.
120533 2002-04-24  Jim Meyering  <meyering@lucent.com>
120535         * lib/gettext.h: New file, from Gettext.
120536         * lib/Makefile.am (INCLUDES): Remove -I../intl.
120537         (libfetish_a_SOURCES): Add gettext.h.
120539 2002-04-16  Jim Meyering  <meyering@lucent.com>
120541         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
120542         ut_pid, ut_id, ut_exit.
120544 2002-04-16  Jim Meyering  <meyering@lucent.com>
120546         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
120547         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
120548         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
120550 2002-04-12  Jim Meyering  <meyering@lucent.com>
120552         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
120553         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
120554         existence of the getmntinfo function.  Needed for Darwin 5.3.
120556         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
120557         This is necessary at least on Darwin 5.3.
120559         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
120560         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
120561         strnlen.o in the library, and that makes some versions of ranlib
120562         object.
120564 2002-04-12  Jim Meyering  <meyering@lucent.com>
120566         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
120568 2002-04-09  Jim Meyering  <meyering@lucent.com>
120570         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
120571         to be more precise.  Rather than saying we're checking whether the
120572         function `works', say what we're testing.
120573         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
120574         Reported by Bruno Haible.
120576 2002-03-10  Jim Meyering  <meyering@lucent.com>
120578         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
120579         Suggestion from Santiago Vila.
120581 2002-03-08  Jim Meyering  <meyering@lucent.com>
120583         * lib/rename.c: Mention that this wrapper is needed also on
120584         mips-dec-ultrix4.4 systems.
120586 2002-03-02  Jim Meyering  <meyering@lucent.com>
120588         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
120589         not HAVE_CLOCK_SETTIME.
120591 2002-02-27  Paul Eggert  <eggert@twinsun.com>
120593         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
120594         Check for clock_settime.
120596 2002-02-27  Paul Eggert  <eggert@twinsun.com>
120598         * lib/nanosleep.h: Rename to....
120599         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
120601         * lib/gettime.c: New file.
120602         * lib/settime.c: New file.
120603         * lib/stime.c: Remove.
120605         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
120606         timespec.h.  Remove nanosleep.h.
120608 2002-02-25  Paul Eggert  <eggert@twinsun.com>
120610         * m4/acl.m4: New file.
120611         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
120612         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
120614 2002-02-25  Paul Eggert  <eggert@twinsun.com>
120616         * lib/acl.c, lib/acl.h: New files.
120617         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
120619 2002-02-24  Jim Meyering  <meyering@lucent.com>
120621         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
120622         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
120623         cause trouble.  Reported by Nelson Beebe.
120625 2002-02-23  Paul Eggert  <eggert@twinsun.com>
120627         * lib/path-concat.c (xpath_concat): Reorder code to pacify
120628         compilers that don't know that xalloc_die never returns.
120630 2002-02-20  Jim Meyering  <meyering@lucent.com>
120632         * lib/getdate.c: Regenerate using bison-1.33.
120634 2002-02-17  Jim Meyering  <meyering@lucent.com>
120636         * config/config.guess (main): Don't use `head -1'; it's no longer
120637         portable. Use `sed 1q' instead.
120639 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
120641         * m4/codeset.m4: Upgrade to gettext-0.11.
120642         * m4/gettext.m4: Upgrade to gettext-0.11.
120643         * m4/glibc21.m4: Upgrade to gettext-0.11.
120644         * m4/iconv.m4: Upgrade to gettext-0.11.
120645         * m4/isc-posix.m4: Upgrade to gettext-0.11.
120646         * m4/lcmessage.m4: Upgrade to gettext-0.11.
120647         * m4/lib-ld.m4: New file, from gettext-0.11.
120648         * m4/lib-link.m4: New file, from gettext-0.11.
120649         * m4/lib-prefix.m4: New file, from gettext-0.11.
120650         * m4/progtest.m4: Upgrade to gettext-0.11.
120652 2002-02-15  Paul Eggert  <eggert@twinsun.com>
120654         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
120655         (jm_PREREQ): Use it.
120657 2002-02-15  Paul Eggert  <eggert@twinsun.com>
120659         * lib/posixver.c, lib/posixver.h: New files.
120660         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
120662 2002-02-02  Paul Eggert  <eggert@twinsun.com>
120663             Bruno Haible  <bruno@clisp.org>
120665         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
120666         (fwrite_success_callback): New declaration.
120667         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
120668         print_unicode_char. Call failure callback instead of error.
120669         (fwrite_success_callback): New function.
120670         (exit_failure_callback): New function.
120671         (fallback_failure_callback): New function.
120672         (print_unicode_char): Call unicode_to_mb.
120674 2002-01-26  Jim Meyering  <meyering@lucent.com>
120676         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
120677         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
120679 2002-01-26  Jim Meyering  <meyering@lucent.com>
120681         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
120683 2002-01-22  Paul Eggert  <eggert@twinsun.com>
120685         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
120687 2002-01-22  Jim Meyering  <meyering@lucent.com>
120689         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
120690         Otherwise, some versions of automake would omit the rule that makes
120691         Makefile from Makefile.in.
120693 2002-01-21  Paul Eggert  <eggert@twinsun.com>
120695         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
120696         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
120697         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
120698         (memcoll): Set errno to zero if there is no error.
120700         * lib/quotearg.c (quotearg_buffer_restyled):
120701         Fix bug with quoting buffers containing NUL when backslashing escapes.
120702         This bug was exposed by the other changes in this patch.
120703         (quotearg_n_options): New arg ARGSIZE.
120704         All callers changed.
120705         (quoting_options_from_style): New function.
120706         (quotearg_n_style): Use it.
120707         (quotearg_n_style_mem): New function.
120709         * lib/quotearg.h (quotearg_n_style_mem): New function.
120711 2002-01-19  Jim Meyering  <meyering@lucent.com>
120713         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
120714         Remove useless quotes: DF_PROG="df".
120715         * m4/strnlen.m4: New file.
120717 2002-01-16  Paul Eggert  <eggert@twinsun.com>
120719         * lib/backupfile.c (ISDIGIT): Comment fix.
120720         * lib/getdate.y (ISDIGIT): Likewise.
120721         * lib/posixtm.c (ISDIGIT, year): Likewise.
120722         * lib/strverscmp.c (ISDIGIT): Likewise.
120723         * lib/userspec.c (ISDIGIT): Likewise.
120725 2002-01-16  Jim Meyering  <meyering@lucent.com>
120727         * lib/getdate.y: Add three semicolons, each just before a closing
120728         brace. Bison (as of version 1.31) no longer papers over that mistake.
120730 2002-01-05  Jim Meyering  <meyering@lucent.com>
120732         * lib/version-etc.c (version_etc_copyright): Update copyright year.
120734 2001-12-19  Paul Eggert  <eggert@twinsun.com>
120736         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
120737         not silently exit merely because the output buffer happens to
120738         have nothing pending.
120740 2001-12-18  Paul Eggert  <eggert@twinsun.com>
120742         See the big note in ../ChangeLog.
120743         * lib/human.c (suffixes): Prefer K to k for 1024.
120744         (generate_suffix_backwards): New function.
120745         (human_readable_inexact): Use it.
120746         * lib/xstrtol.c (__xstrtol): If there is no number but there
120747         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
120748         Accept 'K' as well as 'k'.
120750 2001-12-15  Jim Meyering  <meyering@lucent.com>
120752         * lib/regex.h (__restrict_arr): Update from libc.
120754         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
120755         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
120756         (STREQ): Define.
120758 2001-12-14  Jim Meyering  <meyering@lucent.com>
120760         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
120761         Suggestion from Bruno Haible.
120763 2001-12-10  Jim Meyering  <meyering@lucent.com>
120765         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
120766         xrealloc, Instead, include "xalloc.h".
120767         (initbuffer): Don't cast xmalloc return value to char*.
120768         (readline): Reword comment.
120769         Don't cast xrealloc return value to char*
120770         Return NULL, not 0.
120772 2001-12-09  Jim Meyering  <meyering@lucent.com>
120774         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
120775         about `signed and unsigned type in conditional expression'.
120776         * lib/posixtm.c (posix_time_parse): Likewise.
120778         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
120780         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
120781         to avoid a pedantic warning.
120783         * lib/getstr.c: Don't include assert.h.
120784         (getstr): Remove warning-evoking assertions.
120785         Return -1 if offset parameter is out of bounds.
120786         Change the type of a local from int to size_t.
120788         * lib/strftime.c (my_strftime_localtime_r): Include this function
120789         definition in the `#if ! HAVE_TM_GMTOFF' block.
120791         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
120792         Include xalloc.h instead.
120794 2001-12-02  Jim Meyering  <meyering@lucent.com>
120796         * lib/tempname.c: Don't declare getenv, thus reverting the change of
120797         2001-11-18.  It's no longer necessary, now that stdlib.h is always
120798         included.
120800         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
120801         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
120803 2001-11-30  Akim Demaille  <akim@epita.fr>
120805         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
120806         before being defined.
120808 2001-11-27  Paul Eggert  <eggert@twinsun.com>
120810         * lib/quotearg.h (quotearg_n, quotearg_n_style):
120811         First arg is int, not unsigned.
120812         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
120813         (SIZE_MAX, UINT_MAX): New macros.
120814         (quotearg_n_options): Abort if N is negative.
120815         Avoid overflow check on hosts where size_t is 64 bits and int
120816         is 32 bits, as overflow is impossible there.
120817         Fix off-by-one typo that caused unnecessary reallocation.
120819 2001-11-27  Jim Meyering  <meyering@lucent.com>
120821         * lib/tempname.c: Merge with version from libc.
120822         * lib/regex.c: Likewise.
120824         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
120825         systems for which STDC_HEADERS is 0, it was not included, resulting in
120826         a warning about an integer-to-pointer conversion problem with getenv.
120827         Reported by Volker Borchert.
120829 2001-11-26  Jim Meyering  <meyering@lucent.com>
120831         * lib/gtod.h: Remove file.
120832         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
120833         * lib/gettimeofday.c: Don't include gtod.h.
120834         (GTOD_init): Remove function.
120835         (rpl_gettimeofday): Do its job here instead, rather than aborting.
120836         Suggestion from Volker Borchert.
120838 2001-11-23  Jim Meyering  <meyering@lucent.com>
120840         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
120841         it.
120842         * lib/hash.c (struct hash_table): Define it here instead.
120844 2001-11-22  Jim Meyering  <meyering@lucent.com>
120846         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
120848 2001-11-20  Jim Meyering  <meyering@lucent.com>
120850         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
120851         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
120853 2001-11-19  Jim Meyering  <meyering@lucent.com>
120855         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
120856         directory.  Use "conftestXXXXXX" as the template.
120857         Suggestion from Paul Eggert.
120859         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
120860         immediately, so the test doesn't mistakenly hit the max-open-files
120861         limit.
120863 2001-11-18  Paul Eggert  <eggert@twinsun.com>
120865         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
120866         (TEMPORARIES): New macro.
120867         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
120868         removes an artificial limitation (e.g. HP-UX 10.20, where
120869         TMP_MAX is 17576).
120871 2001-11-18  Jim Meyering  <meyering@lucent.com>
120873         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
120875 2001-11-18  Jim Meyering  <meyering@lucent.com>
120877         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
120878         on SunOS 4.
120880         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
120881         files will be created before anything else.
120883 2001-11-17  Paul Eggert  <eggert@twinsun.com>
120885         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
120886         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
120888 2001-11-17  Jim Meyering  <meyering@lucent.com>
120890         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
120891         Prompted by a report from Bob Proulx.
120893         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
120894         Instead, require UTILS_FUNC_MKSTEMP.
120896 2001-11-17  Jim Meyering  <meyering@lucent.com>
120898         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
120899         Now, that's done as part of AC_FUNC_STRTOD.
120901 2001-11-17  Jim Meyering  <meyering@lucent.com>
120903         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
120904         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
120905         rather than group writable.  Patch by Juan F. Codagnone.
120907         * lib/readtokens.c: Remove explicit declarations of xmalloc and
120908         xrealloc, Instead, include "xalloc.h".
120910         * lib/mountlist.c: Include unlocked-io.h after all system headers.
120911         Remove explicit declarations of xmalloc, xrealloc,
120912         and xstrdup.  Instead, include "xalloc.h".
120914         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
120915         unlocked-io.h.
120916         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
120917         Likewise.
120918         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
120920         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
120921         Reported by Padraig Brady.
120923         * lib/mkstemp.c: #undef mkstemp.
120924         Include config.h.
120925         (rpl_mkstemp): Rename from mkstemp.
120926         Protoize.
120928 2001-11-16  Jim Meyering  <meyering@lucent.com>
120930         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
120931         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
120932         determine the amount of total physical memory, use pstat_getstatic.
120933         HPUX-11 doesn't define _SC_PHYS_PAGES.
120934         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
120935         If sysconf couldn't be used to determine the amount of available
120936         physical memory, use both pstat_getstatic and pstat_getdynamic.
120937         Based on a patch from Bob Proulx.
120939 2001-11-10  Jim Meyering  <meyering@lucent.com>
120941         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
120942         (jm_PREREQ): Use it.
120944 2001-11-09  Jim Meyering  <meyering@lucent.com>
120946         * m4/jm-macros.m4: Require autoconf-2.52f.
120947         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
120948         Use these AC_-prefixed names, not the AM_-prefixed ones.
120950         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
120952 2001-11-05  Jim Meyering  <meyering@lucent.com>
120954         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
120956 2001-11-04  Jim Meyering  <meyering@lucent.com>
120958         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
120959         $DEFS.
120961 2001-11-03  Jim Meyering  <meyering@lucent.com>
120963         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
120964         of AC_DEFUN.
120966         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
120967         know the name of the variable in the macro definition.
120969 2001-11-03  Jim Meyering  <meyering@lucent.com>
120971         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
120972         in argmatch_to_argument call.
120974         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
120975         argument.
120977         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
120978         e.g., a fault due to an attempt to free a NULL pointer.
120980 2001-11-01  Jim Meyering  <meyering@lucent.com>
120982         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
120983         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
120985 2001-11-01  Jim Meyering  <meyering@lucent.com>
120987         * lib/dirfd.c, lib/dirfd.h: New files.
120988         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
120990         * lib/hash.c (hash_print) [TESTING]: Clean up.
120992 2001-10-22  Paul Eggert  <eggert@twinsun.com>
120994         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
120995         to avoid a warning if -Wall.
120997 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
120999         * README: New file
121000         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
121001         (per RMS's instructions, this is now the canonical source)
121002         * lgpl/, gpl/: New directories.
121004 2001-10-21  Paul Eggert  <eggert@twinsun.com>
121006         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
121008 2001-10-21  Jim Meyering  <meyering@lucent.com>
121010         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
121011         this code would end up calling gettext even in packages built
121012         with --disable-nls.
121013         * lib/getopt.c (_): Likewise.
121014         * lib/regex.c (_): Likewise.
121016 2001-10-20  Paul Eggert  <eggert@twinsun.com>
121018         * m4/error.m4 (jm_PREREQ_ERROR):
121019         Do not invoke AC_CHECK_FUNCS with strerror_r, as
121020         AC_FUNC_STRERROR_R does that.
121021         Check for strerror declaration.
121023         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
121024         are supposed to have them these days.
121025         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
121026         Merge changes from latest Autoconf CVS.
121027         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
121028         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
121029         POSIX decided to standardize on the int flavor of strerror_r.
121031 2001-10-20  Paul Eggert  <eggert@twinsun.com>
121033         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
121034         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
121035         Use strerror_r that is only a macro, even if it is not a function.
121036         (strerror): Check for HAVE_DECL_STRERROR before declaring.
121037         (private_strerror): Use prototypes, not old-style function definition.
121038         (print_errno_message): New function.
121039         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
121040         char*-flavored one.
121041         (error_tail, error, error_at_line): Use it.
121043 2001-10-11  Jim Meyering  <meyering@lucent.com>
121045         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
121046         and quote_n (1, ... to avoid clobbering a buffer.
121048 2001-10-05  Jim Meyering  <meyering@lucent.com>
121050         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
121051         hash-pjw.h.
121052         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
121053         * lib/hash-pjw.h: New file.
121055 2001-09-30  Jim Meyering  <meyering@lucent.com>
121057         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
121058         `struct fsstat' has the `f_fstypename' member.
121059         Use that to define FS_TYPE, which is now used to make
121060         the getfsstat link test tighter.
121062 2001-09-30  Jim Meyering  <meyering@lucent.com>
121064         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
121065         Include <sys/ucred.h>, for Apple Darwin.
121066         Include sys/mount.h and sys/fs_types.h only if available.
121067         (FS_TYPE): Define.
121068         (read_filesystem_list): Use FS_TYPE.
121070 2001-09-29  Paul Eggert  <eggert@twinsun.com>
121072         * lib/exclude.c (excluded_filename): 0 -> false, since it's
121073         a boolean context.
121075 2001-09-29  Jim Meyering  <meyering@lucent.com>
121077         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
121078         [one-argument getmntent function]): Include stdio.h before mntent.h.
121079         SunOS 4.1.x needs it for the declaration of `FILE'.
121080         Patch by Volker Borchert.
121082         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
121083         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
121084         sys/fs_types.h, and make the link-test for getfsstat guard #include
121085         directives with appropriate #if HAVE_*_H tests so that we can
121086         detect getfsstat on Apple Darwin1.3.7 systems.
121087         Reported by Nelson Beebe.
121088         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
121090 2001-09-28  Paul Eggert  <eggert@twinsun.com>
121092         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
121093         #defines strtoimax.  Also treat the other strto* functions
121094         like strtoimax.
121096         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
121097         Check for strtoul and strtoumax,
121098         as those declarations are made even in the signed case.
121099         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
121100         Likewise, for strtol and strtoimax.
121102 2001-09-28  Paul Eggert  <eggert@twinsun.com>
121104         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
121105         #defines strtoimax.  Also treat the other strto* functions
121106         like strtoimax.
121108         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
121109         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
121110         (strtoimax, strtoumax): Do not declare if already defined as a macro.
121112 2001-09-26  Jim Meyering  <meyering@lucent.com>
121114         Most macros in unlocked-io.h had the wrong number of arguments.
121115         * lib/gen-uio: New script.
121116         (USE_UNLOCKED_IO): Define to 1 if not already defined.
121117         * lib/unlocked-io.hin: Remove file.
121118         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
121119         rather than trying to embed it here.
121120         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
121121         Reported by Padraig Brady.
121123 2001-09-25  Volker Borchert  <bt@teknon.de>
121125         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
121126         `result'.
121128 2001-09-24  Jim Meyering  <meyering@lucent.com>
121130         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
121132 2001-09-23  Jim Meyering  <meyering@lucent.com>
121134         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
121135         instead of the mere test for existence of mntent.h.  The latter
121136         would get a false-positive on AIX 3.4 systems.
121137         In the outer getmntent if-block, don't die if neither of the getmntent
121138         tests succeeds.  Instead, just fall through and continue with the
121139         remaining tests.
121141 2001-09-23  Jim Meyering  <meyering@lucent.com>
121143         * lib/mountlist.c: Remove useless parentheses in #if directives.
121144         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
121145         the deprecated MOUNTED symbol is no longer defined in mntent.h.
121147 2001-09-22  Jim Meyering  <meyering@lucent.com>
121149         * m4/gettext.m4: New file.  From gettext.
121150         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
121151         * m4/progtest.m4: Likewise
121152         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
121153         * m4/glibc21.m4: Likewise.
121155         * m4/libintl.m4: Remove.  No longer used.
121157 2001-09-22  Jim Meyering  <meyering@lucent.com>
121159         * lib/localcharset.c: Update from latest gettext.
121160         * lib/config.charset: Likewise.
121162 2001-09-20  Jim Meyering  <meyering@lucent.com>
121164         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
121165         strtoimax.
121166         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
121167         strtoumax.
121169 2001-09-20  Jim Meyering  <meyering@lucent.com>
121171         * lib/xstrtol.c (strtoimax): Guard declaration with
121172         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
121173         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
121174         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
121175         (strtoumax): Likewise, for completeness (it wasn't necessary).
121177 2001-09-17  Paul Eggert  <eggert@twinsun.com>
121179         * lib/strtoimax.c (HAVE_LONG_LONG):
121180         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
121181         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
121182         to work around bug in IBM C compiler.
121184 2001-09-17  Jim Meyering  <meyering@lucent.com>
121186         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
121187         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
121188         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
121189         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
121190         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
121191         whenever the right hand side need not be expanded by the shell.
121193 2001-09-16  Paul Eggert  <eggert@twinsun.com>
121195         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
121196         library.  It's not correct, as some older glibcs are buggy.
121197         fnmatch wasn't fixed until glibc 2.2.
121199         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
121200         special shell magic here.
121202 2001-09-16  Jim Meyering  <meyering@lucent.com>
121204         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
121205         * m4/jm-macros.m4: Require it.
121207 2001-09-16  Jim Meyering  <meyering@lucent.com>
121209         * lib/mkdir.c: New file.
121211 2001-09-15  Jim Meyering  <meyering@lucent.com>
121213         * m4/jm-macros.m4: Check for help2man.
121215 2001-09-11  Jim Meyering  <meyering@lucent.com>
121217         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
121218         The body, by Paul Eggert, was moved here from configure.in.
121219         * m4/jm-macros.m4: Require UTILS_HOST_OS.
121221 2001-09-04  Paul Eggert  <eggert@twinsun.com>
121223         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
121224         (jm_PREREQ): Use it.
121226 2001-09-04  Paul Eggert  <eggert@twinsun.com>
121228         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
121229         Use ssize_t, not int, to store result of readlink.
121230         Check for ssize_t overflow as well as size_t overflow,
121231         as POSIX says the result of readlink is implementation-defined
121232         when ssize_t overflows.
121233         Remove unnecessary cast to char*.
121234         Use free+malloc instead of realloc, as the storage doesn't need
121235         to be preserved and it's clearer and can be more efficient that way.
121236         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
121237         * lib/xreadlink.h (xreadlink): Update prototype.
121239 2001-09-04  Paul Eggert  <eggert@twinsun.com>
121241         * lib/xgetcwd.c: Revert some of the previous change; intead,
121242         fix the HAVE_GETCWD_NULL code to behave more like the
121243         !HAVE_GETCWD_NULL code used to.
121245         Include "xalloc.h".
121246         (xgetcwd): Do not return NULL when memory is exhausted; instead,
121247         invoke xalloc_die.
121249 2001-09-03  Paul Eggert  <eggert@twinsun.com>
121251         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
121252         sys/param.h, as pathmax.h includes them.
121254 2001-09-03  Paul Eggert  <eggert@twinsun.com>
121256         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
121257         (jm_PREREQ_XGETCWD): New macro.
121259         * m4/getcwd.m4: New file.
121261 2001-09-03  Paul Eggert  <eggert@twinsun.com>
121263         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
121264         like the HAVE_GETCWD_NULL code.
121265         Include pathmax.h if not HAVE_GETCWD.
121266         Do not include xalloc.h.
121267         (INITIAL_BUFFER_SIZE): New symbol.
121268         Do not use xmalloc / xrealloc, since the caller is responsible for
121269         handling errors.  Preserve errno around `free' during failure.
121270         Do not overrun buffer when using getwd.
121272 2001-09-03  Paul Eggert  <eggert@twinsun.com>
121274         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
121275         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
121276         getcwd (NULL, 0).
121278 2001-09-03  Paul Eggert  <eggert@twinsun.com>
121280         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
121281         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
121282         spotted by Jim Meyering.
121284 2001-09-03  Jim Meyering  <meyering@lucent.com>
121286         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
121287         failure.
121289 2001-09-02  Jim Meyering  <meyering@lucent.com>
121291         * lib/error.c: Update from GNU libc.
121293 2001-09-01  Jim Meyering  <meyering@lucent.com>
121295         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
121296         Used by df.
121298 2001-09-01  Jim Meyering  <meyering@lucent.com>
121300         * lib/xreadlink.c: New file.
121301         * lib/xreadlink.h: New file.
121302         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
121303         xreadlink.h.
121305         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
121306         doesn't conflict with sparc Solaris 7's definition in
121307         /usr/include/sys/int_types.h.
121309         * lib/exclude.c: Use `""', not `<>' to #include non-system header
121310         files.
121311         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
121312         and strncasecmp as r-values.  Unixware didn't have declarations.
121314 2001-08-31  Paul Eggert  <eggert@twinsun.com>
121316         * lib/xstrtol.h: Add copyright notice.
121317         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
121318         LONGINT_INVALID_SUFFIX_CHAR.
121320 2001-08-31  Paul Eggert  <eggert@twinsun.com>
121322         * lib/xstrtol.c (strtoimax): New decl.
121324 2001-08-31  Paul Eggert  <eggert@twinsun.com>
121326         * lib/xgetcwd.c: Don't include pathmax.h.
121327         Include stdlib.h and unistd.h if available.
121328         Include xalloc.h.
121329         (xmalloc, xstrdup, free): Remove decls.
121330         (xgetcwd): Don't assume sizes fit in unsigned.
121331         Check for overflow when computing sizes.
121332         Simplify reallocation code.
121334 2001-08-31  Paul Eggert  <eggert@twinsun.com>
121336         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
121337         a directory's st_size can have an arbitrary value, so the old
121338         usage could waste an arbitrary amount of memory.  All uses
121339         changed.
121340         * lib/savedir.h: Update prototype.
121342 2001-08-31  Paul Eggert  <eggert@twinsun.com>
121344         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
121346         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
121347         old strtoimax.c.
121349         Also, make the following further changes to make this file's
121350         configuration more similar to that of strtol.c:
121351         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
121352         (strtoumax, uintmax_t, strtoull, strtol): Remove.
121353         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
121354         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
121355         changed to signed values.
121357         And make the following changes as well:
121358         Fix copyright notice, as 1999 was missing.
121359         (verify): New macro.
121360         (strtoimax): Check sizes at compile-time, not run-time.
121361         Prefer strtol to strtoll if both work.
121362         (main): Remove; it was not that useful and was a pain to maintain.
121364         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
121366 2001-08-31  Jim Meyering  <meyering@lucent.com>
121368         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
121369         Use an initial, malloc'd, buffer of length 128 rather than
121370         a statically allocated one of length 1024.
121372 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121374         Simplify code, partly by assuming autoconf 2.52 semantics.
121376         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
121378         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
121379         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
121380         All uses removed.
121381         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
121382         Move AC_REQUIRE to next-to-top level, to avoid confusion.
121383         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
121384         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
121385         jm_AC_HEADER_INTTYPES_H.
121386         * m4/jm-macros.m4 (jm_MACROS): Likewise.
121388         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
121390         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
121391         Quote first arg of AC_DEFUN.
121392         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
121393         since they are needed to parse the include file even if we need
121394         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
121395         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
121396         but with opposite signedness.
121398 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121400         Merge 'exclude' changes from tar 1.13.22.
121401         This fixes one or two unlikely storage allocation overflow bugs,
121402         but doesn't change user-visible behavior otherwise.
121404 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121406         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
121407         (jm_PREREQ_EXCLUDE): New macro.
121409 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121411         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
121412         tm to be declared.
121414 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121416         * lib/hash.c: Remove '2001' from copyright notice.
121418 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121420         * lib/full-write.h: New file.
121421         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
121422         * lib/full-write.c: Correct credits, as cccp.c no longer
121423         exists and anyway it was so heavily changed from the old cccp
121424         code as to be unrecognizable.  Include full-write.h.
121425         (full_write): Return size_t, with short writes meaning failure.
121426         All callers changed.  This fixes a bug with large buffers
121427         on 64-bit hosts.
121428         * lib/utime.c: Include full-write.h.
121430 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121432         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
121433         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
121434         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
121435         Include if available.
121436         (<xalloc.h>): Include
121437         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
121438         (verify): New macro.  Use it to verify that EXCLUDE macros do not
121439         collide with FNM macros.
121440         (struct patopts): New struct.
121441         (struct exclude): Use it, as exclude patterns now come with options.
121442         (new_exclude): Support above changes.
121443         (new_exclude, add_exclude_file):
121444         Initial size must now be a power of two to simplify overflow checking.
121445         (free_exclude, fnmatch_no_wildcards): New function.
121446         (excluded_filename): No longer requires options arg, as the options
121447         are determined by add_exclude.  Now returns bool, not int.
121448         (excluded_filename, add_exclude):
121449         Add support for the fancy new exclusion options.
121450         (add_exclude, add_exclude_file): Now takes int options arg.
121451         Check for arithmetic overflow when computing sizes.
121452         (add_exclude_file): xrealloc might modify errno, so don't
121453         realloc until after errno might be used.
121455         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
121456         New macros.
121457         (free_exclude): New decl.
121458         (add_exclude, add_exclude_file): Now takes int options arg.
121459         (excluded_filename): No longer requires options arg, as the options
121460         are determined by add_exclude.  Now returns bool, not int.
121462 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121464         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
121466 2001-08-27  Jim Meyering  <meyering@lucent.com>
121468         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
121470         * lib/version-etc.c (N_): Remove definition.
121471         Revert most of last change.
121472         Instead, simply don't mark the `Copyright...' string for translation.
121473         Based on advice from Paul Eggert.
121475         * lib/strtoxmax.c: Tweak comment.
121477 2001-08-26  Jim Meyering  <meyering@lucent.com>
121479         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
121481         * m4/xstrtoimax.m4: New file.
121482         * m4/xstrtoumax.m4: Add comments explaining why we
121483         AC_REPLACE_FUNCS(strtol).
121485 2001-08-26  Jim Meyering  <meyering@lucent.com>
121487         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
121488         of copyright with `%s' so translators don't get an untranslated
121489         message in 2002.
121490         (COPYRIGHT_YEAR): Define.
121491         (version_etc): Use fprintf rather than fputs.
121492         Suggestion from Ulrich Drepper.
121494         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
121496         * lib/strtoll.c: New file, from GNU libc.
121497         * lib/xstrtoimax.c: New file.
121499         * lib/xstrtol.h: Add xstrtoimax.
121500         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
121501         * lib/strtoimax.c: New file.  Likewise, but first define
121502         STRTOUXMAX_SIGNED.
121504         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
121505         ...
121506         * lib/strtoxmax.c: ... then renamed to this.
121508 2001-08-18  Paul Eggert  <eggert@twinsun.com>
121510         * m4/inttypes.m4: Add AC_PREREQ(2.13).
121511         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
121512         (jm_AC_TYPE_INTMAX_T): New macro.
121513         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
121515         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
121517         * m4/longlong.m4: Renamed from ulonglong.m4.
121518         * m4/inttypes.m4: Renamed from inttypes_h.m4.
121519         * m4/uintmax_t.m4: Removed.
121521 2001-08-13  Paul Eggert  <eggert@twinsun.com>
121523         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
121524         Port to Solaris 8, where 'sed' requires a space after the 'r'
121525         command, and where sh dislikes "$/".  Clean up the spacing a bit.
121526         Redirect output to $tmp just once.
121528 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
121530         * lib/addext.c (<errno.h>): Include.
121531         (errno): Declare if not defined.
121532         (addext): Work correctly when pathconf returns -1 and leaves
121533         errno alone because there is no limit.  Also, work even if
121534         pathconf returns a value greater than SIZE_MAX.
121536 2001-08-12  Jim Meyering  <meyering@lucent.com>
121538         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
121539         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
121540         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
121541         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
121542         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
121543         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
121544         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
121545         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
121546         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
121547         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
121548         utime.m4, utimes.m4, xstrtoumax.m4:
121549         Quote the first argument in each use of AC_DEFUN.
121551 2001-08-12  Jim Meyering  <meyering@lucent.com>
121553         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
121554         Simply `return getcwd (NULL, 0);'.
121555         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
121556         Use 1300 as initial value for length, not PATH_MAX.
121558         * lib/pathmax.h: Clean up cpp syntax.
121560 2001-08-12  Jim Meyering  <meyering@lucent.com>
121562         * lib/gettimeofday.c: New file.
121563         * lib/gtod.h: New file.
121564         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
121566 2001-08-05  Jim Meyering  <meyering@lucent.com>
121568         * m4/jm-macros.m4: Require autoconf-2.52.
121570 2001-08-04  Jim Meyering  <meyering@lucent.com>
121572         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
121573         stmt, to get in sync with glibc.
121575 2001-08-03  Paul Eggert  <eggert@twinsun.com>
121577         The following changes are from gettext 0.10.39 as maintained by
121578         Bruno Haible.
121580         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
121581         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
121582         with inverted sense.  All uses changed.
121584         * lib/mbswidth.c: Don't include <limits.h>.
121585         Include <stdlib.h> and <string.h> unconditionally.
121586         (iswcntrl, mbsinit, ISCNTRL): New macros.
121587         (mbsnwidth): Use K&R style function declarations.
121588         Don't bother checking for MB_LEN_MAX == 1, since the compiler
121589         can optimize it when MB_CUR_MAX == 1.
121590         The width of control characters is zero, not 1.
121592 2001-08-03  Paul Eggert  <eggert@twinsun.com>
121594         The following changes are from gettext 0.10.39 as maintained by
121595         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
121597         * m4/codeset.m4: Upgrade to serial AM1.
121598         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
121599         all uses changed.  Quote first arg of AC_DEFUN.
121600         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
121602         * m4/iconv.m4: Upgrade to serial AM2.
121603         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
121604         Add --with-libconv-prefix.
121605         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
121606         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
121607         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
121608         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
121609         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
121611         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
121612         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
121613         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
121614         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
121615         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
121616         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
121617         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
121618         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
121619         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
121621         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
121622         string.h any more.
121624         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
121625         not the default value.
121627         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
121628         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
121629         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
121630         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
121631         Also check for iswcntrl, used for wcwidth fallback.
121632         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
121633         to Autoconf 2.13.
121635 2001-08-03  Jim Meyering  <meyering@lucent.com>
121637         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
121638         as it was in the original.  Reported by Paul Eggert.
121640 2001-07-16  Jim Meyering  <meyering@lucent.com>
121642         * m4/gettimeofday.m4: New file.
121643         Prompted by a report from Bernhard Baehr.
121645 2001-07-15  Jim Meyering  <meyering@lucent.com>
121647         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
121648         stuff. Now it's in ../Makefile.cfg.
121650 2001-07-15  Jim Meyering  <meyering@lucent.com>
121652         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
121653         (BUILT_SOURCES): Add unlocked-io.h.
121654         (io_functions): Define.
121655         (unlocked-io.h): New rule.
121656         (DISTCLEANFILES): Add unlocked-io.h.
121657         (all-local): Depend on unlocked-io.h, to ensure it is created.
121659         * lib/unlocked-io.hin: New file
121661         * lib/regex.c: Update from glibc.
121663 2001-07-05  Jim Meyering  <meyering@lucent.com>
121665         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
121666         recommendation.
121667         (libfetish_a_SOURCES): Put all .h files here instead.
121668         Remove a thus-exposed (better checks in automake) duplicate and
121669         two unnecessary .h files.
121671 2001-07-04  Jim Meyering  <meyering@lucent.com>
121673         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
121674         that generates jm-glibc-io.m4 so that it doesn't trigger any make
121675         distcheck failure.
121677 2001-07-02  Jim Meyering  <meyering@lucent.com>
121679         The following changes were prompted by suggestions from Bruno Haible.
121681         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
121682         is now generated.
121683         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
121684         definition of EXTRA_DIST.
121685         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
121686         ensure that the generated file is created/updated whenever the list
121687         of $(unlocked_functions) is changed.
121688         (jm-glibc-io.m4): New rule.
121689         (unlocked-io.h): New rule -- currently unused.
121691 2001-06-24  Jim Meyering  <meyering@lucent.com>
121693         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
121694         unmatched right bracket, rather than kludging it with an extra,
121695         falsely-matching quote in a comment.  Patch by Akim Demaille.
121697 2001-06-11  Jim Meyering  <meyering@lucent.com>
121699         * lib/regex.c: Update from GNU libc.
121701 2001-05-27  Jim Meyering  <meyering@lucent.com>
121703         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
121704         Check for ut_type in struct utmp.
121706 2001-05-27  Jim Meyering  <meyering@lucent.com>
121708         * lib/readutmp.h (UT_TYPE): Define.
121710 2001-05-24  Jim Meyering  <meyering@lucent.com>
121712         * lib/argmatch.c: Include "quote.h".
121713         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
121714         quote function.  Reported by Göran Uddeborg.
121716 2001-05-22  Jim Meyering  <meyering@lucent.com>
121718         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
121719         now that we use the package-supplied version unconditionally.
121720         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
121722 2001-05-21  Jim Meyering  <meyering@lucent.com>
121724         * m4/regex.m4: Change a couple backticks to single quotes to avoid
121725         shell syntax errors.
121727 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
121729         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
121731 2001-05-20  Paul Eggert  <eggert@twinsun.com>
121733         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
121734         Don't bother to check library strftime, since
121735         we'll be using our own my_strftime function anyway.
121736         Define my_strftime instead of strftime.
121738 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
121740         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
121741         which is not yet declared.
121743 2001-05-15  Jim Meyering  <meyering@lucent.com>
121745         * m4/regex.m4: Use proper quoting so brackets appear in the test
121746         program.
121747         Reported by, and with help from, Bruno Haible.
121749 2001-05-13  Jim Meyering  <meyering@lucent.com>
121751         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
121752         undefined.
121754 2001-05-11  Paul Eggert  <eggert@twinsun.com>
121756         dirname code cleanup.  base_name now behaves more compatibly
121757         with POSIX basename when given file names that have trailing
121758         slashes, and similarly for dir_name.  Add new primitives
121759         base_len and dir_len.  Put the directory-name-related decls
121760         into dirname.h.
121762         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
121763         * lib/backupfile.c (base_name): Likewise.
121764         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
121765         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
121766         * lib/makepath.c (strip_trailing_slashes): Likewise.
121767         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
121768         ISSLASH): Likewise.
121769         * lib/rename.c (strip_trailing_slashes): Likewise.
121770         * lib/same.c (base_name): Likewise.
121771         * lib/stripslash.c (ISSLASH): Likewise.
121773         * lib/addext.c: Include <dirname.h> after size_t is defined.
121774         * lib/backupfile.c: Likewise.
121776         * lib/addext.c (addext): Use base_len to trim redundant
121777         trailing slashes instead of doing it ourselves.
121778         But do not trim the last slash if it is not redundant.
121780         * lib/backupfile.c (find_backup_file_name,
121781         max_backup_version): Use base_len instead of rolling it ourselves.
121782         Handle the case of "" and (on DOS) "C:" correctly.
121784         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
121785         needed. Include <string.h>, <dirname.h>.
121786         (base_name): Allow file names ending in slashes, other than names
121787         that are all slashes.  In this case, return the basename followed
121788         by the slashes.  This is more general, and can be used in places
121789         where the original base_name purposely had an assertion failure.
121790         (base_len): New function.
121792         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
121793         Do not include <assert.h>; no longer needed.
121794         Include xalloc.h.
121795         (memrchr): Remove decl.
121796         (dir_name_r): Remove.
121797         (dir_len): Renamed from dirlen.  All callers changed.
121798         Rewrite in terms of base_name, for simplicity and consistency.
121799         (dir_name): Never return NULL.  All callers changed.
121800         Do not include <stdlib.h> in test program; no longer needed.
121801         return 0; is fine for test program.
121803         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
121804         New macros.
121805         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
121807         * lib/path-concat.c (path_concat): Use base_len to compute
121808         base length, not strlen; this means we cannot rely on memcpy
121809         to null-terminate.
121811         * lib/same.c (STREQ): Remove.
121812         (same_name): Handle the case where the basename ends in trailing '/'.
121814         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
121815         a slash was stripped.  Do not strip the last slash after a
121816         file system prefix.
121818 2001-05-11  Paul Eggert  <eggert@twinsun.com>
121820         * lib/Makefile.am (libfetish_a_SOURCES):
121821         Add strftime.c, since we now compile it on all hosts.
121823         * lib/strftime.c (my_strftime):
121824         Define to nstrftime if emacs, but only if my_strftime is not defined.
121825         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
121826         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
121827         Add one more extra argument: a nanoseconds value.
121828         All uses changed.
121829         (ns): New macro.
121830         (my_strftime function): Add %N format.
121831         (emacs_strftimeu): Renamed from emacs_strftime,
121832         with extra ut argument.
121834 2001-05-09  Paul Eggert  <eggert@twinsun.com>
121836         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
121838 2001-04-21  Jim Meyering  <meyering@lucent.com>
121840         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
121841         doesn't interfere.
121843 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
121845         * m4/ftruncate.m4: Check for chsize.
121846         Link with ftruncate.o unconditionally if ftruncate is missing.
121847         This was required when cross-compiling to i586-mingw32msvc.
121849 2001-04-08  Jim Meyering  <meyering@lucent.com>
121851         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
121852         recomputed; that's necessary when the offset spans a DST transition.
121853         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
121855 2001-04-02  Jim Meyering  <meyering@lucent.com>
121857         * lib/regex.h, regex.c: Update from GNU libc.
121859 2001-03-24  Jim Meyering  <meyering@lucent.com>
121861         * m4/jm-macros.m4: Require autoconf-2.49d.
121863 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
121865         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
121867 2001-03-19  Paul Eggert  <eggert@twinsun.com>
121869         * lib/version-etc.c (version_etc_copyright): Update to 2001.
121871 2001-03-17  Jim Meyering  <meyering@lucent.com>
121873         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
121874         now that the version in autoconf is equivalent.
121875         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
121877         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
121878         Suggestion from Akim Demaille.
121880         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
121881         (jm_PREREQ_TEMPNAME): New function.
121883 2001-03-16  Paul Eggert  <eggert@twinsun.com>
121885         * lib/tempname.c (uint64_t): Define to uintmax_t if
121886         not defined, and if UINT64_MAX is not defined.
121887         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
121888         Reported by John David Anglin.
121890 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
121892         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
121893         resolve alias if codeset is empty.
121894         * lib/config.charset (BeOS): Use wildcard syntax.
121896 2001-03-13  Jim Meyering  <meyering@lucent.com>
121898         * lib/path-concat.c (path_concat)
121899         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
121900         concatenating e.g., `C:' and `foo'.
121901         From Bruno Haible.
121903 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
121905         * lib/localcharset.c (locale_charset): Don't use
121906         setlocale(LC_CTYPE,NULL). Don't return NULL.
121907         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
121909 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
121911         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
121912         support for DOS/DJGPP.
121914 2001-03-01  Paul Eggert  <eggert@twinsun.com>
121916         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
121917         lacks mkstemp.  Compile our own tempname.c if we compile our own
121918         mkstemp.c, as mkstemp relies on tempname.
121920 2001-03-01  Jim Meyering  <meyering@lucent.com>
121922         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
121923         AH_VERBATIM really does output its argument verbatim.
121925 2001-02-28  Paul Eggert  <eggert@twinsun.com>
121927         * lib/Makefile.am (libfetish_a_SOURCES):
121928         Add dup-safer.c, fopen-safer.c.
121929         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
121931         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
121932         * lib/unistd-safer.h: New files.
121934 2001-02-25  Paul Eggert  <eggert@twinsun.com>
121936         The mkstemp replacement is taken from glibc 2.2.2, with some
121937         portability fixes for use outside glibc, as follows:
121939         * lib/tempname.c (struct_stat64): New macro.
121940         (direxists, __gen_tempname): Use it.
121941         This avoids a portability problem with Solaris 8.
121943         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
121944         (<stddef.h>, <stdint.h>, <string.h>):
121945         Include only if STDC_HEADERS || _LIBC.
121946         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
121947         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
121948         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
121949         (__set_errno): Define this macro if <errno.h> doesn't.
121950         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
121951         Define these macros if <stdio.h> doesn't.
121952         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
121953         Define these macros if <sys/stat.h>
121954         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
121955         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
121956         __xstat64): Define if not _LIBC.
121957         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
121958         (__gen_tempname): Invoke gettimeofday only if
121959         HAVE_GETTIMEOFDAY || _LIBC;
121960         otherwise, fall back on plain "time".
121961         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
121963         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
121965         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
121967 2001-02-18  Paul Eggert  <eggert@twinsun.com>
121969         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
121971 2001-02-17  Paul Eggert  <eggert@twinsun.com>
121973         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
121974         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
121975         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
121976         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
121978 2001-02-17  Paul Eggert  <eggert@twinsun.com>
121980         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
121981         Remove workaround macros for hosts that have mbrtowc but not
121982         mbstate_t, as we now insist on proper declarations for both
121983         before using mbrtowc.
121985 2001-02-17  Jim Meyering  <meyering@lucent.com>
121987         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
121988         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
121989         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
121990         UnixWare 7.1.1.
121992         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
121993         rather than AC_CACHE_VAL.
121995 2001-02-17  Jim Meyering  <meyering@lucent.com>
121997         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
121998         around included file name.
122000         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
122002         * lib/strftime.c: Update from GNU libc (the only changes were to
122003         comments).
122005 2001-02-17  Jim Meyering  <meyering@lucent.com>
122007         * lib/regex.c: Update from libc.
122009 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
122011         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
122012         clash.
122014 2001-02-16  Paul Eggert  <eggert@twinsun.com>
122016         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
122017         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
122018         Reported by Mark Hounschell via Paul Eggert.
122020 2001-02-07  Jim Meyering  <meyering@lucent.com>
122022         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
122024 2001-02-05  Jim Meyering  <meyering@lucent.com>
122026         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
122027         it includes the patch required for `large file' support with at least
122028         HP-UX's 10.20 /bin/cc.
122030 2001-02-03  Jim Meyering  <meyering@lucent.com>
122032         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
122033         AS_IF, now that it works once again (mysteriously).
122034         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
122036 2001-01-30  Jim Meyering  <meyering@lucent.com>
122038         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
122039         * m4/chown.m4: Rename conftestchown to conftest.chown.
122040         * m4/rename.m4: s/conftestdir/conftest.d1/ and
122041         s/conftestdir2/conftest.d2/.
122042         * m4/utimes.m4: s/conftestdata/conftest.data/
122043         Inspired by Pavel Roskin's change in autoconf.
122045 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
122047         * lib/config.charset: Update for FreeBSD 4.2.
122049 2001-01-27  Jim Meyering  <meyering@lucent.com>
122051         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
122052         a use of AS_IF.
122053         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
122055 2001-01-26  Jim Meyering  <meyering@lucent.com>
122057         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
122058         quotearg.c includes it.
122060 2001-01-26  Jim Meyering  <meyering@lucent.com>
122062         * lib/quotearg.c: Include stddef.h.
122063         * lib/quote.c: Include stddef.h.
122064         Reported by Axel Kittenberger.
122066         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
122067         line in double quotes so that it evokes a better diagnostic.
122068         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
122069         Reported by Axel Kittenberger.
122071 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
122073         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
122074         as if it was a `charset'.
122076 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
122078         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
122079         has const.
122081 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
122083         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
122084         to avoid a warning.  Add back 'const' to inptr.
122086 2001-01-20  Jim Meyering  <meyering@lucent.com>
122088         Be sure that headers are checked before used in code compiled
122089         for the type checks.
122090         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
122091         In place of that, invoke jm_CHECK_ALL_TYPES.
122092         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
122093         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
122094         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
122095         The check for ssize_t was mistakenly run before the test for unistd.h.
122097         The configure-time check for stdbool.h was missing.
122098         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
122099         (jm_PREREQ_HASH): New function.
122101 2001-01-17  Jim Meyering  <meyering@lucent.com>
122103         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
122104         for autoconf-2.49c.
122105         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
122107 2001-01-16  Jim Meyering  <meyering@lucent.com>
122109         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
122110         From Bruno Haible.
122112 2001-01-14  Jim Meyering  <meyering@lucent.com>
122114         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
122115         foo and bar.  Create conftestdir/ in the script, not in the C code.
122116         Remove directories in the script, not in the C code.
122117         Remove conftestdir{,2} before trying to create the directory.
122118         Make the entire configure script fail if the mkdir fails.
122120 2001-01-14  Jim Meyering  <meyering@lucent.com>
122122         * lib/rename.c: New file.  From Volker Borchert.
122123         Include stdlib.h, string.h or strings.h, and xalloc.h.
122124         Use strip_trailing_slashes rather than open-coding it.
122126 2001-01-03  Paul Eggert  <eggert@twinsun.com>
122128         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
122130 2001-01-03  Jim Meyering  <meyering@lucent.com>
122132         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
122133         of local `inptr' to avoid warning with some system declarations of
122134         iconv.
122136 2001-01-02  Volker Borchert  <bt@teknon.de>
122138         * m4/rename.m4: New file.
122139         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
122141 2001-01-01  Jim Meyering  <meyering@lucent.com>
122143         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
122144         even on systems with utmpx.h.  It's necessary for the declaration of
122145         utmp's ut_user member.  Reported by Andreas Jaeger.
122147         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
122148         available. They are required for the declarations of getgrgid and
122149         getpwuid resp.
122150         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
122151         Reported by Andreas Jaeger.
122153 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
122155         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
122156         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
122157         so `make install' also works in VPATH builds.
122159 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
122161         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
122162         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
122163         can be used in subdirectories.
122165 2000-12-29  Paul Eggert  <eggert@twinsun.com>
122167         * lib/modechange.c: Do not assume that mode_t uses the
122168         traditional octal encoding.  E.g. "chmod 1 FOO" should set
122169         the other-execute bit of FOO even if S_IXOTH != 1.
122171         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
122172         WOTH, XOTH, ALLM): New macros.
122173         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
122174          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
122175         Use them.
122176         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
122177         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
122178         (mode_compile):
122179         No need to use uintmax_t; unsigned long is long enough.
122180         Don't bother to get suffix since we don't use it.
122182 2000-12-26  Jim Meyering  <meyering@lucent.com>
122184         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
122185         better with autoheader.
122187 2000-12-24  Jim Meyering  <meyering@lucent.com>
122189         * lib/hash.c (is_prime): Return explicit boolean values.
122190         (hash_get_first): Return NULL to appease Irix5.6's 89.
122191         Reported by Nelson Beebe.
122193 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
122195         * lib/localcharset.c (locale_charset): Add support for Win32.
122197 2000-12-18  Paul Eggert  <eggert@twinsun.com>
122199         * lib/physmem.h, lib/physmem.c: New files.
122201         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
122202         (noinst_HEADERS): Add physmem.h.
122204         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
122205         't' for compatibility with Solaris 8 sort.
122207 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
122209         * lib/config.charset: Add support for BeOS.
122211 2000-12-17  Jim Meyering  <meyering@lucent.com>
122213         * m4/dos.m4 (jm_AC_DOS): New file and macro.
122214         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
122216 2000-12-16  Jim Meyering  <meyering@lucent.com>
122218         This bug had a serious impact on chown: `chown N:M FILE' (for integer
122219         N and M) would have treated it like `chown N:N FILE'.
122221         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
122223 2000-12-16  Jim Meyering  <meyering@lucent.com>
122225         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
122226         SHELLS_FILE to a file name that's useful on djgpp systems.
122227         Include stdlib.h.
122228         (ADDITIONAL_DEFAULT_SHELLS): Define.
122229         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
122230         Based mostly on a patch from Prashant TR.
122232 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
122234         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
122235         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
122236         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
122238 2000-12-08  Andreas Schwab  <schwab@suse.de>
122240         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
122241         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
122243 2000-12-07  Jim Meyering  <meyering@lucent.com>
122245         * lib/stripslash.c (ISSLASH): Define.
122246         (strip_trailing_slashes): Use ISSLASH rather than comparing against
122247         `/'.
122248         From Prashant TR.
122250         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
122251         (dir_name_r): Declare this function as static.
122252         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
122253         manifest itself on a name containing a mix of slashes and
122254         backslashes.
122255         Make this function work with names starting with a DOS-style
122256         drive letter and colon prefix.
122257         (dir_name): Append `.' if necessary.
122258         Based mostly on patches from Prashant TR and Eli Zaretskii.
122260         * lib/dirname.h (dir_name_r): Remove prototype.
122262 2000-12-06  Paul Eggert  <eggert@twinsun.com>
122264         * m4/off_t-format.m4: Remove this file.
122265         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
122267 2000-12-06  Jim Meyering  <meyering@lucent.com>
122269         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
122270         replacement strtoull, we may well need the replacement strtoul, too.
122271         Check for declarations of strtoul and strtoull.
122272         Check for strtol.  Mainly as a cue to cause automake to include
122273         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
122274         Check for limits.h -- strtol.c needs it.
122276 2000-12-05  Jim Meyering  <meyering@lucent.com>
122278         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
122280 2000-12-04  Jim Meyering  <meyering@lucent.com>
122282         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
122283         Also include memory.h, stdlib.h, unistd.h if appropriate.
122284         Reported by Andreas Jaeger (conflicting declaration of malloc).
122286 2000-12-02  Jim Meyering  <meyering@lucent.com>
122288         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
122289         * m4/jm-macros.m4 (jm_MACROS): require it.
122291 2000-12-02  Jim Meyering  <meyering@lucent.com>
122293         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
122295 2000-12-01  Paul Eggert  <eggert@twinsun.com>
122297         * lib/memrchr.c: Include <config.h> before any system include file.
122299 2000-11-30  Jim Meyering  <meyering@lucent.com>
122301         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
122303 2000-11-30  Jim Meyering  <meyering@lucent.com>
122305         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
122307 2000-11-29  Paul Eggert  <eggert@twinsun.com>
122309         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
122311 2000-11-26  Jim Meyering  <meyering@lucent.com>
122313         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
122315 2000-11-22  Paul Eggert  <eggert@twinsun.com>
122317         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
122318         size of (size_t) -1; it's not portable.
122320 2000-11-17  Jim Meyering  <meyering@lucent.com>
122322         * lib/strstr.c: Update from GNU libc.
122324 2000-11-17  Akim Demaille  <akim@epita.fr>
122326         * lib/obstack.h: Formatting changes.
122327         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
122328         prevent type checking.
122329         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
122330         cast the value to (void *): assigning a `foo *' to a `void *'
122331         variable is valid.
122332         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
122334 2000-11-16  Jim Meyering  <meyering@lucent.com>
122336         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
122338 2000-11-11  Jim Meyering  <meyering@lucent.com>
122340         * lib/error.c: Add a couple #includes, merging from GNU libc version.
122342 2000-11-10  Jim Meyering  <meyering@lucent.com>
122344         * lib/obstack.h: Update from GNU libc.
122345         * lib/obstack.c: Likewise.
122347 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
122349         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
122351 2000-11-06  Paul Eggert  <eggert@twinsun.com>
122353         * lib/getusershell.c (setusershell): Use rewind rather than
122354         fseek/fseeko, to avoid configuration hassles with fseeko.
122355         Don't bother opening SHELLS_FILE if shellstream is NULL;
122356         it's not necessary.
122358 2000-11-05  Jim Meyering  <meyering@lucent.com>
122360         * lib/makepath.h (make_dir): Declare.
122361         * lib/makepath.c (make_dir): Remove `static' attribute.
122362         Tweak a comment.
122364 2000-11-04  Jim Meyering  <meyering@lucent.com>
122366         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
122368 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
122370         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
122371         last one in a bucket, advance to the next bucket.
122373 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
122375         * lib/fnmatch.c: Do not comment out all the code if we are using
122376         the GNU C library, because in some cases we are replacing buggy
122377         code in the GNU C library itself.
122379 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
122381         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
122382         (regex_compile): Catch bogus \(\1\).
122384 2000-10-30  Paul Eggert  <eggert@twinsun.com>
122386         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
122387         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
122388         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
122390 2000-10-30  Paul Eggert  <eggert@twinsun.com>
122392         * lib/error.h, getline.h, modechange.h:
122393         Remove "2000" from Copyright line, as the file hasn't been
122394         changed this year other than in the copyright notice.
122396         * lib/xalloc.h: Add "2000" to Copyright line, as this file
122397         was changed this year.
122399 2000-10-29  Jim Meyering  <meyering@lucent.com>
122401         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
122402         renaming.
122403         * m4/ls-mntd-fs.m4: Likewise
122405 2000-10-29  Jim Meyering  <meyering@lucent.com>
122407         * lib/xstat.in: Fix grammar in comment.
122409 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
122411         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
122412         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
122413         doesn't define __restrict_arr.
122415 2000-10-28  Jim Meyering  <meyering@lucent.com>
122417         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
122418         (jm_PREREQ_MEMCHR): New function.
122420 2000-10-28  Jim Meyering  <meyering@lucent.com>
122422         * lib/memchr.c: Update from libc.
122423         Adjust for portability:
122424         [HAVE_STDLIB_H]: Include stdlib.h.
122425         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
122426         Undef __memchr, too.
122427         [!weak_alias]: Define __memchr to memchr.
122429         * lib/regex.c: Update from libc.
122430         * lib/regex.h: Likewise.
122431         * lib/getopt1.c: Likewise.
122432         * lib/memcmp.c: Likewise.
122434         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
122435         Avoid using fseek, when possible -- it's broken by design.
122436         Patch by Ulrich Drepper.
122438 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
122440         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
122441         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
122442         Giving in to popular pressure to shut up the compiler with casts.
122444 2000-10-26  Jim Meyering  <meyering@lucent.com>
122446         * lib/strftime.c: Update from libc.
122448 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
122450         * regex.c: More `unsigned char' -> `re_char' changes.
122451         Also change several `int' into `re_wchar_t'.
122452         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
122453         (PUSH_FAILURE_POINTER): Don't cast any more.
122454         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
122455         We want GCC to complain, since this piece of code makes
122456         re_match non-reentrant, which *should* be fixed.
122457         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
122458         (EXTEND_BUFFER): Use RETALLOC.
122459         (SET_LIST_BIT): Don't cast.
122460         (re_wchar_t): New type.
122461         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
122462         that those two functions will always properly return.
122463         (IMMEDIATE_QUIT_CHECK): Cast to void.
122464         (analyse_first): Use recursion rather than an explicit stack.
122465         (re_compile_fastmap): Can't fail anymore.
122466         (re_search_2): Don't check re_compile_fastmap for failure.
122467         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
122468         Now also sets the new value (passed in a new argument).
122469         (re_match_2_internal): Use it.
122470         Also, use a new var `reg' of type size_t when looping through regs
122471         rather than reuse the inappropriate `mcnt'.
122473 2000-10-25  Jim Meyering  <meyering@lucent.com>
122475         * lib/obstack.c: Update from libc.
122477 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
122479         * regex.c (regex_compile): Change the way of handling a range from
122480         a char less than 256 to a char not less than 256.
122482 2000-10-24  Andrew Innes  <andrewi@gnu.org>
122484         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
122485         NT-Emacs only.
122486         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
122487         so that re_search functions only quit when callers expect them to.
122489 2000-10-23  Jim Meyering  <meyering@lucent.com>
122491         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
122492         wrong.  That set_locale call must not have any side effects.
122493         From Paul Eggert.
122495 2000-10-22  Jim Meyering  <meyering@lucent.com>
122497         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
122498         [CYCLIC]: Remove now-unused definition.
122500         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
122501         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
122502         Suggestion from Ulrich Drepper.
122504 2000-10-21  Jim Meyering  <meyering@lucent.com>
122506         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
122507         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
122508         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
122510 2000-10-21  Jim Meyering  <meyering@lucent.com>
122512         * lib/dirname.c (memrchr): Declare if necessary.
122513         (dir_name): Remove the restriction that there be no
122514         trailing slashes.  Now, this code skips past them, effectively
122515         ignoring them.
122516         [TEST_DIRNAME] (main): New unit tests.
122518         * lib/memrchr.c: New file from GNU libc.
122519         Undef __memrchr, too.
122520         [!weak_alias]: Define __memrchr to memrchr.
122521         Guard weak_alias use with `#ifdef weak_alias'.
122523 2000-10-21  Jim Meyering  <meyering@lucent.com>
122525         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
122526         (dir_name): Use dir_name_r.
122527         * lib/dirname.h (dir_name_r): Declare it.
122529 2000-10-17  Jim Meyering  <meyering@lucent.com>
122531         * lib/quote.h (PARAMS): Define and use.
122532         Reported by Akim Demaille.
122534         * lib/getopt.c: Update from libc.
122536 2000-10-16  Jim Meyering  <meyering@lucent.com>
122538         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
122539         setlocale.
122540         From Jan Fedak.
122542 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
122544         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
122546 2000-09-25  Jim Meyering  <meyering@lucent.com>
122548         * lib/md5.h (rol): Define (from GnuPG).
122550         * lib/sha.c: Give credit (GnuPG) where due.
122551         (M): Use rol rather than open-coding it.
122552         Add a FIXME comment.
122554 2000-09-21  Jim Meyering  <meyering@lucent.com>
122556         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
122557         Reported by Michael Stone.
122559 2000-09-20  Jim Meyering  <meyering@lucent.com>
122561         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
122562         (noinst_HEADERS): Add sha.h.
122563         Based on code from Scott G. Miller and from GnuPG.
122565 2000-09-18  Jim Meyering  <meyering@lucent.com>
122567         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
122568         LIBS. Otherwise, everyone ends up linking with -lelf for some
122569         configurations.
122570         Reported by Mike Stone.
122572 2000-09-15  Jim Meyering  <meyering@lucent.com>
122574         * lib/regex.c: Update from libc.
122576 2000-09-10  Jim Meyering  <meyering@lucent.com>
122578         * lib/getopt.c (_getopt_internal): Update from glibc.
122580 2000-09-09  Jim Meyering  <meyering@lucent.com>
122582         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
122583         think it should be used as a general replacement for isascii.
122584         * lib/fnmatch.c: Likewise.
122585         * lib/mbswidth.c: Likewise
122586         * lib/regex.c: Likewise.
122588         Don't use atoi.
122589         * lib/userspec.c: Include sys/param.h and limits.h.
122590         Include xstrtol.h.
122591         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
122592         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
122593         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
122594         UID, GID.  Check range.
122596 2000-09-06  Jim Meyering  <meyering@lucent.com>
122598         * lib/getopt.c (_getopt_internal): Update from glibc.
122600 2000-08-30  Jim Meyering  <meyering@lucent.com>
122602         * lib/strftime.c: Merge in changes from GNU libc.
122604 2000-08-26  Jim Meyering  <meyering@lucent.com>
122606         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
122607         * m4/fpending.m4: New file.
122609 2000-08-26  Jim Meyering  <meyering@lucent.com>
122611         * lib/closeout.c: Include "__fpending.h".
122612         (close_stdout_status): Return right away if there's nothing to flush.
122614         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
122615         * lib/__fpending.c: New file.
122616         * lib/__fpending.h: New file.
122618 2000-08-20  Jim Meyering  <meyering@lucent.com>
122620         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
122621         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
122622         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
122624 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
122626         Improve fileutils installation on systems where running
122627         programs (like install) can't be unlinked.
122628         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
122629         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
122631 2000-08-07  Paul Eggert  <eggert@twinsun.com>
122633         Standardize on "memory exhausted" instead of "Memory exhausted"
122634         or "virtual memory exhausted".
122635         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
122636         "virtual memory exhausted".
122637         * lib/same.c (same_name): Invoke xalloc_die instead of printing
122638         our own message.
122639         * lib/userspec.c (parse_user_spec): Likewise.
122640         * lib/bumpalloc.h: comment fix
122641         * lib/same.c, userspec.c: Include xalloc.h.
122643         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
122644         not char *const and pointing to a constant array.
122645         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
122646         (xrealloc): Comment fix.
122648         * lib/userspec.c (parse_user_spec):
122649         Don't translate a message until just before returning,
122650         to avoid unnecessary translation.
122652 2000-08-07  Jim Meyering  <meyering@lucent.com>
122654         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
122655         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
122656         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
122657         getgroups.c, gethostname.c, getopt.h, group-member.c,
122658         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
122659         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
122660         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
122661         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
122662         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
122663         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
122664         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
122665         yesno.c: Back out Copyright date changes for each file with no change
122666         this year.  This eases coordination with other programs using the same
122667         source code modules.  From Paul Eggert.
122669 2000-08-06  Paul Eggert  <eggert@twinsun.com>
122671         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
122672         not char, for compatibility with glibc 2.1.3 strftime.c.
122674 2000-08-03  Greg McGary  <greg@mcgary.org>
122676         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
122677         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
122678         (EXTEND_BUFFER): Use them.
122680 2000-08-01  Jim Meyering  <meyering@lucent.com>
122682         * lib/dirname.c (ISSLASH): Define.
122683         (BACKSLASH_IS_PATH_SEPARATOR): Define.
122684         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
122685         both `\' and `/' may be use as path separators.
122686         Based on a patch from Prashant TR.
122688 2000-07-31  Paul Eggert  <eggert@twinsun.com>
122690         * lib/quotearg.c (quotearg_n_options): Don't make the initial
122691         slot vector a constant, since it might get modified.
122693 2000-07-31  Jim Meyering  <meyering@lucent.com>
122695         * lib/xmalloc.c: Use `virtual memory exhausted', not
122696         `Memory exhausted'.
122697         * lib/obstack.c (print_and_abort): Likewise.
122699 2000-07-30  Paul Eggert  <eggert@twinsun.com>
122701         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
122702         buffer, so that the caller can always quote one small
122703         component of a "memory exhausted" message in slot 0.
122704         From a suggestion by Jim Meyering.
122706 2000-07-30  Jim Meyering  <meyering@lucent.com>
122708         * lib/makepath.c (make_path): Quote the other instance, too.
122710         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
122711         (STATIC_BUF_SIZE): Define.
122712         (quotearg_n_options): Use only statically allocated storage when
122713         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
122714         than STATIC_BUF_SIZE.
122716 2000-07-29  Jim Meyering  <meyering@lucent.com>
122718         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
122719         * lib/dirname.c (dir_name): Likewise.
122721         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
122722         `/'.
122724         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
122725         (dir_name): Assert that there are no trailing slashes.
122727 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
122729         * lib/mbswidth.h (mbswidth): Add a flags argument.
122730         (mbswidth): New declaration.
122731         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
122732         * lib/mbswidth.c (mbswidth): Add a flags argument.
122733         (mbsnwidth): New function.
122735 2000-07-24  Jim Meyering  <meyering@lucent.com>
122737         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
122739 2000-07-23  Paul Eggert  <eggert@twinsun.com>
122741         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
122743 2000-07-23  Paul Eggert  <eggert@twinsun.com>
122745         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
122746         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
122747         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
122748         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
122749         invoke multibyte primitives.
122751 2000-07-23  Paul Eggert  <eggert@twinsun.com>
122753         * lib/quotearg.c:
122754         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
122755         so that mbstate_t is always defined.
122757         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
122758         be 1 in at least one GCC installation, and this configuration
122759         error is likely to be common.  Ignoring MB_LEN_MAX hurts
122760         performance on hosts that have mbrtowc but have only unibyte
122761         locales, but I assume these hosts are rare.
122763 2000-07-23  Paul Eggert  <eggert@twinsun.com>
122765         * lib/mbswidth.c (_XOPEN_SOURCE):
122766         Don't define; this causes problems on Solaris 7.
122767         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
122769 2000-07-23  Jim Meyering  <meyering@lucent.com>
122771         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
122772         too: getgrgid, getpwuid, getuid.
122774 2000-07-23  Jim Meyering  <meyering@lucent.com>
122776         * lib/basename.c (base_name): Add an assertion.
122778 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
122780         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
122781         shadow its mbsinit function.
122783 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
122785         * lib/mbswidth.h: New file.
122786         * lib/mbswidth.c: New file.
122787         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
122788         (noinst_HEADERS): Add mbswidth.h.
122790 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
122792         * lib/config.charset: Add support for FreeBSD. Improve support for
122793         HP-UX and IRIX 6.
122795 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
122797         * m4/mbswidth.m4: New file.
122798         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
122800 2000-07-15  Jim Meyering  <meyering@lucent.com>
122802         * lib/makepath.c: Include quote.h.
122803         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
122804         corresponding argument in a `quote (...)' call.
122805         Give better diagnostics.
122807         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
122808         (noinst_HEADERS): Add quote.h.
122810         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
122811         from tar's src/misc.c.
122812         * lib/quote.h: New file.  Prototypes for same.
122814 2000-07-14  Paul Eggert  <eggert@twinsun.com>
122816         From a suggestion by Bruno Haible.
122817         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
122818         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
122819         to decide whether to define the BeOS workaround macro;
122820         this adjusts to the change to AC_MBSTATE_T.
122822 2000-07-14  Jim Meyering  <meyering@lucent.com>
122824         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
122825         jm_AC_TYPE_UINTMAX_T.
122827 2000-07-13  Paul Eggert  <eggert@twinsun.com>
122829         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
122831         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
122832         quotearg_buffer_restyled): Add support for
122833         clocale_quoting_style.  Undo previous change to
122834         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
122835         and "{RIGHT QUOTATION MARK}" msgids.
122837 2000-07-10  Paul Eggert  <eggert@twinsun.com>
122839         From a suggestion by Bruno Haible.
122840         * m4/mbstate_t.m4 (AC_MBSTATE_T):
122841         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
122842         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
122843         and mbstate_t, to a single-part test that simply defines mbstate_t.
122844         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
122845         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
122847 2000-07-10  Jim Meyering  <meyering@lucent.com>
122849         * m4/strerror_r.m4: Mirror the correction made in autoconf.
122851         * m4/gnu-source.m4: Output to confdefs.h directly.
122852         Suggestion from Akim Demaille.
122854 2000-07-09  Paul Eggert  <eggert@twinsun.com>
122856         The old behavior of quoting `like this' doesn't look good with
122857         newer, ISO-style fonts.  See:
122858         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
122860         Instead, quote "like this" by default.  Let the translator
122861         tailor the locale-specific quoting behavior by providing
122862         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
122864         * lib/quotearg.c (N_): New macro.
122865         (gettext_default): New function.
122866         (quotearg_buffer_restyled): Use
122867         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
122868         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
122870 2000-07-09  Jim Meyering  <meyering@lucent.com>
122872         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
122873         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
122875         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
122876         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
122878 2000-07-09  Jim Meyering  <meyering@lucent.com>
122880         * lib/Most files: Update copyright dates to include 2000.
122882 2000-07-08  Jim Meyering  <meyering@lucent.com>
122884         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
122885         if not defined.
122886         (xgethostname): Remove now-unnecessary #ifdef.
122887         Move declaration of `err' into loop where it's used.
122889 2000-07-05  Paul Eggert  <eggert@twinsun.com>
122890         and Bruno Haible  <haible@clisp.cons.org>
122892         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
122893         only if the test for an object-type mbstate_t fails.  This
122894         prevents us from mistakenly reporting that mbstate_t is a
122895         system object type after we "#define mbstate_t int" to work
122896         around its lack.
122898 2000-07-05  Paul Eggert  <eggert@twinsun.com>
122899         and Bruno Haible  <haible@clisp.cons.org>
122901         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
122903 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
122905         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
122906         to strerror_r.
122907         Include <ctype.h> for use of isalpha.
122909 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
122911         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
122912         by allocating a larger buffer. Test the gethostname return value for
122913         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
122914         returns an error and ENAMETOOLONG isn't defined.
122916 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
122918         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
122919         dimension.
122921 2000-07-04  Jim Meyering  <meyering@lucent.com>
122923         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
122924         of the deprecated AC_CHECKING.
122926 2000-07-04  Jim Meyering  <meyering@lucent.com>
122928         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
122929         Reported by Bruno Haible.
122931 2000-07-04  Jim Meyering  <meyering@lucent.com>
122933         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
122934         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
122935         lacks mbrtowc.
122937 2000-07-03  Paul Eggert  <eggert@twinsun.com>
122939         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
122940         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
122942 2000-07-03  Paul Eggert  <eggert@twinsun.com>
122943         and Bruno Haible  <haible@clisp.cons.org>
122945         * lib/quotearg.c (mbrtowc):
122946         Assign to *pwc, and return 1 only if result is nonzero.
122947         (iswprint): Use ISPRINT when substituting our own mbrtowc.
122949 2000-07-03  Jim Meyering  <meyering@lucent.com>
122951         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
122953 2000-07-03  Jim Meyering  <meyering@lucent.com>
122955         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
122956         This is necessary to get a definition of e.g., UTMP_FILE on
122957         HP-UX 10.20.
122958         From Bob Proulx.
122960 2000-07-02  Jim Meyering  <meyering@lucent.com>
122962         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
122964         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
122965         AC_LIBOBJ(function_name).
122966         * m4/chown.m4: Likewise.
122967         * m4/fnmatch.m4: Likewise.
122968         * m4/ftruncate.m4: Likewise.
122969         * m4/getgroups.m4: Likewise.
122970         * m4/getline.m4: Likewise.
122971         * m4/group-member.m4: Likewise.
122972         * m4/jm-macros.m4: Likewise.
122973         * m4/lstat.m4: Likewise.
122974         * m4/malloc.m4: Likewise.
122975         * m4/memcmp.m4: Likewise.
122976         * m4/nanosleep.m4: Likewise.
122977         * m4/putenv.m4: Likewise.
122978         * m4/realloc.m4: Likewise.
122979         * m4/regex.m4: Likewise.
122980         * m4/stat.m4: Likewise.
122981         * m4/strftime.m4: Likewise.
122983 2000-07-02  Jim Meyering  <meyering@lucent.com>
122985         * lib/quotearg.c (mbstate_t): Don't define here.
122987 2000-07-02  Jim Meyering  <meyering@lucent.com>
122989         * lib/nanosleep.c (SIGCONT): Define if not already defined.
122991 2000-07-01  Jim Meyering  <meyering@lucent.com>
122993         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
122995 2000-07-01  Jim Meyering  <meyering@lucent.com>
122997         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
122998         problem.
123000 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
123002         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
123003         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
123005 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
123007         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
123008         per change in ../m4/ls-mntd-fs.m4.
123009         (read_filesystem_list): Ignore symbolic links.
123011 2000-06-29  Jim Meyering  <meyering@lucent.com>
123013         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
123014         for declaration of strcmp.
123016         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
123018         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
123019         Avoid warning by casting result to `char *' to remove `const'.
123021 2000-06-28  Jim Meyering  <meyering@lucent.com>
123023         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
123024         included by quotearg.c, for which we perform this test.  From
123025         Bruno Haible.
123027 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
123029         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
123030         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
123031         <utmpx.h> exists, put readutmp.o into LIBOBJS.
123033 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
123035         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
123037 2000-06-26  Paul Eggert  <eggert@twinsun.com>
123039         savedir now sets errno on failure and invokes xmalloc to get memory.
123040         Fix a couple of other minor bugs while we're at it.
123042         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
123043         (NAMLEN): Remove macro.
123044         (malloc, realloc): Remove decls.
123045         (stpcpy): Likewise.
123046         ("xalloc.h"): Include.
123047         (NAME_SIZE_DEFAULT): New macro.
123048         (savedir): Use xmalloc / xrealloc to allocate memory.
123049         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
123050         Skip "" directory entries.
123051         Use strlen to calculate directory entry length, since the old method
123052         is rarely used these days and isn't worth supporting.
123053         Don't use a pointer after freeing it.
123054         Check for integer overflow when calculating allocation size.
123055         Use memcpy to copy entries, instead of stpcpy.
123056         Set errno properly when returning NULL.
123057         Check for readdir error.
123059 2000-06-26  Jim Meyering  <meyering@lucent.com>
123061         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
123063 2000-06-25  Jim Meyering  <meyering@lucent.com>
123065         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
123066         Linux header bug when _XOPEN_SOURCE is defined to 500.
123068 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
123070         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
123071         deficiency.
123073 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
123075         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
123076         Include xalloc.h.
123077         Don't include <stdlib.h>.  Don't declare malloc, realloc.
123079 2000-06-24  Jim Meyering  <meyering@lucent.com>
123081         * m4/strerror_r.m4: Revive this file -- to try out an experimental
123082         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
123083         for which strerror does return char*, but which lacks a conveniently
123084         accessible declaration of the function.  If the compile-test says
123085         strerror_r doesn't work, then resort to a `run'-test that works on
123086         BeOS and segfaults on DEC Unix.
123088 2000-06-24  Jim Meyering  <meyering@lucent.com>
123090         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
123092 2000-06-23  Paul Eggert  <eggert@twinsun.com>
123094         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
123095         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
123097 2000-06-23  Paul Eggert  <eggert@twinsun.com>
123099         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
123100         (mbrtowc, mbstate_t): Define substitutes if
123101         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
123102         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
123103         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
123105 2000-06-23  Jim Meyering  <meyering@lucent.com>
123107         * m4/afs.m4: Add missing AC_MSG_RESULT.
123108         Reported by Bruno Haible.
123110         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
123111         Suggestion from Bruno Haible.
123113 2000-06-23  Jim Meyering  <meyering@lucent.com>
123115         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
123117 2000-06-21  Jim Meyering  <meyering@lucent.com>
123119         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
123121 2000-06-21  Jim Meyering  <meyering@lucent.com>
123123         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
123124         (noinst_HEADERS): Add getstr.h.
123126         * lib/getline.c (getstr): Move into a separate file.
123127         * lib/getstr.c (getstr): New file, extracted from getline.c, with
123128         the following changes: new parameter, delim2; both delim[12]
123129         parameters have type `int', not `char'.  The latter would lose
123130         with 8-bit delimiters.
123131         * lib/getstr.h: New file.
123133 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
123135         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
123136         than 1024, return a memory chunk of least possible size, instead
123137         of size PATH_MAX + 2. In the loop, increment the size proportionally.
123138         Use free/xmalloc instead of xrealloc to avoid copying for very long
123139         paths.
123141 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
123143         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
123144         the empty string.
123146 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
123148         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
123149         address, not strdup.  Include <stdlib.h> and don't declare free().
123151 2000-06-19  Jim Meyering  <meyering@lucent.com>
123153         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
123155 2000-06-18  Jim Meyering  <meyering@lucent.com>
123157         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
123159         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
123160         `checking whether...' message to be consistent with that of the
123161         lstat test.
123163 2000-06-18  Jim Meyering  <meyering@lucent.com>
123165         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
123166         Besides, these days every porting target provides a mkdir function.
123168         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
123169         needed. (this snippet comes from src/system.h).
123171 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
123173         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
123175 2000-06-15  Paul Eggert  <eggert@twinsun.com>
123177         * lib/human.c (adjust_value): New function.
123178         (human_readable_inexact): Apply rounding style even when
123179         printing approximate values.
123181 2000-06-14  Paul Eggert  <eggert@twinsun.com>
123183         * lib/human.c (human_readable_inexact): Allow an input block
123184         size that is not a multiple of the output block size, and vice versa.
123185         Reported by Piergiorgio Sartor.
123187 2000-06-14  Paul Eggert  <eggert@twinsun.com>
123189         * lib/getdate.y (get_date): Apply relative times after time
123190         zone indicator, not before.  Reported by Todd A. Jacobs.
123192 2000-06-13  Jim Meyering  <meyering@lucent.com>
123194         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
123196         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
123198 2000-06-12  Paul Eggert  <eggert@twinsun.com>
123200         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
123202 2000-06-12  Jim Meyering  <meyering@lucent.com>
123204         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
123205         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
123206         optional argument.
123207         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
123208         the optional argument, `lib'.
123210 2000-06-08  Jim Meyering  <meyering@lucent.com>
123212         * m4/largefile.m4: Remove file (now that it's part of autoconf).
123214 2000-06-04  Paul Eggert  <eggert@twinsun.com>
123216         Rewrite largefile configuration so that we don't need to run
123217         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
123218         AC_CANONICAL_HOST in configure.in -- jmm]
123220         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
123221         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
123222         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
123223         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
123224         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
123225         All uses changed.
123226         Instead of inspecting the output of getconf, try to compile the
123227         test program without and with the macro definition.
123228         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
123229         for getconf.  Instead, check for the needed flags by compiling
123230         test programs.
123232 2000-06-04  Paul Eggert  <eggert@twinsun.com>
123234         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
123236 2000-06-04  Jim Meyering  <meyering@lucent.com>
123238         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
123239         SunOS 4.1.4 for which gid_t is an unsigned type.
123241 2000-06-03  Jim Meyering  <meyering@lucent.com>
123243         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
123244         now that autoconf requires that.
123246         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
123247         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
123248         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
123250 2000-06-03  Jim Meyering  <meyering@lucent.com>
123252         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
123254 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
123256         * m4/glibc21.m4: New file.
123257         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
123259 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
123261         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
123262         newer, don't install charset.alias.
123263         * lib/config.charset: Change the Linux/glibc rules so they become empty
123264         on glibc-2.1 or newer.
123266 2000-06-02  Jim Meyering  <meyering@lucent.com>
123268         * lib/mountlist.c: Back out last change.  Instead, do this...
123269         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
123270         me_dummy member using the same `ignore'-testing code.
123271         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
123272         fs_type strings.
123273         From Mark D. Roth.
123275 2000-05-29  Jim Meyering  <meyering@lucent.com>
123277         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
123278         mounts with the `ignore' attribute.  Based on a patch from
123279         Mark D. Roth.
123281 2000-05-28  Jim Meyering  <meyering@lucent.com>
123283         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
123284         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
123285         * m4/stat.m4: Likewise.
123286         * m4/lstat.m4: Likewise.
123287         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
123289         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
123290         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
123292 2000-05-26  Jim Meyering  <meyering@lucent.com>
123294         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
123296 2000-05-24  Jim Meyering  <meyering@lucent.com>
123298         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
123299         autoconf requires that.
123300         * m4/lib-check.m4: Likewise.
123301         * m4/jm-macros.m4: Likewise.
123302         * m4/strftime.m4: Likewise.
123304         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
123305         AC_CHECK_DECLS, now that autoconf requires that.
123307 2000-05-22  Jim Meyering  <meyering@lucent.com>
123309         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
123310         * m4/lstat.m4: Likewise.
123312 2000-05-22  Jim Meyering  <meyering@lucent.com>
123314         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
123316 2000-05-20  Jim Meyering  <meyering@lucent.com>
123318         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
123319         (jm_PREREQ): Use it.
123321 2000-05-18  Jim Meyering  <meyering@lucent.com>
123323         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
123324         back, too, since it may have been modified by allocate_entry.
123325         (hash_delete): Rewrite to use neither the assignment operator
123326         nor the comma operator in an if-expression.
123328 2000-05-15  Paul Eggert  <eggert@twinsun.com>
123330         * lib/closeout.c:
123331         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
123332         Remove; no longer needed.
123333         "quotearg.h": Add include.
123334         (file_name): Do not bother to explicitly initialize to NULL; it's less
123335         efficient on some hosts.
123336         (close_stdout_status): Remove test as to whether stdout was already
123337         closed; it breaks for the case "echo x | sort >&-".
123338         Quote file name colons.
123339         Do not assume that _("write error") lacks format strings.
123341 2000-05-15  Jim Meyering  <meyering@lucent.com>
123343         * lib/version-etc.c (version_etc_copyright): Update the copyright
123344         string used in all --version output.
123346 2000-05-14  Jim Meyering  <meyering@lucent.com>
123348         * lib/closeout.c (close_stdout_set_file_name): New function.
123349         (close_stdout_status): Use new file-scoped global.
123350         Return right away if fstat says the stdout file descriptor is invalid.
123351         * lib/closeout.h (close_stdout_set_file_name): Declare.
123353 2000-05-10  Jim Meyering  <meyering@lucent.com>
123355         * lib/closeout.c [default_exit_status]: New file-scoped variable.
123356         (close_stdout_set_status): New function.
123357         * lib/closeout.h (close_stdout_set_status): Declare.
123359 2000-05-09  Jim Meyering  <meyering@lucent.com>
123361         * m4/gettext.m4: Rename this...
123362         * m4/libintl.m4: ...to this.
123364 2000-05-08  Jim Meyering  <meyering@lucent.com>
123366         * lib/long-options.c: Don't include closeout.h.
123367         (parse_long_options): Don't call close_stdout for --version.
123369 2000-05-06  Paul Eggert  <eggert@twinsun.com>
123371         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
123372         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
123373         2.1.3 bug.  This avoids a clash when files like regex.c define
123374         _GNU_SOURCE.
123376 2000-05-06  Jim Meyering  <meyering@lucent.com>
123378         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
123379         (AC_REPLACE_FUNCS): Add strnlen.
123381         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
123382         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
123384         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
123385         AC_SEARCH_LIBS call for nanosleep.
123386         (LIB_NANOSLEEP): Set and AC_SUBST.
123388 2000-05-06  Jim Meyering  <meyering@lucent.com>
123390         * lib/strnlen.c: Undefine __strnlen and strnlen.
123391         [!weak_alias]: Define __strnlen to strnlen.
123393         * lib/atexit.c: New file, from libiberty.
123395 2000-05-06  Jim Meyering  <meyering@lucent.com>
123397         * lib/closeout.c (close_stdout_status): Also check for errors on the
123398         stderr stream.
123400 2000-05-05  Jim Meyering  <meyering@lucent.com>
123402         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
123403         AC_SEARCH_LIBS call for clock_gettime.
123404         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
123406         * m4/search-libs.m4: Update from autoconf.
123408         su doesn't work on Solaris 2.6.
123409         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
123410         <shadow.h>.  Reported by Dragos Harabor.
123412 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
123414         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
123415         memcpy instead of xmalloc, xrealloc, path_concat.
123416         (locale_charset): Treat empty environment variables as absent.
123417         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
123419 2000-05-04  Jim Meyering  <meyering@lucent.com>
123421         * lib/getopt.c: Update from glibc.
123422         * lib/obstack.c: Likewise.
123423         * lib/obstack.h: Likewise.
123424         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
123425         file
123427         * lib/regex.h: Likewise.
123428         * lib/strndup.c: Likewise.
123429         * lib/strnlen.c: New file, from glibc.
123431 2000-05-03  Jim Meyering  <meyering@lucent.com>
123433         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
123435 2000-05-02  Paul Eggert  <eggert@twinsun.com>
123437         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
123438         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
123439         compile-time test, rather than inspecting host and OS, to
123440         decide whether to define _LARGEFILE_SOURCE.
123442 2000-05-01  Jim Meyering  <meyering@lucent.com>
123444         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
123446         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
123447         Based on a patch from Bruno Haible.
123449 2000-05-01  Jim Meyering  <meyering@lucent.com>
123451         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
123453 2000-04-29  Jim Meyering  <meyering@lucent.com>
123455         * lib/path-concat.c: Declare strdup only if it's not defined.
123456         * lib/canon-host.c: Likewise.
123458 2000-04-28  Jim Meyering  <meyering@lucent.com>
123460         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
123461         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
123462         is included first, then limits.h is included by locale.h by libintl.h.
123463         From John David Anglin.
123465 2000-04-25  Jim Meyering  <meyering@lucent.com>
123467         * lib/makepath.c (S_IRWXUGO): Define.
123468         (make_path): Always perform explicit chmod if MODE specifies any
123469         of the `special' permission bits.  Prompted by a bug report against
123470         install from Mate Wierdl and Joost van Baal.
123472 2000-04-18  Jim Meyering  <meyering@lucent.com>
123474         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
123475         (jm_PREREQ): Use it.
123477 2000-04-18  Jim Meyering  <meyering@lucent.com>
123479         * lib/README: New file.
123481         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
123482         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
123484 2000-04-17  Jim Meyering  <meyering@lucent.com>
123486         Get it right :-)
123487         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
123488         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
123489         Suggestion from Akim Demaille.
123491 2000-04-17  Jim Meyering  <meyering@lucent.com>
123493         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
123494         the definition of it to rpl_strftime also defined-away the system's
123495         declaration.
123497 2000-04-15  Jim Meyering  <meyering@lucent.com>
123499         Use `C' to denote so-called `contiguous' files, the same way
123500         that tar does.
123501         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
123502         (ftypelet): Use S_ISCTG.
123503         From Michael Deutschmann.
123505 2000-04-14  Jim Meyering  <meyering@lucent.com>
123507         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
123508         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
123509         clobbered.
123511 2000-04-14  Jim Meyering  <meyering@lucent.com>
123513         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
123515 2000-04-13  Jim Meyering  <meyering@lucent.com>
123517         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
123518         AH_VERBATIM to insert required #ifndef into config.h.in.
123519         Suggestion from Akim Demaille.
123521 2000-04-12  Jim Meyering  <meyering@lucent.com>
123523         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
123524         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
123525         Christian Krackowizer.
123527         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
123528         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
123529         (AC_SYS_LARGEFILE): Require.
123530         (AM_C_PROTOTYPES): Require.
123532 2000-04-08  Jim Meyering  <meyering@lucent.com>
123534         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
123535         names don't conflict.  Reported by Eli Zaretskii.
123537 2000-04-07  Jim Meyering  <meyering@lucent.com>
123539         * lib/putenv.c: Move inclusion of errno.h so it follows that of
123540         sys/types.h, to work around system header problems on AIX 3.2.5.
123541         From Bruno Haible.
123543 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
123545         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
123546         bug.  Deal with the different error behavior of Irix iconv.
123548 2000-04-05  Paul Eggert  <eggert@twinsun.com>
123550         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
123551         IRIX if the installer said otherwise.
123553 2000-04-05  Jim Meyering  <meyering@lucent.com>
123555         Portability tweaks required for ultrix4.3.
123556         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
123557         (jm_CHECK_DECLS): Add getutent to the list of functions.
123558         (_jm_DECL_HEADERS): Add utmpx.h.
123559         From John David Anglin.
123561         * m4/strftime.m4: Back out the 2000-04-02 change.
123562         Instead of that change, simply undefine putenv in the test program.
123564 2000-04-05  Jim Meyering  <meyering@lucent.com>
123566         Portability tweaks required for ultrix4.3.
123567         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
123568         getutent.
123569         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
123570         * lib/canon-host.c: Declare strdup.
123571         * lib/path-concat.c: Likewise.
123572         From John David Anglin.
123574 2000-04-04  Jim Meyering  <meyering@lucent.com>
123576         Be more DOS 8.3-friendly.
123577         * lib/ref-add.sin: Renamed from ref-add.sed.in.
123578         * lib/ref-del.sin: Renamed from ref-del.sed.in.
123579         * lib/Makefile.am: Reflect renaming.
123580         Reported by Eli Zaretskii.
123582         Use a temporary file name that won't clash with `charset.alias'
123583         in the DOS 8.3 name space.
123584         * lib/Makefile.am (charset_tmp): Define.
123585         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
123586         (uninstall-local): Likewise.
123587         Reported by Eli Zaretskii.
123589 2000-04-03  Jim Meyering  <meyering@lucent.com>
123591         * m4/gettext.m4: Fix typo in comment.
123593         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
123594         textutils/configure.in).  Suggestion from Paul Eggert.
123595         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
123597 2000-04-02  Paul Eggert  <eggert@twinsun.com>
123599         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
123600         variable in the shell rather than using putenv, which isn't
123601         portable.  This avoids the configure-time inter-test dependency
123602         on the potentially-renamed putenv function.
123604 2000-03-30  Paul Eggert  <eggert@twinsun.com>
123606         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
123607         before checking struct stat.st_blksize, so that
123608         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
123610 2000-03-29  Paul Eggert  <eggert@twinsun.com>
123612         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
123613         since strftime.c uses HAVE_STRFTIME to decide whether to use
123614         the underlying strftime.
123616 2000-03-29  Paul Eggert  <eggert@twinsun.com>
123618         * lib/time/strftime.c (my_strftime): Make sure we call the system
123619         strftime, not ourselves, when invoking the underlying strftime.
123621 2000-03-24  Jim Meyering  <meyering@lucent.com>
123623         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
123624         (charset_alias): Define.
123625         (install-exec-local): Factor out common code.
123626         (uninstall-local): Split lines longer than 80.
123627         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
123628         (SUFFIXES): Define.
123629         (.sed.in.sed): New rule.  Don't redirect directly to $@.
123630         (CLEANFILES): Add ref-add.sed and ref-del.sed.
123632 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
123634         * lib/config.charset: Output a line containing "Packages using this
123635         file".
123636         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
123637         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
123638         ref-del.sed): New rules.
123640 2000-03-17  Jim Meyering  <meyering@lucent.com>
123642         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
123643         Otherwise, include <strings.h>
123645 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
123647         * lib/unicodeio.c (utf8_wctomb): New function.
123648         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
123649         format instead of in UCS-4 with platform dependent endianness.
123651 2000-03-10  Jim Meyering  <meyering@lucent.com>
123653         * m4/lib-check.m4: Look for getspnam in -lgen, too.
123654         From Marco Franzen.
123656 2000-03-07  Paul Eggert  <eggert@twinsun.com>
123658         * lib/savedir.c (savedir): Work even if directory size is
123659         negative; this can happen with some screwy NFS configurations.
123661 2000-03-06  Jim Meyering  <meyering@lucent.com>
123663         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
123664         if it's NULL (because we ran out of memory).  From Bruno Haible.
123666 2000-03-05  Jim Meyering  <meyering@lucent.com>
123668         * lib/localcharset.c ("path-concat.h"): Include.
123669         (get_charset_aliases): Use path_concat instead of ANSI string
123670         concatenation.
123672         * lib/unicodeio.h (PARAMS): Define.
123673         Use it to guard prototype.
123675 2000-03-04  Jim Meyering  <meyering@lucent.com>
123677         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
123678         for lib/localcharset.c.
123680 2000-03-04  Jim Meyering  <meyering@lucent.com>
123682         * lib/Makefile.am (install-exec-local): Create $(libdir) before
123683         installing into it.
123684         (uninstall-local): Uncomment this rule so `make distcheck' works
123685         once again.
123687         * lib/unicodeio.c (<errno.h>): Include it.
123688         (errno): Declare if not defined.
123690         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
123692         * lib/config.charset: New version, incorporating remarks from a linux
123693         i18n mailing list.  From Bruno Haible.
123695 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
123697         * m4/codeset.m4: New file.
123698         * m4/iconv.m4: New file.
123699         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
123701 2000-03-03  Jim Meyering  <meyering@lucent.com>
123703         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
123705 2000-03-02  Jim Meyering  <meyering@lucent.com>
123707         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
123708         the messages come out on separate lines.
123710         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
123711         rather than jm_CHECK_DECLARATIONS.
123712         * m4/decl.m4: Remove now-unused file.
123714         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
123715         geteuid.
123717 2000-03-02  Jim Meyering  <meyering@lucent.com>
123719         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
123721 2000-03-01  Jim Meyering  <meyering@lucent.com>
123723         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
123724         * lib/unicodeio.c: Likewise.
123726 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
123728         * lib/config.charset: New file.
123729         * lib/localcharset.c: New file.
123730         * lib/unicodeio.h, lib/unicodeio.c: New files.
123731         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
123732         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
123733         (noinst_HEADERS): Add unicodeio.h.
123734         (all-local, install-exec-local, charset.alias): New targets.
123736 2000-02-28  Paul Eggert  <eggert@twinsun.com>
123738         * lib/quotearg.c (ALERT_CHAR): New macro.
123739         (quotearg_buffer_restyled): Use it.
123741 2000-02-27  Jim Meyering  <meyering@lucent.com>
123743         * m4/check-decl.m4: Add getenv to the list.
123745 2000-02-27  Jim Meyering  <meyering@lucent.com>
123747         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
123748         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
123750         * lib/backupfile.c: Guard inclusion of stdlib.h with
123751         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
123752         Declare malloc if needed.
123754         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
123755         `#ifndef HAVE_DECL..'
123756         now that autoconf always defines the HAVE_DECL_ symbols.
123757         * lib/human.c: Likewise.
123758         * lib/same.c: Likewise.
123759         * lib/strtoumax.c: Likewise.
123761         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
123762         declaration check was not run.
123763         * lib/hash.c: Likewise.
123764         * lib/human.c: Likewise.
123765         * lib/same.c: Likewise.
123766         * lib/strtoumax.c: Likewise.
123768         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
123769         `.', then first look up the entire `.'-containing string as a login
123770         name.
123772 2000-02-23  Jim Meyering  <meyering@lucent.com>
123774         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
123775         in place of my hack.
123777 2000-02-18  Paul Eggert  <eggert@twinsun.com>
123779         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
123780         (textint): New typedef.
123781         (parser_control): Member year changed from int to textint.
123782         All uses changed.
123783         (YYSTYPE): Removed; replaced by %union with int and textint members.
123784         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
123785         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
123786         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
123787         (tSNUMBER, tUNUMBER): Now of type <textintval>.
123788         (date, number, to_year): Use width of number in digits, not its value,
123789         to determine whether it's a 2-digit year, or a 2-digit time.
123790         (yylex): Store number of digits of numeric tokens.
123791         Reported by John Kendall.
123793         (parser_control): Changed from struct parser_control to typedef (for
123794         consistency).  All uses changed.
123796         (tID): Removed; not used.
123797         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
123799 2000-02-14  Paul Eggert  <eggert@twinsun.com>
123801         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
123802         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
123804 2000-02-12  Jim Meyering  <meyering@lucent.com>
123806         * lib/userspec.c (ISDIGIT): Define it.
123807         (isdigit): Remove definition.
123808         (is_number): Use ISDIGIT, not isdigit.
123809         <libintl.h>: Include.
123810         (_ and N_): Define.
123811         (parse_user_spec): Mark translatable strings.
123813 2000-02-10  Jim Meyering  <meyering@lucent.com>
123815         With these changes, nanosleep.[ch] are finally enough like the other
123816         lib/* replacement files to compile on a few more losing systems.
123818         * lib/nanosleep.h: Don't include config.h.
123819         Remove prototype from declaration of nanosleep.
123820         (PARAMS): Remove now-unneeded definition.
123821         * lib/nanosleep.c: #undef nanosleep.
123822         (rpl_nanosleep): Rename from nanosleep.
123824 2000-02-10  Jim Meyering  <meyering@lucent.com>
123826         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
123827         gnu_nanosleep to rpl_nanosleep.
123829 2000-02-09  Jim Meyering  <meyering@lucent.com>
123831         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
123832         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
123834 2000-02-08  Akim Demaille  <akim@epita.fr>
123836         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
123837         `[' and `]' and remove uses of `changequote'.
123838         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
123839         (AC_SYS_LARGEFILE): Likewise.
123840         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
123841         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
123842         of changequote.
123843         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
123844         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
123845         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
123846         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
123848 2000-02-05  Jim Meyering  <meyering@lucent.com>
123850         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
123851         Remove explicit use of AC_HEADER_TIME.  It is required by
123852         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
123853         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
123854         in autoconf whereby the expansion of the latter ended up preceding
123855         the expansion of its prerequisite, AC_HEADER_TIME.
123856         Reported by Volker Borchert.
123858 2000-02-03  Jim Meyering  <meyering@lucent.com>
123860         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
123862 2000-02-03  Jim Meyering  <meyering@lucent.com>
123864         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
123865         rather than with `#if HAVE_UTMPNAME'.
123867 2000-02-02  Jim Meyering  <meyering@lucent.com>
123869         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
123870         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
123871         Reported by Eli Zaretskii.
123873 2000-02-01  Jim Meyering  <meyering@lucent.com>
123875         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
123877 2000-01-31  Jim Meyering  <meyering@lucent.com>
123879         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
123880         functions.  Add the time.h and sys/time.h headers along with the
123881         AC_REQUIRE'ment of AC_HEADER_TIME.
123883 2000-01-31  Jim Meyering  <meyering@lucent.com>
123885         * lib/nanosleep.h (nanosleep): Guard declaration with
123886         `#if ! HAVE_DECL_NANOSLEEP'.
123887         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
123888         the declaration in that vendor's sys/timers.h.
123889         Reported by Christian Krackowizer.
123891         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
123892         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
123893         (ISPRINT): Likewise.
123894         Reported by Tom Tromey.
123896 2000-01-30  Jim Meyering  <meyering@lucent.com>
123898         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
123900         * m4/prereq.m4 (utmp_includes): Define.
123901         Check for ut_user and ut_name members in both struct utmpx
123902         and struct utmp.
123904 2000-01-30  Jim Meyering  <meyering@lucent.com>
123906         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
123907         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
123908         header files where only utmpx.ut_user is declared.
123910         * lib/readutmp.h (UT_USER): Define.
123912 2000-01-29  Jim Meyering  <meyering@lucent.com>
123914         * m4/lib-check.m4: New file containing library-related checks from
123915         fileutils and sh-utils (textutils had none).
123917 2000-01-28  Jim Meyering  <meyering@lucent.com>
123919         * m4/perl.m4: Change format of warning message to look more like that
123920         from the missing script.  Suggestion from François Pinard.
123922 2000-01-25  Jim Meyering  <meyering@lucent.com>
123924         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
123925         well as time.h in the compile check.
123926         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
123927         Fix typo in cross-compiling case: s/yes/no/.
123929 2000-01-23  Jim Meyering  <meyering@lucent.com>
123931         * m4/jm-macros.m4: Move df-related tests here from
123932         fileutils/configure.in
123934         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
123935         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
123937         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
123938         s/space/ac_fsusage_space/.
123939         (jm_FILE_SYSTEM_USAGE): Take two parameters.
123941         * m4/ftruncate.m4: New file (derived from part of
123942         fileutils/configure.in).
123943         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
123944         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
123946         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
123947         AC_SUBST these here, rather than just in sh-util/configure.in, so
123948         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
123949         all the same.
123950         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
123951         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
123952         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
123953         (AC_SUBST(POW_LIBM)): Likewise.
123954         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
123956 2000-01-23  Jim Meyering  <meyering@lucent.com>
123958         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
123959         obstack.c.
123961 2000-01-22  Jim Meyering  <meyering@lucent.com>
123963         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
123965         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
123967         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
123968         configure.in
123969         (AC_CHECK_HEADERS): Likewise for sh-utils.
123970         (AC_CHECK_HEADERS): Likewise for textutils.
123971         Merge the three lists of headers.
123973         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
123974         from fileutils' configure.in.
123976         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
123977         code. Moved tests into their own function (_jm_DECL_HEADERS) in
123978         check-decl.m4.
123980         * m4/check-decl.m4: Use #if rather than #ifdef.
123981         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
123982         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
123983         (_jm_DECL_HEADERS): Define new function.
123984         (jm_CHECK_DECLARATIONS): Require it.
123986 2000-01-22  Jim Meyering  <meyering@lucent.com>
123988         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
123989         [! HAVE_DECL_STRTOULL]: Declare strtoull.
123990         Required for some AIX systems.  Reported by Christian Krackowizer.
123991         [TESTING] (main): New function.
123993         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
123994         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
123995         letters.
123997         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
123998         iswprint.
124000         * lib/strverscmp.c (ISDIGIT): Define.
124001         (strverscmp): Use ISDIGIT, not isdigit.
124003 2000-01-19  Jim Meyering  <meyering@lucent.com>
124005         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
124006         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
124007         defines `struct timespec' in <sys/time.h>
124009         * m4/c-bs-a.m4: Remove uses of changequote altogether.
124010         Thanks to Akim for explaining.
124012 2000-01-17  Paul Eggert  <eggert@twinsun.com>
124014         * lib/nanosleep.c (nanosleep):
124015         Don't use SA_INTERRUPT to decide whether to call sigaction, as
124016         POSIX.1 doesn't require SA_INTERRUPT and some systems
124017         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
124018         it's been part of POSIX.1 since day 1 (in 1988).
124020 2000-01-17  Jim Meyering  <meyering@lucent.com>
124022         * lib/interlock: Remove unused file.  Reported by François Pinard.
124024 2000-01-16  Paul Eggert  <eggert@twinsun.com>
124026         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
124027         alert, backslash, formfeed, and vertical tab unnecessarily in
124028         shell quoting style.
124030 2000-01-16  Jim Meyering  <meyering@lucent.com>
124032         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
124033         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
124034         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
124035         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
124037 2000-01-16  Jim Meyering  <meyering@lucent.com>
124039         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
124040         because the latter didn't work.
124042 2000-01-15  Jim Meyering  <meyering@lucent.com>
124044         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
124045         (AC_REPLACE_FUNCS): Add memcpy and memset.
124046         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
124047         Add strpbrk.
124048         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
124050 2000-01-12  Jim Meyering  <meyering@lucent.com>
124052         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
124053         (jm_PREREQ): Use it.
124054         (jm_PREREQ_READUTMP): New macro.
124055         (jm_PREREQ): Use it.
124057 2000-01-11  Paul Eggert  <eggert@twinsun.com>
124059         Quote multibyte characters correctly.
124060         * m4/c-bs-a.m4: New file.
124061         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
124062         (jm_PREREQ): Use it.
124064 2000-01-11  Paul Eggert  <eggert@twinsun.com>
124066         * m4/uintmax_t.m4: Port to autoconf 2.13.
124068 2000-01-08  Jim Meyering  <meyering@ascend.com>
124070         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
124071         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
124073 2000-01-04  Jim Meyering  <meyering@ascend.com>
124075         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
124076         jm_STRUCT_DIRENT_D_TYPE.
124077         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
124078         jm_STRUCT_DIRENT_D_INO.
124079         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
124080         jm_STRUCT_UTIMBUF.
124081         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
124082         renamings.
124083         * m4/utime.m4: Likewise.
124085         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
124086         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
124088 2000-01-03  Paul Eggert  <eggert@twinsun.com>
124090         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
124091         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
124093 2000-01-02  Jim Meyering  <meyering@ascend.com>
124095         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
124096         remember if this is necessary.
124098 1999-12-26  Jim Meyering  <meyering@ascend.com>
124100         * m4/jm-macros.m4: Use it here.
124101         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
124103 1999-12-23  Jim Meyering  <meyering@ascend.com>
124105         * m4/jm-macros.m4: Check for clock_gettime (moved from
124106         fileutils/configure.in)
124107         Check for gettimeofday.
124109 1999-12-20  Jim Meyering  <meyering@ascend.com>
124111         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
124112         autoconf-2.14a-1999-12-20.
124114 1999-12-19  Jim Meyering  <meyering@ascend.com>
124116         * m4/lstat-slash.m4: New file.
124117         * m4/jm-macros.m4: Use the new macro:
124118         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
124120 1999-12-07  Jim Meyering  <meyering@ascend.com>
124122         * m4/perl.m4: Require that File::Compare be available, too.
124123         Too many systems seem to lack it.
124125         * m4/strftime.m4: Add checks for most of the cpp macros tested in
124126         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
124128 1999-11-18  Paul Eggert  <eggert@twinsun.com>
124130         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
124131         problem with the QNX 4.25 shell, which doesn't propagate exit
124132         status of failed commands inside shell assignments.
124134 1999-11-17  Jim Meyering  <meyering@ascend.com>
124136         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
124138 1999-11-07  Jim Meyering  <meyering@ascend.com>
124140         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
124142 1999-11-06  Jim Meyering  <meyering@ascend.com>
124144         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
124145         * m4/jm-macros.m4 (jm_MACROS): Use it here.
124147 1999-11-05  Jim Meyering  <meyering@ascend.com>
124149         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
124150         configure.in of textutils, fileutils, and sh-utils into this one
124151         (shared between those packages) file.
124152         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
124153         AC_STRUCT_ST_BLKSIZE.
124155 1999-11-03  Jim Meyering  <meyering@ascend.com>
124157         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
124158         of AC_CHECK_TYPE checks includes unistd.h.
124159         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
124160         Suggestion from Akim Demaille.
124162 1999-10-30  Jim Meyering  <meyering@ascend.com>
124164         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
124165         m4-quoted string.
124166         * m4/ls-mntd-fs.m4: Likewise.
124167         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
124168         * m4/jm-winsz1.m4: Likewise.
124170         * m4/const.m4: Remove file, since the fix made it into the experimental
124171         version of autoconf.
124172         * m4/mktime.m4: Likewise.
124174         * m4/check-type.m4: Remove file, now that the latest version of
124175         AC_CHECK_TYPE takes a third arg to specify additional #includes.
124177         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
124178         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
124179         AC_CHECK_TYPE.
124181 1999-10-04  Jim Meyering  <meyering@ascend.com>
124183         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
124185 1999-09-22  Paul Eggert  <eggert@twinsun.com>
124187         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
124188         2.95.1 bug with HP-UX 10.20.
124190 1999-09-17  Jim Meyering  <meyering@ascend.com>
124192         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
124193         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
124194         due to missing strdup (against sh-utils-2.0).
124196 1999-08-29  Jim Meyering  <meyering@ascend.com>
124198         * m4/jm-macros.m4: Require jm_BISON.
124199         * m4/bison.m4: New file.
124201 1999-08-17  Paul Eggert  <eggert@twinsun.com>
124203         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
124204         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
124206 1999-08-05  Jim Meyering  <meyering@ascend.com>
124208         * m4/getline.m4: Rename test file from conftestdata to conftest.data
124209         to avoid conflicts with `conftest' on 8+3 filesystems.
124210         Suggestion from Eli Zaretskii.
124212 1999-08-04  Jim Meyering  <meyering@ascend.com>
124214         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
124215         fileutils and sh-utils (textutils's getline test was inadequate).
124216         (AM_FUNC_GETLINE): Run this test.
124217         (AC_CHECK_FUNCS): Check for getdelim.
124218         Reported by Bob Proulx.
124220 1999-08-02  Jim Meyering  <meyering@ascend.com>
124222         * m4/jm-macros.m4: Add a comment.
124224 1999-08-01  Paul Eggert  <eggert@twinsun.com>
124226         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
124227         <inttypes.h> defines strtoumax as a macro (and not as a
124228         function).
124230 1999-08-01  Paul Eggert  <eggert@twinsun.com>
124232         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
124233         that we can shift, multiply and divide unsigned long long
124234         values; Ultrix cc can't do it.
124236 1999-08-01  Paul Eggert  <eggert@twinsun.com>
124238         * m4/mktime.m4: New file, which is a preview of what should appear
124239         in the next public autoconf release.
124241 1999-08-01  Paul Eggert  <eggert@twinsun.com>
124243         * m4/lfs.m4: Remove this file.
124244         * m4/largefile.m4: New file.  It contains the old contents of
124245         lfs.m4, except that all names with prefix AC_LFS have been
124246         changed to use the prefix AC_SYS_LARGEFILE instead, to be
124247         compatible with future autoconf versions.  Also, some minor m4
124248         quoting problems have been fixed.
124250 1999-08-01  Paul Eggert  <eggert@twinsun.com>
124252         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
124253         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
124254         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
124255         and simplify the shell code.
124257 1999-08-01  Jim Meyering  <meyering@ascend.com>
124259         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
124260         m4.
124262 1999-07-20  Jim Meyering  <meyering@ascend.com>
124264         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
124266 1999-07-15  Jim Meyering  <meyering@ascend.com>
124268         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
124270 1999-05-22  Jim Meyering  <meyering@ascend.com>
124272         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
124274 1999-05-20  Jim Meyering  <meyering@ascend.com>
124276         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
124277         Add a colon after each `then' in case $4 is empty.
124279 1999-05-16  Jim Meyering  <meyering@ascend.com>
124281         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
124283 1999-05-10  Jim Meyering  <meyering@ascend.com>
124285         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
124287         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
124288         AC_FUNC_MKTIME.
124290 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
124292         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
124294 1999-05-04  Paul Eggert  <eggert@twinsun.com>
124296         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
124297         not CPPFLAGS, so that linking works correctly in IRIX.
124299 1999-04-30  Paul Eggert  <eggert@twinsun.com>
124301         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
124303 1999-04-20  Paul Eggert  <eggert@twinsun.com>
124305         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
124306         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
124307         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
124308         jm_AC_TYPE_UNSIGNED_LONG_LONG.
124309         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
124311         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
124313 1999-04-20  Jim Meyering  <meyering@ascend.com>
124315         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
124316         AC_REPLACE xstroull if necessary.  From Paul Eggert.
124317         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
124319 1999-04-18  Jim Meyering  <meyering@ascend.com>
124321         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
124322         * m4/jm-macros.m4: Use it.
124324 1999-04-06  Jim Meyering  <meyering@ascend.com>
124326         * m4/strftime.m4: Remove test for %f.
124328 1999-03-29  Jim Meyering  <meyering@ascend.com>
124330         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
124331         superset of the AC_TYPE_* checks in the textutils, fileutils,
124332         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
124333         AC_TYPE_PID_T.
124335 1999-03-28  Jim Meyering  <meyering@ascend.com>
124337         * m4/jm-macros.m4: Define GNU_PACKAGE here.
124338         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
124339         replaced e.g., in the *.sh files of the sh-utils.
124341 1999-03-20  Jim Meyering  <meyering@ascend.com>
124343         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
124344         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
124345         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
124347 1999-03-19  Jim Meyering  <meyering@ascend.com>
124349         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
124351 1999-03-12  Jim Meyering  <meyering@ascend.com>
124353         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
124355 1999-03-07  Jim Meyering  <meyering@ascend.com>
124357         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
124358         declared.
124360 1999-02-17  Jim Meyering  <meyering@ascend.com>
124362         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
124363         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
124365 1999-02-07  Jim Meyering  <meyering@ascend.com>
124367         * m4/group-member.m4: New file -- extracted from sh-utils'
124368         configure.in.
124370         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
124371         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
124373 1999-02-06  Jim Meyering  <meyering@ascend.com>
124375         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
124376         * m4/fnmatch.m4: Likewise.
124377         * m4/getgroups.m4: Likewise.
124378         * m4/lstat.m4: Likewise.
124379         * m4/malloc.m4: Likewise.
124380         * m4/putenv.m4: Likewise.
124381         * m4/realloc.m4: Likewise.
124382         * m4/regex.m4: Likewise.
124383         * m4/stat.m4: Likewise.
124384         * m4/strftime.m4: Likewise.
124385         Suggestion from Alain Magloire.
124387         * m4/chown.m4: Use `.$ac_objext', not `.o'.
124388         * m4/fnmatch.m4: Likewise.
124389         * m4/getgroups.m4: Likewise.
124390         * m4/getline.m4: Likewise.
124391         * m4/lstat.m4: Likewise.
124392         * m4/malloc.m4: Likewise.
124393         * m4/memcmp.m4: Likewise.
124394         * m4/putenv.m4: Likewise.
124395         * m4/realloc.m4: Likewise.
124396         * m4/regex.m4: Likewise.
124397         * m4/stat.m4: Likewise.
124398         * m4/strftime.m4: Likewise.
124399         Suggestion from Alain Magloire.
124401         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
124402         an argument.
124404         * m4/regex.m4: Add a run-time Test for proper operation of
124405         re_compile_pattern.
124407 1999-01-31  Jim Meyering  <meyering@ascend.com>
124409         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
124411 1999-01-30  Jim Meyering  <meyering@ascend.com>
124413         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
124415         * m4/jm-mktime.m4: Make this a wrapper around the official
124416         AM_FUNC_MKTIME rather than my private copy, now that the official one
124417         is up to date.
124418         * m4/mktime.m4: Remove file.
124420         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
124421         * m4/uptime.m4: Likewise.
124422         * m4/uintmax_t.m4: Likewise.
124424 1999-01-28  Jim Meyering  <meyering@ascend.com>
124426         * m4/jm-macros.m4: Use jm_AFS.
124427         * m4/afs.m4: New file (from fileutils' configure.in).
124429         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
124430         * m4/chown.m4: Likewise.
124431         * m4/d-ino.m4: Likewise.
124432         * m4/d-type.m4: Likewise.
124433         * m4/fnmatch.m4: Likewise.
124434         * m4/getgroups.m4: Likewise.
124435         * m4/gettext.m4: Likewise.
124436         * m4/jm-mktime.m4: Likewise.
124437         * m4/jm-winsz2.m4: Likewise.
124438         * m4/lcmessage.m4: Likewise.
124439         * m4/ls-mntd-fs.m4: Likewise.
124440         * m4/malloc.m4: Likewise.
124441         * m4/memcmp.m4: Likewise.
124442         * m4/putenv.m4: Likewise.
124443         * m4/realloc.m4: Likewise.
124444         * m4/st_mtim.m4: Likewise.
124445         * m4/strftime.m4: Likewise.
124447 1999-01-16  Jim Meyering  <meyering@ascend.com>
124449         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
124450         (ARGMATCH_DIE_DECL): Define.
124452 1999-01-12  Jim Meyering  <meyering@ascend.com>
124454         * m4/Makefile.am.in: Rewrite to avoid using fmt.
124455         Reported by Lars Hecking.
124457 1999-01-10  Jim Meyering  <meyering@ascend.com>
124459         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
124460         gross kludge.
124461         * m4/inttypes_h.m4: Likewise.
124462         * m4/lstat.m4: Likewise.
124463         * m4/malloc.m4: Likewise.
124464         * m4/readdir.m4: Likewise.
124465         * m4/realloc.m4: Likewise.
124466         * m4/st_dm_mode.m4: Likewise.
124467         * m4/stat.m4: Likewise.
124468         * m4/utimbuf.m4: Likewise.
124469         * m4/utimes.m4: Likewise.
124471         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
124472         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
124473         comments in config.h.in are meaningful.
124475         * m4/jm-macros.m4: Require autoconf-2.13 here.
124477         * m4/regex.m4: By default, don't use the included regex.c on systems
124478         with glibc 2.  Suggestion from Uli Drepper.
124480 1999-01-02  Jim Meyering  <meyering@ascend.com>
124482         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
124484 1998-12-18  Jim Meyering  <meyering@ascend.com>
124486         * m4/Makefile.am.in (Makefile.am): Simplify rule.
124487         Based on a suggestion from Lars Hecking.
124489 1998-11-16  Paul Eggert  <eggert@twinsun.com>
124491         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
124493 1998-11-16  Jim Meyering  <meyering@ascend.com>
124495         * m4/lfs.m4: Double-quote the `uname...` expression.
124497 1998-11-14  Jim Meyering  <meyering@ascend.com>
124499         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
124500         * m4/stat.m4: Likewise.
124502 1998-11-03  Jim Meyering  <meyering@ascend.com>
124504         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
124505         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
124507 1998-10-18  Jim Meyering  <meyering@ascend.com>
124509         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
124511 1998-10-17  Jim Meyering  <meyering@ascend.com>
124513         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
124514         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
124515         calls for those previously hard-coded headers.  Instead, take a new
124516         parameter.
124517         (jm_CHECK_DECLARATIONS): Reflect interface change.
124518         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
124519         (jm_CHECK_DECL_LOCALTIME_R): New macro.
124521         * m4/mktime.m4: Test for spring-forward gap before long-running test.
124523 1998-10-14  Jim Meyering  <meyering@ascend.com>
124525         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
124526         instead of "TZ=America/Vancouver".  From Paul Eggert.
124528 1998-10-11  Jim Meyering  <meyering@ascend.com>
124530         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
124531         This adds a test for a recently added compatibility fix for mktime.c.
124532         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
124534 1998-09-27  Jim Meyering  <meyering@ascend.com>
124536         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
124538         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
124539         ../configure.in, including a change from Gordon Matzigkeit to allow
124540         cross-compiling for the Hurd.
124542         * m4/glibc.m4: New file/macro to test for the GNU C Library
124543         versions 1 and 2.  From Gordon Matzigkeit.
124544         Indent.
124546 1998-09-21  Jim Meyering  <meyering@ascend.com>
124548         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
124550 1998-08-18  Paul Eggert  <eggert@twinsun.com>
124552         Port nanosecond-resolution times to UnixWare 2.1.2 and
124553         pedantic Solaris 2.6.
124555         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
124556         AC_STRUCT_ST_MTIM.
124557         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
124558         Generate name of ns member, instead of just 1 or undef.
124559         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
124561 1998-08-15  Jim Meyering  <meyering@ascend.com>
124563         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
124564         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
124565         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
124566         instead of jm_TYPE_SSIZE_T.
124568 1998-08-12  Jim Meyering  <meyering@ascend.com>
124570         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
124572 1998-08-02  Jim Meyering  <meyering@ascend.com>
124574         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
124575         in acconfig.h manually.
124577 1998-07-31  Paul Eggert  <eggert@twinsun.com>
124579         * m4/st_mtim.m4: New file.
124581 1998-07-28  Jim Meyering  <meyering@ascend.com>
124583         * m4/utimes.m4: Undef stat.
124585 1998-07-25  Jim Meyering  <meyering@ascend.com>
124587         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
124588         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
124590 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
124592         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
124593         uid and gid actually remain unchanged.
124595 1998-07-07  Jim Meyering  <meyering@ascend.com>
124597         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
124599 1998-07-04  Jim Meyering  <meyering@ascend.com>
124601         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
124602         to prove that this macro can be used in packages without regex.c.
124604 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
124606         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
124607         is to be used.
124609 1998-07-03  Jim Meyering  <meyering@ascend.com>
124611         * m4/gettext.m4: Add -lintl if it's found to be necessary.
124613         * m4/gettext.m4: New file -- from gettext-0.10.35.
124614         * m4/lcmessage.m4: Likewise.
124615         * m4/progtest.m4: Likewise.
124617         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
124618         * m4/jm-macros.m4: Require the new macro.
124620 1998-06-29  Jim Meyering  <meyering@ascend.com>
124622         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
124623         for the definition of NGROUPS (used in a system header included
124624         by sys/mount.h).
124626 1998-06-28  Jim Meyering  <meyering@ascend.com>
124628         * m4/ls-mntd-fs.m4: New file.
124629         * m4/fstypename.m4: New file.
124631         * m4/jm-macros.m4: Require the new macro.
124632         * m4/jm-glibc-io.m4: New file.
124634 1998-05-19  Jim Meyering  <meyering@ascend.com>
124636         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
124637         * m4/lchown.m4: New file.
124639         * m4/Makefile.am.in: New file.
124640         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
124642 1998-05-14  Jim Meyering  <meyering@ascend.com>
124644         * m4/Makefile.am (EXTRA_DIST): Add them.
124645         * m4/jm-macros.m4: New file.
124646         * m4/utimbuf.m4: New file.
124648 1998-05-12  Jim Meyering  <meyering@ascend.com>
124650         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
124652 1998-05-11  Jim Meyering  <meyering@ascend.com>
124654         * m4/isc-posix.m4: New file.
124656 1998-05-10  Jim Meyering  <meyering@ascend.com>
124658         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
124660 1998-05-09  Jim Meyering  <meyering@ascend.com>
124662         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
124663         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
124664         with automake.
124666         * m4/ssize_t.m4: New file.
124667         * m4/mktime.m4: Remove file -- the new automake has this now.
124669 1998-04-26  Jim Meyering  <meyering@ascend.com>
124671         * m4/assert.m4: New file.
124672         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
124674 1998-04-05  Jim Meyering  <meyering@ascend.com>
124676         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
124677         (jm_PREREQ): Use it here.
124679 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
124681         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
124682         in acconfig.h.
124684 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
124686         * m4/prereq.m4: New file.
124687         * m4/error.m4: New file.
124688         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
124690 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
124692         * m4/getline.m4: Don't set am_cv_func_working_getline before the
124693         cache-check for the same variable -- that defeated the purpose of
124694         the test; the test program was never run.  This was a problem only
124695         on systems with losing getline functions -- HP-UX 10.20 is one.
124696         Reported by Bjorn Helgaas.
124698 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
124700         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
124702 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
124704         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
124706         * m4/const.m4: New file.  Use an initializer in this declaration
124707         typedef int charset[2]; const charset x;
124708         Reported by Bob Glickstein.
124710 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
124712         * m4/chown.m4: Fix reversed types on -1 args to chown.
124713         From Kaveh Ghazi.
124715 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
124717         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
124718         Add lseek and memchr.
124720         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
124721         T.E.Dickey <dickey@clark.net> said that some older preprocessors
124722         have a 20-character limit on names.
124724 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
124726         * m4/inttypes_h.m4: New file.
124727         * m4/uintmax_t.m4: New file.
124728         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
124731         -----
124733         Local Variables:
124734         coding: utf-8
124735         End:
124737         Copyright (C) 1997-2019 Free Software Foundation, Inc.
124739         Copying and distribution of this file, with or without
124740         modification, are permitted provided the copyright notice
124741         and this notice are preserved.